NLA-lib Explorer

Triangular matrices and triangular solves

Library · Source module

Triangular matrices and triangular solves

Triangular matrices are Mathlib's Matrix.IsUpperTriangular and Matrix.IsLowerTriangular on a linearly ordered index type. This file adds what the factorizations need: conjugate transposes, diagonals of products and inverses, principal submatrices, the predicates NLAlib.IsUnitLowerTriangular and NLAlib.IsUnitUpperTriangular, the shape predicate NLAlib.IsUpperTrapezoidal for rectangular matrices indexed by Fin, and forward and back substitution.

Main definitions

* NLAlib.IsUnitLowerTriangular, NLAlib.IsUnitUpperTriangular: triangular with unit diagonal. * NLAlib.IsUpperTrapezoidal: zero below the main diagonal, for Matrix (Fin m) (Fin n) R. * NLAlib.forwardSubst, NLAlib.backSubst: the two substitution recursions over a field.

Main results

* NLAlib.eq_diagonal_of_isLowerTriangular_of_isUpperTriangular. * Matrix.IsLowerTriangular.submatrix_mul_of_isLowerSet, Matrix.IsUpperTriangular.submatrix_mul_of_isLowerSet: principal blocks of a product on a lower set. * Matrix.IsUpperTriangular.inv_apply_self: the diagonal of the inverse. * NLAlib.IsUnitLowerTriangular.mul, .inv, .det_eq_one. * NLAlib.mulVec_forwardSubst, NLAlib.mulVec_backSubst: the substitutions solve the systems. * NLAlib.backSubst_castLE_of_apply_eq_zero, NLAlib.backSubst_apply_eq_zero_of_le: on a matrix whose rows and columns from r on vanish, back substitution is that of the leading r \times r block, extended by zeros.

Declarations