Rank of matrices #
The rank of a matrix A
is defined to be the rank of range of the linear map corresponding to A
.
This definition does not depend on the choice of basis, see Matrix.rank_eq_finrank_range_toLin
.
Main declarations #
Matrix.rank
: the rank of a matrix
The rank of a matrix is the rank of its image.
Equations
- A.rank = Module.finrank R ↥(LinearMap.range A.mulVecLin)
Instances For
The rank of a matrix is the rank of the space spanned by its columns.
The rank of a diagnonal matrix is the count of non-zero elements on its main diagonal
Lemmas about transpose and conjugate transpose #
This section contains lemmas about the rank of Matrix.transpose
and Matrix.conjTranspose
.
Unfortunately the proofs are essentially duplicated between the two; ℚ
is a linearly-ordered ring
but can't be a star-ordered ring, while ℂ
is star-ordered (with open ComplexOrder
) but
not linearly ordered. For now we don't prove the transpose case for ℂ
.
TODO: the lemmas Matrix.rank_transpose
and Matrix.rank_conjTranspose
current follow a short
proof that is a simple consequence of Matrix.rank_transpose_mul_self
and
Matrix.rank_conjTranspose_mul_self
. This proof pulls in unnecessary assumptions on R
, and should
be replaced with a proof that uses Gaussian reduction or argues via linear combinations.
TODO: prove this in greater generality.
The rank of a matrix is the rank of the space spanned by its rows.