Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

p. 554 — the dual constraint is equivalent to γ ≥ κ(ε, d)√(wᵀΓw) − wᵀx̂

Proved
WorstCaseVaR.Entropy.dual_constraint_iff

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

p2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1relative-entropyvalue-at-risk

Let Γ≻0\Gamma \succ 0Γ≻0, w∈Rnw \in \mathbb R^nw∈Rn nonzero, 0<ε<10 < \varepsilon < 10<ε<1, d>0d > 0d>0 and γ∈R\gamma \in \mathbb Rγ∈R, and let ϕ(γ)=1−Φ((γ+w⊤x^)/w⊤Γw)\phi(\gamma) = 1 - \Phi\big((\gamma + w^\top\hat x)/\sqrt{w^\top\Gamma w}\big)ϕ(γ)=1−Φ((γ+w⊤x^)/w⊤Γw​). Then there exists λ>0\lambda > 0λ>0 with

λd+λlog⁡((e1/λ−1)ϕ(γ)+1)≤ε\lambda d + \lambda \log\big((e^{1/\lambda} - 1)\phi(\gamma) + 1\big) \le \varepsilonλd+λlog((e1/λ−1)ϕ(γ)+1)≤ε

if and only if

γ≥κ(ε,d)w⊤Γw−w⊤x^,\gamma \ge \kappa(\varepsilon,d)\sqrt{w^\top\Gamma w} - w^\top \hat x,γ≥κ(ε,d)w⊤Γw​−w⊤x^,

where κ(ε,d)=−Φ−1(f(ε,d))\kappa(\varepsilon,d) = -\Phi^{-1}(f(\varepsilon,d))κ(ε,d)=−Φ−1(f(ε,d)) is the risk factor of Eq. (45).

This is the last step of the proof of Theorem 9: it inverts the constraint "worst-case probability at most ε\varepsilonε" into an explicit lower bound on the loss level γ\gammaγ.

Formalization Note The paper states the loss level as ε∈(0,1]\varepsilon \in (0,1]ε∈(0,1]; at ε=1\varepsilon = 1ε=1 every γ\gammaγ is feasible and the equivalence fails, so ε<1\varepsilon < 1ε<1 is assumed. The equivalence also needs d>0d > 0d>0: for d=0d = 0d=0 the supremum in (45) is approached only as λ→∞\lambda \to \inftyλ→∞, so the left side means ϕ(γ)<ε\phi(\gamma) < \varepsilonϕ(γ)<ε while the right side means ϕ(γ)≤ε\phi(\gamma) \le \varepsilonϕ(γ)≤ε, and the two differ at one value of γ\gammaγ. Theorem 9 itself holds for d≥0d \ge 0d≥0.

Preamble
import Mathlib
import Definitions.Def_WorstCaseVaR_Entropy_Basic
Formal statement
namespace WorstCaseVaR.Entropy

/-- End of the proof of Theorem 9, p. 554: for `d > 0` and `0 < ε < 1`, there is `λ > 0` with
`λd + λ log((e^{1/λ} - 1)φ(γ) + 1) ≤ ε` if and only if `γ ≥ κ(ε, d)√(wᵀΓw) - wᵀx̂`. -/
theorem dual_constraint_iff {n : ℕ} (xhat w : Returns n) (Γ : Matrix (Fin n) (Fin n) ℝ)
    (hΓ : Γ.PosDef) (hw : w ≠ 0) (ε d : ℝ) (hε0 : 0 < ε) (hε1 : ε < 1) (hd : 0 < d) (γ : ℝ) :
    (∃ lam > 0, dualValue d (gaussianTail xhat Γ w γ) lam ≤ ε) ↔
      kappaEntropy ε d * Real.sqrt (quadForm Γ w) - inner ℝ w xhat ≤ γ := by sorry

end WorstCaseVaR.Entropy
Source
El Ghaoui, Oks and Oustry, Worst-Case Value-at-Risk and Robust Portfolio Optimization: A Conic Programming Approach, Oper. Res. 51 (2003), p. 554, end of the proof of Theorem 9
Read-back

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

Hypotheses. Let n∈Nn\in\mathbb Nn∈N and let x^,w∈Rn\hat x,w\in\mathbb R^nx^,w∈Rn. Let Γ\GammaΓ be a positive definite real n×nn\times nn×n matrix, and assume w≠0w\neq0w=0. Let ε,d\varepsilon,dε,d be real numbers with 0<ε<10<\varepsilon<10<ε<1 and d>0d>0d>0, and let γ∈R\gamma\in\mathbb Rγ∈R.

Ingredients.

  • Gaussian tail:
φ(γ)=1−Φ ⁣(γ+⟨w,x^⟩w⊤Γw).\varphi(\gamma)=1-\Phi\!\left(\frac{\gamma+\langle w,\hat x\rangle}{\sqrt{w^\top\Gamma w}}\right).φ(γ)=1−Φ(w⊤Γw​γ+⟨w,x^⟩​).
  • Risk factor: κ(ε,d)=−Φ−1(f(ε,d))\kappa(\varepsilon,d)=-\Phi^{-1}(f(\varepsilon,d))κ(ε,d)=−Φ−1(f(ε,d)), where:
    • Φ−1(p)=inf⁡{t:p≤Φ(t)}\Phi^{-1}(p)=\inf\{t:p\le\Phi(t)\}Φ−1(p)=inf{t:p≤Φ(t)}, which is 000 if p∉(0,1)p\notin(0,1)p∈/(0,1);
    • f(ε,d)=sup⁡λ>0eε/λ−d−1e1/λ−1f(\varepsilon,d)=\sup_{\lambda>0}\frac{e^{\varepsilon/\lambda-d}-1}{e^{1/\lambda}-1}f(ε,d)=supλ>0​e1/λ−1eε/λ−d−1​, which is 000 if the set of values is unbounded above.

Conclusion.

(∃ λ>0: λd+λlog⁡((e1/λ−1)φ(γ)+1)≤ε)  ⟺  κ(ε,d)w⊤Γw−⟨w,x^⟩≤γ.\Big(\exists\,\lambda>0:\ \lambda d+\lambda\log\big((e^{1/\lambda}-1)\varphi(\gamma)+1\big)\le\varepsilon\Big)\iff \kappa(\varepsilon,d)\sqrt{w^\top\Gamma w}-\langle w,\hat x\rangle\le\gamma.(∃λ>0: λd+λlog((e1/λ−1)φ(γ)+1)≤ε)⟺κ(ε,d)w⊤Γw​−⟨w,x^⟩≤γ.

Degenerate cases. For n=0n=0n=0 the hypothesis w≠0w\neq0w=0 cannot hold, so the statement is vacuous. For n≥1n\ge1n≥1 the hypotheses give w⊤Γw>0w^\top\Gamma w>0w⊤Γw>0, so the tail involves no default square-root or division values. Since 0<φ(γ)<10<\varphi(\gamma)<10<φ(γ)<1, the logarithm's argument exceeds 111. The statement itself contains no hypothesis that f(ε,d)f(\varepsilon,d)f(ε,d) lies in (0,1)(0,1)(0,1). If it did not, κ(ε,d)\kappa(\varepsilon,d)κ(ε,d) would be the default 000, and the right-hand side would read −⟨w,x^⟩≤γ-\langle w,\hat x\rangle\le\gamma−⟨w,x^⟩≤γ.

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