Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 1, (D), p. 3 — 𝓛(ρ) = min over λ ≥ 0 of λρ + 𝔼_ℙ̂[sup_x f(x) − λc(X̂, x)] for all ρ > 0 iff φ_λ satisfies (IP) for every λ > 0

Proved
ShortWDRODual.Legendre.theorem_1_D

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

distributionally-robust-optimizationinterchangeability-principlep2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1strong-dualitywasserstein

Let (X,F,P^)(\mathcal X,\mathcal F,\widehat{\mathbb P})(X,F,P) be a probability space, f:X→Rf:\mathcal X\to\mathbb Rf:X→R a measurable function with EP^[f]>−∞\mathbb E_{\widehat{\mathbb P}}[f]>-\inftyEP​[f]>−∞, and c:X×X→[0,∞]c:\mathcal X\times\mathcal X\to[0,\infty]c:X×X→[0,∞] a measurable transport cost with c(x,x)=0c(x,x)=0c(x,x)=0 for all xxx (Assumption 1). For ρ≥0\rho\ge0ρ≥0 let

L(ρ)=sup⁡P∈P(X){EX∼P[f(X)]:Kc(P^,P)≤ρ}\mathcal L(\rho)=\sup_{\mathbb P\in\mathcal P(\mathcal X)}\big\{\mathbb E_{X\sim\mathbb P}[f(X)]:\mathcal K_c(\widehat{\mathbb P},\mathbb P)\le\rho\big\}L(ρ)=P∈P(X)sup​{EX∼P​[f(X)]:Kc​(P,P)≤ρ}

be the worst-case loss over the Kantorovich ball, and for λ≥0\lambda\ge0λ≥0 let ϕλ(x^,x)=f(x)−λc(x^,x)\phi_\lambda(\widehat x,x)=f(x)-\lambda c(\widehat x,x)ϕλ​(x,x)=f(x)−λc(x,x), with 0⋅∞=∞0\cdot\infty=\infty0⋅∞=∞.

Then ϕλ\phi_\lambdaϕλ​ satisfies the interchangeability principle (IP) for every λ>0\lambda>0λ>0 if and only if, for every λ>0\lambda>0λ>0, the function x^↦sup⁡xϕλ(x^,x)\widehat x\mapsto\sup_x\phi_\lambda(\widehat x,x)x↦supx​ϕλ​(x,x) is P^\widehat{\mathbb P}P-measurable and

L(ρ)=min⁡λ≥0{λρ+EX^∼P^[sup⁡x∈X{f(x)−λc(X^,x)}]}∀ρ>0.(D)\mathcal L(\rho)=\min_{\lambda\ge0}\Big\{\lambda\rho+\mathbb E_{\widehat X\sim\widehat{\mathbb P}}\Big[\sup_{x\in\mathcal X}\{f(x)-\lambda c(\widehat X,x)\}\Big]\Big\}\qquad\forall\rho>0.\tag{D}L(ρ)=λ≥0min​{λρ+EX∼P​[x∈Xsup​{f(x)−λc(X,x)}]}∀ρ>0.(D)

The duality formula (D) for Wasserstein distributionally robust optimization thus holds, with the minimum attained, exactly when the interchangeability principle holds for the penalized integrands; no topology on X\mathcal XX and no regularity of fff or ccc is assumed.

Formalization Note "min" is IsLeast (attained and a lower bound). Values are in EReal. Expectations use the published extIntegral (∫φ+−∫φ−\int\varphi^+-\int\varphi^-∫φ+−∫φ−, with ∞−∞=−∞\infty-\infty=-\infty∞−∞=−∞, so laws with an undefined expectation never raise the supremum defining L\mathcal LL). The constraint Kc≤ρ\mathcal K_c\le\rhoKc​≤ρ is compared in EReal. The product λc\lambda cλc follows the paper's 0⋅∞=∞0\cdot\infty=\infty0⋅∞=∞. Disclosed reading: (IP) consists of the P^\widehat{\mathbb P}P-measurability of the supremum function and an equality; (D) writes EP^[sup⁡x⋯ ]\mathbb E_{\widehat{\mathbb P}}[\sup_x\cdots]EP​[supx​⋯], which by §2.1 is an expectation of a measurable function. The right-hand side therefore carries the measurability of the supremum functions for λ>0\lambda>0λ>0 explicitly; without it the "if" direction would have to produce measurability from an equation, which the paper does not claim.

Preamble
import Mathlib
import Definitions.Def_ModelRiskOT_Duality_extIntegral
import Definitions.Def_ShortWDRODual_Legendre_Setting
Formal statement
namespace ShortWDRODual.Legendre

open MeasureTheory ModelRiskOT.Duality

theorem theorem_1_D {X : Type*} [MeasurableSpace X]
    (Phat : Measure X) [IsProbabilityMeasure Phat]
    (f : X → ℝ) (c : X → X → ENNReal)
    (hf : Measurable f)
    (hfint : ⊥ < extIntegral Phat (fun x => (f x : EReal)))
    (hc : Measurable (fun p : X × X => c p.1 p.2))
    (hc0 : ∀ x, c x x = 0) :
    (∀ lam : ℝ, 0 < lam → IP Phat (phiLam c f lam)) ↔
      ((∀ lam : ℝ, 0 < lam → NullMeasurable (supFn (phiLam c f lam)) Phat) ∧
        ∀ ρ : ℝ, 0 < ρ →
          IsLeast {y : EReal | ∃ lam : ℝ, 0 ≤ lam ∧ y = ((lam * ρ : ℝ) : EReal) + dualG c f Phat lam}
            (robustLoss c f Phat ρ)) := by sorry

end ShortWDRODual.Legendre
Source
Zhang, Yang & Gao, A Short and General Duality Proof for Wasserstein Distributionally Robust Optimization, arXiv:2205.00362v4, Theorem 1, (D), p. 3 (PDF p. 3); proof pp. 4–5 (PDF pp. 4–5)
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