Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(4.21), Remark 4.12, p. 439 — d_H(u, u′) = ‖log u − log u′‖_var

Proved
CompOT.Sinkhorn.eq_4_21

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

hilbert-projective-metricoptimal-transportp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-bookp2o-v1

Let n≥1n \ge 1n≥1 and let u,u′∈Rnu, u' \in \mathbb{R}^nu,u′∈Rn have positive entries. Hilbert's projective metric dH(u,u′)=log⁡max⁡i,juiuj′ujui′d_{\mathcal H}(u,u') = \log \max_{i,j} \frac{u_i u'_j}{u_j u'_i}dH​(u,u′)=logmaxi,j​uj​ui′​ui​uj′​​ equals the variation seminorm of the difference of the logarithms:

dH(u,u′)=∥log⁡(u)−log⁡(u′)∥var,∥f∥var=(max⁡ifi)−(min⁡ifi),d_{\mathcal H}(u,u') = \big\|\log(u) - \log(u')\big\|_{\mathrm{var}}, \qquad \|f\|_{\mathrm{var}} = (\max_i f_i) - (\min_i f_i),dH​(u,u′)=​log(u)−log(u′)​var​,∥f∥var​=(imax​fi​)−(imin​fi​),

where log⁡\loglog is applied entrywise.

By this logarithmic change of variables the Hilbert metric on rays of the positive cone becomes a seminorm that vanishes exactly on constant vectors; it turns rates in dHd_{\mathcal H}dH​ for Sinkhorn's scalings into rates for the dual potentials εlog⁡u\varepsilon \log uεlogu.

Preamble
import Mathlib
import Definitions.Def_CompOT_Sinkhorn_Defs
Formal statement
namespace CompOT.Sinkhorn

/-- (4.21), Remark 4.12, p. 439: after a logarithmic change of variables, Hilbert's
projective metric is the variation seminorm,
`d_H(u, u') = ‖log u − log u'‖_var`. -/
theorem eq_4_21 {n : ℕ} (hn : 0 < n) (u u' : Fin n → ℝ)
    (hu : ∀ i, 0 < u i) (hu' : ∀ i, 0 < u' i) :
    hilbertMetric u u' = varNorm (fun i => Real.log (u i) - Real.log (u' i)) := by sorry

end CompOT.Sinkhorn
Source
Peyré & Cuturi, Computational Optimal Transport (FnT ML 2019), Remark 4.12, (4.21), p. 439
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