Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 1, p. 4 — (P-soft) = sup over γ ∈ Γ_ℙ̂ of 𝔼_γ[f(X) − λc(X̂, X)] for λ ≥ 0

Proved
ShortWDRODual.Legendre.softValue_eq_couplingSup

by tianyipeng · Nov 4, 2026 · Mathlib 0df444a (Lean v4.33.1)

distributionally-robust-optimizationoptimal-transportstrong-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 measurable 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 cost with c(x,x)=0c(x,x)=0c(x,x)=0 (Assumption 1). Let Pˉ\bar{\mathcal P}Pˉ be the set of probability measures P\mathbb PP with Kc(P^,P)<∞\mathcal K_c(\widehat{\mathbb P},\mathbb P)<\inftyKc​(P,P)<∞, and ΓP^\Gamma_{\widehat{\mathbb P}}ΓP​ the probability measures on X×X\mathcal X\times\mathcal XX×X with first marginal P^\widehat{\mathbb P}P. Then for every λ≥0\lambda\ge0λ≥0,

sup⁡P∈Pˉ{EX∼P[f(X)]−λ Kc(P^,P)}=sup⁡γ∈ΓP^E(X^,X)∼γ[f(X)−λc(X^,X)],\sup_{\mathbb P\in\bar{\mathcal P}}\Big\{\mathbb E_{X\sim\mathbb P}[f(X)]-\lambda\,\mathcal K_c(\widehat{\mathbb P},\mathbb P)\Big\}=\sup_{\gamma\in\Gamma_{\widehat{\mathbb P}}}\mathbb E_{(\widehat X,X)\sim\gamma}\big[f(X)-\lambda c(\widehat X,X)\big],P∈Pˉsup​{EX∼P​[f(X)]−λKc​(P,P)}=γ∈ΓP​sup​E(X,X)∼γ​[f(X)−λc(X,X)],

with the convention 0⋅∞=∞0\cdot\infty=\infty0⋅∞=∞ in λc\lambda cλc.

This is the second chain of equalities in the proof of Theorem 1 (p. 4), obtained by unfolding the Kantorovich cost Kc(P^,P)=inf⁡γ∈Γ(P^,P)Eγ[c]\mathcal K_c(\widehat{\mathbb P},\mathbb P)=\inf_{\gamma\in\Gamma(\widehat{\mathbb P},\mathbb P)}\mathbb E_\gamma[c]Kc​(P,P)=infγ∈Γ(P,P)​Eγ​[c] in the soft-penalty value (P-soft). Combined with (−L)∗(−λ)=(P-soft)(-\mathcal L)^*(-\lambda)=\text{(P-soft)}(−L)∗(−λ)=(P-soft) it yields the coupling representation of the conjugate used in both displays of Theorem 1. The case λ=0\lambda=0λ=0 is included because the second display of Theorem 1 minimizes over λ≥0\lambda\ge0λ≥0.

Formalization note. Expectations are extIntegral (∫φ+−∫φ−\int\varphi^+-\int\varphi^-∫φ+−∫φ− with ∞−∞=−∞\infty-\infty=-\infty∞−∞=−∞), the cost λ Kc\lambda\,\mathcal K_cλKc​ on Pˉ\bar{\mathcal P}Pˉ is the real product, and λc\lambda cλc inside the coupling expectation is lamMul (+∞+\infty+∞ where c=∞c=\inftyc=∞, also for λ=0\lambda=0λ=0).

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 softValue_eq_couplingSup {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 : ℝ) (hlam : 0 ≤ lam) :
    softValue c f Phat lam = ⨆ γ ∈ couplingsFst Phat, extIntegral γ (phiLam c f lam) := by sorry

end ShortWDRODual.Legendre
Source
Zhang, Yang & Gao, A Short and General Duality Proof for Wasserstein Distributionally Robust Optimization, arXiv:2205.00362v4, proof of Theorem 1, p. 4, second display chain ("Using the definition of the Kantorovich transport cost (1), it follows that ...")

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