Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 3.6, p. 416 — a feasible dual pair (f, g) is optimal for (3.4) or (f, g) + ε(1_S, −1_S′) is feasible and strictly better

Proved
CompOT.DualAscent.proposition_3_6

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

dual-ascentlp-dualityoptimal-transportp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-bookp2o-v1primal-dual-method

Let C∈Rn×mC \in \mathbb{R}^{n\times m}C∈Rn×m be a cost matrix and let a∈Σna \in \Sigma_na∈Σn​, b∈Σmb \in \Sigma_mb∈Σm​ be histograms (nonnegative entries summing to 111). Consider the dual problem

LC(a,b)=max⁡(f,g)∈R(C)⟨f,a⟩+⟨g,b⟩,R(C)={(f,g):fi+gj≤Ci,j ∀i,j},\mathrm{L}_C(a,b) = \max_{(f,g)\in R(C)} \langle f, a\rangle + \langle g, b\rangle, \qquad R(C) = \{(f,g) : f_i + g_j \le C_{i,j}\ \forall i,j\},LC​(a,b)=(f,g)∈R(C)max​⟨f,a⟩+⟨g,b⟩,R(C)={(f,g):fi​+gj​≤Ci,j​ ∀i,j},

and let (f,g)∈R(C)(f,g) \in R(C)(f,g)∈R(C). Then either

  1. (f,g)(f,g)(f,g) is optimal for this problem, or
  2. there exist S⊂[ ⁣[n] ⁣]S \subset [\![n]\!]S⊂[[n]] and S′⊂[ ⁣[m] ⁣]′S' \subset [\![m]\!]'S′⊂[[m]]′ and ε0>0\varepsilon_0 > 0ε0​>0 such that for every 0<ε≤ε00 < \varepsilon \le \varepsilon_00<ε≤ε0​ the pair (f~,g~)=(f,g)+ε(1S,−1S′)(\tilde f, \tilde g) = (f,g) + \varepsilon(\mathbb{1}_S, -\mathbb{1}_{S'})(f~​,g~​)=(f,g)+ε(1S​,−1S′​) lies in R(C)R(C)R(C) and
⟨f~,a⟩+⟨g~,b⟩>⟨f,a⟩+⟨g,b⟩.\langle \tilde f, a\rangle + \langle \tilde g, b\rangle > \langle f, a\rangle + \langle g, b\rangle.⟨f~​,a⟩+⟨g~​,b⟩>⟨f,a⟩+⟨g,b⟩.

The proposition is the engine of dual ascent methods for optimal transport: any non-optimal feasible pair of potentials admits a feasible ascent direction of the special form (1S,−1S′)(\mathbb 1_S, -\mathbb 1_{S'})(1S​,−1S′​), with 0/±10/\pm 10/±1 entries. With the step length of Proposition 3.5 it gives the primal-dual method, which reduces to the Hungarian algorithm on assignment problems.

Formalization Note Indices are 0-based (Fin n, Fin m); Σn\Sigma_nΣn​ is Mathlib's stdSimplex ℝ (Fin n). The book's "feasible for a small enough ε>0\varepsilon > 0ε>0 and has a strictly better objective" is stated as "for every ε∈(0,ε0]\varepsilon \in (0, \varepsilon_0]ε∈(0,ε0​]", which is equivalent here (the objective change is linear in ε\varepsilonε and R(C)R(C)R(C) is convex). The direction is restricted to the form (1S,−1S′)(\mathbb 1_S, -\mathbb 1_{S'})(1S​,−1S′​) exactly as in the book; the hypothesis (f,g)∈R(C)(f,g) \in R(C)(f,g)∈R(C) is the section's standing assumption (p. 415: "In what follows, (f,g)(f,g)(f,g) is a feasible dual pair in R(C)R(C)R(C)").

Preamble
import Mathlib
import Definitions.Def_CompOT_DualAscent_Defs
Formal statement
namespace CompOT.DualAscent

/-- Proposition 3.6, p. 416: for histograms `a ∈ Σ_n`, `b ∈ Σ_m` and a dual feasible pair
`(f, g) ∈ R(C)`, either `(f, g)` is optimal for Problem (3.4), or there are index sets
`S ⊂ ⟦n⟧`, `S' ⊂ ⟦m⟧'` such that `(f, g) + ε (𝟙_S, -𝟙_{S'})` is dual feasible and has a strictly
larger objective for every sufficiently small `ε > 0`. -/
theorem proposition_3_6 {n m : ℕ} (C : Matrix (Fin n) (Fin m) ℝ) (a : Fin n → ℝ) (b : Fin m → ℝ)
    (ha : a ∈ stdSimplex ℝ (Fin n)) (hb : b ∈ stdSimplex ℝ (Fin m))
    (f : Fin n → ℝ) (g : Fin m → ℝ) (hfg : CompOT.Duality.dualFeasible C f g) :
    CompOT.Duality.IsDualOptimal C a b f g ∨
      ∃ (S : Finset (Fin n)) (S' : Finset (Fin m)) (ε₀ : ℝ), 0 < ε₀ ∧
        ∀ ε : ℝ, 0 < ε → ε ≤ ε₀ →
          CompOT.Duality.dualFeasible C (f + ε • indicatorVec S) (g - ε • indicatorVec S') ∧
          CompOT.Duality.dualObj a b f g < CompOT.Duality.dualObj a b (f + ε • indicatorVec S) (g - ε • indicatorVec S') := by sorry

end CompOT.DualAscent
Source
Peyré & Cuturi, Computational Optimal Transport (FnT ML 2019), Proposition 3.6, p. 416, for Problem (3.4), p. 402
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