Cramer's rule after a ring homomorphism #
Matrix.map_cramer_eq_det_smul recovers the determinant-scaled solution of a linear system after
mapping its coefficients into another commutative ring. For integer coefficients,
Matrix.abs_cramer_le bounds each Cramer coordinate by the Leibniz determinant bound.
theorem Matrix.map_cramer_eq_det_smul {n : Type u_1} [Fintype n] [DecidableEq n] {R : Type u_2} {S : Type u_3} [CommRing R] [CommRing S] (φ : R →+* S) {A : Matrix n n R} {b : n → R} {y : n → S} (h : (A.map ⇑φ).mulVec y = fun (i : n) => φ (b i)) :
Applying a ring homomorphism to the Cramer vector of a system gives its mapped determinant times any solution of the mapped system.
theorem Matrix.abs_cramer_le {n : Type u_1} [Fintype n] [DecidableEq n] {A : Matrix n n ℤ} {b : n → ℤ} {H : ℕ} (hA : ∀ (i j : n), |A i j| ≤ ↑H) (hb : ∀ (i : n), |b i| ≤ ↑H) (j : n) :
Each coordinate of the integer Cramer vector is the determinant of a matrix whose entries
are bounded by the same H as the coefficients and right-hand side.