Schur complements and rank-one inverse updates #
Generalized Schur complements of positive-semidefinite block matrices are positive
semidefinite. The inverse used in the complement need only be Hermitian and satisfy
P * D * P = P; in particular the result applies to a singular block's pseudoinverse.
For a square matrix A and an index i, write B for the principal submatrix of A on the
indices other than i. When B is invertible, the reciprocal of the diagonal entry (A⁻¹) i i
is the scalar Schur complement A i i - aᵢ ⬝ᵥ B⁻¹ *ᵥ aⁱ of B in A, where aᵢ and aⁱ are
the i-th row and column of A with the entry A i i removed. This holds also when A is
singular, both sides then being zero, and when i is the only index, B then being empty.
For an invertible matrix A, the Sherman–Morrison formula expresses the inverse of
A + vecMulVec u v in terms of A⁻¹. The scalar 1 + v ⬝ᵥ (A⁻¹ *ᵥ u) is a unit exactly
when the perturbed matrix is invertible. These results specialize Mathlib's
Matrix.det_add_replicateCol_mul_replicateRow and Matrix.add_mul_mul_inv_eq_sub to a single
column and row, over any commutative ring; the scalar inverse is Ring.inverse.
Main results #
Matrix.PosSemidef.schur_complement₂₂andMatrix.PosSemidef.schur_complement₁₁: positivity of generalized Schur complements, without invertibility of the pivot block.Matrix.inv_inv_apply_self_eq_sub: the reciprocal of(A⁻¹) i iis the scalar Schur complement of the complementary principal block, whenever that block is invertible.Matrix.PosDef.inv_inv_apply_self_eq_sub: the same identity for positive-definite matrices, whose principal blocks are always invertible.Matrix.isUnit_add_vecMulVec_iff: a rank-one update is invertible exactly when its Sherman–Morrison denominator is a unit.Matrix.inv_add_vecMulVec: the Sherman–Morrison inverse formula over a commutative ring.
References #
- R. A. Horn, C. R. Johnson, Matrix Analysis, 2nd ed., Cambridge University Press, 2013, §0.7.4 (the Sherman–Morrison–Woodbury formula).
A generalized Schur complement of the bottom-right block of a positive-semidefinite matrix is positive semidefinite. Only the Hermitian property and the second generalized-inverse equation are needed, so the block may be singular.
A generalized Schur complement of the top-left block of a positive-semidefinite matrix is positive semidefinite, including when that block is singular.
A rank-one perturbation of an invertible matrix is invertible exactly when its Sherman–Morrison denominator is a unit.
Sherman–Morrison formula over a commutative ring. The rank-one correction is the outer product of the updated column and row, divided by the scalar denominator.
The reciprocal of a diagonal entry (A⁻¹) i i of the inverse of a square matrix is the scalar
Schur complement of the principal block of A away from i, provided that block is invertible.
Both sides vanish when A is singular.
The reciprocal of a diagonal entry (A⁻¹) i i of the inverse of a positive-definite real
matrix is the scalar Schur complement of the principal block of A away from i.