The transport cost of two measures #
Given a cost c : X × Y → ℝ≥0∞, the transport cost of μ and ν is the infimum of
∫⁻ z, c z ∂π over the couplings π of μ and ν. This is the value of the primal
Kantorovich problem, and it is the root definition of optimal transport: every later notion —
Wasserstein distance, Kantorovich duality, transport maps — is a statement about this number or
about the plans that attain it.
The definition is made for arbitrary measures on arbitrary measurable spaces, with an
extended-nonnegative cost integrated by lintegral. Nothing is assumed about topology,
finiteness, or normalisation, and no compactness is built in. An empty feasible set — for
instance measures of different total mass — gives the value ∞, as does a cost that is too
large on every plan; the two are separated by
TauCeti.exists_isCoupling_of_transportCost_ne_top.
Main definitions #
TauCeti.transportCost c μ ν— the infimum of∫⁻ z, c z ∂πover the couplingsπofμandν;TauCeti.IsOptimalCoupling c π μ ν— the predicate cutting out the optimal plans:πis a coupling ofμandνwhose cost istransportCost c μ ν.
Main statements #
TauCeti.transportCost_le_lintegralandTauCeti.le_transportCost— the two halves of the universal property of the infimum, withTauCeti.transportCost_lt_iffits order-theoretic restatement;TauCeti.transportCost_mono,TauCeti.transportCost_congr,TauCeti.transportCost_const,TauCeti.transportCost_const_mulandTauCeti.transportCost_add_split— monotonicity in the cost, invariance under a change of cost that is a.e. invisible to every feasible plan, the value of a constant cost, positive scaling, and the effect of adding integrable terms depending on one variable each;TauCeti.transportCost_comp_swap,TauCeti.transportCost_commandTauCeti.transportCost_comp_prodMap— functoriality: exchanging the two factors, symmetry for a symmetric cost, and invariance under measurable equivalences of the two factors;TauCeti.transportCost_dirac_left,TauCeti.transportCost_dirac_rightandTauCeti.transportCost_dirac_dirac— the exact value when either marginal is a Dirac measure, where the plan is unique;TauCeti.isOptimalCoupling_iff— optimality is minimality among feasible plans, so it does not depend on the valuetransportCost c μ νbeing finite, with the left and right Dirac lemmas giving the first families of optimal plans;TauCeti.transportCost_le_lintegral_of_hasLaw— the Monge-to-Kantorovich inequality: the transport cost ofμandνis at most the cost∫⁻ x, c (x, T x) ∂μof any transport mapTfromμtoν, withTauCeti.isOptimalCoupling_graphPlan_iffits equality case.
Implementation notes #
The infimum is written as an iterated ⨅ over plans and over proofs of TauCeti.IsCoupling,
so that it is ∞ on an empty feasible set with no case split, and so that
TauCeti.transportCost_le_lintegral is iInf₂_le.
Invariance of the transport cost under a change of the cost function needs the two costs to
agree a.e. for every feasible plan, not merely μ.prod ν-a.e.: a coupling can be singular
with respect to the product measure — the diagonal plan of μ with itself on a diffuse μ is —
so a μ.prod ν-null set can carry all the mass of some competitor. This is why
TauCeti.transportCost_congr quantifies over plans.
Measurability of the cost is assumed only where it is used, namely in the theorems that move an
integral along a pushforward (TauCeti.transportCost_comp_swap,
TauCeti.transportCost_comp_prodMap and the Dirac formulas). The order-theoretic API needs
none.
The Monge-to-Kantorovich inequality is a statement about the transport cost, so it is stated
here; the graph plan that witnesses it and the change of variables it uses come from
TauCeti/MeasureTheory/OptimalTransport/GraphPlan/Basic.lean, which is below this module. Its
inequality half needs no measurability of the cost at all, since only one half of the change of
variables, MeasureTheory.lintegral_map_le, is used.
This supplies the nonnegative-cost interface from Layer 1, item 1 of the optimal-transport
roadmap. The parallel signed EReal interface for costs bounded below by an integrable split
function is a separate definition family and is not part of this module.
References #
- C. Villani, Topics in Optimal Transportation, Graduate Studies in Mathematics 58, 2003,
§1.1.1, where "Kantorovich's mass transportation problem consists in minimizing the linear
functional
π ↦ ∫ c dπ" over the transference plans. Villani takesμandνto be probability measures andcnonnegative measurable;TauCeti.transportCostdrops the normalisation and readscintoℝ≥0∞, so an infeasible pair simply gets the value∞.
The transport cost of μ and ν for the cost function c: the infimum of ∫⁻ z, c z ∂π
over the couplings π of μ and ν. It is ∞ when μ and ν have no coupling at all.
Equations
- TauCeti.transportCost c μ ν = ⨅ (π : MeasureTheory.Measure (X × Y)), ⨅ (_ : TauCeti.IsCoupling π μ ν), ∫⁻ (z : X × Y), c z ∂π
Instances For
The transport cost as the infimum of the costs of all feasible plans.
Every coupling bounds the transport cost from above.
A bound valid on every coupling bounds the transport cost from below.
The transport cost is below a threshold exactly when some coupling is.
Measures with no coupling — for instance, by TauCeti.exists_isCoupling_iff, a finite
measure and a measure of a different total mass — have transport cost ∞.
A finite measure and a measure of a different total mass have transport cost ∞.
A finite transport cost is witnessed by a coupling. The converse fails: a coupling of
infinite cost leaves the transport cost ∞, which is why this is not stated as an
iff with TauCeti.transportCost_eq_top_of_not_exists_isCoupling.
The transport cost is monotone in the cost function.
Two costs that agree almost everywhere for every feasible plan have the same transport cost.
Agreeing μ.prod ν-almost everywhere is not enough: a coupling may be singular with respect
to the product measure.
A constant cost has transport cost that constant times the total mass, as soon as some coupling exists.
The zero cost has zero transport cost, as soon as some coupling exists. Feasibility is
needed: with no coupling the value is ∞. This is also why TauCeti.transportCost_const_mul
excludes the scalar 0, for which its right-hand side would read 0 * ∞ = 0.
Scaling the cost by a nonzero finite constant scales the transport cost.
The cost of a fixed plan splits off the terms depending on one variable each: those contribute the two marginal integrals, which do not depend on the plan.
Adding to the cost a term in the first variable and a term in the second shifts the
transport cost by the two marginal integrals. Both sides are ∞ when there is no coupling, so
no feasibility hypothesis is needed.
The transport cost is unchanged by exchanging the two factors, the cost being transported along the same exchange.
A symmetric cost gives a symmetric transport cost.
The transport cost is invariant under measurable equivalences of the two factors: pushing the marginals forward and transporting the cost back gives the same value.
A Dirac source has exactly one coupling with each probability target, so its transport cost is an integral against the target.
A Dirac target has exactly one coupling with each probability source, so its transport cost is an integral against the source.
Two Dirac measures have exactly one coupling, so their transport cost is the value of the cost at the pair.
IsOptimalCoupling c π μ ν says that the plan π solves the primal transport problem: it
couples μ and ν, and its cost is the transport cost of the pair. The optimal plans are the
set cut out by this predicate.
An optimal coupling attains the transport cost.
Instances For
An optimal coupling costs no more than any other coupling of the same pair.
Pushing an optimal coupling forward along measurable equivalences gives an optimal coupling for the pushed-forward marginals and the transported cost.
Exchanging the two coordinates of an optimal coupling gives an optimal coupling for the exchanged cost.
Optimality is minimality among the feasible plans. This form of the definition avoids the
value transportCost c μ ν, so it is the one to check when that value may be ∞.
Every coupling out of a Dirac measure is optimal, because there is only one.
Every coupling into a Dirac measure is optimal, because there is only one.
The Monge problem dominates the Kantorovich problem: the transport cost of μ and ν
is at most the cost of any transport map from μ to ν, that is, of any map whose graph plan
TauCeti.graphPlan is a coupling of the two. Only one half of the change of variables is
needed, MeasureTheory.lintegral_map_le, so the cost needs no measurability.
The graph plan of a transport map is an optimal plan exactly when the transport cost equals
the cost of the map: the equality case of TauCeti.transportCost_le_lintegral_of_hasLaw.