Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

p. 554 — the Gaussian tail φ(γ) = 1 − Φ((γ + wᵀx̂)/√(wᵀΓw))

Proved
WorstCaseVaR.Entropy.gaussian_tail_eq

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

gaussianp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1value-at-risk

Let P0=N(x^,Γ)P_0 = \mathcal N(\hat x, \Gamma)P0​=N(x^,Γ) be a Gaussian distribution on Rn\mathbb R^nRn with positive definite covariance Γ≻0\Gamma \succ 0Γ≻0, let w∈Rnw \in \mathbb R^nw∈Rn be nonzero and γ∈R\gamma \in \mathbb Rγ∈R. Then the P0P_0P0​-probability that the portfolio www loses at least γ\gammaγ is

ϕ(γ):=P0{x:γ≤−x⊤w}=1−Φ ⁣(γ+w⊤x^w⊤Γw),\phi(\gamma) := P_0\{x : \gamma \le -x^\top w\} = 1 - \Phi\!\left(\frac{\gamma + w^\top \hat x}{\sqrt{w^\top \Gamma w}}\right),ϕ(γ):=P0​{x:γ≤−x⊤w}=1−Φ(w⊤Γw​γ+w⊤x^​),

where Φ\PhiΦ is the standard normal cumulative distribution function.

This is the only place where the Gaussian reference distribution enters the proof of Theorem 9: the worst-case probability depends on P0P_0P0​ only through ϕ(γ)\phi(\gamma)ϕ(γ).

Formalization Note The probability is the real-valued measure measureReal of the loss set.

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

/-- p. 554: under the reference Gaussian `P₀ = 𝒩(x̂, Γ)` with `Γ ≻ 0` and `w ≠ 0`,
`φ(γ) := Prob{γ ≤ -xᵀw} = 1 - Φ((γ + wᵀx̂)/√(wᵀΓw))`. -/
theorem gaussian_tail_eq {n : ℕ} (xhat w : Returns n) (Γ : Matrix (Fin n) (Fin n) ℝ)
    (hΓ : Γ.PosDef) (hw : w ≠ 0) (γ : ℝ) :
    (refGaussian xhat Γ).real (lossSet w γ) = gaussianTail xhat Γ w γ := 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, display defining φ(γ)
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 real n×nn\times nn×n matrix that is positive definite: symmetric, with x⊤Γx>0x^\top\Gamma x>0x⊤Γx>0 for all x≠0x\neq0x=0. Assume w≠0w\neq0w=0, and let γ∈R\gamma\in\mathbb Rγ∈R.

Conclusion. The measure, as a real number, that the library's multivariate Gaussian P0=P0(x^,Γ)P_0=P_0(\hat x,\Gamma)P0​=P0​(x^,Γ) gives to the loss set S={x:γ≤−⟨x,w⟩}\mathcal S=\{x:\gamma\le-\langle x,w\rangle\}S={x:γ≤−⟨x,w⟩} is

P0(S)=1−Φ ⁣(γ+⟨w,x^⟩w⊤Γw).P_0(\mathcal S)=1-\Phi\!\left(\frac{\gamma+\langle w,\hat x\rangle}{\sqrt{w^\top\Gamma w}}\right).P0​(S)=1−Φ(w⊤Γw​γ+⟨w,x^⟩​).

Here Φ\PhiΦ is the standard normal CDF and w⊤Γw=∑i,jwiΓijwjw^\top\Gamma w=\sum_{i,j}w_i\Gamma_{ij}w_jw⊤Γw=∑i,j​wi​Γij​wj​.

Degenerate cases. For n=0n=0n=0 the only vector is 000, so the hypothesis w≠0w\neq0w=0 cannot hold and the statement is vacuous. For n≥1n\ge1n≥1, positive definiteness together with w≠0w\neq0w=0 makes w⊤Γw>0w^\top\Gamma w>0w⊤Γw>0. The square-root and division conventions (value 000) are therefore never triggered. The left side is the real value of the set's measure, which is ∞\infty∞ converted to 000 only if the measure were infinite.

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