Minors and determinants of matrices #
Nonzero minors of matrices with arbitrarily many rows: the row index type may be infinite, as for coefficient matrices indexed by all monomials; only the column index type is finite.
Main results #
Matrix.exists_fin_linearIndependent_row_span_eq: finitely many linearly independent rows span the row space.Matrix.exists_rank_linearIndependent_rows: there areA.ranklinearly independent rows.Matrix.exists_det_submatrix_ne_zero_of_le_rank: everyr ≤ A.rankis witnessed by a nonzeror × rminor with distinct rows and columns.Matrix.le_rank_of_det_submatrix_ne_zero: conversely, a nonzerok × kminor showsk ≤ A.rank.Matrix.HasNonzeroMinor: the predicate that somer × rminor is nonzero; its rows and columns are automatically distinct (Matrix.injective_rows_of_det_submatrix_ne_zero,Matrix.injective_cols_of_det_submatrix_ne_zero).Matrix.det_blockDiagonal': the determinant ofblockDiagonal' Mis the product of the determinants of the blocks. Mathlib computesMatrix.det_blockDiagonalfor blocks of a common size; here the blocks may have different sizes.Matrix.dvd_det_sub_det_of_dvd_sub: entrywise congruence of integer matrices implies congruence of their determinants.
A finite independent family spans the rows even when their original index set is infinite.
Restriction to spanning rows preserves the exact kernel.
Full row rank supplies a nonzero square minor: some set of columns of the transpose is linearly independent.
Every rank lower bound is witnessed by a nonzero minor with distinct rows and distinct columns, without any finiteness requirement on the rows.
The rows selected by a nonzero minor are distinct: a repeated row forces the determinant to vanish.
The columns selected by a nonzero minor are distinct: a repeated column forces the determinant to vanish.
A has a nonzero r × r minor: some choice of r rows and r columns of A whose
square submatrix has nonzero determinant. The chosen rows and columns are automatically
distinct (Matrix.injective_rows_of_det_submatrix_ne_zero,
Matrix.injective_cols_of_det_submatrix_ne_zero).
Instances For
The determinant of a block-diagonal matrix with blocks of varying sizes is the product of the determinants of its blocks.