Strictly upper triangular matrices #
A square matrix over an ordered index type is strictly upper triangular when its entry at
(i, j) vanishes unless i < j (Matrix.IsStrictUpperTriangular). Mathlib's
Matrix.IsUpperTriangular allows a nonzero diagonal; the strict version is closed under sums,
negation, differences and products, and 1 + E then has determinant one.
Main definitions #
Matrix.IsStrictUpperTriangular: entries vanish unless the row index is below the column index.
Main results #
Matrix.IsStrictUpperTriangular.isUpperTriangular: strict implies Mathlib's non-strict notion.Matrix.IsStrictUpperTriangular.add,.neg,.sub,.mul: closure properties.Matrix.IsStrictUpperTriangular.det_one_add:det (1 + E) = 1for strictly upper triangularE.
def Matrix.IsStrictUpperTriangular {V : Type u_1} {R : Type u_2} [LT V] [Zero R] (M : Matrix V V R) :
A square matrix is strictly upper triangular when its entry at (i, j) vanishes unless
i < j. For the time-layered transition matrices of a machine, ordered by time, this says that
every transition moves strictly forward.
theorem Matrix.IsStrictUpperTriangular.isUpperTriangular {V : Type u_1} {R : Type u_2} [Preorder V] {M : Matrix V V R} [Zero R] (h : M.IsStrictUpperTriangular) :
A strictly upper triangular matrix is upper triangular.
theorem Matrix.IsStrictUpperTriangular.add {V : Type u_1} {R : Type u_2} [Preorder V] {M N : Matrix V V R} [AddZeroClass R] (hM : M.IsStrictUpperTriangular) (hN : N.IsStrictUpperTriangular) :
(M + N).IsStrictUpperTriangular
theorem Matrix.IsStrictUpperTriangular.neg {V : Type u_1} {R : Type u_2} [Preorder V] {M : Matrix V V R} [SubtractionMonoid R] (hM : M.IsStrictUpperTriangular) :
theorem Matrix.IsStrictUpperTriangular.sub {V : Type u_1} {R : Type u_2} [Preorder V] {M N : Matrix V V R} [SubtractionMonoid R] (hM : M.IsStrictUpperTriangular) (hN : N.IsStrictUpperTriangular) :
(M - N).IsStrictUpperTriangular
theorem Matrix.IsStrictUpperTriangular.mul {V : Type u_1} {R : Type u_2} [Preorder V] {M N : Matrix V V R} [Fintype V] [NonUnitalNonAssocSemiring R] (hM : M.IsStrictUpperTriangular) (hN : N.IsStrictUpperTriangular) :
(M * N).IsStrictUpperTriangular
theorem Matrix.IsStrictUpperTriangular.det_one_add {R : Type u_2} {V : Type u_3} [Fintype V] [DecidableEq V] [LinearOrder V] [CommRing R] {E : Matrix V V R} (h : E.IsStrictUpperTriangular) :
1 + E has determinant one when E is strictly upper triangular.