Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 1 (General Projection Property): R↦x′RR\mapsto x'RR↦x′R maps M(μ,Σ)n\mathbb{M}^n_{(\mu,\Sigma)}M(μ,Σ)n​ onto M(x′μ, x′Σx)\mathbb{M}_{(x'\mu,\,x'\Sigma x)}M(x′μ,x′Σx)​

Proved
RobustMeanCov.Projection.general_projection_property

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

distributionally-robustmoment-classp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1projection

Let μ∈Rn\mu\in\mathbb{R}^nμ∈Rn, let Σ\SigmaΣ be a real positive semidefinite n×nn\times nn×n matrix, and let x∈Rnx\in\mathbb{R}^nx∈Rn be nonzero. Write μx=x′μ\mu_x = x'\muμx​=x′μ and σx2=x′Σx\sigma_x^2 = x'\Sigma xσx2​=x′Σx. Consider the xxx-projection mapping, which sends the law PPP of a random vector R\mathbf RR to the law of r=x′R\mathbf r = x'\mathbf Rr=x′R. Then

  1. the mapping sends M(μ,Σ)n\mathbb{M}^n_{(\mu,\Sigma)}M(μ,Σ)n​ into M(μx,σx2)\mathbb{M}_{(\mu_x,\sigma_x^2)}M(μx​,σx2​)​, and
  2. it is onto: every law in M(μx,σx2)\mathbb{M}_{(\mu_x,\sigma_x^2)}M(μx​,σx2​)​ is the law of x′Rx'\mathbf Rx′R for some R∼(μ,Σ)\mathbf R\sim(\mu,\Sigma)R∼(μ,Σ).

Equivalently,

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

As a consequence, for any objective uuu, the robust objective min⁡R∼(μ,Σ)E[u(x′R)]\min_{\mathbf R\sim(\mu,\Sigma)}E[u(x'\mathbf R)]minR∼(μ,Σ)​E[u(x′R)] equals the univariate problem min⁡r∼(μx,σx2)E[u(r)]\min_{\mathbf r\sim(\mu_x,\sigma_x^2)}E[u(\mathbf r)]minr∼(μx​,σx2​)​E[u(r)] (Proposition 1 of the paper), so robust mean-covariance problems reduce to bicriteria problems in (μx,σx)(\mu_x,\sigma_x)(μx​,σx​).

Formalization Note Laws are Borel probability measures on EuclideanSpace ℝ (Fin n) and on R\mathbb{R}R, with finite second moments; the projection acts by pushforward under the continuous map R↦⟨x,R⟩R\mapsto\langle x,R\rangleR↦⟨x,R⟩. The statement is the conjunction Set.MapsTo ∧ Set.SurjOn with both source and target classes explicit. The degenerate case x′Σx=0x'\Sigma x = 0x′Σx=0 is included. No bound on nnn is assumed; x≠0x\neq 0x=0 forces n≥1n\ge 1n≥1.

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

/-- Theorem 1 (General Projection Property), Popescu 2007, §2.1, p. 100: for `Σ ⪰ 0` and
`x ≠ 0`, the projection `R ↦ x′R` maps `𝕄ⁿ_(μ,Σ)` into and onto `𝕄_(x′μ, x′Σx)`. -/
theorem general_projection_property {n : ℕ} (μ x : EuclideanSpace ℝ (Fin n))
    (S : Matrix (Fin n) (Fin n) ℝ) (hS : S.PosSemidef) (hx : x ≠ 0) :
    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)) ∧
      Set.SurjOn (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, Theorem 1 (General Projection Property)
Read-back

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

Fix a dimension n∈Nn \in \mathbb{N}n∈N, which is left implicit. Let Rn\mathbb{R}^nRn be nnn-dimensional Euclidean space with the standard inner product ⟨u,v⟩=∑i=1nuivi\langle u, v \rangle = \sum_{i=1}^n u_i v_i⟨u,v⟩=∑i=1n​ui​vi​. The statement takes:

  • a vector μ∈Rn\mu \in \mathbb{R}^nμ∈Rn;
  • a vector x∈Rnx \in \mathbb{R}^nx∈Rn with x≠0x \neq 0x=0;
  • a real n×nn \times nn×n matrix SSS that is positive semidefinite. Here this means SSS is symmetric (S⊤=SS^\top = SS⊤=S) and v⊤Sv≥0v^\top S v \ge 0v⊤Sv≥0 for every v∈Rnv \in \mathbb{R}^nv∈Rn.

Let TTT send a measure PPP on Rn\mathbb{R}^nRn (any measure, not necessarily a probability measure) to its pushforward on R\mathbb{R}R under the linear functional R↦⟨x,R⟩R \mapsto \langle x, R \rangleR↦⟨x,R⟩:

T(P)=P∘(R↦⟨x,R⟩)−1,T(P)(B)=P({R∈Rn:⟨x,R⟩∈B}).T(P) = P \circ \big(R \mapsto \langle x, R\rangle\big)^{-1}, \qquad T(P)(B) = P\big(\{R \in \mathbb{R}^n : \langle x, R\rangle \in B\}\big).T(P)=P∘(R↦⟨x,R⟩)−1,T(P)(B)=P({R∈Rn:⟨x,R⟩∈B}).

Two named sets of measures appear, and their definitions come from imported files that are not shown here. They are not expanded in this read-back, so everything below depends on how they are actually defined:

  • Mn(μ,S)\mathcal{M}^n(\mu, S)Mn(μ,S), written MeanCovClass μ S in the code: a set of measures on Rn\mathbb{R}^nRn determined by the vector μ\muμ and the matrix SSS.
  • M(m,s)\mathcal{M}(m, s)M(m,s), written RobustMeanCov.Shared.MeanVarClass m s in the code: a set of measures on R\mathbb{R}R determined by two real numbers mmm and sss.

These are used with the real parameters

m=⟨x,μ⟩=∑ixiμi,s=x⊤Sx=∑i,jxiSijxj.m = \langle x, \mu \rangle = \sum_{i} x_i \mu_i, \qquad s = x^\top S x = \sum_{i,j} x_i S_{ij} x_j .m=⟨x,μ⟩=i∑​xi​μi​,s=x⊤Sx=i,j∑​xi​Sij​xj​.

The statement asserts that both of the following hold:

  1. Into: for every measure P∈Mn(μ,S)P \in \mathcal{M}^n(\mu, S)P∈Mn(μ,S), the pushforward T(P)T(P)T(P) belongs to M(⟨x,μ⟩, x⊤Sx)\mathcal{M}(\langle x,\mu\rangle,\, x^\top S x)M(⟨x,μ⟩,x⊤Sx).
  2. Onto: for every measure Q∈M(⟨x,μ⟩, x⊤Sx)Q \in \mathcal{M}(\langle x,\mu\rangle,\, x^\top S x)Q∈M(⟨x,μ⟩,x⊤Sx), there exists some P∈Mn(μ,S)P \in \mathcal{M}^n(\mu, S)P∈Mn(μ,S) with T(P)=QT(P) = QT(P)=Q.

Nothing is claimed about uniqueness: different PPP may have the same image. Nothing is claimed about measures outside Mn(μ,S)\mathcal{M}^n(\mu, S)Mn(μ,S) either.

Degenerate cases.

  • n=0n = 0n=0: R0\mathbb{R}^0R0 contains only the zero vector, so the hypothesis x≠0x \neq 0x=0 can never hold, and the statement is vacuously true.
  • n=1n = 1n=1: xxx is a nonzero scalar, ⟨x,R⟩=xR\langle x, R\rangle = xR⟨x,R⟩=xR, and s=S11 x2s = S_{11}\,x^2s=S11​x2.
  • s=0s = 0s=0: positive semidefiniteness guarantees s≥0s \ge 0s≥0. But s=0s = 0s=0 is allowed whenever xxx lies in the kernel of SSS, for example when S=0S = 0S=0. The statement then uses whatever M(⟨x,μ⟩,0)\mathcal{M}(\langle x,\mu\rangle, 0)M(⟨x,μ⟩,0) contains.
  • Pushforward: R↦⟨x,R⟩R \mapsto \langle x, R\rangleR↦⟨x,R⟩ is continuous and hence measurable, so the pushforward is the genuine image measure. The zero-measure default for non-measurable maps never applies.
  • Empty sets: if Mn(μ,S)\mathcal{M}^n(\mu, S)Mn(μ,S) is empty, the "into" part is vacuously true, and the "onto" part then requires M(⟨x,μ⟩,x⊤Sx)\mathcal{M}(\langle x,\mu\rangle, x^\top S x)M(⟨x,μ⟩,x⊤Sx) to be empty as well.
  • Hidden definitions: it cannot be told from this code alone whether either set is limited to probability measures, requires finite moments, or has any other restriction.
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