Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

p. 554 — the worst-case probability is the infimum of the dual over λ > 0

Proved
WorstCaseVaR.Entropy.worst_case_probability_dual

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

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

Let P0=N(x^,Γ)P_0 = \mathcal N(\hat x, \Gamma)P0​=N(x^,Γ) with Γ≻0\Gamma \succ 0Γ≻0, let w∈Rnw \in \mathbb R^nw∈Rn be nonzero, d≥0d \ge 0d≥0 and γ∈R\gamma \in \mathbb Rγ∈R. Write Sγ={x:γ≤−x⊤w}\mathcal S_\gamma = \{x : \gamma \le -x^\top w\}Sγ​={x:γ≤−x⊤w}, ϕ(γ)=P0(Sγ)\phi(\gamma) = P_0(\mathcal S_\gamma)ϕ(γ)=P0​(Sγ​), and Pd\mathcal P_dPd​ for the probability distributions PPP on Rn\mathbb R^nRn with KL(P,P0)≤d\mathrm{KL}(P,P_0) \le dKL(P,P0​)≤d. Then the worst-case probability equals the dual value:

sup⁡P∈PdP(Sγ)  =  inf⁡λ>0(λd+λlog⁡((e1/λ−1)ϕ(γ)+1)).\sup_{P \in \mathcal P_d} P(\mathcal S_\gamma) \;=\; \inf_{\lambda > 0} \Big(\lambda d + \lambda \log\big((e^{1/\lambda} - 1)\phi(\gamma) + 1\big)\Big).P∈Pd​sup​P(Sγ​)=λ>0inf​(λd+λlog((e1/λ−1)ϕ(γ)+1)).

This is the strong-duality step of the proof of Theorem 9 (the paper cites Smith 1995 for it); it reduces the infinite-dimensional worst case over distributions to a scalar minimisation.

Formalization Note Both sides are encoded without Lean's sSup/sInf: the statement asserts a real number θ\thetaθ that is the least upper bound of {P(Sγ):P∈Pd}\{P(\mathcal S_\gamma) : P \in \mathcal P_d\}{P(Sγ​):P∈Pd​} and the greatest lower bound of the dual values over λ>0\lambda > 0λ>0. Probabilities are real-valued (measureReal).

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

/-- p. 554: the worst-case probability `sup_{P : KL(P, P₀) ≤ d} P{γ ≤ -xᵀw}` equals the
infimum over `λ > 0` of `λd + λ log((e^{1/λ} - 1)φ(γ) + 1)`, where `φ(γ) = P₀{γ ≤ -xᵀw}`. -/
theorem worst_case_probability_dual {n : ℕ} (xhat w : Returns n) (Γ : Matrix (Fin n) (Fin n) ℝ)
    (hΓ : Γ.PosDef) (hw : w ≠ 0) (d : ℝ) (hd : 0 ≤ d) (γ : ℝ) :
    ∃ θ : ℝ,
      IsLUB {p | ∃ P ∈ klBall xhat Γ d, P.real (lossSet w γ) = p} θ ∧
      IsGLB (dualValue d ((refGaussian xhat Γ).real (lossSet w γ)) '' Set.Ioi 0) θ := 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, proof of Theorem 9, sentence after Eq. (48)
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. Assume w≠0w\neq0w=0 and d≥0d\ge0d≥0, and let γ∈R\gamma\in\mathbb Rγ∈R.

Notation. P0P_0P0​ is the library's multivariate Gaussian with mean x^\hat xx^ and covariance Γ\GammaΓ, and S={x:γ≤−⟨x,w⟩}\mathcal S=\{x:\gamma\le-\langle x,w\rangle\}S={x:γ≤−⟨x,w⟩}. Set φ=P0(S)\varphi=P_0(\mathcal S)φ=P0​(S) as a real number.

Conclusion. There exists a real number θ\thetaθ with both of the following properties:

  • θ\thetaθ is the least upper bound in R\mathbb RR of the set
{P(S):P a probability measure on Rn, KL(P ∥ P0)≤d}.\{P(\mathcal S) : P \text{ a probability measure on }\mathbb R^n,\ \mathrm{KL}(P\,\|\,P_0)\le d\}.{P(S):P a probability measure on Rn, KL(P∥P0​)≤d}.

Here KL(P ∥ P0)\mathrm{KL}(P\,\|\,P_0)KL(P∥P0​) is +∞+\infty+∞ unless P≪P0P\ll P_0P≪P0​ and log⁡dPdP0\log\frac{dP}{dP_0}logdP0​dP​ is PPP-integrable, in which case it is ∫log⁡dPdP0 dP\int\log\frac{dP}{dP_0}\,dP∫logdP0​dP​dP.

  • θ\thetaθ is the greatest lower bound in R\mathbb RR of the set
{λd+λlog⁡((e1/λ−1)φ+1):λ>0}.\big\{\lambda d+\lambda\log\big((e^{1/\lambda}-1)\varphi+1\big) : \lambda>0\big\}.{λd+λlog((e1/λ−1)φ+1):λ>0}.

These are genuine suprema and infima: the order-theoretic least upper and greatest lower bounds. No default value is involved.

Degenerate cases. For n=0n=0n=0 the hypothesis w≠0w\neq0w=0 cannot hold, so the statement is vacuous. d=0d=0d=0 is allowed; the first set then comes from probability measures with KL(P ∥ P0)=0\mathrm{KL}(P\,\|\,P_0)=0KL(P∥P0​)=0.

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