Wasserstein-1 distance via Kantorovich–Rubinstein duality (cost-generic) #
The optimal-transport core, all generic over the underlying (pseudo)metric space
— no Vlasov / phase-space dependency. Contents: the cost-parameterized functional
wassersteinCost, the W₁ distance wasserstein1 (the c = dist case), the
truncated-metric variant wassersteinBar (Wbar), and their property lemmas
(symmetry, triangle, non-expansion under 1-Lipschitz pushforward, KR-dual lower
bound, finiteness under finite first moments).
Cost-parameterized Wasserstein-1 functional. KR-dual sup over functions
whose oscillation is controlled by a cost c. Using the explicit oscillation
bound |f x − f y| ≤ c x y (rather than LipschitzWith 1 f w.r.t. an ambient
metric) decouples the definition from the PseudoMetricSpace instance, so a
cost like min (dist x y) 1 (the truncated-metric "Wbar" cost) instantiates with
no new instance. wasserstein1 is the c = dist case.
Equations
Instances For
The oscillation test class ∀ x y, |f x − f y| ≤ dist x y coincides with
LipschitzWith 1 f for real-valued f on a pseudometric space. Bridge between
wassersteinCost dist (the cost-parameterized form) and the LipschitzWith-
phrased property lemmas.
The Kantorovich–Rubinstein dual Wasserstein-1 distance: the c = dist case
of wassersteinCost.
Equations
- Vlasov.wasserstein1 μ ν = Vlasov.wassersteinCost (fun (x y : α) => dist x y) μ ν
Instances For
wasserstein1 equals the LipschitzWith 1-phrased sup. The property lemmas
below rw through this; consumers reference wasserstein1 only through these
property lemmas.
For probability measures μ, ν on a normed space E with finite first moments
(i.e. Integrable (fun y => ‖y‖) μ and same for ν), the Wasserstein-1 distance
is finite: wasserstein1 μ ν < ⊤.
Proof sketch: For any 1-Lipschitz φ : E → ℝ, set ψ y := φ y - φ 0. Then
|ψ(y)| ≤ ‖y‖ by 1-Lipschitz-ness, and ∫φdμ − ∫φdν = ∫ψdμ − ∫ψdν (the
constants φ(0)·μ(univ) = φ(0)·ν(univ) cancel since both are probability
measures).
So ∫φdμ − ∫φdν ≤ ∫|ψ|dμ + ∫|ψ|dν ≤ ∫‖y‖dμ + ∫‖y‖dν =: M, finite.
Taking sup over 1-Lip φ: wasserstein1 μ ν ≤ ENNReal.ofReal M < ⊤.
Convenience corollary: under the same hypotheses, wasserstein1 μ ν ≠ ⊤.
Basic algebra of wasserstein1 #
The KR-dual sup-formula makes wasserstein1 a pseudometric on Measure α (we
only get a pseudo-metric, not a metric, because wasserstein1 μ ν = 0 does
not characterise μ = ν in this generality). The three lemmas below are
self-distance / symmetry / triangle, all derived directly from the sup-formula.
Together they make wasserstein1 usable as the codomain of a sup-W₁ pseudo-
distance on time-indexed measure curves (see supW1On in
LeanPool/Vlasov/OT/CharacteristicFlow.lean).
wassersteinCost c μ μ = 0 (cost-generic; no hypothesis on c). Self-distance
is zero; wasserstein1_self is the c = dist corollary.
Symmetry: wassersteinCost c μ ν = wassersteinCost c ν μ. The oscillation
test class |f x − f y| ≤ c x y is closed under f ↦ −f, so no symmetry
assumption on c is needed.
Triangle inequality: wassersteinCost c μ τ ≤ wassersteinCost c μ ν + wassersteinCost c ν τ. No triangle assumption on c — the inequality is
the test-function integral decomposition (the same f is valid for all three
costs wassersteinCost c · ·).
Quantitative finite-moment bound for wasserstein1: the W₁ distance is
bounded by the sum of the two measures' first moments.
This refines wasserstein1_lt_top_of_finite_moment (which only states ≠⊤)
by providing the explicit upper bound ∫‖y‖dμ + ∫‖y‖dν. Used by the sup-W₁
pseudodistance on VlasovMeasureCurves to derive finiteness from the
uniform first-moment bound.
Cost-generic non-expansion under Lipschitz pushforward.
If T : α → β is L-Lipschitz with respect to the costs
(c_β (T x) (T y) ≤ L · c_α x y) and c_β is dominated by the metric on β
(c_β x y ≤ dist x y, which makes every c_β-oscillation test function
1-Lipschitz, hence continuous and measurable — what integral_map needs), then
pushforward by T is L-non-expansive in wassersteinCost:
wassersteinCost c_β (T_# μ) (T_# ν) ≤ L · wassersteinCost c_α μ ν.
wasserstein1_le_of_lipschitz_map (c = dist, below) and the Wbar analog
(c = fun x y => min (dist x y) 1) are instances.
W₁ non-expansion under Lipschitz pushforward — the c = dist instance of
wassersteinCost_le_of_lipschitz_map.
KR-dual lower bound for wasserstein1.
For any 1-Lipschitz f : α → ℝ and any measures μ, ν on a pseudo-metric
measurable space, the (positive part of the) integral difference is a
lower bound on W₁(μ, ν):
ENNReal.ofReal (∫ f dμ - ∫ f dν) ≤ wasserstein1 μ ν.
This is the "easy direction" of the Kantorovich-Rubinstein dual
characterization — it is built into the definition wasserstein1 := ⨆ f hf, ENNReal.ofReal (∫ f dμ - ∫ f dν) and follows by le_iSup.
Chained with f → -f 1-Lipschitz, it gives the
"W₁=0 → ∫f dμ = ∫f dν for 1-Lipschitz f" reduction used by the
separation lemma wasserstein1_eq_zero_iff_measure_eq.
Cost-generic: stated below for wassersteinCost c with f
of c-oscillation, no hypothesis on c; wasserstein1_dual_lower_bound is the
c = dist corollary.
wassersteinBar — the truncated (cutoff) Wasserstein-1 distance Wbar #
Wbar := wassersteinCost (min(dist, 1)) (Dobrushin 1979 §5). The bounded
cost makes the dual test class bounded 1-Lipschitz (oscillation ≤ 1); on
probability measures this classically makes Wbar finite without moment
hypotheses and lets it metrize narrow convergence — neither fact is needed,
or proved, in this development. The property layer below instantiates
verbatim from the cost-generic lemmas: min(dist, 1) is a continuous
pseudometric dominated by dist, so every hypothesis is met.
The truncated Wasserstein-1 distance Wbar (Dobrushin 1979 §5): the
c = min(dist, 1) instance of wassersteinCost.
Equations
- Vlasov.wassersteinBar μ ν = Vlasov.wassersteinCost (fun (x y : α) => min (dist x y) 1) μ ν
Instances For
Wbar non-expansion under 1-Lipschitz pushforward: Wbar(T_# μ, T_# ν) ≤ Wbar(μ, ν).
The cost-Lipschitz hypothesis is min(dist(Tx,Ty),1) ≤ min(dist x y, 1) (from
dist(Tx,Ty) ≤ dist x y).
Bounded-continuous integral equality from 1-Lipschitz integral equality.
For probability measures μ, ν on a normed AddCommGroup α with the Borel
σ-algebra, both having finite first moments, if ∫ f dμ = ∫ f dν for every
1-Lipschitz function f : α → ℝ (with appropriate integrability), then the same
equality holds for every bounded continuous function f : α →ᵇ ℝ.
Proof.
- Step A: upgrade the 1-Lipschitz hypothesis to arbitrary
K-Lipschitz integrable functions by scaling into the 1-Lipschitz class (c⁻¹ • gwithc = K + 1). - Step B: closed sets
Freceive equal measure. Thickened indicatorsthickenedIndicator δ Fare bounded Lipschitz, so their integrals against μ and ν agree (Step A); lettingδ → 0and usingtendsto_lintegral_thickenedIndicator_of_isClosedgivesμ F = ν F. - Closed sets form a π-system generating the Borel σ-algebra, so
μ = νbyext_of_generate_finite; equality of all BC integrals is then immediate.
Further wasserstein1 properties #
(separation, narrow-liminf LSC, ofReal-exp monotonicity).
Separation lemma for wasserstein1.
For probability measures μ, ν on a Polish normed space with finite
first moments, W₁(μ, ν) = 0 iff μ = ν.
wasserstein1 enters the proof body only through its property lemmas:
wasserstein1_self(backward direction).wasserstein1_dual_lower_bound(W₁=0 → 1-Lipschitz integral equality).
The substantive middle (1-Lipschitz equality → BC equality) is
integral_boundedContinuous_eq_of_integral_lipschitz_eq (above); the final
step (BC equality → μ = ν) routes through Mathlib's
ext_of_forall_integral_eq_of_IsFiniteMeasure.
Static narrow lower-semicontinuity of wasserstein1 (Villani, Thm 6.9,
in KR-dual form). If νs n → ν narrowly (tested against bounded continuous
functions) and μ, ν have finite first moments, then
W₁(μ, ν) ≤ liminf_n W₁(μ, νs n).
This is the static optimal-transport fact — pure lower semicontinuity of the metric under weak convergence, with no flow/superposition. Prokhorov supplies the narrow limit; this upgrades a W₁-Cauchy sequence to W₁-convergence. Distinct from the dynamic narrow continuity along a Vlasov flow, which genuinely needs DiPerna–Lions superposition; the static LSC does not.
Proof. For each 1-Lipschitz φ truncate to φ_k = clamp(φ, -k, k) (bounded
and 1-Lipschitz). Narrow convergence gives ∫ φ_k d(νs n) → ∫ φ_k dν, and the
dual lower bound gives ofReal(∫φ_k dμ − ∫φ_k d(νs n)) ≤ W₁(μ, νs n); passing to
the liminf in n yields ofReal(∫φ_k dμ − ∫φ_k dν) ≤ liminf_n W₁(μ, νs n). Then
k → ∞ by dominated convergence (|φ_k| ≤ |φ 0| + ‖·‖, integrable since μ, ν
have finite first moment) recovers ofReal(∫φ dμ − ∫φ dν) ≤ liminf_n W₁. Taking
the ⨆ over φ closes it. The narrow hypothesis is taken in
bounded-continuous-test form (what ProbabilityMeasure.tendsto_iff_forall_integral_tendsto
exposes), so the exists_wasserstein1_limit_of_cauchy caller feeds it directly
from Prokhorov.
For C > 0 and 0 ≤ s ≤ t, we have ENNReal.ofReal (Real.exp (C * s)) ≤ ENNReal.ofReal (Real.exp (C * t)). This is the monotonicity of the exponential bound in time.