Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

If x′Σx=0x'\Sigma x = 0x′Σx=0 then x′R≡x′μx'\mathbf R \equiv x'\mux′R≡x′μ almost surely

Proved
RobustMeanCov.Projection.projection_degenerate

by mikedeng1 · Sep 26, 2026 · Mathlib 0df444a (Lean v4.33.1)

moment-classp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1projection

Let μ,x∈Rn\mu, x \in \mathbb{R}^nμ,x∈Rn and let Σ\SigmaΣ be a real n×nn\times nn×n matrix with x′Σx=0x'\Sigma x = 0x′Σx=0. Then for every law P∈M(μ,Σ)nP \in \mathbb{M}^n_{(\mu,\Sigma)}P∈M(μ,Σ)n​,

x′R=x′μfor P-almost every R.x'R = x'\mu \quad \text{for } P\text{-almost every } R .x′R=x′μfor P-almost every R.

This is the degenerate case of the general projection property: when the projected variance vanishes, every feasible R\mathbf RR projects onto the constant μx\mu_xμx​, and the univariate class M(μx,0)\mathbb{M}_{(\mu_x,0)}M(μx​,0)​ consists of the point mass at μx\mu_xμx​ alone.

Formalization Note The statement holds for every matrix Σ\SigmaΣ; positive semidefiniteness is not assumed because it is not used.

Preamble
import Mathlib
import Definitions.Def_RobustMeanCov_Projection_MeanCovClass
import Definitions.Def_RobustMeanCov_Shared_MeanVarClass
open MeasureTheory Matrix
open scoped RealInnerProductSpace MatrixOrder
Formal statement
namespace RobustMeanCov.Projection

/-- Appendix, proof of Theorem 1, first sentence (Popescu 2007, p. 109): if `x′Σx = 0`, then
`x′R ≡ x′μ` almost surely for every law `R ∼ (μ, Σ)`. -/
theorem projection_degenerate {n : ℕ} (μ x : EuclideanSpace ℝ (Fin n))
    (S : Matrix (Fin n) (Fin n) ℝ) (hq : x.ofLp ⬝ᵥ S *ᵥ x.ofLp = 0)
    (P : Measure (EuclideanSpace ℝ (Fin n))) (hP : P ∈ MeanCovClass μ S) :
    ∀ᵐ R ∂P, ⟪x, R⟫ = ⟪x, μ⟫ := by sorry

end RobustMeanCov.Projection
Source
Popescu, Robust Mean-Covariance Solutions for Stochastic Optimization, Oper. Res. 55(1), 2007, https://doi.org/10.1287/opre.1060.0353, p. 109, Appendix, proof of Theorem 1, first sentence
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

This theorem fixes n∈Nn \in \mathbb{N}n∈N, vectors μ,x∈Rn\mu, x \in \mathbb{R}^nμ,x∈Rn and a real n×nn\times nn×n matrix SSS. It uses M(μ,S)n\mathbb{M}^n_{(\mu,S)}M(μ,S)n​, the set of probability measures PPP on Rn\mathbb{R}^nRn that satisfy:

  • every coordinate is square-integrable;
  • ∫Ri dP=μi\int R_i\,dP = \mu_i∫Ri​dP=μi​ for every iii;
  • ∫(Ri−μi)(Rj−μj) dP=Sij\int (R_i-\mu_i)(R_j-\mu_j)\,dP = S_{ij}∫(Ri​−μi​)(Rj​−μj​)dP=Sij​ for all i,ji, ji,j.

The hypotheses are:

  • the quadratic form vanishes: x⊤Sx=∑i,jxiSijxj=0x^\top S x = \sum_{i,j} x_i S_{ij} x_j = 0x⊤Sx=∑i,j​xi​Sij​xj​=0;
  • PPP is a measure on Rn\mathbb{R}^nRn with P∈M(μ,S)nP \in \mathbb{M}^n_{(\mu,S)}P∈M(μ,S)n​.

The conclusion is that for PPP-almost every R∈RnR \in \mathbb{R}^nR∈Rn,

⟨x,R⟩=⟨x,μ⟩,\langle x, R\rangle = \langle x, \mu\rangle,⟨x,R⟩=⟨x,μ⟩,

where ⟨x,R⟩=∑ixiRi\langle x, R\rangle = \sum_i x_i R_i⟨x,R⟩=∑i​xi​Ri​. There is no hypothesis that SSS is symmetric or positive semidefinite.

Degenerate cases: if M(μ,S)n\mathbb{M}^n_{(\mu,S)}M(μ,S)n​ is empty, no PPP exists and the statement is vacuous. If x=0x = 0x=0 or n=0n = 0n=0, both sides are 000 and the conclusion holds trivially.

Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me