Membership in the ideal of maximal minors supplies an actual matrix whose product is the given scalar times the identity.
Source context 3 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
noncomputable section
namespace Matrixtheorem exists_mul_eq_smul_one_of_mem_span_maximalMinors
{R m n : Type*} [CommRing R] [Fintype m] [Fintype n] [DecidableEq m]
(A : Matrix m n R) (d : R)
(hd : d ∈ Ideal.span (Set.range fun c : m → n => (A.submatrix id c).det)) :
∃ S : Matrix n m R, A * S = d • (1 : Matrix m m R) := by
classical
induction hd using Submodule.span_induction with
| mem d hd =>
obtain ⟨c, rfl⟩ := hd
refine ⟨(1 : Matrix n n R).submatrix id c * (A.submatrix id c).adjugate, ?_⟩
rw [← Matrix.mul_assoc]
have hselect : A * (1 : Matrix n n R).submatrix id c = A.submatrix id c := by
exact Matrix.mul_submatrix_one (Equiv.refl n) c A
rw [hselect, Matrix.mul_adjugate]
| zero =>
refine ⟨0, ?_⟩
rw [Matrix.mul_zero, zero_smul]
| add a b _ha _hb ha hb =>
obtain ⟨S, hS⟩ := ha
obtain ⟨T, hT⟩ := hb
refine ⟨S + T, ?_⟩
rw [Matrix.mul_add, hS, hT, add_smul]
| smul r a _ha ha =>
obtain ⟨S, hS⟩ := ha
refine ⟨r • S, ?_⟩
rw [Matrix.mul_smul, hS, smul_smul, smul_eq_mul]