Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Theorem 1 — five equivalent representations of the worst-case VaR under known mean and covariance

Proved
WorstCaseVaR.KnownMoments.worst_case_var_equivalences

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

moment-problemp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1portfolio-optimizationrobust-optimizationsemidefinite-programmingvalue-at-risk

Let x^∈Rn\hat x \in \mathbb R^nx^∈Rn and let Γ\GammaΓ be a positive definite n×nn\times nn×n matrix. Let P\mathcal PP be the set of all probability distributions on Rn\mathbb R^nRn with mean x^\hat xx^ and covariance matrix Γ\GammaΓ. Fix a portfolio w∈Rnw \in \mathbb R^nw∈Rn with w≠0w \ne 0w=0, a loss probability level ε∈(0,1)\varepsilon \in (0,1)ε∈(0,1) and a loss level γ∈R\gamma \in \mathbb Rγ∈R. Let κ(ε)=(1−ε)/ε\kappa(\varepsilon) = \sqrt{(1-\varepsilon)/\varepsilon}κ(ε)=(1−ε)/ε​, let Σ=[Γ+x^x^⊤x^x^⊤1]\Sigma = \begin{bmatrix} \Gamma + \hat x\hat x^\top & \hat x \\ \hat x^\top & 1\end{bmatrix}Σ=[Γ+x^x^⊤x^⊤​x^1​] be the second-moment matrix, and write ⟨A,B⟩=Tr⁡(AB)\langle A, B\rangle = \operatorname{Tr}(AB)⟨A,B⟩=Tr(AB). The following propositions are equivalent.

  1. The worst-case VaR at level ε\varepsilonε is at most γ\gammaγ:
sup⁡P∈PProb⁡P{γ≤−w⊤x}≤ε.\sup_{P \in \mathcal P} \operatorname{Prob}_P\{\gamma \le -w^\top x\} \le \varepsilon.P∈Psup​ProbP​{γ≤−w⊤x}≤ε.
κ(ε) ∥Γ1/2w∥2−x^⊤w≤γ.\kappa(\varepsilon)\,\|\Gamma^{1/2}w\|_2 - \hat x^\top w \le \gamma.κ(ε)∥Γ1/2w∥2​−x^⊤w≤γ.
  1. There exist a symmetric (n+1)×(n+1)(n+1)\times(n+1)(n+1)×(n+1) matrix MMM and τ∈R\tau \in \mathbb Rτ∈R with
⟨M,Σ⟩≤τε,M⪰0,τ≥0,M+[0ww⊤−τ+2γ]⪰0.\langle M, \Sigma\rangle \le \tau\varepsilon,\quad M \succeq 0,\quad \tau \ge 0,\quad M + \begin{bmatrix} 0 & w \\ w^\top & -\tau + 2\gamma\end{bmatrix} \succeq 0.⟨M,Σ⟩≤τε,M⪰0,τ≥0,M+[0w⊤​w−τ+2γ​]⪰0.
  1. For every x∈Rnx \in \mathbb R^nx∈Rn with [Γx−x^(x−x^)⊤κ(ε)2]⪰0\begin{bmatrix}\Gamma & x - \hat x\\ (x - \hat x)^\top & \kappa(\varepsilon)^2\end{bmatrix} \succeq 0[Γ(x−x^)⊤​x−x^κ(ε)2​]⪰0 we have −x⊤w≤γ-x^\top w \le \gamma−x⊤w≤γ.
  2. There exist a symmetric n×nn\times nn×n matrix Λ\LambdaΛ and v∈Rv \in \mathbb Rv∈R with
⟨Λ,Γ⟩+κ(ε)2v−x^⊤w≤γ,[Λw/2w⊤/2v]⪰0.\langle \Lambda, \Gamma\rangle + \kappa(\varepsilon)^2 v - \hat x^\top w \le \gamma, \qquad \begin{bmatrix}\Lambda & w/2\\ w^\top/2 & v\end{bmatrix} \succeq 0.⟨Λ,Γ⟩+κ(ε)2v−x^⊤w≤γ,[Λw⊤/2​w/2v​]⪰0.

Proposition 2 is a closed form of the worst-case Value-at-Risk VP(w)V_{\mathcal P}(w)VP​(w): it is the smallest γ\gammaγ satisfying 1, namely κ(ε)∥Γ1/2w∥2−x^⊤w\kappa(\varepsilon)\|\Gamma^{1/2}w\|_2 - \hat x^\top wκ(ε)∥Γ1/2w∥2​−x^⊤w. Propositions 3–5 are semidefinite representations that extend to the case where the moments are only known to lie in a set.

Formalization Note.

  1. The supremum in Proposition 1 is encoded as "every P∈PP \in \mathcal PP∈P has P(S)≤εP(\mathcal S) \le \varepsilonP(S)≤ε", with the probability in [0,∞][0,\infty][0,∞] compared with ε\varepsilonε.
  2. The paper prints ε∈(0,1]\varepsilon \in (0,1]ε∈(0,1]. At ε=1\varepsilon = 1ε=1 Proposition 1 holds for every γ\gammaγ, while Propositions 2–5 reduce to γ≥−x^⊤w\gamma \ge -\hat x^\top wγ≥−x^⊤w, so the theorem is stated for 0<ε<10 < \varepsilon < 10<ε<1.
  3. The hypothesis w≠0w \ne 0w=0 is the paper's standing assumption that the admissible set of portfolios does not contain 000 (used in its proof); with w=0w = 0w=0 and γ=0\gamma = 0γ=0, Proposition 1 fails and Proposition 2 holds.
  4. "Less than γ\gammaγ" is the non-strict inequality of the display.
  5. ∥Γ1/2w∥2\|\Gamma^{1/2}w\|_2∥Γ1/2w∥2​ is written w⊤Γw\sqrt{w^\top\Gamma w}w⊤Γw​. The class P\mathcal PP is HasMeanCov (any Borel probability measure with these first two moments, square-integrable coordinates).
Preamble
import Mathlib
import Definitions.Def_WorstCaseVaR_KnownMoments_Basic

open MeasureTheory Matrix
open scoped InnerProductSpace
Formal statement
namespace WorstCaseVaR.KnownMoments

/-- **Theorem 1** (El Ghaoui–Oks–Oustry 2003, pp. 545–546). Let `𝒫` be the set of probability
distributions on `ℝⁿ` with mean `x̂` and covariance matrix `Γ ≻ 0`, let `w ≠ 0`,
`ε ∈ (0, 1)` and `γ ∈ ℝ`. The following are equivalent:
1. `sup_{P ∈ 𝒫} Prob{γ ≤ -wᵀx} ≤ ε`;
2. `κ(ε) ‖Γ^{1/2} w‖₂ - x̂ᵀw ≤ γ` (7);
3. there exist `M ∈ 𝒮_{n+1}`, `τ ∈ ℝ` with `⟨M, Σ⟩ ≤ τε`, `M ⪰ 0`, `τ ≥ 0`,
   `M + [[0, w], [wᵀ, -τ + 2γ]] ⪰ 0` (9);
4. for every `x` with `[[Γ, x - x̂], [(x - x̂)ᵀ, κ(ε)²]] ⪰ 0` (10), `-xᵀw ≤ γ`;
5. there exist `Λ ∈ 𝒮_n`, `v ∈ ℝ` with `⟨Λ, Γ⟩ + κ(ε)² v - x̂ᵀw ≤ γ` and
   `[[Λ, w/2], [wᵀ/2, v]] ⪰ 0` (11).
The printed range `ε ∈ (0, 1]` is read as `(0, 1)`: at `ε = 1` item 1 holds for every `γ`. -/
theorem worst_case_var_equivalences {n : ℕ}
    (xhat w : EuclideanSpace ℝ (Fin n)) (Γ : Matrix (Fin n) (Fin n) ℝ) (hΓ : Γ.PosDef)
    (hw : w ≠ 0) (ε : ℝ) (hε0 : 0 < ε) (hε1 : ε < 1) (γ : ℝ) :
    List.TFAE
      [ ∀ P : Measure (EuclideanSpace ℝ (Fin n)), HasMeanCov P xhat Γ →
          P (lossSet w γ) ≤ ENNReal.ofReal ε,
        kappa ε * Real.sqrt (⇑w ⬝ᵥ Γ *ᵥ ⇑w) - ⟪xhat, w⟫_ℝ ≤ γ,
        ∃ (M : Matrix (Fin n ⊕ Fin 1) (Fin n ⊕ Fin 1) ℝ) (τ : ℝ),
          (M * secondMomentMatrix xhat Γ).trace ≤ τ * ε ∧ M.PosSemidef ∧ 0 ≤ τ ∧
          (M + bordered 0 ⇑w (-τ + 2 * γ)).PosSemidef,
        ∀ x : EuclideanSpace ℝ (Fin n),
          (bordered Γ ⇑(x - xhat) (kappa ε ^ 2)).PosSemidef → -⟪x, w⟫_ℝ ≤ γ,
        ∃ (Λ : Matrix (Fin n) (Fin n) ℝ) (v : ℝ), Λ.IsSymm ∧
          (Λ * Γ).trace + kappa ε ^ 2 * v - ⟪xhat, w⟫_ℝ ≤ γ ∧
          (bordered Λ ((1 / 2 : ℝ) • ⇑w) v).PosSemidef ] := by sorry

end WorstCaseVaR.KnownMoments
Source
El Ghaoui, Oks and Oustry, Worst-Case Value-at-Risk and Robust Portfolio Optimization: A Conic Programming Approach, Oper. Res. 51 (2003), pp. 545–546, Theorem 1, Eqs. (7)–(11); worst-case VaR Eq. (4), p. 544; w ≠ 0 from p. 543
Read-back

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

Fix a natural number nnn and work in Rn\mathbb{R}^nRn with the standard Euclidean inner product ⟨x,y⟩=∑ixiyi\langle x, y\rangle = \sum_i x_i y_i⟨x,y⟩=∑i​xi​yi​. The data are:

  • vectors x^,w∈Rn\hat x, w \in \mathbb{R}^nx^,w∈Rn, with the hypothesis w≠0w \neq 0w=0;
  • a real n×nn \times nn×n matrix Γ\GammaΓ that is positive definite in Mathlib's sense. This means Γ\GammaΓ is symmetric and z⊤Γz>0z^\top \Gamma z > 0z⊤Γz>0 for every nonzero z∈Rnz \in \mathbb{R}^nz∈Rn;
  • a real number ε\varepsilonε with 0<ε<10 < \varepsilon < 10<ε<1. Both ends are strict;
  • a real number γ\gammaγ, with no restriction.

Under these hypotheses the theorem says that the following five statements are pairwise equivalent: each one holds if and only if each of the others does.

Several names come from an imported definitions file that is not shown here: HasMeanCov\mathrm{HasMeanCov}HasMeanCov, lossSet\mathrm{lossSet}lossSet, κ\kappaκ (written kappa), secondMomentMatrix\mathrm{secondMomentMatrix}secondMomentMatrix and bordered\mathrm{bordered}bordered. This read-back cannot unfold them, so the statements below depend on those definitions exactly as they are written in that file. The typing does fix some facts:

  • κ\kappaκ takes a real number and returns a real number.
  • lossSet(w,γ)\mathrm{lossSet}(w, \gamma)lossSet(w,γ) is a set of points of Rn\mathbb{R}^nRn.
  • S:=secondMomentMatrix(x^,Γ)S := \mathrm{secondMomentMatrix}(\hat x, \Gamma)S:=secondMomentMatrix(x^,Γ) is a real (n+1)×(n+1)(n+1)\times(n+1)(n+1)×(n+1) matrix. Its rows and columns are indexed by the nnn coordinates plus one extra index.
  • bordered(A,b,c)\mathrm{bordered}(A, b, c)bordered(A,b,c) takes an n×nn\times nn×n real matrix AAA, a vector b∈Rnb \in \mathbb{R}^nb∈Rn and a real number ccc, and returns a real (n+1)×(n+1)(n+1)\times(n+1)(n+1)×(n+1) matrix with that same indexing. The name suggests the block matrix (Abb⊤c)\begin{pmatrix} A & b \\ b^\top & c\end{pmatrix}(Ab⊤​bc​), but the code shown does not confirm this.

"Positive semidefinite" (PSD) below is also Mathlib's notion: the matrix is symmetric and z⊤Az≥0z^\top A z \ge 0z⊤Az≥0 for every zzz.

(1) For every measure PPP on Rn\mathbb{R}^nRn that satisfies HasMeanCov(P,x^,Γ)\mathrm{HasMeanCov}(P, \hat x, \Gamma)HasMeanCov(P,x^,Γ),

P(lossSet(w,γ))≤ε.P\big(\mathrm{lossSet}(w,\gamma)\big) \le \varepsilon .P(lossSet(w,γ))≤ε.

The binder ranges over all measures. Any requirement that PPP be a probability measure, or that it have mean x^\hat xx^ and covariance Γ\GammaΓ, exists only if HasMeanCov\mathrm{HasMeanCov}HasMeanCov imposes it. The set is not required to be measurable: PPP is applied to it as an outer measure. The comparison takes place in the extended nonnegative reals, where the right-hand side equals ε\varepsilonε because ε>0\varepsilon > 0ε>0.

(2)

κ(ε) w⊤Γw  −  ⟨x^,w⟩  ≤  γ.\kappa(\varepsilon)\,\sqrt{w^\top \Gamma w} \;-\; \langle \hat x, w\rangle \;\le\; \gamma .κ(ε)w⊤Γw​−⟨x^,w⟩≤γ.

(3) There exist a real (n+1)×(n+1)(n+1)\times(n+1)(n+1)×(n+1) matrix MMM, indexed as above, and a real number τ\tauτ such that all of the following hold:

tr⁡(MS)≤τ ε,M⪰0,τ≥0,M+bordered(0n×n, w, −τ+2γ)⪰0.\operatorname{tr}(M S) \le \tau\,\varepsilon,\qquad M \succeq 0,\qquad \tau \ge 0,\qquad M + \mathrm{bordered}\big(0_{n\times n},\, w,\, -\tau + 2\gamma\big) \succeq 0 .tr(MS)≤τε,M⪰0,τ≥0,M+bordered(0n×n​,w,−τ+2γ)⪰0.

Here ⪰0\succeq 0⪰0 means PSD, so in particular MMM is symmetric.

(4) For every x∈Rnx \in \mathbb{R}^nx∈Rn:

bordered(Γ,  x−x^,  κ(ε)2)⪰0  ⟹  −⟨x,w⟩≤γ.\mathrm{bordered}\big(\Gamma,\; x - \hat x,\; \kappa(\varepsilon)^2\big) \succeq 0 \;\Longrightarrow\; -\langle x, w\rangle \le \gamma .bordered(Γ,x−x^,κ(ε)2)⪰0⟹−⟨x,w⟩≤γ.

(5) There exist a real n×nn\times nn×n matrix Λ\LambdaΛ and a real number vvv such that all of the following hold:

  • Λ\LambdaΛ is symmetric. It is not required to be PSD.
  • tr⁡(ΛΓ)+κ(ε)2 v−⟨x^,w⟩≤γ\operatorname{tr}(\Lambda\Gamma) + \kappa(\varepsilon)^2\, v - \langle \hat x, w\rangle \le \gammatr(ΛΓ)+κ(ε)2v−⟨x^,w⟩≤γ.
  • bordered(Λ,  12w,  v)⪰0\mathrm{bordered}\big(\Lambda,\; \tfrac12 w,\; v\big) \succeq 0bordered(Λ,21​w,v)⪰0.

The number vvv has no sign constraint.

Degenerate cases.

  • n=0n = 0n=0: R0\mathbb{R}^0R0 has exactly one point, the zero vector. The hypothesis w≠0w \neq 0w=0 then cannot be satisfied, so the theorem says nothing when n=0n = 0n=0 (it holds vacuously). For n≥1n \ge 1n≥1 all the hypotheses can be satisfied together.
  • The square root: Γ\GammaΓ is positive definite and w≠0w \neq 0w=0, so w⊤Γw>0w^\top \Gamma w > 0w⊤Γw>0. The square root in (2) is therefore never applied to a negative number, and its "return 0 for negative input" default never occurs.
  • ε\varepsilonε at the ends of (0,1)(0,1)(0,1): ε=0\varepsilon = 0ε=0 and ε=1\varepsilon = 1ε=1 are excluded. Only the values of κ\kappaκ on (0,1)(0,1)(0,1) matter, and nothing is claimed about κ\kappaκ elsewhere.
  • Statement (1): if no measure satisfies HasMeanCov(P,x^,Γ)\mathrm{HasMeanCov}(P, \hat x, \Gamma)HasMeanCov(P,x^,Γ), then (1) is vacuously true. Also, if HasMeanCov\mathrm{HasMeanCov}HasMeanCov does not force PPP to be finite or a probability measure, (1) quantifies over such measures as well.
  • Statement (4): if no xxx makes the bordered matrix PSD, then (4) is vacuously true.
  • Statement (3): τ=0\tau = 0τ=0 is allowed. The first condition then requires tr⁡(MS)≤0\operatorname{tr}(MS) \le 0tr(MS)≤0.

Whether any of these vacuous situations actually arises depends on the unseen definitions of HasMeanCov\mathrm{HasMeanCov}HasMeanCov, bordered\mathrm{bordered}bordered and κ\kappaκ. In every such situation the theorem still asserts that all five statements have the same truth value.

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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me