Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2 — Kantorovich-Rubinstein theorem

Proved
WassersteinDRO.Duality.kantorovich_rubinstein

by mikedeng1 · Sep 21, 2026 · Mathlib 0df444a (Lean v4.33.1)

dualityoptimal-transportoptimizationprobability

The type-1 Wasserstein distance between two Borel probability measures Q,Q′Q, Q'Q,Q′ on EEE admits the dual representation

W1(Q,Q′)=sup⁡Lip(φ)≤1∫Eφ dQ−∫Eφ dQ′,W_1(Q,Q') = \sup_{\mathrm{Lip}(\varphi)\le 1} \int_E \varphi\,dQ - \int_E \varphi\,dQ',W1​(Q,Q′)=Lip(φ)≤1sup​∫E​φdQ−∫E​φdQ′,

the supremum ranging over real-valued functions φ\varphiφ with Lipschitz modulus at most 111 that are integrable under both QQQ and Q′Q'Q′. Both sides are compared in the extended reals for the same reason as Theorem 1. The paper attributes the compactly-supported case to Kantorovich and Rubinstein and the general case to Villani, [108, Remark 6.5].

Preamble
import Mathlib
import Definitions.Def_WassersteinDRO_Duality_wassersteinDistance
import Definitions.Def_WassersteinDRO_Duality_lipschitzModulus

open MeasureTheory
Formal statement
namespace WassersteinDRO.Duality

/-- Theorem 2 (Kantorovich-Rubinstein theorem), Kuhn et al. 2019, p. 4: the type-1
Wasserstein distance between `Q` and `Q'` admits the dual representation
`W1(Q,Q') = sup_{Lip(φ)≤1} ∫φ dQ - ∫φ dQ'`. The `Integrable` guards on `φ` under `Q` and
`Q'` make the two Bochner integrals meaningful for every candidate `φ` in the supremum,
rather than relying on Mathlib's junk value `0` for a non-integrable integrand; both sides
are cast to `EReal` for the same reason as in Theorem 1. -/
theorem kantorovich_rubinstein {E : Type*} [MeasurableSpace E] [NormedAddCommGroup E]
    [NormedSpace ℝ E] [BorelSpace E] [SecondCountableTopology E]
    (Q Q' : Measure E) [IsProbabilityMeasure Q] [IsProbabilityMeasure Q'] :
    ((wassersteinDistance 1 Q Q' : ENNReal) : EReal) =
      ⨆ (φ : E → ℝ) (_ : lipschitzModulus φ ≤ 1)
        (_ : Integrable φ Q) (_ : Integrable φ Q'),
        ((∫ x, φ x ∂Q - ∫ x, φ x ∂Q' : ℝ) : EReal) := by sorry

end WassersteinDRO.Duality
Source
Kuhn et al. 2019, Theorem 2, p. 4, citing Kantorovich & Rubinstein [51] (compactly supported case) and Villani, Optimal Transport: Old and New, [108, Remark 6.5] (general case)
Human review
  • Endorsed by Shuze Chen · Sep 28, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 28, 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