Brenier's theorem #
Let E be a finite-dimensional real inner product space, such as ℝⁿ, and consider the quadratic
transport cost c (x, y) = ‖x - y‖ ^ 2 / 2. Brenier's theorem says that when the source law
μ is absolutely continuous with respect to Lebesgue measure and the optimal cost is finite, the
optimal transport plan is unique and is induced by the gradient of a convex function: there is a
proper lower semicontinuous convex u : E → EReal, finite and differentiable μ-almost
everywhere, such that x ↦ ∇ u (x) pushes μ to ν and is the unique optimal transport map.
The proof avoids Kantorovich duality. The support of an optimal plan of finite cost is
c-cyclically monotone (TauCeti.IsOptimalCoupling.isCyclicallyMonotone_support), so by
Rockafellar's theorem it lies in the subdifferential graph of a Legendre–Fenchel conjugate u
(TauCeti.IsCyclicallyMonotone.exists_fenchelConjugate_innerₗ_subset_subdifferential). By
Rademacher's theorem for convex functions
(TauCeti.ae_eventually_ne_top_and_differentiableAt_toReal), u is differentiable at almost
every point of its effective domain, which contains μ-almost every point because the plan has
first marginal μ; there the subgradient is the gradient
(TauCeti.gradient_toReal_eq_of_mem_subdifferential). So the plan is the graph plan of ∇ u.
Uniqueness follows by applying this to the sum of two optimal plans, which is again optimal.
When the target ν is absolutely continuous as well, the same argument applies to the plan with
exchanged coordinates, which lies in the subdifferential graph of the Legendre–Fenchel conjugate
u⋆ by conjugate-subgradient reciprocity. So ∇ u⋆ is the optimal transport map from ν back to
μ, and the two maps are inverse to each other almost everywhere: conjugate potentials give
inverse maps.
Conversely, between finite measures with finite second moments on any real inner product space,
every plan concentrated on the subdifferential graph of a function u : E → EReal is optimal,
and so is every transport map selecting a subgradient of u almost everywhere, in particular the
gradient of a convex function. Expanding the square, the quadratic cost of a plan is a fixed
second-moment term minus its correlation ∫ ⟪x, y⟫, and on the subdifferential graph of a
Legendre–Fenchel conjugate the Fenchel–Young inequality ⟪x, y⟫ ≤ u x + u⋆ y is an equality. The
real representatives of u and u⋆ are integrable, being squeezed between affine functions and
the correlation, so integrating Fenchel–Young against any other coupling bounds its correlation
by that of the given plan. A general u is first replaced, through Rockafellar's theorem, by a
conjugate whose subdifferential graph contains its own. With the forward direction this gives the
Knott–Smith optimality criterion on separable spaces.
Absolute continuity is taken with respect to an arbitrary additive Haar measure ρ on E, which
for E = ℝⁿ covers Lebesgue measure. The real representative x ↦ (u x).toReal is the function
whose gradient is taken; where u is finite near x it agrees with u near x. The cost
‖x - y‖ ^ 2 / 2 is the normalisation of the convex-analysis bridges; its optimal plans and maps
are those of ‖x - y‖ ^ 2, whose transport cost is twice as large
(TauCeti.transportCost_const_mul).
Main statements #
TauCeti.IsOptimalCoupling.exists_support_subset_subdifferential— on any real inner product space, the support of an optimal quadratic plan of finite cost lies in the subdifferential graph of a proper lower semicontinuous convex function;TauCeti.isCyclicallyMonotone_support_of_eLpNorm_eq— a coupling realizing the quadratic Wasserstein distance between laws with finite second moments has cyclically monotone support for the cost‖x - y‖ ^ 2 / 2;TauCeti.eq_graphPlan_gradient_of_ae_mem_subdifferential— for an absolutely continuous source, a plan concentrated on the subdifferential graph of a proper lower semicontinuous convex function is the graph plan of its gradient, differentiable almost everywhere;TauCeti.IsOptimalCoupling.exists_eq_graphPlan_gradient— for an absolutely continuous source, an optimal quadratic plan of finite cost is the graph plan of the gradient of such a function, differentiable almost everywhere;TauCeti.IsOptimalCoupling.exists_eq_graphPlan_of_absolutelyContinuous— the graph-plan conclusion ofTauCeti.IsOptimalCoupling.exists_eq_graphPlan_gradientfor the costedist ^ 2of the quadratic Wasserstein distance: out of an absolutely continuous source, an optimal plan to a law at finiteW₂distance is the graph plan of a measurable map;TauCeti.map_swap_eq_graphPlan_gradient_fenchelConjugate,TauCeti.IsCoupling.gradient_fenchelConjugate_comp_gradient_ae_eq_idandTauCeti.IsCoupling.gradient_comp_gradient_fenchelConjugate_ae_eq_id— for an absolutely continuous target, the exchanged plan is the graph plan of the gradient of the conjugate potential, and the two gradients are inverse to each other almost everywhere;TauCeti.IsOptimalCoupling.unique— for an absolutely continuous source and finite optimal cost, the optimal quadratic plan is unique;TauCeti.gradient_ae_eq_gradient_of_hasLaw— uniqueness of the monotone rearrangement: two gradients of convex functions pushing an absolutely continuousμto the same law agreeμ-almost everywhere, when both laws have finite second moments;TauCeti.exists_isKantorovichOptimalTransportMap_gradient— Brenier's theorem: the gradient of a convex function is the almost everywhere unique optimal transport map, and its graph plan is the unique optimal plan;TauCeti.exists_isKantorovichOptimalTransportMap_gradient_and_gradient_fenchelConjugate— Brenier's theorem with the inverse map: when both laws are absolutely continuous, the gradients of a convex potential and of its conjugate are the optimal transport maps in the two directions, and they are inverse to each other almost everywhere;TauCeti.exists_isKantorovichOptimalTransportMap_gradient_and_mongeAmpereMeasure_eq— when both laws are absolutely continuous, the Brenier potentialuis a weak solution of its transport equation: its Monge–Ampère measure weighted byνisμ, andνis carried by the subgradient image of the interior of its effective domain;TauCeti.exists_isKantorovichOptimalTransportMap_gradient_and_mongeAmpereMeasure_eq_withDensity— when the target has densitygpositive almost everywhere on a closed convex setKcarrying it, there is a Brenier potentialuwith all its slopes inK, and it is an Aleksandrov solution:MA_u = (g ∘ ∇u)⁻¹ μ;TauCeti.exists_isKantorovichOptimalTransportMap_gradient_and_rnDeriv_ae_eq— when both laws are absolutely continuous, with densitiesg₀andg₁, the Brenier potentialusolves the Monge–Ampère equationg₀ x = g₁ (∇ u x) det (D²u x)almost everywhere, withD²uthe Alexandrov Hessian;exists_isKantorovichOptimalTransportMap_gradient_and_rnDeriv_ae_eq_map_smul_add_smul_gradient— when only the source law is absolutely continuous, with densityg₀, the interpolating mapsTₜ x = (1 - t) • x + t • ∇ u xpush it, for0 ≤ t < 1, to absolutely continuous laws with densitiesgₜ, and the Jacobian equationg₀ x = det ((1 - t) • 1 + t • D²u x) gₜ (Tₜ x)holds almost everywhere;TauCeti.transportCost_norm_sub_sq_div_two_ne_top— laws with finite second moment have finite quadratic transport cost, so Brenier's theorem applies to them;TauCeti.IsCoupling.isOptimalCoupling_of_isCyclicallyMonotone_norm_sub_sq_div_twoandTauCeti.IsCoupling.isOptimalCoupling_of_ae_mem_subdifferential— for marginals with finite second moments, a plan concentrated on a cyclically monotone set, or on the subdifferential graph of any function, is optimal;TauCeti.isKantorovichOptimalTransportMap_of_ae_mem_subdifferentialandTauCeti.isKantorovichOptimalTransportMap_gradient— the converse of Brenier's theorem: a transport map selecting subgradients of a function, such as the gradient of a convex function, is an optimal transport map;TauCeti.IsCoupling.isOptimalCoupling_iff_exists_ae_mem_subdifferential— the Knott–Smith optimality criterion: on a separable space, a plan between marginals with finite second moments is optimal exactly when it is concentrated on the subdifferential graph of a proper lower semicontinuous convex function.
References #
- M. Knott and C. S. Smith, On the optimal mapping of distributions, J. Optim. Theory Appl. 43 (1984), 39--49, for the optimality criterion.
- Y. Brenier, Polar factorization and monotone rearrangement of vector-valued functions, Comm. Pure Appl. Math. 44 (1991), 375--417.
- C. Villani, Topics in Optimal Transportation, Graduate Studies in Mathematics 58, 2003, Theorem 2.12, whose proof of the converse direction is followed here.
- R. J. McCann, Existence and uniqueness of monotone measure-preserving maps, Duke Math. J. 80 (1995), 309--323, for the route through cyclical monotonicity of the support.
The support of an optimal quadratic plan lies in a subdifferential graph. On a real inner
product space, if π is an optimal plan of finite cost for ‖x - y‖ ^ 2 / 2 between finite
measures, there is a proper (never ⊥, and finite somewhere) convex, lower semicontinuous
u : E → EReal such that every (x, y) in the support of π has y ∈ ∂u(x).
Optimal quadratic Wasserstein plans have cyclically monotone support. If π is a coupling
of a finite measure μ and a measure ν, both with finite second moments, whose quadratic cost
realizes the quadratic Wasserstein distance, then its support is cyclically monotone for the cost
‖x - y‖ ^ 2 / 2.
Reciprocity along a plan. If y ∈ ∂u(x) for π-almost every (x, y), then
x ∈ ∂u⋆(y) for almost every (y, x) of the plan with exchanged coordinates, where u⋆ is the
Legendre–Fenchel conjugate of u for the inner product.
Plans on cyclically monotone sets are optimal for the quadratic cost. Let μ and ν
be finite measures with finite second moments on a real inner product space. A coupling π of
μ and ν concentrated on a c-cyclically monotone set for the cost ‖x - y‖ ^ 2 / 2 is an
optimal plan for that cost.
Plans on subdifferential graphs are optimal for the quadratic cost. Let μ and ν be
finite measures with finite second moments on a real inner product space, and u : E → EReal
any function. A coupling π of μ and ν such that y ∈ ∂u(x) for π-almost every
(x, y) is an optimal plan for the cost ‖x - y‖ ^ 2 / 2.
Subgradient selections are optimal transport maps for the quadratic cost. Let μ and ν
be finite measures with finite second moments on a real inner product space, u : E → EReal any
function, and T a transport map from μ to ν with T x ∈ ∂u(x) for μ-almost every x.
Then T is an optimal transport map for the cost ‖x - y‖ ^ 2 / 2, attaining the Kantorovich
value.
Gradients of convex functions are optimal transport maps for the quadratic cost. Let μ
and ν be finite measures with finite second moments on a real Hilbert space, and let
u : E → EReal be convex, never ⊥, and finite with differentiable real representative at
μ-almost every point. If the gradient ∇ u pushes μ to ν, it is an optimal transport map
for the cost ‖x - y‖ ^ 2 / 2, attaining the Kantorovich value. This is the converse of Brenier's
theorem TauCeti.exists_isKantorovichOptimalTransportMap_gradient.
The Knott–Smith optimality criterion. On a separable real inner product space, a coupling
π of finite measures μ and ν with finite second moments is an optimal plan for the cost
‖x - y‖ ^ 2 / 2 exactly when there is a proper (never ⊥, and finite somewhere) convex, lower
semicontinuous u : E → EReal such that y ∈ ∂u(x) for π-almost every (x, y).
A plan on a subdifferential graph is the graph plan of the gradient. Let π be a plan
with first marginal μ on a finite-dimensional real inner product space, with μ absolutely
continuous with respect to an additive Haar measure, and let u : E → EReal be convex, lower
semicontinuous. If y ∈ ∂u(x) for π-almost every (x, y), then u is finite
near μ-almost every point with differentiable real representative there, and π is the graph
plan of the gradient of that real representative.
An optimal quadratic plan is induced by the gradient of a convex function. Let π be an
optimal plan of finite cost for ‖x - y‖ ^ 2 / 2 between finite measures μ and ν on a
finite-dimensional real inner product space, with μ absolutely continuous with respect to an
additive Haar measure. Then there is a convex, lower semicontinuous u : E → EReal that never
takes the value ⊥, is finite near μ-almost every point and has differentiable real
representative there, such that π is the graph plan of the gradient of that real representative.
The exchanged plan is the graph plan of the gradient of the conjugate. Let π be a plan
with second marginal ν on a finite-dimensional real inner product space, with ν absolutely
continuous with respect to an additive Haar measure, and let u : E → EReal be any function such
that y ∈ ∂u(x) for π-almost every (x, y). Then the Legendre–Fenchel conjugate u⋆ of u
for the inner product is finite near ν-almost every point with differentiable real
representative there, and the plan with exchanged coordinates is the graph plan over ν of the
gradient of that real representative.
Conjugate potentials give inverse maps. Let π couple μ and ν, both absolutely
continuous with respect to an additive Haar measure on a finite-dimensional real inner product
space, and let u : E → EReal be convex and lower semicontinuous, with y ∈ ∂u(x)
for π-almost every (x, y). Then the gradient of the conjugate u⋆ is a left inverse of the
gradient of u, μ-almost everywhere.
Conjugate potentials give inverse maps. Let π couple μ and ν, both absolutely
continuous with respect to an additive Haar measure on a finite-dimensional real inner product
space, and let u : E → EReal be convex and lower semicontinuous, with y ∈ ∂u(x)
for π-almost every (x, y). Then the gradient of u is a left inverse of the gradient of the
conjugate u⋆, ν-almost everywhere.
Uniqueness of the optimal quadratic plan. Between finite measures on a finite-dimensional
real inner product space, if the source μ is absolutely continuous with respect to an additive
Haar measure and the optimal cost for ‖x - y‖ ^ 2 / 2 is finite, any two optimal plans are
equal.
Uniqueness of the monotone rearrangement. Let μ and ν be finite measures with finite
second moments on a finite-dimensional real inner product space, with μ absolutely continuous
with respect to an additive Haar measure. If u and v : E → EReal are convex and never ⊥,
finite with differentiable real representatives at μ-almost every point, and both gradients push
μ to ν, then ∇u = ∇v μ-almost everywhere.
Brenier's theorem. Let μ be a probability measure and ν a measure on a
finite-dimensional real inner product space E, with μ absolutely continuous with respect to an
additive Haar measure, and suppose the optimal cost for ‖x - y‖ ^ 2 / 2 is finite, as it is for
laws with finite second moment (TauCeti.transportCost_norm_sub_sq_div_two_ne_top); then ν is a
probability measure too. Then there is a convex, lower
semicontinuous u : E → EReal that never takes the value ⊥, is finite near μ-almost every
point and has differentiable real representative there, such that the gradient
T = ∇ (fun x => (u x).toReal):
- is an optimal transport map from
μtoν, attaining the Kantorovich value; - induces the unique optimal plan: a plan is optimal exactly when it is the graph plan of
T; - is the unique optimal transport map up to
μ-almost everywhere equality.
Brenier's theorem with the inverse map. Let μ be a probability measure and ν a measure
on a finite-dimensional real inner product space E, both absolutely continuous with respect to an
additive Haar measure, and suppose the optimal cost for ‖x - y‖ ^ 2 / 2 is finite (so ν is a
probability measure too). Then there is a convex, lower semicontinuous u : E → EReal that never
takes the value ⊥ such that u is finite near μ-almost every point and its Legendre–Fenchel
conjugate u⋆ is finite near ν-almost every point, both with differentiable real
representatives there, and:
- the gradient
∇ uis an optimal transport map fromμtoν; - the gradient
∇ u⋆is an optimal transport map fromνtoμ; - the two maps are inverse to each other,
∇ u⋆ ∘ ∇ u = idμ-almost everywhere and∇ u ∘ ∇ u⋆ = idν-almost everywhere.
The almost everywhere uniqueness of the optimal maps and plans in each direction is recorded
separately, in TauCeti.exists_isKantorovichOptimalTransportMap_gradient and
TauCeti.IsOptimalCoupling.unique.
The Brenier potential is a weak solution of its transport equation. Let μ be a
probability measure and ν a measure on a finite-dimensional real inner product space E, both
absolutely continuous with respect to an additive Haar measure, and suppose the optimal cost for
‖x - y‖ ^ 2 / 2 is finite. Then there is a convex, lower semicontinuous u : E → EReal that
never takes the value ⊥, with D the interior of its effective domain, such that:
- the gradient
∇ uis an optimal transport map fromμtoν; - the Monge–Ampère measure of
uweighted byνisμ, that is,ν(∂u(s ∩ D)) = μ(s)for every measurables; forμ = g₀ dxandν = g₁ dythis is∫_{∂u(s ∩ D)} g₁ = ∫_s g₀; ν-almost every point is a subgradient ofuat a point ofD.
Brenier solutions with a convex target are Aleksandrov solutions. Let μ be a probability
measure and ν a measure on a finite-dimensional real inner product space E, with μ absolutely
continuous with respect to an additive Haar measure ρ and ν = g ρ, and suppose the optimal cost
for ‖x - y‖ ^ 2 / 2 is finite. Let K be a closed convex set carrying ν on which g is
ρ-almost everywhere positive. Then there is a convex, lower semicontinuous u : E → EReal that
never takes the value ⊥ such that:
- the gradient
∇ uis an optimal transport map fromμtoν; - every subgradient of
u, at every point, lies inK; uis an Aleksandrov solution of the Monge–Ampère equationdet D²u = g₀ / g(∇u), whereμ = g₀ ρ: its Aleksandrov measure isMA_u = (g ∘ ∇u)⁻¹ μ.
For a general transporting potential, TauCeti.mongeAmpereMeasure_eq_withDensity_inv_iff
identifies the obstruction: the zero-density remainder, the subgradient mass falling where g
vanishes, which the weighted transport equation MA_{u, g ρ} = μ does not see.
Brenier's theorem for the cost edist ^ 2. On a finite-dimensional real inner product
space, an optimal plan for the cost edist ^ 2 out of a finite measure μ that is absolutely
continuous with respect to an additive Haar measure, to a law at finite W₂ distance from μ,
is the graph plan of a measurable map.
The Brenier potential solves the Monge–Ampère equation almost everywhere. Let μ be a
probability measure and ν a measure on a finite-dimensional real inner product space E, both
absolutely continuous with respect to an additive Haar measure ρ, with densities g₀ = dμ/dρ and
g₁ = dν/dρ, and suppose the optimal cost for ‖x - y‖ ^ 2 / 2 is finite. Then there is a
convex, lower semicontinuous u : E → EReal that never takes the value ⊥, with D the interior
of its effective domain, such that:
- the gradient
∇ uis an optimal transport map fromμtoν; - at
ρ-almost every pointxof the effective domain, the subdifferential ofuhas a positive derivativeH x, the Alexandrov Hessian ofu: every subgradienty'at a pointx'nearxsatisfiesy' = ∇ u x + H x (x' - x) + o(‖x' - x‖); - the Jacobian equation
g₀ x = g₁ (∇ u x) det (H x)holds forρ-almost everyx ∈ D, andg₀ = 0almost everywhere offD.
Displacement interpolants of an absolutely continuous law are absolutely continuous. Let
μ be a probability measure and ν a measure on a finite-dimensional real inner product space
E, with μ absolutely continuous with respect to an additive Haar measure ρ, and suppose the
optimal cost for ‖x - y‖ ^ 2 / 2 is finite. Then there is a convex, lower semicontinuous
u : E → EReal that never takes the value ⊥, with D the interior of its effective domain,
such that:
- the gradient
∇ uis an optimal transport map fromμtoν; - at
ρ-almost every pointxof the effective domain, the subdifferential ofuhas a positive derivativeH x, the Alexandrov Hessian ofu; - for every
0 ≤ t < 1, the displacement interpolantμₜ, the pushforward ofμbyTₜ x = (1 - t) • x + t • ∇ u x, is absolutely continuous with respect toρ, and the densities satisfy the Jacobian equationdμ/dρ (x) = det ((1 - t) • 1 + t • H x) * dμₜ/dρ (Tₜ x)forρ-almost everyx ∈ D, withdμ/dρ = 0almost everywhere offD.
The target ν = μ₁ need not be absolutely continuous.