Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 4.1 — Monge–Kantorovich duality

Proved
MongeKantorovichYao.monge_kantorovich_duality

by LG · Sep 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

dualitymeasure-theoryoptimal-transport

Let XXX and YYY be Polish spaces equipped with their Borel σ-algebras, and let μ\muμ and ν\nuν be Borel probability measures on XXX and YYY. Let c:X×Y→[0,∞)c : X\times Y\to[0,\infty)c:X×Y→[0,∞) be a continuous nonnegative cost function, and let Π(μ,ν)\Pi(\mu,\nu)Π(μ,ν) be the set of transference plans (probability measures on X×YX\times YX×Y with marginals μ\muμ and ν\nuν). Then:

  1. the Kantorovich problem has a minimizer: there is π⋆∈Π(μ,ν)\pi^\star\in\Pi(\mu,\nu)π⋆∈Π(μ,ν) with ∫c dπ⋆≤∫c dπ\int c\,d\pi^\star\le\int c\,d\pi∫cdπ⋆≤∫cdπ for every π∈Π(μ,ν)\pi\in\Pi(\mu,\nu)π∈Π(μ,ν);
  2. the minimal cost equals the dual value:
min⁡π∈Π(μ,ν)∫X×Yc(x,y) dπ(x,y)=sup⁡{∫Xψ dμ+∫Yφ dν},\min_{\pi\in\Pi(\mu,\nu)}\int_{X\times Y}c(x,y)\,d\pi(x,y)=\sup\Big\{\int_X\psi\,d\mu+\int_Y\varphi\,d\nu\Big\},π∈Π(μ,ν)min​∫X×Y​c(x,y)dπ(x,y)=sup{∫X​ψdμ+∫Y​φdν},

where the supremum runs over all pairs (ψ,φ)∈Cb(X)×Cb(Y)(\psi,\varphi)\in C_b(X)\times C_b(Y)(ψ,φ)∈Cb​(X)×Cb​(Y) of bounded continuous functions with ψ(x)+φ(y)≤c(x,y)\psi(x)+\varphi(y)\le c(x,y)ψ(x)+φ(y)≤c(x,y) for all x∈Xx\in Xx∈X, y∈Yy\in Yy∈Y.

This is the central result of the source: the minimal total transportation cost equals the maximal revenue obtainable from competitive pickup and delivery prices.

Formalization Note Since c≥0c\ge 0c≥0 is not assumed integrable, the transport cost ∫c dπ\int c\,d\pi∫cdπ is the integral of a nonnegative function with values in [0,∞][0,\infty][0,∞], and both sides of the equality are compared in the extended reals, so the case where every plan has infinite cost is included (the equality then says the dual supremum is +∞+\infty+∞). Polish spaces with Borel σ-algebras are the standing setting of Section 4.

Preamble
import Mathlib
import Definitions.Def_MongeKantorovichYao_Defs

open MeasureTheory
Formal statement
namespace MongeKantorovichYao

theorem monge_kantorovich_duality {X Y : Type*}
    [TopologicalSpace X] [PolishSpace X] [MeasurableSpace X] [BorelSpace X]
    [TopologicalSpace Y] [PolishSpace Y] [MeasurableSpace Y] [BorelSpace Y]
    (μ : Measure X) (ν : Measure Y) [IsProbabilityMeasure μ] [IsProbabilityMeasure ν]
    (c : X × Y → ℝ) (hc_cont : Continuous c) (hc_nonneg : ∀ p, 0 ≤ c p) :
    (∃ π ∈ transferencePlans μ ν, ∀ π' ∈ transferencePlans μ ν,
        ∫⁻ p, ENNReal.ofReal (c p) ∂π ≤ ∫⁻ p, ENNReal.ofReal (c p) ∂π') ∧
    (((⨅ π ∈ transferencePlans μ ν, ∫⁻ p, ENNReal.ofReal (c p) ∂π : ENNReal)) : EReal) =
      ⨆ (ψ : BoundedContinuousFunction X ℝ) (φ : BoundedContinuousFunction Y ℝ)
        (_ : ∀ x y, ψ x + φ y ≤ c (x, y)),
        (((∫ x, ψ x ∂μ) + (∫ y, φ y ∂ν) : ℝ) : EReal) := by sorry

end MongeKantorovichYao
Source
Colin Yao, *Monge–Kantorovich and Transportation Theory* (paper dated September 10, 2023), p. 6, Theorem 4.1 (statement of the Monge–Kantorovich theorem); cf. eq. (2.1), p. 4
Read-back

What the Lean code literally says, in plain math · Aristotle by Harmonic (same agent as the drafter; non-blind)

Non-blind read-back — not independent testimony. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statement, with full knowledge of the source paper and of the intended meaning. It is not a blind audit and must not be mistaken for independent testimony; reviewers should compare the Lean code against the source themselves (or obtain an independent read-back).

Data and hypotheses. Types XXX and YYY, each a topological space that is Polish (separable and completely metrizable), with a σ-algebra equal to its Borel σ-algebra. Measures μ\muμ on XXX and ν\nuν on YYY, both probability measures. A function c:X×Y→Rc : X\times Y\to\mathbb Rc:X×Y→R that is continuous (product topology) and satisfies c(p)≥0c(p)\ge 0c(p)≥0 for every ppp.

Write Π(μ,ν)\Pi(\mu,\nu)Π(μ,ν) for the set of probability measures π\piπ on X×YX\times YX×Y whose pushforwards under the two coordinate projections are exactly μ\muμ and ν\nuν, and write C(π)=∫X×Ymax⁡(c,0) dπ∈[0,∞]C(\pi)=\int_{X\times Y}\max(c,0)\,d\pi\in[0,\infty]C(π)=∫X×Y​max(c,0)dπ∈[0,∞] for the [0,∞][0,\infty][0,∞]-valued (lower Lebesgue) integral — equal to the integral of ccc because c≥0c\ge 0c≥0, and possibly +∞+\infty+∞.

Conclusion. Both of the following hold:

  1. There is π∈Π(μ,ν)\pi\in\Pi(\mu,\nu)π∈Π(μ,ν) such that C(π)≤C(π′)C(\pi)\le C(\pi')C(π)≤C(π′) for every π′∈Π(μ,ν)\pi'\in\Pi(\mu,\nu)π′∈Π(μ,ν).
  2. The infimum inf⁡π∈Π(μ,ν)C(π)\inf_{\pi\in\Pi(\mu,\nu)}C(\pi)infπ∈Π(μ,ν)​C(π), computed in [0,∞][0,\infty][0,∞] and then viewed as an element of [−∞,+∞][-\infty,+\infty][−∞,+∞], equals
sup⁡{∫Xψ dμ+∫Yφ dν : ψ∈Cb(X), φ∈Cb(Y), ψ(x)+φ(y)≤c(x,y) ∀x∈X, y∈Y},\sup\Big\{\int_X\psi\,d\mu+\int_Y\varphi\,d\nu\ :\ \psi\in C_b(X),\ \varphi\in C_b(Y),\ \psi(x)+\varphi(y)\le c(x,y)\ \forall x\in X,\ y\in Y\Big\},sup{∫X​ψdμ+∫Y​φdν : ψ∈Cb​(X), φ∈Cb​(Y), ψ(x)+φ(y)≤c(x,y) ∀x∈X, y∈Y},

the supremum taken in [−∞,+∞][-\infty,+\infty][−∞,+∞] over all pairs of bounded continuous real functions satisfying the pointwise constraint for every (x,y)(x,y)(x,y); the integrals are ordinary (Bochner) integrals of bounded continuous functions against probability measures, hence finite real numbers.

Edge cases. The pair ψ=φ=0\psi=\varphi=0ψ=φ=0 is always admissible since c≥0c\ge 0c≥0, so the supremum is ≥0\ge 0≥0. If every plan has infinite cost, part 2 asserts the dual supremum is +∞+\infty+∞. XXX and YYY are necessarily nonempty because they carry probability measures. Part 1 asserts (rather than assumes) that Π(μ,ν)\Pi(\mu,\nu)Π(μ,ν) is nonempty.

Human review
  • Endorsed by Shuze Chen · Sep 30, 2026

    Confirmed by the moderator at approval.

  • Endorsed by LG · Sep 30, 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