The areas / V07. Linear algebra
Mathlib.LinearAlgebra.Matrix.Echelon.Pivot
13 declarations. Mathlib docs · Source
Pivots of a matrix
Matrix.IsPivotedBy A l defines a map-based representation l for the pivot, stating that
l i is the pivot column of each row i of A, with ⊤ for a zero row.
Main definitions
Matrix.IsPivotedBy:l i : WithTop nis the pivot column of each rowiofA.
Main results
Matrix.IsPivotedBy.rank_eq: the rank of a matrix is its number of pivots.Matrix.IsPivotedBy.unique: the pivot of a matrix is unique if the column indices have a linear order.Matrix.isPivotedBy_iff: the map-structural characterisation of pivots.
Tags
matrix, echelon form, pivot
Decidability
structure Matrix.IsPivotedBy E3 #
{m : Type u_1} → {n : Type u_2} → {R : Type u_3} → [Zero R] → [LT m] → [LT n] → Matrix m n R → (m → WithTop n) → Prop
A is in row echelon form and l i is the leading position of each row i,
with ⊤ for a zero row.
ctor Matrix.IsPivotedBy.mk E0 #
∀ {m : Type u_1} {n : Type u_2} {R : Type u_3} [inst : Zero R] [inst_1 : LT m] [inst_2 : LT n] {A : Matrix m n R}
{l : m → WithTop n},
A.IsRowEchelon → (∀ (i : m), (∀ (j : n), ↑j < l i → A i j = 0) ∧ ∀ (c : n), l i = ↑c → A i c ≠ 0) → A.IsPivotedBy l
theorem Matrix.IsPivotedBy.isRowEchelon E1 #
∀ {m : Type u_1} {n : Type u_2} {R : Type u_3} [inst : Zero R] [inst_1 : LT m] [inst_2 : LT n] {A : Matrix m n R}
{l : m → WithTop n}, A.IsPivotedBy l → A.IsRowEchelon
theorem Matrix.IsPivotedBy.isPivotEntry E1 #
∀ {m : Type u_1} {n : Type u_2} {R : Type u_3} [inst : Zero R] [inst_1 : LT m] [inst_2 : LT n] {A : Matrix m n R}
{l : m → WithTop n}, A.IsPivotedBy l → ∀ (i : m), (∀ (j : n), ↑j < l i → A i j = 0) ∧ ∀ (c : n), l i = ↑c → A i c ≠ 0
theorem Matrix.IsPivotedBy.isLeadingEntry E1 #
∀ {m : Type u_1} {n : Type u_2} {R : Type u_3} [inst : Zero R] {A : Matrix m n R} {l : m → WithTop n} [inst_1 : LT m]
[inst_2 : LT n] {i : m} {c : n}, A.IsPivotedBy l → l i = ↑c → A.IsLeadingEntry i c
theorem Matrix.IsPivotedBy.lt_of_lt_of_ne_top E1 #
∀ {m : Type u_1} {n : Type u_2} {R : Type u_3} [inst : Zero R] {A : Matrix m n R} {l : m → WithTop n}
[inst_1 : LinearOrder n] [inst_2 : LT m] {i₁ i₂ : m}, A.IsPivotedBy l → i₁ < i₂ → l i₁ ≠ ⊤ → l i₁ < l i₂
theorem Matrix.IsPivotedBy.unique E3 #
∀ {m : Type u_1} {n : Type u_2} {R : Type u_3} [inst : Zero R] {A : Matrix m n R} {l : m → WithTop n}
[inst_1 : LinearOrder n] [inst_2 : LT m] {l' : m → WithTop n}, A.IsPivotedBy l → A.IsPivotedBy l' → l = l'
The pivots of a matrix are unique.
theorem Matrix.IsPivotedBy.strictMonoOn E1 #
∀ {m : Type u_1} {n : Type u_2} {R : Type u_3} [inst : Zero R] {A : Matrix m n R} {l : m → WithTop n}
[inst_1 : LinearOrder n] [inst_2 : Preorder m], A.IsPivotedBy l → StrictMonoOn l {i | l i ≠ ⊤}
theorem Matrix.IsPivotedBy.monotone E1 #
∀ {m : Type u_1} {n : Type u_2} {R : Type u_3} [inst : Zero R] {A : Matrix m n R} {l : m → WithTop n}
[inst_1 : LinearOrder n] [inst_2 : PartialOrder m], A.IsPivotedBy l → Monotone l
theorem Matrix.isPivotedBy_iff E3 #
∀ {m : Type u_1} {n : Type u_2} {R : Type u_3} [inst : Zero R] {A : Matrix m n R} {l : m → WithTop n}
[inst_1 : PartialOrder m] [inst_2 : LinearOrder n],
A.IsPivotedBy l ↔
Monotone l ∧
StrictMonoOn l {i | l i ≠ ⊤} ∧ ∀ (i : m), (∀ (j : n), ↑j < l i → A i j = 0) ∧ ∀ (c : n), l i = ↑c → A i c ≠ 0
The map-structural characterisation of pivots. This is useful for proving that a matrix is in row echelon form.
theorem Matrix.isPivotedBy_iff' E1 #
∀ {m : Type u_1} {n : Type u_2} {R : Type u_3} [inst : Zero R] {A : Matrix m n R} {l : m → WithTop n}
[inst_1 : PartialOrder m] [inst_2 : LinearOrder n],
A.IsPivotedBy l ↔
Monotone l ∧ StrictMonoOn l {i | l i ≠ ⊤} ∧ ∀ (i : m), l i = ⊤ ∧ A i = 0 ∨ ∃ c, l i = ↑c ∧ A.IsLeadingEntry i c
A variant of isPivotedBy_iff phrased with Matrix.IsLeadingEntry.
theorem Matrix.IsPivotedBy.rank_eq E3 #
∀ {m : Type u_1} {n : Type u_2} {R : Type u_3} [inst : Fintype m] [Finite n] [inst_2 : LinearOrder m]
[inst_3 : LinearOrder n] [inst_4 : CommRing R] [IsDomain R] {A : Matrix m n R} {l : m → WithTop n},
A.IsPivotedBy l → A.rank = {i | l i ≠ ⊤}.card
instance Matrix.instDecidableIsPivotedByOfFintype E0 #
{m : Type u_1} →
{n : Type u_2} →
{R : Type u_3} →
[inst : Zero R] →
[DecidableEq R] →
[Fintype m] →
[inst_3 : LinearOrder m] →
[Fintype n] →
[inst_5 : LinearOrder n] → (A : Matrix m n R) → (l : m → WithTop n) → Decidable (A.IsPivotedBy l)