Proved
RobustMeanCov.Projection.affine_image_projectionLet , let be a real positive semidefinite matrix with , and let . Then for every ,
Combined with the standardization and a lift , this identity shows that projects onto the prescribed .
Formalization Note The paper's "pathwise" identity is stated as a pointwise algebraic identity in . The hypothesis is the case the proof is in after its first sentence and keeps the real powers away from their default values.
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, final sentence (Popescu 2007, p. 110): with
`y = (x′Σx)^{-1/2} Σ^{1/2} x`, every `Z` satisfies
`x′(μ + Σ^{1/2} Z) = x′μ + (x′Σx)^{1/2} y′Z`. -/
theorem affine_image_projection {n : ℕ} (μ x : EuclideanSpace ℝ (Fin n))
(S : Matrix (Fin n) (Fin n) ℝ) (hS : S.PosSemidef) (hq : 0 < x.ofLp ⬝ᵥ S *ᵥ x.ofLp)
(Z : EuclideanSpace ℝ (Fin n)) :
let y : EuclideanSpace ℝ (Fin n) :=
(x.ofLp ⬝ᵥ S *ᵥ x.ofLp) ^ (-(1 / 2 : ℝ)) • toEuclideanCLM (𝕜 := ℝ) (CFC.sqrt S) x
⟪x, μ + toEuclideanCLM (𝕜 := ℝ) (CFC.sqrt S) Z⟫ =
⟪x, μ⟫ + (x.ofLp ⬝ᵥ S *ᵥ x.ofLp) ^ (1 / 2 : ℝ) * ⟪y, Z⟫ := by sorry
end RobustMeanCov.Projection
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
This theorem fixes , vectors and a real matrix . The hypotheses are:
- is positive semidefinite (symmetric, with for all );
- .
is the functional-calculus square root of , which is the unique positive semidefinite square root. Define
The conclusion is the deterministic identity
where . Since , the powers are the ordinary values and . is an arbitrary fixed vector: no measure or randomness is involved.
Degenerate cases: when , , so the hypothesis fails and the statement is vacuous. It is likewise vacuous whenever . is permitted, and then the identity reduces to .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.