Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Transference plans, ccc-cyclical monotonicity, ccc-conjugates, ccc-concavity, ccc-subdifferentials

Definition
MongeKantorovichYao_Defs

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

measure-theoryoptimal-transport

Basic objects of Monge–Kantorovich optimal transport, following Sections 2.2 and 4 of the source. Throughout, XXX and YYY are measurable spaces and c:X×Y→Rc : X\times Y\to\mathbb Rc:X×Y→R is a cost function.

  1. Transference plans (Section 2.2, Definition 4.13). For measures μ\muμ on XXX and ν\nuν on YYY, Π(μ,ν)\Pi(\mu,\nu)Π(μ,ν) is the set of probability measures π\piπ on X×YX\times YX×Y whose marginals are μ\muμ and ν\nuν:
(prX)#π=μ,(prY)#π=ν,(\mathrm{pr}_X)_\#\pi=\mu,\qquad (\mathrm{pr}_Y)_\#\pi=\nu,(prX​)#​π=μ,(prY​)#​π=ν,

equivalently π(S×Y)=μ(S)\pi(S\times Y)=\mu(S)π(S×Y)=μ(S) and π(X×T)=ν(T)\pi(X\times T)=\nu(T)π(X×T)=ν(T) for measurable S,TS,TS,T. For sets of measures MMM on XXX and NNN on YYY, Π(M,N)\Pi(M,N)Π(M,N) is the set of probability measures on X×YX\times YX×Y whose XXX-marginal lies in MMM and whose YYY-marginal lies in NNN (Lemma 4.16).

  1. ccc-cyclical monotonicity (Definition 4.2). A set Γ⊆X×Y\Gamma\subseteq X\times YΓ⊆X×Y is ccc-cyclically monotone if for every N≥1N\ge 1N≥1 and all (x1,y1),…,(xN,yN)∈Γ(x_1,y_1),\dots,(x_N,y_N)\in\Gamma(x1​,y1​),…,(xN​,yN​)∈Γ,
∑i=1Nc(xi,yi)≤∑i=1Nc(xi,yi+1),yN+1=y1.\sum_{i=1}^N c(x_i,y_i)\le\sum_{i=1}^N c(x_i,y_{i+1}),\qquad y_{N+1}=y_1 .i=1∑N​c(xi​,yi​)≤i=1∑N​c(xi​,yi+1​),yN+1​=y1​.

A plan π\piπ is ccc-cyclically monotone if it is concentrated on such a set: π(Γc)=0\pi(\Gamma^{c})=0π(Γc)=0 for some ccc-cyclically monotone Γ\GammaΓ (Definition 4.15).

  1. ccc-conjugate (Definition 4.19). For ψ:X→R‾\psi : X\to\overline{\mathbb R}ψ:X→R, ψc(y)=inf⁡x∈X(c(x,y)−ψ(x))\psi^c(y)=\inf_{x\in X}\big(c(x,y)-\psi(x)\big)ψc(y)=infx∈X​(c(x,y)−ψ(x)); symmetrically, for φ:Y→R‾\varphi : Y\to\overline{\mathbb R}φ:Y→R, φc(x)=inf⁡y∈Y(c(x,y)−φ(y))\varphi^c(x)=\inf_{y\in Y}\big(c(x,y)-\varphi(y)\big)φc(x)=infy∈Y​(c(x,y)−φ(y)).

  2. ccc-concavity (Definition 4.18). ψ:X→R\psi : X\to\mathbb Rψ:X→R is ccc-concave if there is φ:Y→R\varphi : Y\to\mathbb Rφ:Y→R with ψ(x)=inf⁡y∈Y(c(x,y)−φ(y))\psi(x)=\inf_{y\in Y}\big(c(x,y)-\varphi(y)\big)ψ(x)=infy∈Y​(c(x,y)−φ(y)) for every xxx.

  3. ccc-subdifferential (Definition 4.20). ∂cψ={(x,y):ψc(y)+ψ(x)=c(x,y)}\partial_c\psi=\{(x,y) : \psi^c(y)+\psi(x)=c(x,y)\}∂c​ψ={(x,y):ψc(y)+ψ(x)=c(x,y)}.

These are the notions in which the Monge–Kantorovich duality theorem and its proof are phrased.

Formalization Note Infima defining ccc-conjugates are taken in the extended reals R‾=[−∞,+∞]\overline{\mathbb R}=[-\infty,+\infty]R=[−∞,+∞], so they always exist and no default value is substituted. In the cyclic-monotonicity condition the NNN points are indexed cyclically by Z/NZ\mathbb Z/N\mathbb ZZ/NZ. Marginals are pushforwards along the coordinate projections.

Definition code
import Mathlib

open MeasureTheory

namespace MongeKantorovichYao

variable {X Y : Type*} [MeasurableSpace X] [MeasurableSpace Y]

/-- Section 2.2: the set `Π(μ, ν)` of transference plans (couplings) between `μ` and `ν`:
probability measures `π` on `X × Y` with `π(S × Y) = μ(S)` and `π(X × T) = ν(T)`, i.e. whose
marginals (Definition 4.13, pushforwards along the projections) are `μ` and `ν`. -/
def transferencePlans (μ : Measure X) (ν : Measure Y) : Set (Measure (X × Y)) :=
  {π | IsProbabilityMeasure π ∧ π.map Prod.fst = μ ∧ π.map Prod.snd = ν}

/-- Lemma 4.16: `Π(M, N)`, the transference plans whose marginals lie in `M` and `N`. -/
def transferencePlansOf (M : Set (Measure X)) (N : Set (Measure Y)) : Set (Measure (X × Y)) :=
  {π | IsProbabilityMeasure π ∧ π.map Prod.fst ∈ M ∧ π.map Prod.snd ∈ N}

/-- Definition 4.2 (sets): `Γ ⊆ X × Y` is `c`-cyclically monotone if for every `N ≥ 1` and all
`(x₁, y₁), …, (x_N, y_N) ∈ Γ`, `∑ c(xᵢ, yᵢ) ≤ ∑ c(xᵢ, yᵢ₊₁)` with `y_{N+1} = y₁`.
The points are indexed by `Fin (N + 1)`, whose addition wraps around, so `i + 1` is the cyclic
successor. -/
def IsCCyclicallyMonotone (c : X × Y → ℝ) (Γ : Set (X × Y)) : Prop :=
  ∀ (N : ℕ) (p : Fin (N + 1) → X × Y), (∀ i, p i ∈ Γ) →
    ∑ i, c (p i) ≤ ∑ i, c ((p i).1, (p (i + 1)).2)

/-- Definition 4.2 (plans), with Definition 4.15: a transference plan is `c`-cyclically
monotone if it is concentrated on (gives zero mass to the complement of) a `c`-cyclically
monotone set. -/
def IsCCyclicallyMonotonePlan (c : X × Y → ℝ) (π : Measure (X × Y)) : Prop :=
  ∃ Γ : Set (X × Y), IsCCyclicallyMonotone c Γ ∧ π Γᶜ = 0

/-- Definition 4.19: the `c`-conjugate `ψᶜ(y) = inf_{x ∈ X} (c(x, y) - ψ(x))`, taken in the
extended reals so that the infimum always exists. -/
noncomputable def cConjugate (c : X × Y → ℝ) (ψ : X → EReal) (y : Y) : EReal :=
  ⨅ x, (c (x, y) : EReal) - ψ x

/-- The mirror-image transform of a function on `Y`:
`φᶜ(x) = inf_{y ∈ Y} (c(x, y) - φ(y))` (used to state `(ψᶜ)ᶜ = ψ`, Theorem 4.25). -/
noncomputable def cConjugate' (c : X × Y → ℝ) (φ : Y → EReal) (x : X) : EReal :=
  ⨅ y, (c (x, y) : EReal) - φ y

/-- Definition 4.18: `ψ : X → ℝ` is `c`-concave if `ψ(x) = inf_{y ∈ Y} (c(x, y) - φ(y))` for all
`x`, for some `φ : Y → ℝ` (infimum taken in the extended reals). -/
def IsCConcave (c : X × Y → ℝ) (ψ : X → ℝ) : Prop :=
  ∃ φ : Y → ℝ, ∀ x, (ψ x : EReal) = cConjugate' c (fun y => (φ y : EReal)) x

/-- Definition 4.20: the `c`-subdifferential `∂_c ψ = {(x, y) | ψᶜ(y) + ψ(x) = c(x, y)}`. -/
def cSubdifferential (c : X × Y → ℝ) (ψ : X → ℝ) : Set (X × Y) :=
  {p | cConjugate c (fun x => (ψ x : EReal)) p.2 + (ψ p.1 : EReal) = (c p : EReal)}

end MongeKantorovichYao
Source
Colin Yao, *Monge–Kantorovich and Transportation Theory* (paper dated September 10, 2023), Section 2.2 (p. 4), Definitions 4.2 (p. 7), 4.13, 4.15 (p. 10), 4.18 (p. 12), 4.19, 4.20 (p. 13); Lemma 4.16 (p. 10)
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).

The file fixes a namespace and, for arbitrary types X,YX,YX,Y carrying σ-algebras, defines the following (no topology is assumed at this level).

  1. Π(μ,ν)\Pi(\mu,\nu)Π(μ,ν), for measures μ\muμ on XXX, ν\nuν on YYY: the set of measures π\piπ on X×YX\times YX×Y (product σ-algebra) such that π\piπ is a probability measure, the pushforward of π\piπ along the first projection equals μ\muμ, and the pushforward along the second projection equals ν\nuν. (If μ\muμ or ν\nuν is not a probability measure, the set is empty.)

  2. Π(M,N)\Pi(M,N)Π(M,N), for sets MMM of measures on XXX and NNN of measures on YYY: probability measures on X×YX\times YX×Y whose first marginal is an element of MMM and second marginal an element of NNN.

  3. A set Γ⊆X×Y\Gamma\subseteq X\times YΓ⊆X×Y is ccc-cyclically monotone (for c:X×Y→Rc : X\times Y\to\mathbb Rc:X×Y→R) iff for every natural number NNN and every family p0,…,pNp_0,\dots,p_Np0​,…,pN​ of N+1N+1N+1 points of Γ\GammaΓ (repetitions allowed), writing pi=(xi,yi)p_i=(x_i,y_i)pi​=(xi​,yi​) and indices modulo N+1N+1N+1,

∑i=0Nc(xi,yi)≤∑i=0Nc(xi,yi+1).\sum_{i=0}^{N} c(x_i,y_i)\le\sum_{i=0}^{N} c(x_i,y_{i+1}).i=0∑N​c(xi​,yi​)≤i=0∑N​c(xi​,yi+1​).

So cycles of every length ≥1\ge 1≥1 are covered; length 111 is trivially true. The empty set qualifies.

  1. A measure π\piπ on X×YX\times YX×Y is a ccc-cyclically monotone plan iff there exists a ccc-cyclically monotone set Γ\GammaΓ (not required to be measurable) with π(Γc)=0\pi(\Gamma^{c})=0π(Γc)=0 (outer measure if Γc\Gamma^cΓc is not measurable). Nothing about marginals or total mass is required here.

  2. For ψ:X→[−∞,∞]\psi : X\to[-\infty,\infty]ψ:X→[−∞,∞], ψc(y)=inf⁡x∈X(c(x,y)−ψ(x))\psi^c(y)=\inf_{x\in X}\big(c(x,y)-\psi(x)\big)ψc(y)=infx∈X​(c(x,y)−ψ(x)) in [−∞,∞][-\infty,\infty][−∞,∞] (equal to +∞+\infty+∞ if XXX is empty). For φ:Y→[−∞,∞]\varphi : Y\to[-\infty,\infty]φ:Y→[−∞,∞], the mirror transform φc(x)=inf⁡y∈Y(c(x,y)−φ(y))\varphi^{c}(x)=\inf_{y\in Y}\big(c(x,y)-\varphi(y)\big)φc(x)=infy∈Y​(c(x,y)−φ(y)). Extended-real subtraction convention: a−(+∞)=−∞a-(+\infty)=-\inftya−(+∞)=−∞ and a−(−∞)=+∞a-(-\infty)=+\inftya−(−∞)=+∞ for real aaa.

  3. ψ:X→R\psi : X\to\mathbb Rψ:X→R is ccc-concave iff there is a real-valued φ:Y→R\varphi : Y\to\mathbb Rφ:Y→R such that for every xxx, the extended-real infimum inf⁡y∈Y(c(x,y)−φ(y))\inf_{y\in Y}(c(x,y)-\varphi(y))infy∈Y​(c(x,y)−φ(y)) equals the real number ψ(x)\psi(x)ψ(x) (in particular this infimum must be finite for every xxx).

  4. The ccc-subdifferential of a real function ψ\psiψ on XXX is the set of (x,y)(x,y)(x,y) with ψc(y)+ψ(x)=c(x,y)\psi^c(y)+\psi(x)=c(x,y)ψc(y)+ψ(x)=c(x,y) in the extended reals, where ψc\psi^cψc is computed from ψ\psiψ viewed as extended-real-valued.

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