Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§3.6, proof of Proposition 3.6, p. 417 — the step ε(1_S, −1_S′) changes ⟨f, a⟩ + ⟨g, b⟩ by ε(1_Sᵀa − 1_S′ᵀb)

Proved
CompOT.DualAscent.prop_3_6_objective_change

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

dual-ascentoptimal-transportp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-bookp2o-v1

Let a∈Rna \in \mathbb{R}^na∈Rn, b∈Rmb \in \mathbb{R}^mb∈Rm, potentials f∈Rnf \in \mathbb{R}^nf∈Rn, g∈Rmg \in \mathbb{R}^mg∈Rm, index sets S⊂[ ⁣[n] ⁣]S \subset [\![n]\!]S⊂[[n]], S′⊂[ ⁣[m] ⁣]′S' \subset [\![m]\!]'S′⊂[[m]]′ and ε∈R\varepsilon \in \mathbb{R}ε∈R. Then

(⟨f+ε1S,a⟩+⟨g−ε1S′,b⟩)−(⟨f,a⟩+⟨g,b⟩)=ε(1STa−1S′Tb).\big(\langle f + \varepsilon\mathbb{1}_S, a\rangle + \langle g - \varepsilon\mathbb{1}_{S'}, b\rangle\big) - \big(\langle f, a\rangle + \langle g, b\rangle\big) = \varepsilon\big(\mathbb{1}_S^{\mathsf T}a - \mathbb{1}_{S'}^{\mathsf T}b\big).(⟨f+ε1S​,a⟩+⟨g−ε1S′​,b⟩)−(⟨f,a⟩+⟨g,b⟩)=ε(1ST​a−1S′T​b).

In the proof of Proposition 3.6 this is why it suffices to show 1STa−1S′Tb>0\mathbb{1}_S^{\mathsf T}a - \mathbb{1}_{S'}^{\mathsf T}b > 01ST​a−1S′T​b>0 to conclude that the step strictly improves the dual objective. It is an elementary stepping stone.

Formalization Note 1STa\mathbb 1_S^{\mathsf T}a1ST​a is written ∑i∈Sai\sum_{i\in S} a_i∑i∈S​ai​. The page states only the consequence ("one still needs to prove that 1STa−1S′Tb>0\mathbb 1_S^{\mathsf T}a - \mathbb 1_{S'}^{\mathsf T}b > 01ST​a−1S′T​b>0 to ensure that (f~,g~)(\tilde f, \tilde g)(f~​,g~​) has a better objective"); the identity is the computation behind it.

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

open Finset

/-- Proof of Proposition 3.6, p. 417, first line: moving `(f, g)` along `ε (𝟙_S, -𝟙_{S'})`
changes the objective `⟨f, a⟩ + ⟨g, b⟩` by `ε (𝟙_Sᵀ a - 𝟙_{S'}ᵀ b)`. -/
theorem prop_3_6_objective_change {n m : ℕ} (a : Fin n → ℝ) (b : Fin m → ℝ)
    (f : Fin n → ℝ) (g : Fin m → ℝ) (S : Finset (Fin n)) (S' : Finset (Fin m)) (ε : ℝ) :
    CompOT.Duality.dualObj a b (f + ε • indicatorVec S) (g - ε • indicatorVec S') - CompOT.Duality.dualObj a b f g
      = ε * (∑ i ∈ S, a i - ∑ j ∈ S', b j) := by sorry

end CompOT.DualAscent
Source
Peyré & Cuturi, Computational Optimal Transport (FnT ML 2019), §3.6, proof of Proposition 3.6, pp. 416–417 (first line of p. 417)
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