A positive semidefinite matrix of rank k is a sum of k squares #
A real positive semidefinite matrix of rank k is a sum of k rank-one matrices v v^T. Equivalently its quadratic form is a sum of k squares of linear forms.
Main results #
PosSemidefRankSquares.exists_sum_vecMulVec_self: PSD A with rank k: A = sum of k vecMulVec (v i) (v i)PosSemidefRankSquares.quadForm_eq_sum_sq: u ⬝ᵥ (A *ᵥ u) = sum of k squares (v i ⬝ᵥ u)^2
References #
- Mathlib: Matrix.IsHermitian.spectral_theorem, Matrix.PosSemidef.eigenvalues_nonneg, Matrix.IsHermitian.rank_eq_card_non_zero_eigs, Finset.equivFinOfCardEq.
- Mathlib no tiene la factorizacion con k filas (solo posSemidef_iff_eq_conjTranspose_mul_self, B cuadrada).
theorem
PosSemidefRankSquares.exists_sum_vecMulVec_self
{n : Type u_1}
[Fintype n]
[DecidableEq n]
{A : Matrix n n ℝ}
(hA : A.PosSemidef)
{k : ℕ}
(hk : A.rank = k)
:
∃ (v : Fin k → n → ℝ), A = ∑ i : Fin k, Matrix.vecMulVec (v i) (v i)
PSD of rank k is a sum of k rank-one squares.
theorem
PosSemidefRankSquares.quadForm_eq_sum_sq
{n : Type u_1}
[Fintype n]
[DecidableEq n]
{A : Matrix n n ℝ}
(hA : A.PosSemidef)
{k : ℕ}
(hk : A.rank = k)
:
Corollary. The quadratic form of a PSD matrix of rank k is a sum of k squares of
linear forms: u ⬝ᵥ (A *ᵥ u) = ∑ i, (v i ⬝ᵥ u)^2.