Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 3.3, p. 405 — a complementary pair of feasible primal and dual solutions is primal and dual optimal

Proved
CompOT.DualAscent.proposition_3_3

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

complementary-slacknesslp-dualityoptimal-transportp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-bookp2o-v1

Let C∈Rn×mC \in \mathbb{R}^{n\times m}C∈Rn×m, a∈Rna \in \mathbb{R}^na∈Rn, b∈Rmb \in \mathbb{R}^mb∈Rm. Suppose P∈U(a,b)P \in U(a,b)P∈U(a,b) is a feasible coupling, (f,g)∈R(C)(f,g) \in R(C)(f,g)∈R(C) is a feasible pair of dual potentials (fi+gj≤Ci,jf_i + g_j \le C_{i,j}fi​+gj​≤Ci,j​ for all i,ji, ji,j), and PPP and (f,g)(f,g)(f,g) are complementary: Pi,j>0P_{i,j} > 0Pi,j​>0 implies Ci,j=fi+gjC_{i,j} = f_i + g_jCi,j​=fi​+gj​. Then

⟨C,P⟩≤⟨C,Q⟩  ∀Q∈U(a,b)and⟨f′,a⟩+⟨g′,b⟩≤⟨f,a⟩+⟨g,b⟩  ∀(f′,g′)∈R(C),\langle C, P\rangle \le \langle C, Q\rangle \ \ \forall Q \in U(a,b) \qquad\text{and}\qquad \langle f', a\rangle + \langle g', b\rangle \le \langle f, a\rangle + \langle g, b\rangle\ \ \forall (f',g') \in R(C),⟨C,P⟩≤⟨C,Q⟩  ∀Q∈U(a,b)and⟨f′,a⟩+⟨g′,b⟩≤⟨f,a⟩+⟨g,b⟩  ∀(f′,g′)∈R(C),

that is, PPP is optimal for the primal problem (2.11) and (f,g)(f,g)(f,g) is optimal for the dual problem (3.4).

This is the certificate of optimality used throughout chapter 3: in the dual ascent method it is what shows that a dual pair admitting a complementary feasible coupling cannot be improved.

Formalization Note The page refers to the primal and dual as "(2.24)" and "(2.11)"; the intended problems are (2.11) (primal) and (2.20)/(3.4) (dual), which is what the Lean states. No assumption on a,ba, ba,b is needed: the existence of P∈U(a,b)P \in U(a,b)P∈U(a,b) already forces a,b≥0a, b \ge 0a,b≥0 with equal total mass. Indices are 0-based (Fin n, Fin m).

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

/-- Proposition 3.3, p. 405: a feasible coupling `P ∈ U(a, b)` and a dual feasible pair
`(f, g) ∈ R(C)` that are complementary (Definition 3.1) are primal and dual optimal. -/
theorem proposition_3_3 {n m : ℕ} (C : Matrix (Fin n) (Fin m) ℝ) (a : Fin n → ℝ) (b : Fin m → ℝ)
    (P : Matrix (Fin n) (Fin m) ℝ) (f : Fin n → ℝ) (g : Fin m → ℝ)
    (hP : P ∈ CompOT.Assignment.couplings a b) (hfg : CompOT.Duality.dualFeasible C f g) (hcomp : CompOT.Duality.Complementary C P f g) :
    CompOT.Assignment.IsOptimalCoupling C a b P ∧ CompOT.Duality.IsDualOptimal C a b f g := by sorry

end CompOT.DualAscent
Source
Peyré & Cuturi, Computational Optimal Transport (FnT ML 2019), Proposition 3.3, p. 405
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