Rank of a block matrix through its Schur complement #
Over a field, a block matrix with invertible top-left block A has rank |A| plus the rank of its Schur complement. In particular a real symmetric block matrix with positive definite A and zero Schur complement is positive semidefinite of rank |A|: the exact certificate behind "this Gram matrix has rank r".
Main results #
Matrix.rank_fromBlocks_diagonal: rank (fromBlocks A 0 0 D) = rank A + rank DMatrix.rank_fromBlocks_of_isUnit₁₁: A invertible: rank (fromBlocks A B C D) = card m + rank (D - C * A⁻¹ * B)Matrix.posSemidef_rank_of_schur_eq_zero: A ≻ 0 and D - Bᴴ A⁻¹ B = 0: fromBlocks A B Bᴴ D is PSD of rank card m
References #
- Mathlib: Matrix.fromBlocks_eq_of_invertible₁₁ (LDU), Matrix.rank_mul_eq_left_of_isUnit_det, Matrix.rank_mul_eq_right_of_isUnit_det, Matrix.PosDef.fromBlocks₁₁ (PSD ⇔ Schur PSD; sin rango).
- Mathlib NO tiene el rango de un bloque diagonal ni el rango por complemento de Schur (grep 20-nov). Clones (TauCeti, atlas-lean, RealRooted): tampoco.
theorem
Matrix.rank_fromBlocks_of_isUnit₁₁
{m : Type u_2}
{n : Type u_3}
{K : Type u_5}
[Field K]
[Fintype m]
[Fintype n]
[DecidableEq m]
[DecidableEq n]
(A : Matrix m m K)
(B : Matrix m n K)
(C : Matrix n m K)
(D : Matrix n n K)
(hA : IsUnit A)
:
Rank of a block matrix with invertible top-left block, through the Schur complement.
theorem
Matrix.posSemidef_rank_of_schur_eq_zero
{m : Type u_2}
{n : Type u_3}
[Fintype m]
[Fintype n]
[DecidableEq m]
[DecidableEq n]
{𝕜 : Type u_6}
[RCLike 𝕜]
[PartialOrder 𝕜]
[StarOrderedRing 𝕜]
{A : Matrix m m 𝕜}
(B : Matrix m n 𝕜)
(D : Matrix n n 𝕜)
(hA : A.PosDef)
(hS : D - B.conjTranspose * A⁻¹ * B = 0)
:
(fromBlocks A B B.conjTranspose D).PosSemidef ∧ (fromBlocks A B B.conjTranspose D).rank = Fintype.card m
If A is positive definite and the Schur complement D - Bᴴ * A⁻¹ * B vanishes, then
fromBlocks A B Bᴴ D is positive semidefinite of rank card m.