Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

The transportation metric is an attained metric

Proved
MarkovMixing.transport_metric

by Shuze Chen · Aug 22, 2026 · Mathlib 0df444a (Lean v4.33.1)

markov-chainsmixing-timesprobability

Let ρ\rhoρ be a metric on a finite state space VVV — nonnegative, vanishing exactly on the diagonal, symmetric, and satisfying the triangle inequality — and let μ,ν,η\mu,\nu,\etaμ,ν,η be probability distributions on VVV. A coupling of μ\muμ and ν\nuν is a probability distribution qqq on ordered pairs with marginals μ\muμ and ν\nuν, and the transportation distance (Kantorovich distance) is the cheapest expected cost of moving μ\muμ onto ν\nuν:

ρK(μ,ν)=inf⁡{∑x,yρ(x,y) q(x,y)  :  q a coupling of μ,ν}.\rho_K(\mu,\nu)=\inf\Bigl\{\sum_{x,y}\rho(x,y)\,q(x,y)\;:\;q\ \text{a coupling of}\ \mu,\nu\Bigr\}.ρK​(μ,ν)=inf{x,y∑​ρ(x,y)q(x,y):q a coupling of μ,ν}.

The theorem (Lemma 14.3 and Remark 14.2 of Levin–Peres–Wilmer) asserts:

  1. the infimum is attained: some coupling qqq realizes ρK(μ,ν)\rho_K(\mu,\nu)ρK​(μ,ν) exactly — an optimal coupling exists;
  2. ρK\rho_KρK​ satisfies the triangle inequality: ρK(μ,η)≤ρK(μ,ν)+ρK(ν,η)\rho_K(\mu,\eta)\le\rho_K(\mu,\nu)+\rho_K(\nu,\eta)ρK​(μ,η)≤ρK​(μ,ν)+ρK​(ν,η).

Attainment is a compactness statement about the coupling polytope; the triangle inequality is proved by gluing an optimal coupling of (μ,ν)(\mu,\nu)(μ,ν) with one of (ν,η)(\nu,\eta)(ν,η) along their common marginal. Together they make ρK\rho_KρK​ a genuine metric on distributions — the metric in which the path coupling theorem measures contraction.

Preamble
import Definitions.Def_mm_transport
Formal statement
namespace MarkovMixing

/-- **Lemma 14.3 and Remark 14.2** (LPW): the transportation distance is
attained by an optimal coupling, and satisfies the triangle inequality. -/
theorem transport_metric {V : Type*} [Fintype V] [DecidableEq V]
    (ρ : V → V → ℝ) (hρ0 : ∀ x y : V, 0 ≤ ρ x y)
    (hρeq : ∀ x y : V, ρ x y = 0 ↔ x = y)
    (hρsymm : ∀ x y : V, ρ x y = ρ y x)
    (hρtri : ∀ x y z : V, ρ x z ≤ ρ x y + ρ y z)
    (μ ν η : V → ℝ) (hμ : IsDist μ) (hν : IsDist ν) (hη : IsDist η) :
    (∃ q : V × V → ℝ, IsCoupling μ ν q ∧
      transportDist ρ μ ν = ∑ p : V × V, ρ p.1 p.2 * q p) ∧
    transportDist ρ μ η ≤ transportDist ρ μ ν + transportDist ρ ν η := by
  sorry

end MarkovMixing
Source
D. A. Levin, Y. Peres, E. L. Wilmer, Markov Chains and Mixing Times, AMS 2009, https://documents.epfl.ch/groups/i/ip/ipg/www/2013-2014/Random_Walks/markovmixing.pdf, Section 14.1, Lemma 14.3 and Remark 14.2, p. 190

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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me