Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 7 — symmetrization: E_⊗ sup_{h∈H}{E_{P_true}h − E_{P_n}h} ≤ 2E_⊗[𝔑_n(H)]

Proved
WassFSG.Lip.lemma_7

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

empirical-processp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1rademacher-complexitysymmetrization

Let Ptrue\mathbb P_{\mathrm{true}}Ptrue​ be a probability measure on Z\mathcal ZZ, let n≥1n\ge1n≥1, and let H\mathcal HH be a family of continuous, Ptrue\mathbb P_{\mathrm{true}}Ptrue​-integrable functions h:Z→Rh:\mathcal Z\to\mathbb Rh:Z→R. For an i.i.d. sample z1,…,zn∼Ptruez_1,\dots,z_n\sim\mathbb P_{\mathrm{true}}z1​,…,zn​∼Ptrue​ with empirical distribution Pn\mathbb P_nPn​,

E⊗[sup⁡h∈H{EPtrue[h]−EPn[h]}]≤2 E⊗[Rn(H)],\mathbb E_\otimes\Big[\sup_{h\in\mathcal H}\big\{\mathbb E_{\mathbb P_{\mathrm{true}}}[h] - \mathbb E_{\mathbb P_n}[h]\big\}\Big] \le 2\,\mathbb E_\otimes[\mathfrak R_n(\mathcal H)],E⊗​[h∈Hsup​{EPtrue​​[h]−EPn​​[h]}]≤2E⊗​[Rn​(H)],

where Rn\mathfrak R_nRn​ is the Rademacher complexity (factor 1n\tfrac1nn1​, no absolute value).

This is the symmetrization inequality; it turns the expected uniform deviation of empirical means into a Rademacher complexity, and is the last step of Lemma 9.

Formalization Note The page says only "a family of functions". The Lean requires each hhh to be Ptrue\mathbb P_{\mathrm{true}}Ptrue​-integrable (so EPtrue[h]\mathbb E_{\mathbb P_{\mathrm{true}}}[h]EPtrue​​[h] is the integral) and continuous; continuity makes the suprema lower semicontinuous, hence Borel measurable, so both expectations are genuine integrals. Every class to which the paper applies the lemma consists of Lipschitz, hence continuous, losses. Both sides are extended reals (∫φ+−∫φ−\int\varphi^+ - \int\varphi^-∫φ+−∫φ−). n≥1n\ge1n≥1 is assumed (the statement is false at n=0n = 0n=0).

Preamble
import Mathlib
import Definitions.Def_RWPI_SqrtLasso_transportCost
import Definitions.Def_ModelRiskOT_Duality_extIntegral
import Definitions.Def_WassFSG_Lip_Setting
import Definitions.Def_WassFSG_Lip_Rademacher

open MeasureTheory
Formal statement
namespace WassFSG.Lip

theorem lemma_7 {Z : Type*} [NormedAddCommGroup Z] [NormedSpace ℝ Z] [CompleteSpace Z]
    [MeasurableSpace Z] [BorelSpace Z] [SecondCountableTopology Z]
    (Ptrue : Measure Z) [IsProbabilityMeasure Ptrue] (n : ℕ) (hn : 0 < n)
    (H : Set (Z → ℝ)) (hcont : ∀ h ∈ H, Continuous h) (hint : ∀ h ∈ H, Integrable h Ptrue) :
    ModelRiskOT.Duality.extIntegral (Measure.pi fun _ : Fin n => Ptrue)
        (fun z => ⨆ h ∈ H, ((∫ x, h x ∂Ptrue - empMean z h : ℝ) : EReal))
      ≤ 2 * expectedRad Ptrue n H := by sorry

end WassFSG.Lip
Source
Gao, Finite-Sample Guarantees for Wasserstein Distributionally Robust Optimization: Breaking the Curse of Dimensionality, arXiv:2009.04382, Lemma 7, p. 25
Human review
  • Endorsed by Shuze Chen · Oct 9, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 9, 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