Definition (Pivoted Cholesky). At each step, select a remaining diagonal entry of maximal residual value, permute it into the pivot position, and use it to form the next Cholesky column. Zero residual pivots detect exhausted rank in exact arithmetic. This semidefinite, rank-revealing construction is distinct from unpivoted positive-definite Cholesky.
Pivoted Cholesky
Results
Theorem (Rank detection by pivoted Cholesky).
Exactly the first \operatorname{rank} \mathbf{A} pivots of the computed factor are positive, including for singular positive semidefinite inputs. [Higham2002, Theorem 10.9].
Lean statement and details
Matrix.PosSemidef.choleskyLower_choleskyPivotPerm_apply_self_pos_iff.{u_1} {𝕜 : Type u_1} [RCLike 𝕜]
{n : ℕ} {A : Matrix (Fin n) (Fin n) 𝕜} (hA : A.PosSemidef) (i : Fin n) :
0 < choleskyLower (A.submatrix ⇑(choleskyPivotPerm A) ⇑(choleskyPivotPerm A)) i i ↔ ↑i < A.rankMathematical background
Spectral theory
The spectral theorem, eigenvalue variational principles, interlacing, and positive definiteness.
Best-rank approximation and truncation
Truncated SVD, Eckart–Young optimality, and error bounds for projection and truncation.
Factorization identities and existence
QR, LU, SVD, Schur and polar decompositions, existence conditions, and factorization identities.