Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Proposition 2.2, p. 378 — by symmetry of D^p, W_p(a, b) = W_p(b, a)

Proved
CompOT.Metric.prop_2_2_symm

by mikedeng1 · Oct 8, 2026 · Mathlib 0df444a (Lean v4.33.1)

optimal-transportp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-bookp2o-v1wasserstein

Let D∈R+n×nD\in\mathbb R^{n\times n}_+D∈R+n×n​ be a distance on [ ⁣[n] ⁣][\![n]\!][[n]], let p≥1p\ge1p≥1 and a,b∈Σna,b\in\Sigma_na,b∈Σn​. Then

Wp(a,b)=Wp(b,a).\mathrm W_p(a,b)=\mathrm W_p(b,a).Wp​(a,b)=Wp​(b,a).

The page derives this from the symmetry of DpD^pDp; it rests on the remark of p. 371 that P∈U(a,b)P\in U(a,b)P∈U(a,b) if and only if P⊤∈U(b,a)P^{\top}\in U(b,a)P⊤∈U(b,a).

Formalization Note Indices are Fin n; all hypotheses of Proposition 2.2 are kept.

Preamble
import Mathlib
import Definitions.Def_CompOT_Metric_Defs
Formal statement
namespace CompOT.Metric

open Matrix

/-- Proof of Proposition 2.2, p. 378: by symmetry of `D^p`, `W_p(a, b)` is itself a
symmetric function. -/
theorem prop_2_2_symm {n : ℕ} (D : Matrix (Fin n) (Fin n) ℝ) (p : ℝ) (hp : 1 ≤ p)
    (hD_nonneg : ∀ i j, 0 ≤ D i j)
    (hD_symm : ∀ i j, D i j = D j i)
    (hD_zero : ∀ i j, D i j = 0 ↔ i = j)
    (hD_tri : ∀ i j k, D i k ≤ D i j + D j k)
    (a b : Fin n → ℝ) (ha : a ∈ stdSimplex ℝ (Fin n)) (hb : b ∈ stdSimplex ℝ (Fin n)) :
    W D p a b = W D p b a := by sorry

end CompOT.Metric
Source
Peyré & Cuturi, Computational Optimal Transport (FnT ML 2019), proof of Proposition 2.2, p. 378; symmetry of U(a, b) under transposition, p. 371
Human review
  • Endorsed by Shuze Chen · Oct 8, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 8, 2026

    Confirmed by the mission captain (proposal self-audit).

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