Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Proposition 6.1, p. 473 — if Lip(f) ≤ 1 then f^c = −f

Proved
CompOT.W1.prop_6_1_cTransform_self

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

c-transformlipschitzoptimal-transportp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-bookp2o-v1

Let (X,d)(\mathcal X,d)(X,d) be a metric space with cost c(x,y)=d(x,y)c(x,y)=d(x,y)c(x,y)=d(x,y) and let f:X→Rf:\mathcal X\to\mathbb Rf:X→R satisfy Lip(f)≤1\mathrm{Lip}(f)\le1Lip(f)≤1. Then for every y∈Xy\in\mathcal Xy∈X,

fc(y)=inf⁡x∈X [d(x,y)−f(x)]=−f(y).f^c(y)=\inf_{x\in\mathcal X}\,\bigl[d(x,y)-f(x)\bigr]=-f(y).fc(y)=x∈Xinf​[d(x,y)−f(x)]=−f(y).

This is the second claim of Proposition 6.1. It shows that for a metric cost the pair (f,fc)(f,f^c)(f,fc) of dual potentials can be taken to be (f,−f)(f,-f)(f,−f), which leads to the dual formula (6.1) for W1\mathcal W_1W1​.

Formalization Note Lip(f)≤1\mathrm{Lip}(f)\le 1Lip(f)≤1 is LipschitzWith 1 f; the conclusion is an equality in EReal.

Preamble
import Mathlib
import Definitions.Def_CompOT_W1_Defs
Formal statement
namespace CompOT.W1

/-- Proof of Proposition 6.1, p. 473 (last display): if `Lip(f) ≤ 1`, then `f^c = -f`, i.e.
`inf_{x ∈ X} [d(x, y) - f(x)] = -f(y)` for every `y`. -/
theorem prop_6_1_cTransform_self {X : Type*} [MetricSpace X] (f : X → ℝ)
    (hf : LipschitzWith 1 f) :
    ∀ y, cTransform f y = ((-f y : ℝ) : EReal) := by sorry

end CompOT.W1
Source
Peyré & Cuturi, Computational Optimal Transport (FnT ML 2019), §6.1, proof of Proposition 6.1, last display, p. 473
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