Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The projection x′Rx'\mathbf Rx′R of R∼(μ,Σ)\mathbf R \sim (\mu,\Sigma)R∼(μ,Σ) has mean x′μx'\mux′μ and variance x′Σxx'\Sigma xx′Σx

Proved
RobustMeanCov.Projection.projection_mapsTo

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. If the law PPP of a random vector R\mathbf RR belongs to M(μ,Σ)n\mathbb{M}^n_{(\mu,\Sigma)}M(μ,Σ)n​, then the law of the scalar x′Rx'\mathbf Rx′R belongs to the univariate class with mean μx=x′μ\mu_x = x'\muμx​=x′μ and variance σx2=x′Σx\sigma_x^2 = x'\Sigma xσx2​=x′Σx:

P∈M(μ,Σ)n  ⟹  P∘(R↦x′R)−1∈M(x′μ,  x′Σx).P \in \mathbb{M}^n_{(\mu,\Sigma)} \;\Longrightarrow\; P\circ (R\mapsto x'R)^{-1} \in \mathbb{M}_{(x'\mu,\; x'\Sigma x)} .P∈M(μ,Σ)n​⟹P∘(R↦x′R)−1∈M(x′μ,x′Σx)​.

This is the easy half of the general projection property: it gives the lower bound min⁡R∼(μ,Σ)E[u(x′R)]≥min⁡r∼(μx,σx2)E[u(r)]\min_{\mathbf R\sim(\mu,\Sigma)} E[u(x'\mathbf R)] \ge \min_{\mathbf r\sim(\mu_x,\sigma_x^2)} E[u(\mathbf r)]minR∼(μ,Σ)​E[u(x′R)]≥minr∼(μx​,σx2​)​E[u(r)] of display (4).

Formalization Note The projected law is the pushforward P.map (fun R => ⟪x, R⟫); the map is continuous, hence measurable, so the pushforward is not the junk zero measure. x′Σxx'\Sigma xx′Σx is written x.ofLp ⬝ᵥ S *ᵥ x.ofLp. No hypothesis on Σ\SigmaΣ or xxx is needed.

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

/-- §2.1, justification of (4) (Popescu 2007, p. 100): the projected law of `x′R` has mean
`x′μ` and variance `x′Σx`. -/
theorem projection_mapsTo {n : ℕ} (μ x : EuclideanSpace ℝ (Fin n))
    (S : Matrix (Fin n) (Fin n) ℝ) :
    Set.MapsTo (fun P : Measure (EuclideanSpace ℝ (Fin n)) => P.map (fun R => ⟪x, R⟫))
      (MeanCovClass μ S) (RobustMeanCov.Shared.MeanVarClass ⟪x, μ⟫ (x.ofLp ⬝ᵥ S *ᵥ x.ofLp)) := 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. 100, §2.1, justification of (4)
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 all of the following:
    • every coordinate is square-integrable;
    • the coordinate means are ∫Ri dP=μi\int R_i\,dP = \mu_i∫Ri​dP=μi​;
    • the second central moments are ∫(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.
  • MeanVarClass(m,v)\mathrm{MeanVarClass}(m, v)MeanVarClass(m,v), a set of measures on R\mathbb{R}R indexed by two reals. Its definition is imported from another file and is not included in the code provided. Its name suggests "laws on R\mathbb{R}R with mean mmm and variance vvv", but this read-back cannot confirm what membership requires.

The theorem says that for every P∈M(μ,S)nP \in \mathbb{M}^n_{(\mu,S)}P∈M(μ,S)n​, the pushforward (image measure) of PPP under the linear functional R↦⟨x,R⟩=∑ixiRiR \mapsto \langle x, R\rangle = \sum_i x_i R_iR↦⟨x,R⟩=∑i​xi​Ri​ lies in the imported class:

P∘⟨x,⋅⟩−1  ∈  MeanVarClass(⟨x,μ⟩,  x⊤Sx),x⊤Sx=∑i,jxiSijxj.P \circ \langle x, \cdot\rangle^{-1} \;\in\; \mathrm{MeanVarClass}\Big(\langle x, \mu\rangle,\; x^\top S x\Big), \qquad x^\top S x = \sum_{i,j} x_i S_{ij} x_j.P∘⟨x,⋅⟩−1∈MeanVarClass(⟨x,μ⟩,x⊤Sx),x⊤Sx=i,j∑​xi​Sij​xj​.

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 (for example, SSS is not a covariance matrix), the statement is vacuous. When n=0n = 0n=0 or x=0x = 0x=0, the claim is that the Dirac measure at 000 lies in MeanVarClass(0,0)\mathrm{MeanVarClass}(0, 0)MeanVarClass(0,0). Whether that holds depends on the unseen definition of MeanVarClass\mathrm{MeanVarClass}MeanVarClass.

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