Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2, p. 10 β€” on a Polish space with continuous c, 𝓛̄(ρ) = 𝔼_β„™Μ‚[sup{f(x) : c(XΜ‚, x) ≀ ρ}] and its Legendre dual

Proved
ShortWDRODual.MaxCost.theorem_2

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

distributionally-robust-optimizationinfinity-wassersteinoptimal-transportp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1strong-duality

Let X\mathcal XX be a Polish space with its Borel Οƒ\sigmaΟƒ-algebra F\mathcal FF, P^\widehat{\mathbb P}P a probability measure on X\mathcal XX, f:Xβ†’Rf:\mathcal X\to\mathbb Rf:Xβ†’R measurable with EP^[f]>βˆ’βˆž\mathbb E_{\widehat{\mathbb P}}[f]>-\inftyEP​[f]>βˆ’βˆž (Assumption 1), and c:XΓ—Xβ†’[0,∞)c:\mathcal X\times\mathcal X\to[0,\infty)c:XΓ—Xβ†’[0,∞) a continuous transport cost with c(x,x)=0c(x,x)=0c(x,x)=0 for all xxx. Let

Kβ€Ύc(P^,P)=infβ‘Ξ³βˆˆΞ“(P^,P)Ξ³-ess sup⁑x^,xc(x^,x),Lβ€Ύ(ρ)=sup⁑P∈P(X){EX∼P[f(X)]:Kβ€Ύc(P^,P)≀ρ}\overline{\mathcal K}_c(\widehat{\mathbb P},\mathbb P)=\inf_{\gamma\in\Gamma(\widehat{\mathbb P},\mathbb P)}\gamma\text{-}\operatorname*{ess\,sup}_{\widehat x,x}c(\widehat x,x),\qquad\overline{\mathcal L}(\rho)=\sup_{\mathbb P\in\mathcal P(\mathcal X)}\big\{\mathbb E_{X\sim\mathbb P}[f(X)]:\overline{\mathcal K}_c(\widehat{\mathbb P},\mathbb P)\le\rho\big\}Kc​(P,P)=Ξ³βˆˆΞ“(P,P)inf​γ-x,xesssup​c(x,x),L(ρ)=P∈P(X)sup​{EX∼P​[f(X)]:Kc​(P,P)≀ρ}

be the maximum transport cost and its robust loss. Then

  1. for every ρβ‰₯0\rho\ge0ρβ‰₯0,
Lβ€Ύ(ρ)=EX^∼P^[sup⁑x{f(x):c(X^,x)≀ρ}];\overline{\mathcal L}(\rho)=\mathbb E_{\widehat X\sim\widehat{\mathbb P}}\Big[\sup_x\big\{f(x):c(\widehat X,x)\le\rho\big\}\Big];L(ρ)=EX∼P​[xsup​{f(x):c(X,x)≀ρ}];
  1. for every λ∈R\lambda\in\mathbb Rλ∈R, the Legendre transform (βˆ’Lβ€Ύ)βˆ—(βˆ’Ξ»)=sup⁑ρ∈R{(βˆ’Ξ»)ρ+Lβ€Ύ(ρ)}(-\overline{\mathcal L})^*(-\lambda)=\sup_{\rho\in\mathbb R}\{(-\lambda)\rho+\overline{\mathcal L}(\rho)\}(βˆ’L)βˆ—(βˆ’Ξ»)=supρ∈R​{(βˆ’Ξ»)ρ+L(ρ)} satisfies
(βˆ’Lβ€Ύ)βˆ—(βˆ’Ξ»)=sup⁑ρβ‰₯0{EX^∼P^[sup⁑x{f(x):c(X^,x)≀ρ}]βˆ’Ξ»Ο}.(-\overline{\mathcal L})^*(-\lambda)=\sup_{\rho\ge0}\Big\{\mathbb E_{\widehat X\sim\widehat{\mathbb P}}\Big[\sup_x\big\{f(x):c(\widehat X,x)\le\rho\big\}\Big]-\lambda\rho\Big\}.(βˆ’L)βˆ—(βˆ’Ξ»)=ρβ‰₯0sup​{EX∼P​[xsup​{f(x):c(X,x)≀ρ}]βˆ’Ξ»Ο}.

For c=dc=dc=d a metric, Kβ€Ύd\overline{\mathcal K}_dKd​ is the ∞\infty∞-Wasserstein distance, and the theorem reduces ∞\infty∞-Wasserstein DRO to a nominal expectation of a local supremum. Remark 5 of the paper shows that the identity fails without continuity of ccc, even for a metric cost.

Formalization Note Expectations are the published extIntegral (βˆ«Ο†+βˆ’βˆ«Ο†βˆ’\int\varphi^+-\int\varphi^-βˆ«Ο†+βˆ’βˆ«Ο†βˆ’ with lower Lebesgue integrals, in [βˆ’βˆž,∞][-\infty,\infty][βˆ’βˆž,∞], with βˆžβˆ’βˆž=βˆ’βˆž\infty-\infty=-\inftyβˆžβˆ’βˆž=βˆ’βˆž); the integrand x^↦sup⁑{f(x):c(x^,x)≀ρ}\widehat x\mapsto\sup\{f(x):c(\widehat x,x)\le\rho\}x↦sup{f(x):c(x,x)≀ρ} is in general only universally measurable, and for such integrands the lower integral is the completed integral. The inner supremum is in EReal. Lβ€Ύ\overline{\mathcal L}L's ball constraint is compared in EReal, so Lβ€Ύ(ρ)=βˆ’βˆž\overline{\mathcal L}(\rho)=-\inftyL(ρ)=βˆ’βˆž for ρ<0\rho<0ρ<0; the Legendre transform ranges over all real ρ\rhoρ, and the second display is stated for all real Ξ»\lambdaΞ» since the page gives no range. The page prints an unmatched bracket in the second display; the bracketing used is the only one that parses. The paper's P(X)\mathcal P(\mathcal X)P(X) restricts to finite Kantorovich cost, which Kβ€Ύc≀ρ\overline{\mathcal K}_c\le\rhoKc​≀ρ already implies.

Preamble
import Mathlib
import Definitions.Def_ModelRiskOT_Duality_extIntegral
import Definitions.Def_ShortWDRODual_MaxCost_Setting
Formal statement
namespace ShortWDRODual.MaxCost

open MeasureTheory ModelRiskOT.Duality
open scoped ENNReal

/-- Theorem 2 (p. 10): on a Polish space `𝒳` with a continuous cost `c : 𝒳 Γ— 𝒳 β†’ [0, ∞)`
vanishing on the diagonal, and for `f` satisfying Assumption 1,
`𝓛̄(ρ) = 𝔼_β„™Μ‚[sup_x {f(x) : c(XΜ‚, x) ≀ ρ}]` for every `ρ β‰₯ 0`, and
`(βˆ’π“›Μ„)*(βˆ’Ξ») = sup_{ρ β‰₯ 0} {𝔼_β„™Μ‚[sup_x {f(x) : c(XΜ‚, x) ≀ ρ}] βˆ’ λρ}` for every `Ξ»`. -/
theorem theorem_2 {X : Type*} [TopologicalSpace X] [PolishSpace X] [MeasurableSpace X]
    [BorelSpace X] (Phat : Measure X) [IsProbabilityMeasure Phat]
    (f : X β†’ ℝ) (hf : Measurable f) (hfint : βŠ₯ < extIntegral Phat (fun x => (f x : EReal)))
    (c : X β†’ X β†’ ℝ) (hc : Continuous (fun q : X Γ— X => c q.1 q.2))
    (hcnn : βˆ€ x y, 0 ≀ c x y) (hc0 : βˆ€ x, c x x = 0) :
    (βˆ€ ρ : ℝ, 0 ≀ ρ β†’ robustLossMax c f Phat ρ = extIntegral Phat (localSup c f ρ)) ∧
    (βˆ€ lam : ℝ, ShortWDRODual.Legendre.legendre (fun ρ => - robustLossMax c f Phat ρ) (-lam) =
      ⨆ (ρ : ℝ) (_ : 0 ≀ ρ),
        extIntegral Phat (localSup c f ρ) - ((lam * ρ : ℝ) : EReal)) := by sorry

end ShortWDRODual.MaxCost
Source
Zhang, Yang & Gao, A Short and General Duality Proof for Wasserstein Distributionally Robust Optimization, arXiv:2205.00362v4, Theorem 2, p. 10 (PDF p. 10); definitions Β§5.1, p. 9
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