The direction is a unit vector
ProvedRobustMeanCov.Projection.normalized_direction_inner_selfLet be a real positive semidefinite matrix with positive semidefinite square root , and let satisfy . Define
Then ; in particular .
This is the normalization that lets the proof of the general projection property reduce to projecting an isotropic random vector onto a unit direction.
Formalization Note is CFC.sqrt S, acting on through Matrix.toEuclideanCLM, exactly as in Mathlib's multivariateGaussian. is the Euclidean inner product .
import Mathlib import Definitions.Def_RobustMeanCov_Projection_MeanCovClass import Definitions.Def_RobustMeanCov_Shared_MeanVarClass open MeasureTheory Matrix open scoped RealInnerProductSpace MatrixOrder
namespace RobustMeanCov.Projection
/-- Appendix, proof of Theorem 1 (Popescu 2007, p. 109): for `Σ ⪰ 0` and `x′Σx > 0`, the vector
`y = (x′Σx)^{-1/2} Σ^{1/2} x` satisfies `y′y = 1`. -/
theorem normalized_direction_inner_self {n : ℕ} (x : EuclideanSpace ℝ (Fin n))
(S : Matrix (Fin n) (Fin n) ℝ) (hS : S.PosSemidef) (hq : 0 < x.ofLp ⬝ᵥ S *ᵥ x.ofLp) :
let y : EuclideanSpace ℝ (Fin n) :=
(x.ofLp ⬝ᵥ S *ᵥ x.ofLp) ^ (-(1 / 2 : ℝ)) • toEuclideanCLM (𝕜 := ℝ) (CFC.sqrt S) x
⟪y, y⟫ = 1 := by sorry
end RobustMeanCov.Projection
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
This theorem fixes , a vector and a real matrix . The hypotheses are:
- is positive semidefinite: is symmetric and for all ;
- .
is the square root of given by the continuous functional calculus. For a positive semidefinite , this is the unique positive semidefinite matrix whose square is . Define
where is ordinary matrix–vector multiplication and is the real power, equal to since . The conclusion is
Degenerate cases: when , is an empty sum equal to , so the hypothesis cannot hold and the statement is vacuous. Likewise, it is vacuous whenever , including and .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.