Documentation

Mathlib.LinearAlgebra.Matrix.Nonsingular

Linear independence and nonsingularity of matrices #

In this file we formalize several theorems proved by Yi-Jia Tan in his paper [Tan16] Free sets and free subsemimodules in a semimodule. As consequences, we show that commutative semirings satisfy the strong rank condition, and that the columns of a square matrix are linearly independent if and only if the matrix is nonsingular (over a commutative ring, a matrix is nonsingular if and only if its determinant is not a zero divisor).

Main theorems #

theorem Matrix.isDetpBalanced_iff_sub_mul_det_eq_zero {n : Type u_3} [Fintype n] [DecidableEq n] {R : Type u_4} [CommRing R] {A : Matrix n n R} {a b : R} :
A.IsDetpBalanced a b (a - b) * A.det = 0
theorem Matrix.nonsingular_iff_det_ne_zero {n : Type u_3} [Fintype n] [DecidableEq n] {R : Type u_4} [CommRing R] [IsDomain R] {A : Matrix n n R} :

If the columns of a square matrix are linearly independent, then the matrix is nonsingular.

If a matrix over a commutative semiring with cancellative addition is nonsingular, then its columns are linearly independent. Generalizes Matrix.linearIndependent_cols_of_det_ne_zero.

theorem Matrix.Nonsingular.mul {R : Type u_1} {n : Type u_3} [CommSemiring R] [Fintype n] [DecidableEq n] {A : Matrix n n R} [IsCancelAdd R] {B : Matrix n n R} (hA : A.Nonsingular) (hB : B.Nonsingular) :
theorem Matrix.Nonsingular.pow {R : Type u_1} {n : Type u_3} [CommSemiring R] [Fintype n] [DecidableEq n] {A : Matrix n n R} [IsCancelAdd R] (hA : A.Nonsingular) (k : ) :
@[instance 100]

A nontrivial commutative semiring satisfies the strong rank condition.