Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (18): R(P,ℓ)≤R‾ε(μ^,Σ^,ℓ)\mathcal R(\mathbb P, \ell) \le \overline{\mathcal R}_\varepsilon(\widehat\mu, \widehat\Sigma, \ell)R(P,ℓ)≤Rε​(μ​,Σ,ℓ) for every P\mathbb PP in the Gelbrich hull

Proved
WassersteinDRO.GelbrichFiniteSample.true_risk_le_gelbrich_risk

by mikedeng1 · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

concentration-inequalitydistributionally-robust-optimizationgelbrich-hullmoment-ambiguity

Let Ξ⊆Rm\Xi \subseteq \mathbb R^mΞ⊆Rm, ε∈R\varepsilon \in \mathbb Rε∈R, μ^∈Rm\widehat\mu \in \mathbb R^mμ​∈Rm and let Σ^\widehat\SigmaΣ be an m×mm \times mm×m matrix. Let P\mathbb PP be a probability distribution on Rm\mathbb R^mRm supported on Ξ\XiΞ (i.e. P(Ξc)=0\mathbb P(\Xi^{\mathrm c}) = 0P(Ξc)=0) that has mean vector μ\muμ and covariance matrix Σ\SigmaΣ for some (μ,Σ)∈Uε(μ^,Σ^)(\mu, \Sigma) \in \mathcal U_\varepsilon(\widehat\mu, \widehat\Sigma)(μ,Σ)∈Uε​(μ​,Σ). Then for every loss function ℓ:Rm→[−∞,+∞]\ell : \mathbb R^m \to [-\infty, +\infty]ℓ:Rm→[−∞,+∞],

R(P,ℓ)≤R‾ε(μ^,Σ^,ℓ)=sup⁡Q∈Gε(μ^,Σ^)R(Q,ℓ).\mathcal R(\mathbb P, \ell) \le \overline{\mathcal R}_\varepsilon(\widehat\mu, \widehat\Sigma, \ell) = \sup_{\mathbb Q \in \mathbb G_\varepsilon(\widehat\mu, \widehat\Sigma)} \mathcal R(\mathbb Q, \ell).R(P,ℓ)≤Rε​(μ​,Σ,ℓ)=Q∈Gε​(μ​,Σ)sup​R(Q,ℓ).

This is the deterministic half of the finite sample guarantee (29a): on the event of Theorem 21, the true distribution lies in the Gelbrich hull, and then its risk is bounded by the Gelbrich risk simultaneously for all losses.

Differences from the source:

  • reading: the display (18) defining R̄ε(µ̂, Σ̂, ℓ) as a supremum over Gε(µ̂, Σ̂) → its consequence R(P, ℓ) ≤ R̄ε(µ̂, Σ̂, ℓ) for every P in the hull; reason: this is the property of (18) that the paper's guarantee (29a) relies on; the definition itself is the gelbrichRisk item.
  • generalization: measurable losses ℓ ∈ L satisfying Assumption 1 (p. 1, p. 9) → every function ℓ : ℝ^m → [−∞, +∞]; reason: the bound holds for every function and specializes to the paper's losses.
  • generalization: Σ̂ ∈ S^m_+ (standing assumption of §2.3, p. 16), Ξ closed (p. 6), ε ≥ 0 → any matrix Σ̂, any set Ξ, any real ε; reason: the bound holds for all of them and specializes to the paper's setting.
  • encoding: P ∈ Gε(µ̂, Σ̂) → P a probability measure with P(Ξᶜ) = 0 and HasMeanCov P µ Σ for some (µ, Σ) ∈ Uε(µ̂, Σ̂); reason: this is Definition 2 unfolded; HasMeanCov includes the finite second moments that a covariance matrix presupposes.
Preamble
import Mathlib
import Definitions.Def_WassersteinDRO_GelbrichFiniteSample_risk
import Definitions.Def_WassersteinDRO_GelbrichFiniteSample_HasMeanCov
import Definitions.Def_WassersteinDRO_GelbrichFiniteSample_uncertaintySet
import Definitions.Def_WassersteinDRO_GelbrichFiniteSample_gelbrichRisk

open MeasureTheory
Formal statement
namespace WassersteinDRO.GelbrichFiniteSample

/-- **The Gelbrich risk bounds the risk of every member of the hull (eq. (18)).**
Kuhn, Mohajerin Esfahani, Nguyen, Shafieezadeh-Abadeh, *Wasserstein Distributionally Robust Optimization: Theory and Applications in Machine Learning*, arXiv:1908.08729v2, §2.3, eq. (18), p. 18 (unnumbered step): "To show this, we define the Gelbrich risk as
R̄_ε(µ̂, Σ̂, ℓ) = sup_{Q∈G_ε(µ̂,Σ̂)} R(Q, ℓ) (18)". This is the step of (29a) (Theorem 22, p. 23)
that turns membership of the true distribution in the Gelbrich hull into the risk bound.

For every `Ξ ⊆ ℝ^m`, `ε ∈ ℝ`, `µ̂ ∈ ℝ^m`, `m × m` matrix `Σ̂`, every probability measure `P` on `ℝ^m`
with `P(Ξᶜ) = 0` that has mean `µ` and covariance `Σ` for some `(µ, Σ) ∈ U_ε(µ̂, Σ̂)`, and every loss
`ℓ : ℝ^m → [−∞, +∞]`: `R(P, ℓ) ≤ R̄_ε(µ̂, Σ̂, ℓ)`.

**Formalization Note.** No measurability of `ℓ` and no condition on `Σ̂` or `Ξ` is needed for this
step, so none is assumed; the statement covers the paper's measurable losses, `Σ̂ ∈ S^m_+` and closed
`Ξ`. "Supported on Ξ" is `P(Ξᶜ) = 0`. -/
theorem true_risk_le_gelbrich_risk {m : ℕ} (Ξ : Set (EuclideanSpace ℝ (Fin m))) (ε : ℝ)
    (μh : EuclideanSpace ℝ (Fin m)) (Sigh : Matrix (Fin m) (Fin m) ℝ)
    (P : Measure (EuclideanSpace ℝ (Fin m))) [IsProbabilityMeasure P] (hPΞ : P Ξᶜ = 0)
    (μ : EuclideanSpace ℝ (Fin m)) (Sig : Matrix (Fin m) (Fin m) ℝ) (hP : HasMeanCov P μ Sig)
    (hU : (μ, Sig) ∈ uncertaintySet ε μh Sigh) (ℓ : EuclideanSpace ℝ (Fin m) → EReal) :
    risk P ℓ ≤ gelbrichRisk Ξ ε μh Sigh ℓ := by sorry

end WassersteinDRO.GelbrichFiniteSample
Source
Kuhn, Mohajerin Esfahani, Nguyen, Shafieezadeh-Abadeh, Wasserstein Distributionally Robust Optimization: Theory and Applications in Machine Learning, arXiv:1908.08729v2, §2.3, eq. (18), p. 18 (unnumbered step used in Theorem 22, p. 23)

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