Motivation
The discrete optimal transport problem between two histograms is a linear program, and much of the algorithmic theory of optimal transport is the theory of solving that linear program well. Chapter 3 of Peyré and Cuturi's Computational Optimal Transport (Foundations and Trends in Machine Learning, 2019) surveys the classical combinatorial solvers: the network simplex, dual ascent methods, and the auction algorithm. Dual ascent methods work entirely with the dual variables, the Kantorovich potentials (f,g): they keep a feasible pair of potentials and improve it step by step until it is optimal. The specialisation of this idea to assignment problems is the Hungarian algorithm of Kuhn (1955), and its general form is the primal-dual method for network flow problems presented in Bertsimas and Tsitsiklis, Introduction to Linear Optimization (1997, §7.7), on which §3.6 of the book is modelled.
The mathematical engine of every dual ascent method is one alternative: a feasible pair of potentials is either already optimal, or it can be improved along a direction of a very special, combinatorial form. This mission formalizes that alternative (Proposition 3.6 of the book) together with the results it rests on.
Setting
Fix integers n,m≥1, a cost matrix C∈Rn×m, and two histograms a∈Σn, b∈Σm, where Σn={a∈R+n:∑iai=1} is the probability simplex. Write [[n]]={1,…,n} for the row indices and, following the book, [[m]]′={1′,…,m′} for the column indices.
The couplings between a and b form the transportation polytope
U(a,b)={P∈R+n×m:P1m=a, PT1n=b},
and the primal problem is LC(a,b)=minP∈U(a,b)⟨C,P⟩ with ⟨C,P⟩=∑i,jCi,jPi,j. A pair of vectors (f,g)∈Rn×Rm is dual feasible, written (f,g)∈R(C), when fi+gj≤Ci,j for all (i,j). The dual problem (3.4) is
LC(a,b)=(f,g)∈R(C)max⟨f,a⟩+⟨g,b⟩.
For a feasible pair (f,g), a pair of indices (i,j′) is balanced if fi+gj=Ci,j and inactive if fi+gj<Ci,j. A matrix P and a pair (f,g) are complementary if Pi,j>0 implies Ci,j=fi+gj, that is, P is supported on balanced pairs. For S⊂[[n]] the vector 1S∈Rn has ones at the indices in S and zeros elsewhere; likewise 1S′∈Rm for S′⊂[[m]]′.
Formalization targets
Goal: Proposition 3.6 (p. 416)
For a∈Σn, b∈Σm and (f,g)∈R(C): either (f,g) is optimal for (3.4), or there exist S⊂[[n]], S′⊂[[m]]′ and ε0>0 such that for every 0<ε≤ε0,
(f~,g~)=(f,g)+ε(1S,−1S′)∈R(C)and⟨f~,a⟩+⟨g~,b⟩>⟨f,a⟩+⟨g,b⟩.
Milestones
- Proposition 3.3 (p. 405). If P∈U(a,b) and (f,g)∈R(C) are complementary, then P is primal optimal and (f,g) is dual optimal.
- Proposition 3.5 (p. 415). If every balanced pair (i,j′) with i∈S has j′∈S′, then (f,g)+ε(1S,−1S′)∈R(C) for all sufficiently small ε>0.
- Objective change (proof of Proposition 3.6, pp. 416–417). The step changes the dual objective by exactly ε(1STa−1S′Tb).
- Labeled sets (proof of Proposition 3.6, pp. 416–417). If no coupling in U(a,b) is complementary to (f,g), then there are S,S′ with every balanced pair leaving S landing in S′, and
1STa−1S′Tb>0.
Significance
The result. Proposition 3.6 says that non-optimality of a feasible dual pair is always witnessed by a direction with entries in {0,±1}, determined by two index sets, which keeps the pair feasible for a positive step and strictly improves the objective. This is what makes dual ascent a finite combinatorial method rather than a generic linear-programming iteration: the search for an ascent direction reduces to a maximum-flow computation on the bipartite graph of balanced pairs. Combined with the step length of Proposition 3.5, it is the primal-dual method, which reduces to the Hungarian algorithm on assignment problems. Milestone 1 is the optimality certificate of complementary slackness, used throughout the book's chapter 3.
Formalizing it. These results are classical and proved in the book and in Bertsimas and Tsitsiklis; no machine-checked proof of them is known to exist. The mission produces a formal statement and proof of the optimality-or-ascent alternative for the discrete Kantorovich dual, together with the complementary-slackness certificate in the transport setting. Milestone 4 is a Hall-type statement (a supply–demand theorem on a bipartite graph) whose formal proof is reusable for other matching and transportation results.
Difficulty
Milestones 1–3 are short computations. The content of the goal is in milestone 4. The obvious argument is linear-programming duality: if (f,g) is not optimal, some feasible direction improves the objective. But LP duality only produces an arbitrary real direction; the claim that a direction of the form (1S,−1S′) suffices is a combinatorial statement. The book obtains S,S′ as the labeled nodes of a maximal flow (Ford–Fulkerson) and argues through max-flow/min-cut; the flow bookkeeping printed on p. 417 is garbled, so the step from "no complementary coupling exists" to "1STa>1S′Tb for a set closed under balanced edges" has to be supplied carefully. Separately, connecting "not optimal" to "no complementary coupling exists" needs the converse direction of complementary slackness or strong duality for the transport problem.
Formalization scope
Row and column indices are Fin n and Fin m (0-based); the primed column set [[m]]′ is just Fin m. Cost matrices and couplings are Matrix (Fin n) (Fin m) ℝ; histograms and potentials are real functions on Fin n, Fin m; Σn is Mathlib's stdSimplex ℝ (Fin n). Index sets S,S′ are Finsets and 1S is indicatorVec S. "Optimal for Problem (3.4)" is the predicate IsDualOptimal: feasible, and no feasible pair has a larger objective (no real infimum or supremum is used, so no junk value can enter). The book's "for a small enough ε>0" is stated as "for every ε∈(0,ε0]", which is equivalent because R(C) is convex and the objective is linear.
Standing assumptions, all from the book: (f,g) is dual feasible (p. 415, "In what follows, (f,g) is a feasible dual pair in R(C)"); a,b are histograms in the simplex (used for the goal and milestone 4; without equal masses the dual is unbounded and optimality fails for every pair). Milestone 4 replaces the book's flow hypothesis "the throughput is strictly smaller than 1" by the equivalent flow-free statement "no coupling in U(a,b) is complementary to (f,g)"; flows, capacities and the labeling algorithm appear in no statement.
The goal admits a trivializing formalization: allowing an arbitrary direction (u,v) instead of (1S,−1S′) turns Proposition 3.6 into plain non-optimality of a linear program. The statement here fixes the direction to (1S,−1S′) exactly as the book does.
A complete development needs finite LP duality or complementary slackness for the transportation problem, and a max-flow/min-cut or Hall-type theorem on bipartite graphs with vertex capacities. Both are reusable well beyond this mission. Contributions welcome: proofs of the milestones, a self-contained proof of milestone 4 by induction or by a max-flow argument, and alternative proofs of the goal through LP duality plus a vertex argument.
Selected references
- G. Peyré, M. Cuturi, Computational Optimal Transport, Foundations and Trends in Machine Learning 11(5–6):355–607, 2019. https://doi.org/10.1561/2200000073 (§3.1–3.3, §3.6, pp. 400–417)
- D. Bertsimas, J. N. Tsitsiklis, Introduction to Linear Optimization, Athena Scientific, 1997, §7.7 (the primal-dual method) and pp. 305–308 (Ford–Fulkerson and the labeling algorithm).
- H. W. Kuhn, The Hungarian method for the assignment problem, Naval Research Logistics Quarterly 2(1–2):83–97, 1955. https://doi.org/10.1002/nav.3800020109
- L. R. Ford, D. R. Fulkerson, Maximal flow through a network, Canadian Journal of Mathematics 8:399–404, 1956. https://doi.org/10.4153/CJM-1956-045-5