The areas / V34. The tactics of Mathlib
Mathlib.Tactic.Determinant.Echelon.Reflection
6 declarations. Mathlib docs · Source
Reflection certificates for determinants of echelon decompositions
The diagonal product of a matrix given as a list of rows, with a bridge lemma to the product over
Fin m of an ofLists matrix. The determinant of a matrix follows from these pieces of an echelon
decomposition.
Main definitions
diagProd: the product of the diagonal entries of a list of rows.
Main results
prod_diag_ofLists: the product of the diagonal ofofLists m m rowsisdiagProd 0 m rows.det_eq_of_decomposition: the determinant ofAfrom an echelon decomposition ofA, the diagonal products ofLand of the echelon form, and the sign of the row permutation.
Diagonal products
Determinants from echelon decompositions
def Mathlib.Tactic.Determinant.diagProd E3 #
{α : Type u_1} → [Zero α] → [One α] → [Mul α] → ℕ → ℕ → List (List α) → α
The product of the entries of rows at positions (i, k + i) for i < c. Missing entries
are padded with 0.
theorem Mathlib.Tactic.Determinant.diagProd_zero E1 #
∀ {α : Type u_1} [inst : Zero α] [inst_1 : One α] [inst_2 : Mul α] (k : ℕ) (rows : List (List α)),
Mathlib.Tactic.Determinant.diagProd k 0 rows = 1
theorem Mathlib.Tactic.Determinant.diagProd_add_one_cons E1 #
∀ {α : Type u_1} [inst : Zero α] [inst_1 : One α] [inst_2 : Mul α] {k c : ℕ} {row : List α} {rows : List (List α)}
{d e : α} {suffix : List α},
List.drop k row = d :: suffix →
Mathlib.Tactic.Determinant.diagProd (k + 1) c rows = e →
Mathlib.Tactic.Determinant.diagProd k (c + 1) (row :: rows) = d * e
theorem Mathlib.Tactic.Determinant.diagProd_eq E0 #
∀ {α : Type u_1} [inst : CommMonoid α] [inst_1 : Zero α] (k c : ℕ) (rows : List (List α)),
Mathlib.Tactic.Determinant.diagProd k c rows = ∏ i, (rows.getD ↑i []).getD (k + ↑i) 0
theorem Mathlib.Tactic.Determinant.prod_diag_ofLists E3 #
∀ {α : Type u_1} [inst : CommMonoid α] [inst_1 : Zero α] (m : ℕ) (rows : List (List α)),
∏ i, Mathlib.Tactic.Matrix.ofLists m m rows i i = Mathlib.Tactic.Determinant.diagProd 0 m rows
theorem Mathlib.Tactic.Determinant.det_eq_of_decomposition E3 #
∀ {m : ℕ} {R : Type u_2} [inst : CommRing R] [IsDomain R] {A : Matrix (Fin m) (Fin m) R} {rowsL rowsU : List (List R)}
{σ : Equiv.Perm (Fin m)} {pivot : Fin m → WithTop (Fin m)},
Echelon.Decomposition A (Mathlib.Tactic.Matrix.ofLists m m rowsL) σ pivot →
∀ {l u s v : R},
Mathlib.Tactic.Matrix.ofLists m m rowsL * A.submatrix (⇑σ) id = Mathlib.Tactic.Matrix.ofLists m m rowsU →
Mathlib.Tactic.Determinant.diagProd 0 m rowsL = l →
Mathlib.Tactic.Determinant.diagProd 0 m rowsU = u → ↑↑(Equiv.Perm.sign σ) = s → l * (s * v) = u → A.det = v