Transference plans, -cyclical monotonicity, -conjugates, -concavity, -subdifferentials
DefinitionMongeKantorovichYao_DefsBasic objects of Monge–Kantorovich optimal transport, following Sections 2.2 and 4 of the source. Throughout, and are measurable spaces and is a cost function.
- Transference plans (Section 2.2, Definition 4.13). For measures on and on , is the set of probability measures on whose marginals are and :
equivalently and for measurable . For sets of measures on and on , is the set of probability measures on whose -marginal lies in and whose -marginal lies in (Lemma 4.16).
- -cyclical monotonicity (Definition 4.2). A set is -cyclically monotone if for every and all ,
A plan is -cyclically monotone if it is concentrated on such a set: for some -cyclically monotone (Definition 4.15).
-
-conjugate (Definition 4.19). For , ; symmetrically, for , .
-
-concavity (Definition 4.18). is -concave if there is with for every .
-
-subdifferential (Definition 4.20). .
These are the notions in which the Monge–Kantorovich duality theorem and its proof are phrased.
Formalization Note Infima defining -conjugates are taken in the extended reals , so they always exist and no default value is substituted. In the cyclic-monotonicity condition the points are indexed cyclically by . Marginals are pushforwards along the coordinate projections.
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
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 carrying σ-algebras, defines the following (no topology is assumed at this level).
-
, for measures on , on : the set of measures on (product σ-algebra) such that is a probability measure, the pushforward of along the first projection equals , and the pushforward along the second projection equals . (If or is not a probability measure, the set is empty.)
-
, for sets of measures on and of measures on : probability measures on whose first marginal is an element of and second marginal an element of .
-
A set is -cyclically monotone (for ) iff for every natural number and every family of points of (repetitions allowed), writing and indices modulo ,
So cycles of every length are covered; length is trivially true. The empty set qualifies.
-
A measure on is a -cyclically monotone plan iff there exists a -cyclically monotone set (not required to be measurable) with (outer measure if is not measurable). Nothing about marginals or total mass is required here.
-
For , in (equal to if is empty). For , the mirror transform . Extended-real subtraction convention: and for real .
-
is -concave iff there is a real-valued such that for every , the extended-real infimum equals the real number (in particular this infimum must be finite for every ).
-
The -subdifferential of a real function on is the set of with in the extended reals, where is computed from viewed as extended-real-valued.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.