Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§2.1, p. 546 — Condition (10) is an ellipsoid, and the worst-case VaR is the maximal loss over it

Proved
WorstCaseVaR.KnownMoments.ellipsoid_form_and_max_loss

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

p2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1robust-optimizationsemidefinite-programmingvalue-at-risk

Let x^,w∈Rn\hat x, w \in \mathbb R^nx^,w∈Rn, let Γ≻0\Gamma \succ 0Γ≻0 and let 0<ε≤10 < \varepsilon \le 10<ε≤1, with κ(ε)=(1−ε)/ε\kappa(\varepsilon) = \sqrt{(1-\varepsilon)/\varepsilon}κ(ε)=(1−ε)/ε​.

  1. For every x∈Rnx \in \mathbb R^nx∈Rn, Condition (10),
[Γ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,

holds if and only if xxx lies in the ellipsoid E={x∣(x−x^)⊤Γ−1(x−x^)≤κ(ε)2}\mathcal E = \{x \mid (x - \hat x)^\top \Gamma^{-1}(x - \hat x) \le \kappa(\varepsilon)^2\}E={x∣(x−x^)⊤Γ−1(x−x^)≤κ(ε)2}. 2. The maximal loss over this set is attained and equals

max⁡{−x⊤w  :  x satisfies (10)}=κ(ε)w⊤Γw−x^⊤w.\max\{-x^\top w \;:\; x \text{ satisfies (10)}\} = \kappa(\varepsilon)\sqrt{w^\top\Gamma w} - \hat x^\top w.max{−x⊤w:x satisfies (10)}=κ(ε)w⊤Γw​−x^⊤w.

This is the "game-theoretic" reading of the worst-case VaR: it is the largest loss −x⊤w-x^\top w−x⊤w when the return vector is deterministic and only known to lie in E\mathcal EE. It links Propositions 2 and 4 of Theorem 1.

Formalization Note. The maximum is stated with IsGreatest; Γ−1\Gamma^{-1}Γ−1 is the matrix inverse, well defined since Γ≻0\Gamma \succ 0Γ≻0.

Preamble
import Mathlib
import Definitions.Def_WorstCaseVaR_KnownMoments_Basic

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

/-- The ellipsoid form of Condition (10) (p. 546): with `Γ ≻ 0`,
`[[Γ, x - x̂], [(x - x̂)ᵀ, κ(ε)²]] ⪰ 0` iff `(x - x̂)ᵀ Γ⁻¹ (x - x̂) ≤ κ(ε)²`, and the maximal loss
`-xᵀw` over the `x` satisfying (10) is `κ(ε) √(wᵀΓw) - x̂ᵀw`. -/
theorem ellipsoid_form_and_max_loss {n : ℕ}
    (xhat w : EuclideanSpace ℝ (Fin n)) (Γ : Matrix (Fin n) (Fin n) ℝ) (hΓ : Γ.PosDef)
    (ε : ℝ) (hε0 : 0 < ε) (hε1 : ε ≤ 1) :
    (∀ x : EuclideanSpace ℝ (Fin n),
        (bordered Γ ⇑(x - xhat) (kappa ε ^ 2)).PosSemidef ↔
          ⇑(x - xhat) ⬝ᵥ Γ⁻¹ *ᵥ ⇑(x - xhat) ≤ kappa ε ^ 2) ∧
    IsGreatest {r : ℝ | ∃ x : EuclideanSpace ℝ (Fin n),
        (bordered Γ ⇑(x - xhat) (kappa ε ^ 2)).PosSemidef ∧ r = -⟪x, w⟫_ℝ}
      (kappa ε * Real.sqrt (⇑w ⬝ᵥ Γ *ᵥ ⇑w) - ⟪xhat, w⟫_ℝ) := 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), p. 546, §2.1, comments after Theorem 1 (V_𝒫(w) = max −x^T w subject to Condition (10); the ellipsoid ℰ)
Read-back

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

Setup.

  • n≥0n \ge 0n≥0.
  • x^∈Rn\hat x \in \mathbb{R}^nx^∈Rn and w∈Rnw \in \mathbb{R}^nw∈Rn, with www allowed to be 000.
  • Γ\GammaΓ is a real positive definite n×nn\times nn×n matrix: symmetric, with z⊤Γz>0z^\top\Gamma z > 0z⊤Γz>0 for z≠0z \ne 0z=0. It is therefore invertible, and Γ−1\Gamma^{-1}Γ−1 is its true inverse.
  • ε\varepsilonε is a real number with 0<ε≤10 < \varepsilon \le 10<ε≤1.

Let κ(ε)=(1−ε)/ε\kappa(\varepsilon) = \sqrt{(1-\varepsilon)/\varepsilon}κ(ε)=(1−ε)/ε​, and write ⟨⋅,⋅⟩\langle\cdot,\cdot\rangle⟨⋅,⋅⟩ for the standard inner product. "A⪰0A \succeq 0A⪰0" means AAA is symmetric and z⊤Az≥0z^\top A z \ge 0z⊤Az≥0 for all z∈Rn+1z \in \mathbb{R}^{n+1}z∈Rn+1.

For x∈Rnx \in \mathbb{R}^nx∈Rn, let

B(x)=(Γx−x^(x−x^)⊤κ(ε)2).B(x) = \begin{pmatrix}\Gamma & x - \hat x\\ (x - \hat x)^\top & \kappa(\varepsilon)^2\end{pmatrix}.B(x)=(Γ(x−x^)⊤​x−x^κ(ε)2​).

Claim (a). For every x∈Rnx \in \mathbb{R}^nx∈Rn,

B(x)⪰0  ⟺  (x−x^)⊤Γ−1(x−x^)≤κ(ε)2.B(x) \succeq 0 \iff (x - \hat x)^\top\Gamma^{-1}(x - \hat x) \le \kappa(\varepsilon)^2.B(x)⪰0⟺(x−x^)⊤Γ−1(x−x^)≤κ(ε)2.

Claim (b). The set {−⟨x,w⟩:x∈Rn, B(x)⪰0}\{-\langle x, w\rangle : x \in \mathbb{R}^n,\ B(x) \succeq 0\}{−⟨x,w⟩:x∈Rn, B(x)⪰0} has greatest element

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

This value is attained by some xxx with B(x)⪰0B(x) \succeq 0B(x)⪰0, and every such xxx gives −⟨x,w⟩-\langle x,w\rangle−⟨x,w⟩ at most this value.

Degenerate cases.

  • κ\kappaκ. With 0<ε≤10 < \varepsilon \le 10<ε≤1, (1−ε)/ε≥0(1-\varepsilon)/\varepsilon \ge 0(1−ε)/ε≥0, so κ(ε)\kappa(\varepsilon)κ(ε) is the genuine square root.
  • w⊤Γw≥0w^\top\Gamma w \ge 0w⊤Γw≥0, so its square root is also genuine.
  • ε=1\varepsilon = 1ε=1. Then κ(ε)=0\kappa(\varepsilon) = 0κ(ε)=0. Part (a) says B(x)⪰0B(x) \succeq 0B(x)⪰0 exactly when (x−x^)⊤Γ−1(x−x^)≤0(x-\hat x)^\top\Gamma^{-1}(x-\hat x) \le 0(x−x^)⊤Γ−1(x−x^)≤0, i.e. when x=x^x = \hat xx=x^. Part (b) says the maximum is −⟨x^,w⟩-\langle\hat x, w\rangle−⟨x^,w⟩.
  • w=0w = 0w=0. The set in (b) is {0}\{0\}{0} (nonempty, since x=x^x = \hat xx=x^ qualifies), and the claimed maximum is 000.
  • n=0n = 0n=0. B(x)B(x)B(x) is the 1×11\times 11×1 matrix (κ(ε)2)(\kappa(\varepsilon)^2)(κ(ε)2), which is positive semidefinite. The quadratic form is 000, so (a) reads true  ⟺  0≤κ(ε)2\text{true} \iff 0 \le \kappa(\varepsilon)^2true⟺0≤κ(ε)2. Part (b) says the maximum of {0}\{0\}{0} is 000.
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