Topics in Advanced AlgorithmsFall 2026

Chapter 6

The Tale of Duality in TCS

From supporting hyperplanes and Fenchel conjugation to Lagrange multipliers, bounty-pricing algorithms, Kantorovich transport, and Gibbs variational duality

Across the first five chapters of this course, we kept encountering pairs of optimization problems that looked like mirror images of each other—and each time, the mirror unlocked the theorem:

  1. In Chapter 2, total variation distance between two distributions μ\mu and ν\nu was the minimum disagreement probability min⁡(X,Y)∈Π(μ,ν)P[X≠Y]\min_{(X,Y)\in\Pi(\mu,\nu)}\mathbb P[X\ne Y] over couplings; in Chapter 5, the exact same quantity reappeared as the maximum distinguishing power sup⁡Z:Ω→[0,1](Eμ[Z]−Eν[Z])\sup_{Z:\Omega\to[0,1]}(\mathbb E_\mu[Z]-\mathbb E_\nu[Z]) over bounded test functions. Why do two opposite optimizations—a minimization over joint probability tables and a maximization over test functions—compute the same number?
  2. In Chapter 4, the Plotkin–Shmoys–Tardos method collapsed a linear feasibility problem Ax≥bAx\ge b against a constraint weighting p∈Δmp\in\Delta_m, while no-regret self-play equated minimax and maximin game values in von Neumann’s theorem.
  3. Also in Chapter 4, shifting from Euclidean Online Gradient Descent to negative-entropy Online Mirror Descent replaced 12∥x∥22\frac12\|x\|_2^2 with ψ(q)=∑iqiln⁡qi\psi(q)=\sum_i q_i\ln q_i, turning dual gradient sums into Boltzmann weights qt(i)∝e−ηLt−1(i)q_t(i)\propto e^{-\eta L_{t-1}(i)}—the same exponential tilt that drove Chernoff bounds in Chapter 1 and logarithmic Sobolev inequalities in Chapter 3.
  4. Finally, as we prepare to design approximation algorithms in Chapter 7, we face a basic algorithmic dilemma: if computing the true optimum OPT\mathrm{OPT} of a combinatorial problem is NP\mathsf{NP}-hard, how can a polynomial-time algorithm prove that its output costs at most 2⋅OPT2\cdot\mathrm{OPT} or Hk⋅OPTH_k\cdot\mathrm{OPT} without ever knowing OPT\mathrm{OPT}?

All four phenomena grow from a single geometric operation: Fenchel–Legendre conjugation—encoding a function from below by its supporting hyperplanes and reading off their vertical-axis intercepts. Applying that single operation to a perturbed constrained problem automatically creates Lagrange multipliers, forces λ≥0\lambda\ge 0 from monotonicity, explains duality gaps as nonconvex indentations, specializes at zero curvature to LP duality and the algorithmic engines of dual fitting and primal–dual, lifts cleanly to infinite-dimensional optimal transport, and turns curvature back on to produce the Gibbs variational principle across the entire course.

Reading guide. Course Content is designed for a single 120-minute session (Session 9):

  • Act I — Supporting hyperplanes, perturbation conjugacy, and linear duality (§§1.1–1.3, ~45 minutes): Builds Fenchel–Legendre conjugation f∗(y)f^*(y) from the geometry of supporting hyperplanes and vertical intercepts, connecting Young–Fenchel gaps to Chapter 4’s Bregman divergence and weak/strong duality to f∗∗=ff^{**}=f (§1.1); applies f∗f^* to the constraint-perturbation function p(u,v)p(u,v) to derive Lagrange multipliers, forced sign rules (λ≥0\lambda\ge 0 vs. μ∈R\mu\in\mathbb R), Weak/Strong Duality (d∗=p∗∗(0,0)d^*=p^{**}(0,0)), Complementary Slackness, and the penalty-game intuition (§1.2); then specializes to covering linear programs via matrix transpose adjoints and a hand-solved 4-vertex paw graph (§1.3).
  • Act II — Dual prices as algorithmic engines (§§1.4–1.5, ~42 minutes): Reframes LP dual variables as element bounties subject to a no-arbitrage cap, proving the HkH_k-approximation of Greedy Set Cover via dual fitting (§1.4) and the 22-approximation of Weighted Vertex Cover via the primal–dual schema and relaxed complementary slackness (§1.5)—neither of which needs to solve an LP.
  • Act III — Changing the stage: infinite dimensions and curvature (§§1.6–1.7, ~33 minutes): Lifts the same constrained-duality recipe to joint probability measures to derive Kantorovich optimal transport duality, uniting Chapter 2’s Coupling Lemma and Chapter 5’s test-function characterization of dTVd_{\mathrm{TV}} (§1.6); then closes the loop back to §1.1 by computing the Fenchel conjugate of negative Shannon entropy via a pointwise Lagrange multiplier, proving the Gibbs variational principle and unifying all five prior chapters in one duality map (§1.7).

Reading Contents (§§2.1–2.5) provides self-contained proofs for the surrounding foundations: paired vector spaces (V,V∗)(V,V^*), Fenchel–Rockafellar composite duality, and Slater’s continuity condition (§2.1), separating hyperplanes, Farkas’ lemma, and Strong LP Duality (§2.2), metric dd-transforms and the Kantorovich–Rubinstein W1W_1 theorem (§2.3), the Donsker–Varadhan variational formula (recovering Chapter 3’s entropy tensorization) together with Cramér rate functions (§2.4), and the three-rung kernel-transform genealogy connecting Hilbert-space Fourier characters, Gibbs free energy, and Fenchel conjugation alongside infimal convolution (§2.5). Further Topics (§§3.1–3.4) surveys Yao’s minimax principle as LP duality, conic/SDP duality (previewing Chapter 7), Prokhorov compactness versus Monge maps, and variational inference in counting and sampling.

I. Course Content

1.1 Supporting hyperplanes and Fenchel–Legendre conjugation

Recall from Chapter 4 (§1.8 and Reading §2.2) that each step of Online Mirror Descent walked in two spaces at once: primal iterates xtx_t lived inside a feasible set VV, while gradients accumulated in a dual space V∗V^* accessed through ∇ψ\nabla\psi and inverted through ∇ψ∗\nabla\psi^*, leaving a mismatch measured by the Bregman divergence Bψ(x,z)B_\psi(x,z). What is ψ∗\psi^*, and why does a single convex transformation generate every notion of duality we will meet today?

Instead of describing a function f:Rn→R∪{+∞}f:\mathbb R^n\to\mathbb R\cup\{+\infty\} pointwise by listing its height f(x)f(x) above every point x∈Rnx\in\mathbb R^n, suppose we describe ff from below by supporting hyperplanes. Fix any slope covector y∈Rny\in\mathbb R^n, and ask for the highest affine function x↦⟨y,x⟩−cx\mapsto \langle y,x\rangle - c that lies everywhere on or below the graph of ff: ⟨y,x⟩−c≤f(x)∀x∈Rn⟺c≥sup⁡x∈Rn{⟨y,x⟩−f(x)}. \langle y,x\rangle - c \le f(x)\quad\forall x\in\mathbb R^n \qquad\Longleftrightarrow\qquad c \ge \sup_{x\in\mathbb R^n}\bigl\{\langle y,x\rangle - f(x)\bigr\}. Look at where that tightest supporting hyperplane x↦⟨y,x⟩−c∗x\mapsto \langle y,x\rangle - c^* intersects the vertical axis (x=0x=0): it hits height −c∗-c^*. That threshold c∗c^*—viewed as a function of the slope yy—is literally the Fenchel–Legendre conjugate f∗(y)f^*(y)!

Definition 1 (Fenchel–Legendre conjugate) Let (V,V∗,⟨⋅,⋅⟩)(V,V^*,\langle\cdot,\cdot\rangle) be a paired vector space—in our primary finite-dimensional classroom setting V=V∗=RnV=V^*=\mathbb R^n with ⟨y,x⟩=y⊤x\langle y,x\rangle = y^\top x, before lifting to function and measure pairings in §§1.6–1.7 and Reading §2.1. Given an extended-real function f:V→[−∞,+∞]f:V\to[-\infty,+\infty], its Fenchel conjugate f∗:V∗→[−∞,+∞]f^*:V^*\to[-\infty,+\infty] is f∗(y):=sup⁡x∈V{⟨y,x⟩−f(x)},y∈V∗, f^*(y):=\sup_{x\in V}\bigl\{\langle y,x\rangle - f(x)\bigr\}, \qquad y\in V^*, with the standard extended-real conventions a−(+∞)=−∞a-(+\infty)=-\infty and a−(−∞)=+∞a-(-\infty)=+\infty for a∈Ra\in\mathbb R. (Domain restrictions to a subset D⊆V\mathcal D\subseteq V are encoded cleanly by setting f(x):=+∞f(x):=+\infty for x∉Dx\notin\mathcal D, dropping those points from the supremum automatically; whenever ff is proper, meaning f>−∞f>-\infty everywhere and dom⁡(f):={x∈V:f(x)<+∞}≠∅\operatorname{dom}(f):=\{x\in V:f(x)<+\infty\}\ne\emptyset, its conjugate f∗f^* takes values in (−∞,+∞](-\infty,+\infty].)

f(x) z −f*(y) x Bf(x,z)

The tangent line ⟨y,x⟩−f∗(y)\langle y,x\rangle-f^*(y) touches ff at zz (y=∇f(z)y=\nabla f(z)), cuts the vertical axis at −f∗(y)-f^*(y), and leaves a vertical Young–Fenchel gap equal to Chapter 4’s Bregman divergence Bf(x,z)B_f(x,z).

The margin figure encodes every duality theorem we need. Because the supporting line x↦⟨y,x⟩−f∗(y)x\mapsto \langle y,x\rangle - f^*(y) sits everywhere below f(x)f(x), we immediately get f(x)≥⟨y,x⟩−f∗(y)f(x)\ge \langle y,x\rangle - f^*(y) (weak duality), and the vertical gap between f(x)f(x) and that tangent line at any point xx is the Bregman divergence Bf(x,z)B_f(x,z). Conversely, taking the upper envelope f∗∗(x):=sup⁡y{⟨y,x⟩−f∗(y)}f^{**}(x):=\sup_y\{\langle y,x\rangle - f^*(y)\} reconstructs ff verbatim whenever ff is closed and convex (strong duality)—and leaves a gap wherever nonconvex pockets prevent supporting lines from reaching up to f(x)f(x).

Proposition 1 (Convexity, Young–Fenchel gap, and the Biconjugate Theorem) For any proper function f:Rn→R∪{+∞}f:\mathbb R^n\to\mathbb R\cup\{+\infty\}:

  1. Always convex and lower semicontinuous: The Fenchel conjugate f∗f^* is convex and lower semicontinuous on Rn\mathbb R^n, even if ff itself is nonconvex.
  2. Young–Fenchel inequality (= Weak Duality) & Bregman identity: For every x,y∈Rnx,y\in\mathbb R^n, f(x)+f∗(y)≥⟨y,x⟩. f(x)+f^*(y)\ge\langle y,x\rangle. Moreover, if ff is convex and differentiable at zz with y=∇f(z)y=\nabla f(z), then equality holds at x=zx=z (so f(z)+f∗(∇f(z))=⟨∇f(z),z⟩f(z)+f^*(\nabla f(z))=\langle\nabla f(z),z\rangle), and the Young–Fenchel excess for arbitrary xx is precisely the Bregman divergence of Chapter 4: f(x)+f∗(∇f(z))−⟨∇f(z),x⟩=f(x)−f(z)−⟨∇f(z),x−z⟩=Bf(x,z)≥0. \begin{aligned} f(x)+f^*(\nabla f(z))-\langle\nabla f(z),x\rangle &= f(x)-f(z)-\langle\nabla f(z),x-z\rangle \\ &= B_f(x,z)\ge 0. \end{aligned}
  3. Fenchel–Moreau Biconjugate Theorem (= Strong Duality): Defining the biconjugate f∗∗(x):=sup⁡y∈Rn{⟨y,x⟩−f∗(y)}f^{**}(x):=\sup_{y\in\mathbb R^n}\{\langle y,x\rangle-f^*(y)\}, we always have f∗∗≤ff^{**}\le f, and f∗∗=f⟺f is convex and lower semicontinuous. f^{**}=f \qquad\Longleftrightarrow\qquad f\text{ is convex and lower semicontinuous.} More generally, for any proper ff whose conjugate f∗f^* is also proper, f∗∗=cl⁡conv⁡(f)f^{**} = \operatorname{cl}\operatorname{conv}(f) is the closed convex envelope of ff—the highest closed convex lower bound sitting beneath ff.
  4. Legendre inversion: When ff is convex and lower semicontinuous, y∈∂f(x)⟺x∈∂f∗(y)⟺f(x)+f∗(y)=⟨y,x⟩; y\in\partial f(x) \quad\Longleftrightarrow\quad x\in\partial f^*(y) \quad\Longleftrightarrow\quad f(x)+f^*(y)=\langle y,x\rangle; for smooth strictly convex Legendre functions, ∇f∗=(∇f)−1\nabla f^*=(\nabla f)^{-1}.
Proof: separating hyperplanes on epi⁡(f)\operatorname{epi}(f) establish Fenchel–Moreau biconjugation

Parts (1), (2), and the easy inequality f∗∗≤ff^{**}\le f follow straight from Definition 1:

  • (1) Each y↦⟨y,x⟩−f(x)y\mapsto\langle y,x\rangle-f(x) with f(x)<+∞f(x)<+\infty is affine, hence convex and continuous; a pointwise supremum of convex continuous functions is convex and lower semicontinuous (its epigraph is an intersection of closed half-spaces).
  • (2) From f∗(y)=sup⁡x~{⟨y,x~⟩−f(x~)}≥⟨y,x⟩−f(x)f^*(y)=\sup_{\tilde x}\{\langle y,\tilde x\rangle-f(\tilde x)\}\ge\langle y,x\rangle-f(x) comes f(x)+f∗(y)≥⟨y,x⟩f(x)+f^*(y)\ge\langle y,x\rangle. If ff is convex and differentiable at zz, then f(x)≥f(z)+⟨∇f(z),x−z⟩f(x)\ge f(z)+\langle\nabla f(z),x-z\rangle for all xx, i.e., ⟨∇f(z),x⟩−f(x)≤⟨∇f(z),z⟩−f(z)\langle\nabla f(z),x\rangle-f(x)\le\langle\nabla f(z),z\rangle-f(z) with equality at x=zx=z, so f∗(∇f(z))=⟨∇f(z),z⟩−f(z)f^*(\nabla f(z))=\langle\nabla f(z),z\rangle-f(z) and substituting gives Bf(x,z)B_f(x,z).
  • (3, easy half and envelope) Rewriting Young–Fenchel as ⟨y,x⟩−f∗(y)≤f(x)\langle y,x\rangle-f^*(y)\le f(x) and taking sup⁡y\sup_y proves f∗∗(x)≤f(x)f^{**}(x)\le f(x) always. Conversely, if f=f∗∗f=f^{**}, then ff is convex and lower semicontinuous by (1) applied to f∗f^*. Moreover, any closed convex function h≤fh\le f satisfies h∗≥f∗  ⟹  h=h∗∗≤f∗∗≤fh^*\ge f^*\implies h=h^{**}\le f^{**}\le f, so f∗∗f^{**} (being closed and convex by (1)) is the closed convex envelope cl⁡conv⁡(f)\operatorname{cl}\operatorname{conv}(f) whenever f∗f^* is proper.

Now prove the heart of (3): if ff is proper, convex, and lower semicontinuous on Rn\mathbb R^n, then f∗∗(x0)≥f(x0)f^{**}(x_0)\ge f(x_0) for every x0∈Rnx_0\in\mathbb R^n. Note that epi⁡(f):={(x,t)∈Rn×R:t≥f(x)}\operatorname{epi}(f):=\{(x,t)\in\mathbb R^n\times\mathbb R : t\ge f(x)\} is a nonempty closed convex subset of Rn+1\mathbb R^{n+1}. Fix x0∈Rnx_0\in\mathbb R^n and any strict lower target t0<f(x0)t_0 < f(x_0). Because (x0,t0)∉epi⁡(f)(x_0,t_0)\notin\operatorname{epi}(f), applying the strict Euclidean hyperplane separation theorem (proved in §2.2 via closest-point projection onto a closed convex set) produces (v,α)∈Rn×R(v,\alpha)\in\mathbb R^n\times\mathbb R and ε>0\varepsilon>0 such that ⟨v,x0⟩+αt0+ε≤⟨v,x⟩+αtfor all (x,t)∈epi⁡(f). \langle v,x_0\rangle+\alpha t_0 + \varepsilon \le \langle v,x\rangle+\alpha t \qquad\text{for all }(x,t)\in\operatorname{epi}(f).

  • Case 1 (α>0\alpha>0): Since (x,t)∈epi⁡(f)(x,t)\in\operatorname{epi}(f) allows arbitrarily large t→+∞t\to+\infty, α\alpha can never be negative. When α>0\alpha>0, divide by α\alpha and set y:=−v/αy:=-v/\alpha: for all xx with f(x)<+∞f(x)<+\infty (taking t=f(x)t=f(x)), ⟨y,x⟩−f(x)≤⟨y,x0⟩−t0−εα, \langle y,x\rangle-f(x) \le \langle y,x_0\rangle - t_0 - \frac{\varepsilon}{\alpha}, so f∗(y)≤⟨y,x0⟩−t0−εα<+∞f^*(y)\le\langle y,x_0\rangle-t_0-\frac{\varepsilon}{\alpha} < +\infty, giving f∗∗(x0)≥⟨y,x0⟩−f∗(y)≥t0f^{**}(x_0)\ge\langle y,x_0\rangle-f^*(y)\ge t_0.
  • Case 2 (α=0\alpha=0, vertical separator when f(x0)=+∞f(x_0)=+\infty or boundary drop): Here ⟨v,x0⟩+ε≤⟨v,x⟩\langle v,x_0\rangle+\varepsilon\le\langle v,x\rangle for all x∈dom⁡(f)x\in\operatorname{dom}(f). First find any affine lower bound for ff: pick x1∈dom⁡(f)x_1\in\operatorname{dom}(f) (f(x1)∈Rf(x_1)\in\mathbb R); strictly separating (x1,f(x1)−1)∉epi⁡(f)(x_1,f(x_1)-1)\notin\operatorname{epi}(f) from epi⁡(f)\operatorname{epi}(f) cannot yield a vertical hyperplane α′=0\alpha'=0 (which would force ⟨v′,x1⟩+ε′≤⟨v′,x1⟩\langle v',x_1\rangle+\varepsilon'\le\langle v',x_1\rangle, impossible because (x1,f(x1))∈epi⁡(f)(x_1,f(x_1))\in\operatorname{epi}(f)). Thus Case 1 guarantees at least one y1∈Rny_1\in\mathbb R^n with f∗(y1)<+∞f^*(y_1)<+\infty, i.e., ⟨y1,x⟩−f∗(y1)≤f(x)\langle y_1,x\rangle-f^*(y_1)\le f(x) everywhere. Now tilt yρ:=y1−ρvy_\rho := y_1 - \rho v for ρ>0\rho>0: ⟨yρ,x⟩−f(x)=(⟨y1,x⟩−f(x))−ρ⟨v,x⟩≤f∗(y1)−ρ(⟨v,x0⟩+ε), \langle y_\rho,x\rangle-f(x) =\bigl(\langle y_1,x\rangle-f(x)\bigr)-\rho\langle v,x\rangle \le f^*(y_1)-\rho\bigl(\langle v,x_0\rangle+\varepsilon\bigr), so f∗(yρ)≤f∗(y1)−ρ(⟨v,x0⟩+ε)f^*(y_\rho)\le f^*(y_1)-\rho(\langle v,x_0\rangle+\varepsilon) and ⟨yρ,x0⟩−f∗(yρ)≥⟨y1,x0⟩−f∗(y1)+ρε\langle y_\rho,x_0\rangle-f^*(y_\rho)\ge\langle y_1,x_0\rangle-f^*(y_1)+\rho\varepsilon. Sending ρ→+∞\rho\to+\infty forces f∗∗(x0)=+∞≥t0f^{**}(x_0)=+\infty\ge t_0 (which rules out Case 2 altogether if f(x0)<+∞f(x_0)<+\infty, and proves f∗∗(x0)=+∞=f(x0)f^{**}(x_0)=+\infty=f(x_0) if f(x0)=+∞f(x_0)=+\infty).

Since f∗∗(x0)≥t0f^{**}(x_0)\ge t_0 for every t0<f(x0)t_0<f(x_0), taking t0↑f(x0)t_0\uparrow f(x_0) yields f∗∗(x0)≥f(x0)f^{**}(x_0)\ge f(x_0), completing (3).

Finally, for (4), the subgradient definition y∈∂f(x)y\in\partial f(x) says f(x′)−f(x)≥⟨y,x′−x⟩f(x')-f(x)\ge\langle y,x'-x\rangle for all x′∈Rnx'\in\mathbb R^n, i.e., ⟨y,x⟩−f(x)≥sup⁡x′{⟨y,x′⟩−f(x′)}=f∗(y)\langle y,x\rangle-f(x)\ge\sup_{x'}\{\langle y,x'\rangle-f(x')\}=f^*(y); combining this with Young–Fenchel gives y∈∂f(x)  ⟺  f(x)+f∗(y)=⟨y,x⟩y\in\partial f(x)\iff f(x)+f^*(y)=\langle y,x\rangle. When ff is convex and lower semicontinuous, (3) gives f∗∗=ff^{**}=f, so applying the same equivalence to the proper convex function f∗f^* yields x∈∂f∗(y)  ⟺  f∗(y)+f∗∗(x)=⟨y,x⟩  ⟺  f(x)+f∗(y)=⟨y,x⟩x\in\partial f^*(y)\iff f^*(y)+f^{**}(x)=\langle y,x\rangle\iff f(x)+f^*(y)=\langle y,x\rangle. In particular, for smooth strictly convex Legendre functions where subdifferentials are singletons, ∇f∗=(∇f)−1\nabla f^*=(\nabla f)^{-1}.

Historical arc of convex duality. Adrien-Marie Legendre (1787) introduced slope-conjugate transformations in celestial mechanics and differential equations, Hermann Minkowski (1911) laid the geometric theory of convex bodies and support functions, and Werner Fenchel (On conjugate convex functions, 1949) together with Jean-Jacques Moreau (1962) unified them into the general Fenchel–Moreau conjugation theorem f∗∗=ff^{**}=f over paired topological vector spaces.

Before deploying Fenchel conjugation on constrained optimization, compute two fundamental conjugate pairs that will power both our linear programs and our nonlinear mirror maps:

Example 1 (Two workhorse Fenchel conjugates (and why linear duality sits inside Fenchel duality))  

  1. Conjugate norms: Fix p,q∈(1,∞)p,q\in(1,\infty) with 1p+1q=1\frac1p+\frac1q=1 and any norm ∥⋅∥\|\cdot\| on Rn\mathbb R^n with dual norm ∥y∥∗=sup⁡∥x∥≤1⟨y,x⟩\|y\|_*=\sup_{\|x\|\le 1}\langle y,x\rangle. Maximizing ⟨y,x⟩−1p∥x∥p≤∥y∥∗∥x∥−1p∥x∥p\langle y,x\rangle-\frac1p\|x\|^p \le \|y\|_*\|x\|-\frac1p\|x\|^p over r=∥x∥≥0r=\|x\|\ge 0 attains r=∥y∥∗q−1r=\|y\|_*^{q-1} and yields (1p∥⋅∥p)∗(y)=1q∥y∥∗q. \Bigl(\frac1p\|\cdot\|^p\Bigr)^*(y)=\frac1q\|y\|_*^q. At p=q=2p=q=2 with the Euclidean norm, f(x)=12∥x∥22f(x)=\frac12\|x\|_2^2 is self-conjugate: f∗(y)=12∥y∥22f^*(y)=\frac12\|y\|_2^2.
  2. Indicators and support functions (convexity without curvature): For any closed convex set C⊆Rn\mathcal C\subseteq\mathbb R^n, define its convex indicator δC(x)=0\delta_{\mathcal C}(x)=0 for x∈Cx\in\mathcal C and +∞+\infty outside. Its conjugate is the support function δC∗(y)=sup⁡x∈C⟨y,x⟩\delta_{\mathcal C}^*(y)=\sup_{x\in\mathcal C}\langle y,x\rangle. In particular, taking a singleton C={x0}\mathcal C=\{x_0\} turns points into linear functions δ{x0}∗(y)=⟨y,x0⟩\delta_{\{x_0\}}^*(y)=\langle y,x_0\rangle, showing that linear duality is simply the zero-curvature degenerate limit of Fenchel conjugation.

Visualizing yy in high dimensions: tangency rays and contour spacing in VV

Adding a vertical height axis (x,f(x))∈Rn+1(x,f(x))\in\mathbb R^{n+1} gives the sharpest proof picture in 1D, because a line hitting a parabola is concrete. Once n≥3n\ge 3, however, (n+1)(n+1)-dimensional graphs vanish from geometric intuition—and picturing yy as a “normal vector” pointing perpendicular to a hyperplane secretly smuggles in a Euclidean inner product that does not exist in spaces like (L1,L∞)(L^1,L^\infty) or (M(Ω),Cb(Ω))(\mathcal M(\Omega),C_b(\Omega)).

0 x* covector stack ⟨y,x⟩ = kΔ (uniform) at x*: spacing matches (∇f(x*) = y) ∇f = αy f-contours f = mΔ (crowding outward)

In the base space VV (drawing both families at the same height step Δ\Delta), every contour f=mΔf=m\Delta has a tangent point along the ray ∇f=αy\nabla f=\alpha y (α>0\alpha>0, non-orthogonal to the planes!). Tangency fixes that ray; matching ff’s tightening contour spacing to yy’s uniform plane spacing (α=1\alpha=1) singles out the optimal level x∗x^* (here two yy-steps minus one ff-step gives f∗(y)=Δf^*(y)=\Delta). For f=δCf=\delta_{\mathcal C}, ∂C\partial\mathcal C is the sole contour so tangency alone suffices.

Instead, throw away the extra height axis altogether and look directly inside the nn-dimensional base space VV as a topographic map with a common height step Δ>0\Delta>0 (assuming f(0)=0f(0)=0 for convenience; otherwise f∗(y)f^*(y) simply gains an offset −f(0)-f(0)):

  1. Topographic cost contours in VV: Draw ff by equal-height level sets {x∈V:f(x)=mΔ}\{x\in V : f(x)=m\Delta\} (m=1,2,3,…m=1,2,3,\ldots). For a smooth convex bowl such as 12∥x∥22\frac12\|x\|_2^2, the contour radii scale like mΔ\sqrt{m\Delta}, so contours start wide apart near the minimum and crowd progressively closer together as ff steepens. (For the indicator f=δCf=\delta_{\mathcal C} in Example 1 (2), the entire map collapses to the single boundary ∂C\partial\mathcal C.)
  2. Uniform covector stacks in VV: Without choosing any inner product, a linear functional y∈V∗y\in V^* acts as a covector stack of parallel, equally spaced hyperplanes {x∈V:⟨y,x⟩=kΔ}\{x\in V : \langle y,x\rangle = k\Delta\} (k∈Zk\in\mathbb Z): the stack orientation marks the uphill direction of yy, tighter spacing means a steeper covector, and ⟨y,x⟩/Δ\langle y,x\rangle/\Delta counts how many hyperplane layers the state arrow x∈Vx\in V pierces from 00.
  3. Step 1 — Contour tangency fixes the ray (∇f(x)=αy\nabla f(x)=\alpha y): Maximizing ⟨y,x⟩\langle y,x\rangle on any single contour {f(x)=c}\{f(x)=c\} selects the tangent point where a hyperplane of the yy-stack touches that contour from outside. Crucially, every smooth contour possesses such a tangent point, so tangency alone does not identify which contour wins—instead, it eliminates n−1n-1 tangential directions and collapses VV onto a 1D curve (or ray) of tangent points satisfying ∇f(x)=αy\nabla f(x)=\alpha y (α>0\alpha>0). (When f=δCf=\delta_{\mathcal C}, ∂C\partial\mathcal C is the sole boundary contour, so Step 1 already locks onto x∗x^*.)
  4. Step 2 — Matching contour spacing pins down the level (x∗x^*): Walk outward along that tangency ray and compare the two Δ\Delta-rulers. Inside the optimum (α<1\alpha<1), the ff-contours sit farther apart than the uniform yy-planes, so moving outward pierces more yy-layers than ff-contours and increases ⟨y,x⟩−f(x)\langle y,x\rangle-f(x). Beyond the optimum (α>1\alpha>1), the ff-contours crowd closer together than the yy-planes, so cost grows faster than ⟨y,x⟩\langle y,x\rangle. The maximizer x∗x^* sits at the exact contour where ff’s local contour spacing catches up to yy’s uniform hyperplane spacing (α=1  ⟺  ∇f(x∗)=y\alpha=1 \iff \nabla f(x^*)=y), and f∗(y)f^*(y) reads straight off the map as Δ\Delta times (number of yy-planes crossed minus number of ff-contours crossed from 00 to x∗x^*)!

Whenever we prove theorems about weak duality, biconjugation gaps, or Bregman remainders, slicing VV along a 1D ray t↦tx0t\mapsto t x_0 recovers the 2D parabola-and-intercept figure with zero loss of generality; meanwhile, in infinite-dimensional probability and function spaces (§§1.6–1.7), reading y∈V∗y\in V^* as an external linear price or potential probe carries the exact same pairing ⟨y,x⟩\langle y,x\rangle without ever needing to draw high-dimensional axes.

1.2 Constraints via perturbation: deriving Lagrange multipliers

Now take any general constrained minimization problem over an arbitrary nonempty domain X≠∅\mathcal X\ne\emptyset (which may be Rn\mathbb R^n, a discrete set {0,1}n\{0,1\}^n, or an infinite-dimensional space of probability distributions): (P)p∗:=inf⁡x∈Xf(x)subject togi(x)≤0,i=1,…,m,hj(x)=0,j=1,…,k, \begin{aligned} (\mathsf{P}) \qquad p^* := \inf_{x\in\mathcal X} \quad & f(x) \\ \text{subject to} \quad & g_i(x)\le 0, \qquad i=1,\ldots,m, \\ & h_j(x)=0, \qquad j=1,\ldots,k, \end{aligned} where f,g1,…,gm,h1,…,hk:X→Rf, g_1,\ldots,g_m, h_1,\ldots,h_k:\mathcal X\to\mathbb R are arbitrary real-valued functions, with the convention p∗:=+∞p^*:=+\infty if no x∈Xx\in\mathcal X is feasible.

Can §1.1’s Fenchel conjugate generate the entire theory of Lagrange multipliers in one stroke? Wait: p∗p^* is just a single number, not a function we can place supporting hyperplanes beneath! To bring Fenchel conjugation to life, perturb the right-hand sides of all constraints and watch how the optimal value responds: p(u,v):=inf⁡{f(x):x∈X,  g(x)≤u,  h(x)=v},u∈Rm,  v∈Rk. p(u,v):=\inf\bigl\{f(x) : x\in\mathcal X,\; g(x)\le u,\; h(x)=v\bigr\}, \qquad u\in\mathbb R^m,\; v\in\mathbb R^k. This perturbation value function p:Rm×Rk→[−∞,+∞]p:\mathbb R^m\times\mathbb R^k\to[-\infty,+\infty] embeds the original optimum right on the vertical axis: p(0,0)=p∗p(0,0)=p^* (and picking any x0∈Xx_0\in\mathcal X gives p(g(x0),h(x0))≤f(x0)<+∞p(g(x_0),h(x_0))\le f(x_0)<+\infty, so pp is never identically +∞+\infty). Moreover, notice a crucial structural asymmetry: - Increasing uiu_i from 00 to ui>0u_i>0 relaxes the ii-th inequality gi(x)≤uig_i(x)\le u_i, expanding the feasible set and lowering (or keeping equal) the infimum—so p(u,v)p(u,v) is coordinatewise nonincreasing in uu (u≤u′  ⟹  p(u,v)≥p(u′,v)u\le u'\implies p(u,v)\ge p(u',v)). - Perturbing an equality hj(x)=vjh_j(x)=v_j in either direction shifts to a disjoint slice, so pp has no monotonicity in vv.

Now let us slide supporting hyperplanes (u,v)↦ξ⊤u+η⊤v−p∗(ξ,η)(u,v)\mapsto \xi^\top u+\eta^\top v - p^*(\xi,\eta) beneath p(u,v)p(u,v)—and watch every Lagrange multiplier, sign restriction, and duality theorem fall straight out of vertical-axis intercepts −p∗(ξ,η)-p^*(\xi,\eta)!

Compute the Fenchel conjugate p∗(ξ,η)=sup⁡u,v{ξ⊤u+η⊤v−p(u,v)}p^*(\xi,\eta)=\sup_{u,v}\{\xi^\top u+\eta^\top v - p(u,v)\} by replacing −inf⁡-\inf over feasible xx with sup⁡\sup over all (x,u,v)(x,u,v) satisfying x∈Xx\in\mathcal X, g(x)≤ug(x)\le u, and h(x)=vh(x)=v. Writing u=g(x)+su = g(x) + s with slack vector s∈R≥0ms\in\mathbb R_{\ge 0}^m and v=h(x)v = h(x) separates xx from ss: p∗(ξ,η)=sup⁡x∈X,  s∈R≥0m{ξ⊤(g(x)+s)+η⊤h(x)−f(x)}=sup⁡x∈X{ξ⊤g(x)+η⊤h(x)−f(x)}+sup⁡s∈R≥0mξ⊤s. \begin{aligned} p^*(\xi,\eta) &= \sup_{x\in\mathcal X,\; s\in\mathbb R_{\ge 0}^m}\bigl\{\xi^\top\bigl(g(x)+s\bigr)+\eta^\top h(x)-f(x)\bigr\} \\ &= \sup_{x\in\mathcal X}\bigl\{\xi^\top g(x)+\eta^\top h(x)-f(x)\bigr\} + \sup_{s\in\mathbb R_{\ge 0}^m}\xi^\top s. \end{aligned} Because X≠∅\mathcal X\ne\emptyset and f,g,hf,g,h are real-valued, fixing any x0∈Xx_0\in\mathcal X keeps the first supremum strictly above −∞-\infty, so adding sup⁡s≥0ξ⊤s∈{0,+∞}\sup_{s\ge 0}\xi^\top s\in\{0,+\infty\} never hits (−∞)+(+∞)(-\infty)+(+\infty). Read off both outcomes:

  1. Why inequality multipliers must satisfy λ≥0\lambda\ge 0 (forced by monotonicity, not convention): If ξi>0\xi_i > 0 for even a single i∈[m]i\in[m], sending s=teis = t e_i (t→+∞t\to+\infty) drives sup⁡s≥0ξ⊤s=+∞\sup_{s\ge 0}\xi^\top s = +\infty and forces p∗(ξ,η)=+∞p^*(\xi,\eta)=+\infty. Geometrically, an uphill slope (ξi>0\xi_i>0) chases the nonincreasing landscape p(u,v)p(u,v) as ui→+∞u_i\to+\infty without ever supporting it from below! Finite vertical intercepts exist only on downhill inequality slopes ξ=−λ\xi = -\lambda with λ∈R≥0m\lambda\in\mathbb R_{\ge 0}^m, whereas equality slopes η=−μ∈Rk\eta = -\mu\in\mathbb R^k face no sign restriction.
  2. Vertical intercept == Lagrange dual function: For every λ∈R≥0m\lambda\in\mathbb R_{\ge 0}^m and μ∈Rk\mu\in\mathbb R^k, we have sup⁡s≥0(−λ⊤s)=0\sup_{s\ge 0}(-\lambda^\top s)=0 (attained at s=0s=0). Negating p∗(−λ,−μ)p^*(-\lambda,-\mu) turns −sup⁡x-\sup_x into inf⁡x\inf_x: −p∗(−λ,−μ)=inf⁡x∈X{f(x)+λ⊤g(x)+μ⊤h(x)}. -p^*(-\lambda,-\mu) = \inf_{x\in\mathcal X}\bigl\{f(x)+\lambda^\top g(x)+\mu^\top h(x)\bigr\}.

That expression inside the infimum is the Lagrangian; its infimum is the Lagrange dual function, literally the vertical-axis intercept of a downhill supporting hyperplane beneath p(u,v)p(u,v)!

Definition 2 (Lagrangian and Lagrange dual problem) For the constrained optimization problem (P)(\mathsf{P}), call λ∈R≥0m\lambda\in\mathbb R_{\ge 0}^m and μ∈Rk\mu\in\mathbb R^k Lagrange multipliers (the negated supporting slopes ξ=−λ\xi=-\lambda, η=−μ\eta=-\mu of p(u,v)p(u,v)). The Lagrangian is L:X×R≥0m×Rk→RL:\mathcal X\times\mathbb R_{\ge 0}^m\times\mathbb R^k\to\mathbb R, L(x,λ,μ):=f(x)+∑i=1mλigi(x)+∑j=1kμjhj(x). L(x,\lambda,\mu) := f(x)+\sum_{i=1}^m\lambda_i g_i(x)+\sum_{j=1}^k\mu_j h_j(x). The height at (u,v)=(0,0)(u,v)=(0,0) of the hyperplane with slope (−λ,−μ)(-\lambda,-\mu) is the Lagrange dual function q:R≥0m×Rk→[−∞,+∞)q:\mathbb R_{\ge 0}^m\times\mathbb R^k\to[-\infty,+\infty), q(λ,μ):=inf⁡x∈XL(x,λ,μ)=−p∗(−λ,−μ), q(\lambda,\mu):=\inf_{x\in\mathcal X} L(x,\lambda,\mu) = -p^*(-\lambda,-\mu), and maximizing this vertical intercept gives the Lagrange dual problem: (D)d∗:=sup⁡λ∈R≥0m, μ∈Rkq(λ,μ)=sup⁡λ∈R≥0m, μ∈Rkinf⁡x∈XL(x,λ,μ). (\mathsf{D}) \qquad d^*:=\sup_{\lambda\in\mathbb R_{\ge 0}^m,\,\mu\in\mathbb R^k} q(\lambda,\mu) =\sup_{\lambda\in\mathbb R_{\ge 0}^m,\,\mu\in\mathbb R^k}\inf_{x\in\mathcal X} L(x,\lambda,\mu).

Two practical clarifications make this formula effortless to use on the blackboard:

  1. You never need to compute p(u,v)p(u,v) first. Substituting u=g(x)+su=g(x)+s already eliminated (u,v)(u,v) once and for all. To dualize any problem in practice, you go straight to sup⁡λ≥0,μinf⁡x∈XL(x,λ,μ)\sup_{\lambda\ge 0,\mu}\inf_{x\in\mathcal X} L(x,\lambda,\mu)—never solving for p(u,v)p(u,v) explicitly!
  2. Equivalent zero-sum penalty game interpretation. Fixing any x∈Xx\in\mathcal X and letting a penalty adversary choose (λ,μ)(\lambda,\mu) gives sup⁡λ≥0,μL(x,λ,μ)=f(x)\sup_{\lambda\ge 0,\mu} L(x,\lambda,\mu) = f(x) when xx is feasible (g(x)≤0,h(x)=0g(x)\le 0,h(x)=0) and +∞+\infty when xx violates any constraint (because λi≥0\lambda_i\ge 0 punishes gi(x)>0g_i(x)>0 to +∞+\infty while helping gi(x)<0g_i(x)<0 is avoided by λi=0\lambda_i=0). Hence (P)(\mathsf{P}) itself equals the minimax game p∗=inf⁡x∈Xsup⁡λ≥0,μL(x,λ,μ)p^* = \inf_{x\in\mathcal X}\sup_{\lambda\ge 0,\mu} L(x,\lambda,\mu), and swapping inf⁡xsup⁡λ,μ\inf_x\sup_{\lambda,\mu} to sup⁡λ,μinf⁡x\sup_{\lambda,\mu}\inf_x moves us from p(0,0)p(0,0) to its Fenchel biconjugate envelope p∗∗(0,0)p^{**}(0,0).

Everything classical in Lagrangian duality now compresses into one proposition:

Theorem 1 (Perturbation Duality, Concavity, Weak Duality, and Complementary Slackness) For any optimization problem (P)(\mathsf{P}) (convex or nonconvex, feasible or infeasible) with perturbation function p(u,v)p(u,v) and Lagrangian L(x,λ,μ)L(x,\lambda,\mu):

  1. Dual concavity & Biconjugate identity: The dual function q(λ,μ)=inf⁡x∈XL(x,λ,μ)q(\lambda,\mu)=\inf_{x\in\mathcal X} L(x,\lambda,\mu) is concave on R≥0m×Rk\mathbb R_{\ge 0}^m\times\mathbb R^k, and the dual optimum equals the Fenchel biconjugate of pp at the origin: d∗=sup⁡λ∈R≥0m, μ∈Rkq(λ,μ)=sup⁡(ξ,η)∈Rm×Rk{−p∗(ξ,η)}=p∗∗(0,0). d^* = \sup_{\lambda\in\mathbb R_{\ge 0}^m,\,\mu\in\mathbb R^k} q(\lambda,\mu) = \sup_{(\xi,\eta)\in\mathbb R^m\times\mathbb R^k}\bigl\{-p^*(\xi,\eta)\bigr\} = p^{**}(0,0).
  2. Weak Duality & Strong Duality criterion: Universally, d∗=p∗∗(0,0)  ≤  p(0,0)=p∗. d^* = p^{**}(0,0) \;\le\; p(0,0) = p^*. Strong Duality (d∗=p∗d^*=p^*) holds if and only if p(0,0)=p∗∗(0,0)p(0,0)=p^{**}(0,0)—in particular, when pp and its conjugate p∗p^* are proper, iff the closed convex envelope cl⁡conv⁡(p)\operatorname{cl}\operatorname{conv}(p) meets pp at (0,0)(0,0). (In Reading §2.1, strict inequality-only Slater guarantees continuity of convex pp at 00, and the refined Slater theorem also closes the gap whenever p∗>−∞p^*>-\infty.)
  3. Complementary Slackness: Suppose x∗∈Xx^*\in\mathcal X is primal feasible and (λ∗,μ∗)∈R≥0m×Rk(\lambda^*,\mu^*)\in\mathbb R_{\ge 0}^m\times\mathbb R^k achieve zero gap f(x∗)=q(λ∗,μ∗)∈Rf(x^*)=q(\lambda^*,\mu^*)\in\mathbb R. Then x∗x^* minimizes L(⋅,λ∗,μ∗)L(\cdot,\lambda^*,\mu^*) over X\mathcal X, and for every inequality constraint i∈[m]i\in[m], λi∗ gi(x∗)=0. \lambda_i^*\, g_i(x^*)=0.

Proof. For (1), fix each x∈Xx\in\mathcal X; the map (λ,μ)↦L(x,λ,μ)(\lambda,\mu)\mapsto L(x,\lambda,\mu) is affine, hence concave, and a pointwise infimum of concave functions is always concave. Moreover, because p∗(ξ,η)=+∞p^*(\xi,\eta)=+\infty whenever any ξi>0\xi_i>0, the supremum in p∗∗(0,0)=sup⁡ξ,η{⟨(ξ,η),(0,0)⟩−p∗(ξ,η)}=sup⁡ξ,η{−p∗(ξ,η)}p^{**}(0,0)=\sup_{\xi,\eta}\{\langle(\xi,\eta),(0,0)\rangle-p^*(\xi,\eta)\}=\sup_{\xi,\eta}\{-p^*(\xi,\eta)\} restricts automatically to ξ=−λ≤0\xi=-\lambda\le 0 and η=−μ\eta=-\mu, leaving sup⁡λ≥0,μ{−p∗(−λ,−μ)}=sup⁡λ≥0,μq(λ,μ)=d∗\sup_{\lambda\ge 0,\mu}\{-p^*(-\lambda,-\mu)\}=\sup_{\lambda\ge 0,\mu}q(\lambda,\mu)=d^*.

For (2), check p∗∗(0,0)≤p(0,0)p^{**}(0,0)\le p(0,0) in all cases: if p(0,0)=+∞p(0,0)=+\infty, the inequality holds trivially; if p(0,0)=−∞p(0,0)=-\infty, then p∗(ξ,η)≥⟨(ξ,η),(0,0)⟩−(−∞)=+∞p^*(\xi,\eta)\ge\langle(\xi,\eta),(0,0)\rangle-(-\infty)=+\infty everywhere, so p∗∗(0,0)=−∞=p(0,0)p^{**}(0,0)=-\infty=p(0,0); and if p(0,0)∈Rp(0,0)\in\mathbb R, then for every (ξ,η)(\xi,\eta), ⟨(ξ,η),(0,0)⟩−p∗(ξ,η)≤p(0,0)\langle(\xi,\eta),(0,0)\rangle-p^*(\xi,\eta)\le p(0,0) directly from Definition 1, and taking sup⁡ξ,η\sup_{\xi,\eta} gives p∗∗(0,0)≤p(0,0)p^{**}(0,0)\le p(0,0). The Strong Duality characterization d∗=p∗  ⟺  p(0,0)=p∗∗(0,0)d^*=p^*\iff p(0,0)=p^{**}(0,0) is immediate from (1).

For (3), note directly for any primal-feasible x∗x^* and any λ∗≥0\lambda^*\ge 0, μ∗\mu^* that q(λ∗,μ∗)≤L(x∗,λ∗,μ∗)=f(x∗)+∑i=1mλi∗gi(x∗)+∑j=1kμj∗hj(x∗)≤f(x∗)q(\lambda^*,\mu^*)\le L(x^*,\lambda^*,\mu^*)=f(x^*)+\sum_{i=1}^m\lambda_i^* g_i(x^*)+\sum_{j=1}^k\mu_j^* h_j(x^*)\le f(x^*) since λi∗gi(x∗)≤0\lambda_i^* g_i(x^*)\le 0 and hj(x∗)=0h_j(x^*)=0. Because the left and right endpoints both equal f(x∗)f(x^*), both inequalities must hold with equality: x∗x^* minimizes L(⋅,λ∗,μ∗)L(\cdot,\lambda^*,\mu^*) over X\mathcal X, and ∑i=1mλi∗gi(x∗)=0\sum_{i=1}^m\lambda_i^* g_i(x^*)=0. Since every term satisfies λi∗gi(x∗)≤0\lambda_i^* g_i(x^*)\le 0, every term vanishes individually.

Now watch the perturbation geometry expose nonconvex duality gaps in full daylight.

Caution (When nonconvexity leaves a gap: the perturbation staircase on {0,1}\{0,1\}).

Consider the two-point discrete domain X={0,1}\mathcal X=\{0,1\}, linear objective f(x)=xf(x)=x, and single constraint g(x)=12−x≤0g(x)=\frac12-x\le 0 (requiring x≥12x\ge\frac12). Embed this problem in p(u)=inf⁡{x∈{0,1}:12−x≤u}p(u)=\inf\{x\in\{0,1\} : \frac12-x\le u\}: choice x=1x=1 becomes feasible at u≥−12u\ge -\frac12 with cost 11, whereas x=0x=0 becomes feasible only at u≥12u\ge \frac12 with cost 00, producing the staircase p(u)={+∞,u<−12,1,−12≤u<12,0,u≥12, p(u) = \begin{cases} +\infty, & u < -\frac12,\\ 1, & -\frac12 \le u < \frac12,\\ 0, & u \ge \frac12, \end{cases} so the unperturbed optimum is p∗=p(0)=1p^* = p(0) = 1. Any downhill supporting line u↦−λu+q(λ)u\mapsto -\lambda u + q(\lambda) (λ≥0\lambda\ge 0) beneath this staircase attains its tightest intercept q(λ)=−p∗(−λ)=min⁡{λ/2, 1−λ/2}q(\lambda) = -p^*(-\lambda) = \min\{\lambda/2,\,1-\lambda/2\}, peaking at λ∗=1\lambda^* = 1. Geometrically, that optimal supporting line u↦12−uu\mapsto \frac12 - u rests on the two staircase corners (−12,1)(-\frac12,1) and (12,0)(\frac12,0), tracing the convex-hull LP relaxation x∈[0,1]x\in[0,1] (whose perturbation curve drops linearly from 11 to 00) and cutting the vertical axis u=0u=0 at height d∗=p∗∗(0)=12<1=p(0)d^* = p^{**}(0) = \frac12 < 1 = p(0).

u p = +∞ −1/2 1/2 1/2 − u p(0) = 1 d* = 1/2 gap 1/2

The perturbation staircase p(u)p(u) jumps from +∞+\infty to 11 on [−12,12)[-\frac12,\frac12) and 00 on [12,+∞)[\frac12,+\infty); its tightest supporting line 12−u\frac12-u (λ∗=1\lambda^*=1) hits the vertical axis at d∗=p∗∗(0)=12<1=p(0)d^*=p^{**}(0)=\frac12 < 1=p(0).

1.3 Hand-crafting linear programming duality

To see how mechanical—and transparent—§1.2’s Lagrangian recipe becomes when everything in sight is linear (the zero-curvature limit from Example 1), let us derive the dual of a standard covering linear program from first principles on the blackboard, without memorizing any sign-flipping table.

Consider nn nonnegative decision variables x=(x1,…,xn)∈X:=R≥0nx=(x_1,\ldots,x_n)\in\mathcal X:=\mathbb R_{\ge 0}^n, an objective vector c∈Rnc\in\mathbb R^n, a constraint matrix A∈Rm×nA\in\mathbb R^{m\times n}, and a right-hand side vector b∈Rmb\in\mathbb R^m: (LP-P)min⁡x∈R≥0n  c⊤xsubject toAx≥b. (\mathsf{LP\text{-}P}) \qquad \min_{x\in\mathbb R_{\ge 0}^n} \; c^\top x \qquad \text{subject to} \qquad A x \ge b. Follow the perturbation-Lagrangian recipe of §1.2 step by step:

  1. Rewrite constraints as g(x)≤0g(x)\le 0 and introduce multipliers y≥0y\ge 0: The constraint Ax≥bAx\ge b is b−Ax≤0b - Ax \le 0. Since x∈R≥0nx\in\mathbb R_{\ge 0}^n is already built into the domain X\mathcal X, introduce one nonnegative multiplier yi≥0y_i\ge 0 for each of the mm inequalities (y∈R≥0my\in\mathbb R_{\ge 0}^m): L(x,y):=c⊤x+y⊤(b−Ax). L(x,y):=c^\top x + y^\top(b-Ax).
  2. Switch the side of the matrix AA via its transpose (adjoint): Because y⊤(Ax)=(A⊤y)⊤xy^\top(Ax) = (A^\top y)^\top x, regroup terms to isolate xx: L(x,y)=b⊤y+(c−A⊤y)⊤x. L(x,y)=b^\top y + (c - A^\top y)^\top x.
  3. Evaluate the inner minimization q(y):=inf⁡x∈R≥0nL(x,y)q(y):=\inf_{x\in\mathbb R_{\ge 0}^n} L(x,y): Since x1,…,xn≥0x_1,\ldots,x_n\ge 0 vary independently across coordinates, inf⁡x≥0(c−A⊤y)⊤x=∑j=1ninf⁡xj≥0(cj−(A⊤y)j)xj={0,if (A⊤y)j≤cj for all j∈[n],−∞,otherwise, \inf_{x\ge 0}\bigl(c-A^\top y\bigr)^\top x =\sum_{j=1}^n\inf_{x_j\ge 0}\bigl(c_j-(A^\top y)_j\bigr)x_j =\begin{cases} 0, & \text{if }(A^\top y)_j\le c_j\text{ for all }j\in[n],\\ -\infty, & \text{otherwise,} \end{cases} because if even a single coordinate jj satisfies cj−(A⊤y)j<0c_j-(A^\top y)_j < 0, sending xj→+∞x_j\to+\infty drives L(x,y)→−∞L(x,y)\to-\infty.
  4. Read off the dual linear program (LP-D)(\mathsf{LP\text{-}D}): Maximizing q(y)q(y) avoids −∞-\infty by enforcing A⊤y≤cA^\top y \le c, turning sup⁡y≥0q(y)\sup_{y\ge 0} q(y) into (LP-D)max⁡y∈R≥0m  b⊤ysubject toA⊤y≤c. (\mathsf{LP\text{-}D}) \qquad \max_{y\in\mathbb R_{\ge 0}^m} \; b^\top y \qquad \text{subject to} \qquad A^\top y \le c.

Same recipe with equality constraints or free primal variables. Notice what changes if (LP-P)(\mathsf{LP\text{-}P}) has an equality constraint (Ax)i=bi(Ax)_i = b_i or an unconstrained variable xj∈Rx_j\in\mathbb R: - By §1.2, an equality constraint produces an unconstrained multiplier yi∈Ry_i\in\mathbb R; - An unconstrained variable xj∈Rx_j\in\mathbb R forces (c−A⊤y)jxj→−∞(c-A^\top y)_j x_j\to -\infty unless (A⊤y)j=cj(A^\top y)_j = c_j holds with equality! Also, if we had kept X=Rn\mathcal X=\mathbb R^n and penalized −x≤0-x\le 0 explicitly with s∈R≥0ns\in\mathbb R_{\ge 0}^n, we would get c−A⊤y−s=0c - A^\top y - s = 0, identifying s=c−A⊤y≥0s = c - A^\top y\ge 0 as the dual slack vector. Finally, dualizing (LP-D)(\mathsf{LP\text{-}D}) recovers (LP-P)(\mathsf{LP\text{-}P}) back.

Notice the direct one-line verification of Weak Duality and Complementary Slackness for any primal-feasible xx and dual-feasible yy: because y≥0y\ge 0 and Ax≥bAx\ge b, while x≥0x\ge 0 and A⊤y≤cA^\top y\le c, b⊤y  ≤  (Ax)⊤y  =  x⊤(A⊤y)  ≤  c⊤x. b^\top y \;\le\; (Ax)^\top y \;=\; x^\top (A^\top y) \;\le\; c^\top x. Even better, the exact duality gap splits into two sums of nonnegative slack products: c⊤x−b⊤y=(c−A⊤y)⊤x⏟≥ 0+y⊤(Ax−b)⏟≥ 0. c^\top x - b^\top y = \underbrace{(c - A^\top y)^\top x}_{\ge\,0} + \underbrace{y^\top(Ax - b)}_{\ge\,0}. Hence c⊤x=b⊤yc^\top x = b^\top y if and only if both primal complementary slackness (xj>0  ⟹  (A⊤y)j=cjx_j > 0 \implies (A^\top y)_j = c_j) and dual complementary slackness (yi>0  ⟹  (Ax)i=biy_i > 0 \implies (Ax)_i = b_i) hold.

Unlike general nonconvex programs (where the staircase in §1.2 had a gap), polyhedral convexity ensures that linear programs never leave a duality gap whenever finite solutions exist—and give an exact characterization even when feasibility fails.

Theorem 2 (Strong LP Duality and the feasibility trichotomy) For any linear program (LP-P)(\mathsf{LP\text{-}P}) and its dual (LP-D)(\mathsf{LP\text{-}D}):

  1. Both feasible: If both (LP-P)(\mathsf{LP\text{-}P}) and (LP-D)(\mathsf{LP\text{-}D}) admit feasible solutions, then both attain finite optimal values x∗x^* and y∗y^*, and their optimal objectives coincide: c⊤x∗=b⊤y∗. c^\top x^* = b^\top y^*.
  2. Unboundedness forces dual infeasibility: If (LP-P)(\mathsf{LP\text{-}P}) is feasible and unbounded below (p∗=−∞p^*=-\infty), then (LP-D)(\mathsf{LP\text{-}D}) is infeasible. Symmetrically, if (LP-D)(\mathsf{LP\text{-}D}) is feasible and unbounded above (d∗=+∞d^*=+\infty), then (LP-P)(\mathsf{LP\text{-}P}) is infeasible.
  3. One feasible and bounded: If one of (LP-P)(\mathsf{LP\text{-}P}) or (LP-D)(\mathsf{LP\text{-}D}) is feasible and bounded, then the other is also feasible and attains the same optimal value.
  4. Simultaneous infeasibility: Both (LP-P)(\mathsf{LP\text{-}P}) and (LP-D)(\mathsf{LP\text{-}D}) can simultaneously be infeasible.

Simultaneous infeasibility in 1×11\times 1. Take A=(0)A=(0), b=(1)b=(1), c=(−1)c=(-1). Primal min⁡x≥0{−x:0⋅x≥1}\min_{x\ge 0}\{-x : 0\cdot x\ge 1\} has no feasible xx, and dual max⁡y≥0{y:0⋅y≤−1}\max_{y\ge 0}\{y : 0\cdot y\le -1\} has no feasible yy.

You already saw two close cousins of Theorem 2 in Chapter 4: von Neumann’s minimax theorem (§1.10) is the special case of LP duality over probability simplices (Δm,Δn)(\Delta_m,\Delta_n), and the Plotkin–Shmoys–Tardos infeasibility certificate (§1.11) is precisely a dual witness p∈Δmp\in\Delta_m certifying that p⊤Ax<p⊤bp^\top Ax < p^\top b for all x∈Px\in\mathcal P. Reading §2.2 gives a completely self-contained geometric proof of Theorem 2 via separating hyperplanes and Farkas’ lemma.

From Lagrange multipliers to LP duality. Joseph-Louis Lagrange introduced multipliers for smooth equality-constrained mechanics in Mécanique Analytique (1788), and William Karush (1939) and Harold Kuhn & Albert Tucker (1951) extended them to inequality constraints. For linear programs specifically, John von Neumann formulated Strong LP Duality immediately after meeting George Dantzig at the Institute for Advanced Study in October 1947, noticing its equivalence to his 1928 minimax theorem for zero-sum games; Gale, Kuhn, and Tucker published the first rigorous proof via Farkas’ lemma in 1951.

Before turning dual variables into approximation algorithms, let us work through a concrete four-vertex graph instance by hand—it will reappear in §1.5 and again in Chapter 7.

Example 2 (Minimum Weighted Vertex Cover and Maximum Edge Packing on the paw graph) Consider the 4-vertex paw graph G=(V,E)G=(V,E) with vertices V={1,2,3,4}V=\{1,2,3,4\}, edges E={{1,2},{1,3},{2,3},{3,4}}E=\bigl\{\{1,2\},\{1,3\},\{2,3\},\{3,4\}\bigr\}, and vertex weights w=(w1,w2,w3,w4)=(2,3,4,2)w=(w_1,w_2,w_3,w_4)=(2,3,4,2). We seek a subset S⊆VS\subseteq V touching every edge (S∩e≠∅S\cap e\ne\emptyset for all e∈Ee\in E) of minimum total weight ∑v∈Swv\sum_{v\in S} w_v.

Relaxing indicators xv∈{0,1}x_v\in\{0,1\} to xv≥0x_v\ge 0 gives the covering LP and (by our four-step derivation with AA the edge–vertex incidence matrix) its dual edge-packing LP: (VC-LP)  min⁡x≥0  2x1+3x2+4x3+2x4s.t.  xu+xv≥1    ∀{u,v}∈E,(VC-D)  max⁡y≥0  y12+y13+y23+y34s.t.  ∑e∋vye≤wv    ∀v∈V. \begin{aligned} (\mathsf{VC\text{-}LP}) \;\min_{x\ge 0} \;& 2x_1 + 3x_2 + 4x_3 + 2x_4 \\ \text{s.t.} \;& x_u + x_v \ge 1 \;\; \forall \{u,v\}\in E, \end{aligned} \quad \begin{aligned} (\mathsf{VC\text{-}D}) \;\max_{y\ge 0} \;& y_{12}+y_{13}+y_{23}+y_{34} \\ \text{s.t.} \;& \sum_{e\ni v} y_e \le w_v \;\; \forall v\in V. \end{aligned} Compare the integral optimum against the LP primal and dual optima:

  • Integral optimum: Any vertex cover must cover the triangle {1,2,3}\{1,2,3\} (at least two of vertices 1,2,31,2,3) and edge {3,4}\{3,4\}. Choosing S∗={1,3}S^*=\{1,3\} costs w1+w3=2+4=6w_1+w_3 = 2+4 = 6, whereas {2,3}\{2,3\} costs 77 and {1,2,4}\{1,2,4\} costs 77, so OPT=6\mathrm{OPT}=6.
  • Fractional primal candidate: Setting x∗=(12,12,12,12)x^* = \bigl(\frac12,\frac12,\frac12,\frac12\bigr) satisfies xu∗+xv∗=1x_u^*+x_v^*=1 on every edge and achieves fractional cost w⊤x∗=12(2+3+4+2)=5.5w^\top x^* = \frac12(2+3+4+2) = 5.5.
  • Dual edge-packing certificate: How do we prove that no fractional vector x≥0x\ge 0 can beat 5.55.5? Put a non-negative edge budget yey_e on each edge without exceeding any vertex’s weight: y∗=(y12∗,y13∗,y23∗,y34∗)=(1.5, 0.5, 1.5, 2). y^*=(y_{12}^*,y_{13}^*,y_{23}^*,y_{34}^*)=(1.5,\, 0.5,\, 1.5,\, 2). Check each vertex’s budget: vertex 11 receives 1.5+0.5=2=w11.5+0.5=2=w_1; vertex 22 receives 1.5+1.5=3=w21.5+1.5=3=w_2; vertex 33 receives 0.5+1.5+2=4=w30.5+1.5+2=4=w_3; vertex 44 receives 2=w42=w_4. All four dual constraints hold with equality! Their sum is ∑e∈Eye∗=1.5+0.5+1.5+2=5.5=w⊤x∗\sum_{e\in E} y_e^* = 1.5+0.5+1.5+2 = 5.5 = w^\top x^*, so by Weak Duality, (x∗,y∗)(x^*, y^*) is certified globally optimal—and notice that the LP optimum 5.55.5 sits strictly below the integral optimum 66.
1.5 0.5 1.5 2 1 w=2 2 w=3 3 w=4 4 w=2

Paw graph of Example 2: integral optimum S∗={1,3}S^*=\{1,3\} (green) has weight 66, while dual edge bounties y∗=(1.5,0.5,1.5,2)y^*=(1.5,0.5,1.5,2) sum to 5.5=OPTLP5.5 = \mathrm{OPT}_{\mathrm{LP}}.

1.4 Dual prices as algorithmic certificates: Dual Fitting on Greedy Set Cover

In Example 2 we could inspect y∗y^* because the graph had four vertices. On a graph or set system with a million elements, we want a fast combinatorial algorithm—say, a simple greedy algorithm—whose output cost ALG\mathrm{ALG} is provably within a factor α\alpha of the unknown optimum OPT\mathrm{OPT}.

How can you ever prove ALG≤α⋅OPT\mathrm{ALG}\le \alpha\cdot\mathrm{OPT} when computing OPT\mathrm{OPT} itself is NP\mathsf{NP}-hard?

Duality gives a remarkably clean answer: do not compare ALG\mathrm{ALG} to the unknown optimal primal solution directly—build a feasible dual solution yy instead! Because any feasible dual satisfies Dual(y)≤OPTLP≤OPT\mathrm{Dual}(y) \le \mathrm{OPT}_{\mathrm{LP}} \le \mathrm{OPT} by Weak Duality, exhibiting one dual-feasible vector yy with ALG≤α⋅Dual(y)\mathrm{ALG}\le \alpha\cdot\mathrm{Dual}(y) immediately certifies ALG≤α⋅OPT\mathrm{ALG}\le\alpha\cdot\mathrm{OPT} without ever solving a linear program!

To see this idea in action, let us formulate Weighted Set Cover cleanly from scratch.

Definition 3 (Weighted Set Cover and its LP/Dual pair) An instance of Weighted Set Cover consists of a finite ground universe U\mathcal U of mm elements, a collection S⊆2U\mathcal S\subseteq 2^{\mathcal U} of subsets covering U\mathcal U (⋃S∈SS=U\bigcup_{S\in\mathcal S} S=\mathcal U), and a nonnegative cost cS≥0c_S\ge 0 for each set S∈SS\in\mathcal S. Write k:=max⁡S∈S∣S∣k:=\max_{S\in\mathcal S}|S| for the maximum set size. The objective is to select a subcollection C⊆S\mathcal C\subseteq\mathcal S such that ⋃S∈CS=U\bigcup_{S\in\mathcal C} S=\mathcal U minimizing total cost ∑S∈CcS\sum_{S\in\mathcal C} c_S.

Replacing xS∈{0,1}x_S\in\{0,1\} by xS≥0x_S\ge 0 yields the covering LP and, by the exact four-step Lagrangian recipe of §1.3, its dual: (SC-LP)min⁡x≥0∑S∈ScSxSs.t.∑S∈S: e∈SxS≥1∀e∈U,(SC-D)max⁡y≥0∑e∈Uyes.t.∑e∈Sye≤cS∀S∈S. \begin{aligned} (\mathsf{SC\text{-}LP}) \quad \min_{x\ge 0} \quad & \sum_{S\in\mathcal S} c_S x_S \\ \text{s.t.} \quad & \sum_{S\in\mathcal S:\, e\in S} x_S \ge 1 \quad \forall e\in\mathcal U, \end{aligned} \qquad \begin{aligned} (\mathsf{SC\text{-}D}) \quad \max_{y\ge 0} \quad & \sum_{e\in\mathcal U} y_e \\ \text{s.t.} \quad & \sum_{e\in S} y_e \le c_S \quad \forall S\in\mathcal S. \end{aligned}

The bounty-pricing story

Look at the dual (SC-D)(\mathsf{SC\text{-}D}) through economic eyes:

Now consider the simplest possible algorithm for Weighted Set Cover—Greedy Set Cover—which repeatedly purchases whichever set S∈SS\in\mathcal S currently offers the lowest price per uncovered element, paying cS/∣S∩R∣c_S/|S\cap R| per newly covered element (where R⊆UR\subseteq\mathcal U denotes the still-uncovered elements). How do we relate Greedy’s bill to a valid bounty vector yy?

  1. Bill splitting (amortize Greedy’s cost onto elements): Whenever Greedy buys a set SS and newly covers S∩RS\cap R, record the unit price it actually paid for each newly covered element e∈S∩Re\in S\cap R as a raw bounty αe:=cS∣S∩R∣\alpha_e := \frac{c_S}{|S\cap R|}. By construction, Greedy’s total cost equals ∑e∈Uαe\sum_{e\in\mathcal U}\alpha_e!
  2. Audit the overcharge: Does α\alpha obey the no-arbitrage constraint ∑e∈Tαe≤cT\sum_{e\in T}\alpha_e \le c_T for every set TT? Usually no—later elements of TT might have been bought at high prices after TT’s other elements were already gone. But how badly can α\alpha overcharge TT? If TT still had r−i+1r-i+1 uncovered elements when its ii-th element eie_i was covered, Greedy could have picked TT instead of paying αei\alpha_{e_i}, so αei≤cTr−i+1\alpha_{e_i}\le \frac{c_T}{r-i+1}! Summing over TT caps the overcharge factor at Hr=1+12+⋯+1r≤HkH_r = 1+\frac12+\cdots+\frac1r \le H_k.
  3. Dual fitting (shrink to feasibility): Dividing every raw bounty by HkH_k—setting ye:=αe/Hky_e := \alpha_e / H_k—forces ∑e∈Tye≤cT\sum_{e\in T} y_e \le c_T for every T∈ST\in\mathcal S, fitting yy inside the dual polytope (SC-D)(\mathsf{SC\text{-}D}) and instantly proving ALG=Hk∑eye≤Hk⋅OPTLP≤Hk⋅OPT\mathrm{ALG} = H_k\sum_e y_e \le H_k\cdot\mathrm{OPT}_{\mathrm{LP}}\le H_k\cdot\mathrm{OPT}!

Theorem 3 (Greedy Set Cover achieves an HkH_k-approximation via dual fitting) Let Hr:=∑i=1r1iH_r := \sum_{i=1}^r \frac{1}{i} denote the rr-th harmonic number (Hk≤ln⁡k+1H_k \le \ln k + 1). Repeatedly selecting a set S∈SS\in\mathcal S that minimizes the cost per uncovered element cS∣S∩R∣\frac{c_S}{|S\cap R|} (with RR the current uncovered set) produces a set cover C\mathcal C satisfying ∑S∈CcS≤Hk⋅OPTLP≤Hk⋅OPT. \sum_{S\in\mathcal C} c_S \le H_k \cdot \mathrm{OPT}_{\mathrm{LP}} \le H_k \cdot \mathrm{OPT}. In particular, the integrality gap OPT/OPTLP\mathrm{OPT}/\mathrm{OPT}_{\mathrm{LP}} of (SC-LP)(\mathsf{SC\text{-}LP}) is at most HkH_k.

Proof. Suppose Greedy chooses sets S1,S2,…,StS_1, S_2,\ldots,S_t in order, and let Rj−1R_{j-1} be the set of uncovered elements right before step jj (R0=UR_0=\mathcal U, Rt=∅R_t=\emptyset). Set Nj:=Sj∩Rj−1≠∅N_j := S_j\cap R_{j-1}\ne\emptyset to be the elements newly covered at step jj. Since N1,…,NtN_1,\ldots,N_t partition U\mathcal U, define the raw cost share of each element e∈Nje\in N_j by αe:=cSj∣Nj∣≥0. \alpha_e := \frac{c_{S_j}}{|N_j|} \ge 0. By construction, the total cost paid by Greedy satisfies ∑j=1tcSj=∑j=1t∑e∈NjcSj∣Nj∣=∑e∈Uαe. \sum_{j=1}^t c_{S_j} = \sum_{j=1}^t \sum_{e\in N_j} \frac{c_{S_j}}{|N_j|} = \sum_{e\in\mathcal U} \alpha_e. Now fix any set T∈ST\in\mathcal S of size r=∣T∣r=|T| (if r=0r=0, then ∑e∈Tαe=0≤cT\sum_{e\in T}\alpha_e = 0\le c_T). List the elements of TT as e1,e2,…,ere_1,e_2,\ldots,e_r in the order in which Greedy covers them (breaking ties among elements covered in the same step arbitrarily). Suppose eie_i is covered at step jj (so ei∈Nje_i\in N_j). Just before step jj, none of ei,ei+1,…,ere_i,e_{i+1},\ldots,e_r has been covered yet, so ∣T∩Rj−1∣≥r−i+1. |T\cap R_{j-1}| \ge r - i + 1. Because Greedy chose SjS_j minimizing cS∣S∩Rj−1∣\frac{c_S}{|S\cap R_{j-1}|} over all S∈SS\in\mathcal S, comparing SjS_j against the candidate TT gives αei=cSj∣Sj∩Rj−1∣≤cT∣T∩Rj−1∣≤cTr−i+1. \alpha_{e_i} = \frac{c_{S_j}}{|S_j\cap R_{j-1}|} \le \frac{c_T}{|T\cap R_{j-1}|} \le \frac{c_T}{r - i + 1}. Summing over i=1,…,ri=1,\ldots,r yields the overcharge bound ∑e∈Tαe=∑i=1rαei≤cT∑i=1r1r−i+1=Hr cT≤Hk cT. \sum_{e\in T}\alpha_e = \sum_{i=1}^r \alpha_{e_i} \le c_T\sum_{i=1}^r \frac{1}{r-i+1} = H_r\, c_T \le H_k\, c_T. Therefore the scaled vector ye:=αe/Hk≥0y_e := \alpha_e / H_k \ge 0 satisfies ∑e∈Tye≤cT\sum_{e\in T} y_e \le c_T for every T∈ST\in\mathcal S, making yy dual-feasible for (SC-D)(\mathsf{SC\text{-}D}). Weak Duality (Theorem 1) finishes the proof: ∑j=1tcSj=∑e∈Uαe=Hk∑e∈Uye≤Hk⋅OPTLP≤Hk⋅OPT. \sum_{j=1}^t c_{S_j} = \sum_{e\in\mathcal U} \alpha_e = H_k \sum_{e\in\mathcal U} y_e \le H_k\cdot\mathrm{OPT}_{\mathrm{LP}} \le H_k\cdot\mathrm{OPT}.

Observe the elegance of dual fitting: the algorithm itself is pure combinatorics and never solves (SC-LP)(\mathsf{SC\text{-}LP}) or (SC-D)(\mathsf{SC\text{-}D}), yet we obtained a certificate against OPTLP\mathrm{OPT}_{\mathrm{LP}} (and hence OPT\mathrm{OPT}) by pricing the greedy execution and rescaling by the worst-case overcharge HkH_k. Let us watch the scaling work on a concrete 66-element example.

Example 3 (Watching raw bounties overcharge and dual fitting rescale them (k=3k=3)) Let U={a1,a2,a3,b1,b2,b3}\mathcal U=\{a_1,a_2,a_3,b_1,b_2,b_3\} with k=3k=3, and offer five sets: two horizontal triples Ta={a1,a2,a3}T_a=\{a_1,a_2,a_3\} and Tb={b1,b2,b3}T_b=\{b_1,b_2,b_3\} of cost 11 each (so OPT=2\mathrm{OPT}=2 by buying Ta,TbT_a,T_b), plus three vertical pairs S1={a1,b1}S_1=\{a_1,b_1\} (cS1=0.6c_{S_1}=0.6), S2={a2,b2}S_2=\{a_2,b_2\} (cS2=0.9c_{S_2}=0.9), and S3={a3,b3}S_3=\{a_3,b_3\} (cS3=1.8c_{S_3}=1.8).

  1. Step 1 (R0=UR_0=\mathcal U): Unit prices are 0.300.30 for S1S_1, 0.450.45 for S2S_2, 0.900.90 for S3S_3, and 1/3≈0.3331/3\approx 0.333 for Ta,TbT_a,T_b. Greedy picks S1S_1, assigning αa1=αb1=0.30\alpha_{a_1}=\alpha_{b_1}=0.30.
  2. Step 2 (R1={a2,a3,b2,b3}R_1=\{a_2,a_3,b_2,b_3\}): Now Ta,TbT_a,T_b contain 22 uncovered elements each (unit price 1/2=0.501/2=0.50), while S2S_2 costs 0.9/2=0.450.9/2=0.45 and S3S_3 costs 0.900.90. Greedy picks S2S_2, assigning αa2=αb2=0.45\alpha_{a_2}=\alpha_{b_2}=0.45.
  3. Step 3 (R2={a3,b3}R_2=\{a_3,b_3\}): Now Ta,TbT_a,T_b have unit price 1/1=1.001/1=1.00, beaten by S3S_3 at 1.8/2=0.901.8/2=0.90. Greedy picks S3S_3, assigning αa3=αb3=0.90\alpha_{a_3}=\alpha_{b_3}=0.90, for a total bill of 0.6+0.9+1.8=3.3=1.65 OPT0.6+0.9+1.8 = 3.3 = 1.65\,\mathrm{OPT}.

Notice that raw bounties overcharge TaT_a and TbT_b: αa1+αa2+αa3=0.30+0.45+0.90=1.65>1=cTa\alpha_{a_1}+\alpha_{a_2}+\alpha_{a_3} = 0.30+0.45+0.90 = 1.65 > 1 = c_{T_a}. Scaling by H3=1+12+13=116H_3 = 1+\frac12+\frac13 = \frac{11}{6} yields (ya1,ya2,ya3)=(yb1,yb2,yb3)=(955, 27110, 2755), (y_{a_1},y_{a_2},y_{a_3})=(y_{b_1},y_{b_2},y_{b_3}) =\left(\frac{9}{55},\,\frac{27}{110},\,\frac{27}{55}\right), which drops the total bounty inside TaT_a (and TbT_b) down to 955+27110+2755=0.90≤1\frac{9}{55}+\frac{27}{110}+\frac{27}{55}=0.90\le 1 (while each SiS_i stays strictly under cSic_{S_i}). Thus yy is dual-feasible with ∑e∈Uye=1.80≤2=OPT\sum_{e\in\mathcal U} y_e = 1.80 \le 2 = \mathrm{OPT}, certifying ALG=3.3=H3⋅1.80≤H3⋅OPT\mathrm{ALG}=3.3 = H_3\cdot 1.80 \le H_3\cdot\mathrm{OPT}.

Ta Tb c=1 c=1 0.30 0.30 0.45 0.45 0.90 0.90 S₁ (0.6) S₂ (0.9) S₃ (1.8)

In Example 3, raw greedy shares (0.30,0.45,0.90)(0.30,0.45,0.90) sum to 1.651.65 inside TaT_a and TbT_b; dividing by H3=11/6H_3=11/6 restores ∑e∈Taye=0.90≤1\sum_{e\in T_a} y_e=0.90\le 1.

1.5 Staying dual-feasible: the Primal–Dual schema on Weighted Vertex Cover

In dual fitting (§1.4), the greedy algorithm spent money first and worried about dual feasibility afterwards, dividing α\alpha by HkH_k at the end to sneak back under the no-arbitrage cap.

What if we reverse the logic and never cross the no-arbitrage cap in the first place? Starting from the trivial dual y=0y=0, we can gradually raise dual bounties on unsatisfied constraints while strictly enforcing dual feasibility at every instant; whenever a dual constraint becomes tight—meaning the bounties inside an available primal option just match its sticker price—we buy that option into the primal solution!

Notice why this works cleanly: at exact optimality (§1.3), both primal and dual complementary slackness hold with equality (α=β=1\alpha=\beta=1). For an αβ\alpha\beta-approximation algorithm, we only need relaxed complementary slackness:

Lemma 1 (Relaxed Complementary Slackness) Let x∈R≥0nx\in\mathbb R_{\ge 0}^n be primal feasible for (LP-P)(\mathsf{LP\text{-}P}) and y∈R≥0my\in\mathbb R_{\ge 0}^m be dual feasible for (LP-D)(\mathsf{LP\text{-}D}). Suppose there exist constants α,β≥1\alpha,\beta\ge 1 such that:

  1. Primal α\alpha-tightness: If xj>0x_j > 0, then cj≤α (A⊤y)jc_j \le \alpha\,(A^\top y)_j.
  2. Dual β\beta-packing: If yi>0y_i > 0, then (Ax)i≤β bi(Ax)_i \le \beta\, b_i.

Then c⊤x≤αβ b⊤y≤αβ⋅OPTLPc^\top x \le \alpha\beta\, b^\top y \le \alpha\beta\cdot\mathrm{OPT}_{\mathrm{LP}} (and in particular, if xx is integral, its cost is at most αβ⋅OPT\alpha\beta\cdot\mathrm{OPT}).

Proof. Multiply condition (1) by xj≥0x_j\ge 0 and sum over j∈[n]j\in[n], swap AA to A⊤A^\top, and apply condition (2) with yi≥0y_i\ge 0: c⊤x=∑j: xj>0cjxj≤α∑j=1n(A⊤y)jxj=α∑i=1myi(Ax)i=α∑i: yi>0yi(Ax)i≤αβ∑i=1myibi=αβ b⊤y. \begin{aligned} c^\top x &= \sum_{j:\,x_j>0} c_j x_j \le \alpha\sum_{j=1}^n (A^\top y)_j x_j = \alpha\sum_{i=1}^m y_i (Ax)_i \\ &= \alpha\sum_{i:\,y_i>0} y_i (Ax)_i \le \alpha\beta\sum_{i=1}^m y_i b_i = \alpha\beta\, b^\top y. \end{aligned} By Weak Duality (Theorem 1), b⊤y≤OPTLPb^\top y \le \mathrm{OPT}_{\mathrm{LP}}, proving c⊤x≤αβ⋅OPTLPc^\top x \le \alpha\beta\cdot\mathrm{OPT}_{\mathrm{LP}}.

Let us deploy this template on Minimum Weighted Vertex Cover: given a graph G=(V,E)G=(V,E) with vertex weights wv≥0w_v\ge 0, pick a subset S⊆VS\subseteq V intersecting every edge e∈Ee\in E to minimize ∑v∈Swv\sum_{v\in S} w_v. Note that this is simply Weighted Set Cover where the “elements” are the edges e∈Ee\in E and each “set” is the star of edges incident to a vertex v∈Vv\in V, so every edge belongs to at most two sets! From Example 2, the dual (VC-D)(\mathsf{VC\text{-}D}) asks for edge bounties ye≥0y_e\ge 0 satisfying ∑e∋vye≤wv\sum_{e\ni v} y_e\le w_v at every vertex v∈Vv\in V.

Here is the Primal–Dual Vertex Cover algorithm:

  1. Initialize ye←0y_e\gets 0 for all e∈Ee\in E and S←{v∈V:wv=0}S\gets \{v\in V : w_v=0\} (free zero-weight vertices are bought immediately, automatically satisfying ∑e∋vye=0=wv\sum_{e\ni v} y_e = 0 = w_v).
  2. While some edge e={u,v}∈Ee=\{u,v\}\in E remains uncovered by SS (meaning u∉Su\notin S and v∉Sv\notin S, so both endpoints have strictly positive remaining budget wz−∑e′∋zye′>0w_z - \sum_{e'\ni z} y_{e'} > 0):
    • Raise yey_e by the maximum amount Δe:=min⁡{wu−∑e′∋uye′,  wv−∑e′∋vye′}>0 \Delta_e := \min\Bigl\{w_u-\sum_{e'\ni u} y_{e'},\; w_v-\sum_{e'\ni v} y_{e'}\Bigr\} > 0 that keeps both endpoints dual-feasible;
    • Buy into SS every endpoint z∈{u,v}z\in\{u,v\} whose vertex budget just became tight (∑e′∋zye′=wz\sum_{e'\ni z} y_{e'} = w_z).
  3. Return the vertex cover SS.

(Equivalently, in the synchronized water-filling variant, we raise yey_e simultaneously at unit rate on all currently uncovered edges ee at once, buying vertices into SS and freezing their incident edges whenever their budgets fill up. Every vertex v∈Sv\in S is still bought only when tight, so the proof below applies word for word to both versions!)

Theorem 4 (Primal–Dual Weighted Vertex Cover is a 22-approximation) In O(∣V∣+∣E∣)O(|V|+|E|) time and without solving any linear program, the Primal–Dual algorithm returns a valid vertex cover S⊆VS\subseteq V satisfying ∑v∈Swv≤2∑e∈Eye≤2⋅OPTLP≤2⋅OPT. \sum_{v\in S} w_v \le 2\sum_{e\in E} y_e \le 2\cdot\mathrm{OPT}_{\mathrm{LP}} \le 2\cdot\mathrm{OPT}.

Proof. We check only the two conditions of Lemma 1:

  • Feasibility & Primal 11-tightness (α=1\alpha=1): Whenever e={u,v}e=\{u,v\} is picked while still uncovered, at least one of uu or vv hits equality ∑e′∋zye′=wz\sum_{e'\ni z} y_{e'} = w_z and enters SS, so the loop terminates in at most ∣E∣|E| iterations with every edge covered. Furthermore, every vertex v∈Sv\in S satisfies ∑e∋vye=wv\sum_{e\ni v} y_e = w_v (either wv=0w_v=0 at start or bought when tight), and by construction y≥0y\ge 0 never violates ∑e∋vye≤wv\sum_{e\ni v} y_e \le w_v, so yy is dual-feasible.
  • Dual 22-packing (β=2\beta=2): Because each edge e={u,v}e=\{u,v\} has only two endpoints, it can contribute yey_e to the weight of at most two vertices in SS: ∣e∩S∣≤2|e\cap S|\le 2.

Summing directly (or invoking Lemma 1 with α=1,β=2\alpha=1,\beta=2) gives ∑v∈Swv=∑v∈S∑e∋vye=∑e∈E∣e∩S∣ ye≤2∑e∈Eye≤2⋅OPTLP≤2⋅OPT. \sum_{v\in S} w_v = \sum_{v\in S}\sum_{e\ni v} y_e = \sum_{e\in E} |e\cap S|\, y_e \le 2\sum_{e\in E} y_e \le 2\cdot\mathrm{OPT}_{\mathrm{LP}} \le 2\cdot\mathrm{OPT}.

Look closely at why the greedy intuition needs dual prices to avoid a catastrophic trap.

Caution (Why naive cheapest-vertex greedy fails on a star while dual water-filling succeeds).

Why not simply iterate over uncovered edges and greedily buy the cheaper endpoint? On the star graph K1,dK_{1,d} (d≥2d\ge 2) whose central hub has weight w0=1+εw_0 = 1+\varepsilon (0<ε<10<\varepsilon<1) and whose dd leaves each have weight w1=⋯=wd=1w_1=\cdots=w_d = 1, a naive vertex-greedy rule inspects every spoke {0,i}\{0,i\}, sees leaf weight 1<1+ε1 < 1+\varepsilon, and buys all dd leaves for total cost dd—even though OPT=1+ε\mathrm{OPT} = 1+\varepsilon by buying the hub alone! Sequential edge-by-edge primal–dual already avoids this blowup because raising y01=1y_{01}=1 deducts 11 from the hub’s remaining budget, leaving only ε<1\varepsilon < 1 slack on the hub; hence the very next spoke {0,2}\{0,2\} saturates the hub at y02=εy_{02}=\varepsilon and halts with cost 2+ε≤2 OPT2+\varepsilon \le 2\,\mathrm{OPT}. Under synchronized dual water-filling, every spoke grows simultaneously at unit rate: at time t=(1+ε)/d<1t=(1+\varepsilon)/d < 1, all dd spokes together saturate the hub first (d⋅t=1+εd\cdot t = 1+\varepsilon), freezing every edge at once and returning the exact optimum 1+ε1+\varepsilon!

This comparison isolates the exact role of dual slack: naive vertex-greedy ignores how previous edges have already paid down shared vertices and can pay Ω(d) OPT\Omega(d)\,\mathrm{OPT}, sequential edge-by-edge primal–dual tracks leftover slack to guarantee ≤2 OPT\le 2\,\mathrm{OPT} under any edge ordering, and synchronized water-filling eliminates the leaf overshoot on the star completely. Let us trace synchronized water-filling on the paw graph of Example 2.

Example 4 (Tracing Primal–Dual water-filling on the paw graph) Revisit Example 2 with V={1,2,3,4}V=\{1,2,3,4\}, E={{1,2},{1,3},{2,3},{3,4}}E=\{\{1,2\},\{1,3\},\{2,3\},\{3,4\}\}, and w=(2,3,4,2)w=(2,3,4,2). Run synchronized Primal–Dual from y=(0,0,0,0)y=(0,0,0,0):

  1. Phase 1 (all four edges active at rate 11): Vertex 11 has degree 22 and weight w1=2w_1=2, vertex 22 has degree 22 and weight 33, vertex 33 has degree 33 and weight 44, and vertex 44 has degree 11 and weight 22. Raising all four active edge bounties yey_e simultaneously at unit rate tt, vertex 11 saturates first at t1=2/2=1t_1 = 2/2 = 1 (since 2t1=22t_1 = 2, while 2t1=2<32t_1=2<3, 3t1=3<43t_1=3<4, 1t1=1<21t_1=1<2). After Phase 1, all four edges stand at y12=y13=y23=y34=1y_{12}=y_{13}=y_{23}=y_{34}=1; we add vertex 11 to SS and freeze its incident edges {1,2}\{1,2\} and {1,3}\{1,3\} at 11.
  2. Phase 2 (edges {2,3}\{2,3\} and {3,4}\{3,4\} remain active): Deducting the Phase 1 growth from each vertex’s budget leaves remaining slack 3−2=13-2=1 at vertex 22, 4−3=14-3=1 at vertex 33, and 2−1=12-1=1 at vertex 44. Raising active y23y_{23} and y34y_{34} by an additional Δ\Delta: vertex 22 saturates at Δ=1\Delta=1, vertex 44 at Δ=1\Delta=1, and vertex 33 (touched by both active edges!) saturates fastest at 2Δ=1  ⟹  Δ=0.52\Delta=1\implies \Delta=0.5. We add vertex 33 to SS and freeze {2,3}\{2,3\} and {3,4}\{3,4\} at y23=y34=1+0.5=1.5y_{23}=y_{34}=1+0.5=1.5.

All edges are covered, returning S={1,3}S=\{1,3\} (which happens to be the exact integral optimum of cost 66) and dual certificate y=(1,1,1.5,1.5)y=(1,1,1.5,1.5) with ∑eye=5.0\sum_e y_e = 5.0, directly verifying w(S)=6≤2⋅5.0=10w(S)=6 \le 2\cdot 5.0 = 10.

Origins of the Primal–Dual schema. The primal–dual method grew out of Harold Kuhn’s Hungarian algorithm for bipartite matching (1955) and Dantzig, Ford, and Fulkerson’s simplex-inspired primal–dual framework for linear programs (1956). Václav Chvátal (1979) crystallized the dual-fitting analysis of Greedy Set Cover (HkH_k with general costs), Reuven Bar-Yehuda and Shimon Even (1981) gave the linear-time local-ratio / primal–dual 22-approximation for Weighted Vertex Cover, and Michel Goemans and David Williamson (1995) generalized synchronized “moat-growing” dual ascent to Steiner trees and constrained forest network design.

We have now seen how Dual Fitting and Primal–Dual turn Lagrange multipliers into self-contained approximation proofs—previewing LP Rounding as the third pillar we will build in Chapter 7:

Paradigm How primal solution & dual certificate relate Where the α\alpha factor comes from Textbook archetype
LP Rounding (Chapter 7) Solve LP first to get fractional x∗x^*; round x∗x^* to integral x^\hat x Rounding inflation E[c⊤x^]≤α c⊤x∗\mathbb E[c^\top\hat x]\le\alpha\,c^\top x^* against OPTLP=Dual∗\mathrm{OPT}_{\mathrm{LP}}=\mathrm{Dual}^* Weighted Vertex Cover threshold 1/21/2; Set Cover random rounding
Dual Fitting (§1.4) Run greedy first, amortize bill into αe\alpha_e; divide αe/α\alpha_e/\alpha afterwards to satisfy dual caps Maximum overcharge factor across all dual constraints (HkH_k for Set Cover) Greedy Set Cover (HkH_k-approx)
Primal–Dual (§1.5) Keep dual yy feasible at all times; buy primal objects only when dual constraints go tight Dual β\beta-packing multiplicity (β=2\beta=2 endpoints per edge in Vertex Cover) Weighted Vertex Cover (22-approx); MST / Steiner Forest

1.6 Infinite-dimensional linear duality: Kantorovich optimal transport and why Coupling = Test Functions

So far our primal decision xx and dual multiplier yy have lived in finite-dimensional Euclidean vectors Rn\mathbb R^n and Rm\mathbb R^m. Yet §1.2’s Fenchel perturbation recipe never cared what space X\mathcal X lived in! What happens if we change the stage—making the primal decision an entire joint probability distribution (coupling) γ(x,y)\gamma(x,y) and the dual multipliers potential functions ϕ(x),ψ(y)\phi(x),\psi(y)?

Let us watch the exact same four-step recipe from §1.3 deliver one of the crown jewels of probability and analysis—Kantorovich’s Optimal Transport Duality—and instantaneously resolve our opening mystery linking Chapter 2 and Chapter 5!

Definition 4 (Coupling set and Kantorovich optimal transport cost) Let X\mathcal X and Y\mathcal Y be finite state spaces equipped with probability distributions μ∈Δ(X)\mu\in\Delta(\mathcal X) and ν∈Δ(Y)\nu\in\Delta(\mathcal Y), and let c:X×Y→Rc:\mathcal X\times\mathcal Y\to\mathbb R be any cost function. A coupling of μ\mu and ν\nu is a joint probability distribution γ∈Δ(X×Y)\gamma\in\Delta(\mathcal X\times\mathcal Y) whose two marginals agree with μ\mu and ν\nu: Π(μ,ν):={γ:X×Y→R≥0  ∣  ∑y∈Yγ(x,y)=μ(x)    ∀x∈X,∑x∈Xγ(x,y)=ν(y)    ∀y∈Y}. \begin{aligned} \Pi(\mu,\nu) := \Bigl\{\gamma:\mathcal X\times\mathcal Y\to\mathbb R_{\ge 0} \;\Big|\; &\sum_{y\in\mathcal Y}\gamma(x,y)=\mu(x)\;\;\forall x\in\mathcal X,\\[-2pt] &\sum_{x\in\mathcal X}\gamma(x,y)=\nu(y)\;\;\forall y\in\mathcal Y\Bigr\}. \end{aligned} The Kantorovich optimal transport cost between μ\mu and ν\nu under cc is Tc(μ,ν):=min⁡γ∈Π(μ,ν)∑x∈X∑y∈Yc(x,y) γ(x,y)=min⁡(X,Y)∈Π(μ,ν)E[c(X,Y)]. \mathcal T_c(\mu,\nu) :=\min_{\gamma\in\Pi(\mu,\nu)}\sum_{x\in\mathcal X}\sum_{y\in\mathcal Y} c(x,y)\,\gamma(x,y) =\min_{(X,Y)\in\Pi(\mu,\nu)}\mathbb E\bigl[c(X,Y)\bigr]. (On general Polish metric spaces, the sums become integrals inf⁡γ∈Π(μ,ν)∫X×Yc(x,y) dγ(x,y)\inf_{\gamma\in\Pi(\mu,\nu)}\int_{\mathcal X\times\mathcal Y} c(x,y)\,\mathrm d\gamma(x,y) over joint probability measures with marginals μ,ν\mu,\nu.)

Theorem 5 (Kantorovich Duality) For any distributions μ∈Δ(X)\mu\in\Delta(\mathcal X) and ν∈Δ(Y)\nu\in\Delta(\mathcal Y) on finite spaces X,Y\mathcal X,\mathcal Y and any cost c:X×Y→Rc:\mathcal X\times\mathcal Y\to\mathbb R, min⁡γ∈Π(μ,ν)∑x,yc(x,y) γ(x,y)=max⁡ϕ:X→R,ψ:Y→Rϕ(x)+ψ(y)≤c(x,y)∀x,y{∑x∈Xϕ(x)μ(x)+∑y∈Yψ(y)ν(y)}=max⁡ϕ⊕ψ≤c(Eμ[ϕ]+Eν[ψ]), \begin{aligned} \min_{\gamma\in\Pi(\mu,\nu)}\sum_{x,y} c(x,y)\,\gamma(x,y) &=\max_{\substack{\phi:\mathcal X\to\mathbb R,\,\psi:\mathcal Y\to\mathbb R\\ \phi(x)+\psi(y)\le c(x,y)\;\forall x,y}} \left\{\sum_{x\in\mathcal X}\phi(x)\mu(x)+\sum_{y\in\mathcal Y}\psi(y)\nu(y)\right\} \\ &=\max_{\phi\oplus\psi\le c}\bigl(\mathbb E_\mu[\phi]+\mathbb E_\nu[\psi]\bigr), \end{aligned} where (ϕ⊕ψ)(x,y):=ϕ(x)+ψ(y)(\phi\oplus\psi)(x,y):=\phi(x)+\psi(y). (Economically: if ϕ(x)\phi(x) is a pickup subsidy paid at origin xx and ψ(y)\psi(y) is a delivery fee paid at destination yy, a carrier facing cost c(x,y)c(x,y) cannot profit from arbitrage iff ϕ(x)+ψ(y)≤c(x,y)\phi(x)+\psi(y)\le c(x,y) everywhere.)

Proof. Look at the constraints in Π(μ,ν)\Pi(\mu,\nu): γ(x,y)≥0\gamma(x,y)\ge 0 lives in the ambient cone R≥0X×Y\mathbb R_{\ge 0}^{\mathcal X\times\mathcal Y}, subject to two sets of equality constraints—one per origin x∈Xx\in\mathcal X and one per destination y∈Yy\in\mathcal Y. Because these are equality constraints, §1.2 assigns unconstrained Lagrange multipliers ϕ:X→R\phi:\mathcal X\to\mathbb R and ψ:Y→R\psi:\mathcal Y\to\mathbb R: L(γ,ϕ,ψ):=∑x,yc(x,y)γ(x,y)+∑x∈Xϕ(x)(μ(x)−∑y∈Yγ(x,y))+∑y∈Yψ(y)(ν(y)−∑x∈Xγ(x,y)). \begin{aligned} L(\gamma,\phi,\psi) &:=\sum_{x,y} c(x,y)\gamma(x,y) +\sum_{x\in\mathcal X}\phi(x)\Bigl(\mu(x)-\sum_{y\in\mathcal Y}\gamma(x,y)\Bigr)\\ &\qquad+\sum_{y\in\mathcal Y}\psi(y)\Bigl(\nu(y)-\sum_{x\in\mathcal X}\gamma(x,y)\Bigr). \end{aligned} Regrouping all terms containing γ(x,y)\gamma(x,y)—the infinite-dimensional counterpart of y⊤(Ax)=(A⊤y)⊤xy^\top(Ax) = (A^\top y)^\top x—gives L(γ,ϕ,ψ)=∑x∈Xϕ(x)μ(x)+∑y∈Yψ(y)ν(y)+∑x∈X∑y∈Y(c(x,y)−ϕ(x)−ψ(y))γ(x,y). L(\gamma,\phi,\psi) =\sum_{x\in\mathcal X}\phi(x)\mu(x)+\sum_{y\in\mathcal Y}\psi(y)\nu(y) +\sum_{x\in\mathcal X}\sum_{y\in\mathcal Y}\bigl(c(x,y)-\phi(x)-\psi(y)\bigr)\gamma(x,y). Now minimize over γ≥0\gamma\ge 0 coordinate by coordinate (on every pair (x,y)∈X×Y(x,y)\in\mathcal X\times\mathcal Y): if c(x0,y0)−ϕ(x0)−ψ(y0)<0c(x_0,y_0)-\phi(x_0)-\psi(y_0)<0 at even a single pair (x0,y0)(x_0,y_0), sending γ(x0,y0)→+∞\gamma(x_0,y_0)\to+\infty drives inf⁡γ≥0L(γ,ϕ,ψ)=−∞\inf_{\gamma\ge 0} L(\gamma,\phi,\psi)=-\infty. Conversely, if ϕ(x)+ψ(y)≤c(x,y)\phi(x)+\psi(y)\le c(x,y) for all (x,y)(x,y), setting γ=0\gamma=0 attains the minimum of the last sum, leaving Eμ[ϕ]+Eν[ψ]\mathbb E_\mu[\phi]+\mathbb E_\nu[\psi].

Finally, Π(μ,ν)\Pi(\mu,\nu) is nonempty (it always contains the product coupling γ=μ⊗ν\gamma=\mu\otimes\nu) and bounded (γ(x,y)≤1\gamma(x,y)\le 1), while (ϕ,ψ)=(−∥c∥∞/2,−∥c∥∞/2)(\phi,\psi)=(-\|c\|_\infty/2, -\|c\|_\infty/2) is dual-feasible. Hence by Strong LP Duality (Theorem 2), the finite primal minimum equals the finite dual maximum!

From Napoleon’s earthworks to Soviet freight planning. In 1781, Gaspard Monge asked for the cheapest way to move soil from an excavation to an embankment via a deterministic map T(x)T(x). Because Monge’s constraint T#μ=νT_\#\mu=\nu is nonlinear and can even be empty, the problem stayed largely open for 160 years until Leonid Kantorovich (1942) relaxed deterministic maps TT to joint couplings γ∈Π(μ,ν)\gamma\in\Pi(\mu,\nu), converting optimal transport into a linear program with shadow prices (ϕ,ψ)(\phi,\psi)—work that earned Kantorovich the 1975 Nobel Prize in Economics.

Closing the loop between Chapter 2 and Chapter 5

Now evaluate Theorem 5 at the simplest nontrivial cost function on a common space X=Y=Ω\mathcal X=\mathcal Y=\Omega: the discrete indicator metric c(x,y):=1{x≠y}. c(x,y):=\mathbf 1_{\{x\ne y\}}. Look at the left-hand side of Theorem 5: it is min⁡(X,Y)∈Π(μ,ν)P[X≠Y]\min_{(X,Y)\in\Pi(\mu,\nu)}\mathbb P[X\ne Y], the Coupling Lemma from Chapter 2. Now look at the right-hand side: what does ϕ(x)+ψ(y)≤1{x≠y}\phi(x)+\psi(y)\le\mathbf 1_{\{x\ne y\}} force? It collapses Kantorovich’s dual directly to Chapter 5’s bounded test-function formula for total variation distance (§1.4)!

Corollary 1 (Unification of Coupling Lemma (Chapter 2) and Test-Function dTVd_{\mathrm{TV}} (Chapter 5)) For any distributions μ,ν∈Δ(Ω)\mu,\nu\in\Delta(\Omega) on a finite space Ω\Omega and cost c(x,y)=1{x≠y}c(x,y)=\mathbf 1_{\{x\ne y\}}, min⁡(X,Y)∈Π(μ,ν)P[X≠Y]  =  T1{x≠y}(μ,ν)  =  dTV(μ,ν)  =  sup⁡Z:Ω→[0,1](Eμ[Z]−Eν[Z]). \min_{(X,Y)\in\Pi(\mu,\nu)}\mathbb P[X\ne Y] \;=\; \mathcal T_{\mathbf 1_{\{x\ne y\}}}(\mu,\nu) \;=\; d_{\mathrm{TV}}(\mu,\nu) \;=\; \sup_{Z:\Omega\to[0,1]}\bigl(\mathbb E_\mu[Z]-\mathbb E_\nu[Z]\bigr).

Proof. By Theorem 5, it suffices to prove that max⁡ϕ⊕ψ≤1{x≠y}(Eμ[ϕ]+Eν[ψ])=sup⁡Z:Ω→[0,1](Eμ[Z]−Eν[Z]). \max_{\phi\oplus\psi\le\mathbf 1_{\{x\ne y\}}}\bigl(\mathbb E_\mu[\phi]+\mathbb E_\nu[\psi]\bigr) = \sup_{Z:\Omega\to[0,1]}\bigl(\mathbb E_\mu[Z]-\mathbb E_\nu[Z]\bigr).

  • (≥\ge direction): Given any bounded test function Z:Ω→[0,1]Z:\Omega\to[0,1], set ϕ(x):=Z(x)\phi(x):=Z(x) and ψ(y):=−Z(y)\psi(y):=-Z(y). Since Z(x)−Z(y)=0Z(x)-Z(y)=0 when x=yx=y and Z(x)−Z(y)≤1−0=1Z(x)-Z(y)\le 1-0=1 when x≠yx\ne y, we have ϕ(x)+ψ(y)=Z(x)−Z(y)≤1{x≠y}\phi(x)+\psi(y)=Z(x)-Z(y)\le\mathbf 1_{\{x\ne y\}} for all x,y∈Ωx,y\in\Omega, with objective Eμ[Z]−Eν[Z]\mathbb E_\mu[Z]-\mathbb E_\nu[Z].

  • (≤\le direction): Take any dual-feasible pair (ϕ,ψ)(\phi,\psi) with ϕ(x)+ψ(y)≤1{x≠y}\phi(x)+\psi(y)\le\mathbf 1_{\{x\ne y\}}. Set M:=max⁡x∈Ωϕ(x)M:=\max_{x\in\Omega}\phi(x) and pick x∗∈Ωx^*\in\Omega attaining ϕ(x∗)=M\phi(x^*)=M. Define the shifted pair ϕ~(x):=ϕ(x)−M+1\tilde\phi(x):=\phi(x)-M+1 and ψ~(y):=ψ(y)+M−1\tilde\psi(y):=\psi(y)+M-1. Because ∑xμ(x)=∑yν(y)=1\sum_x\mu(x)=\sum_y\nu(y)=1, the shift preserves the objective Eμ[ϕ~]+Eν[ψ~]=Eμ[ϕ]+Eν[ψ]\mathbb E_\mu[\tilde\phi]+\mathbb E_\nu[\tilde\psi]=\mathbb E_\mu[\phi]+\mathbb E_\nu[\psi] and preserves feasibility ϕ~(x)+ψ~(y)≤1{x≠y}\tilde\phi(x)+\tilde\psi(y)\le\mathbf 1_{\{x\ne y\}}.

    Now define Z(x):=max⁡{ϕ~(x),0}Z(x):=\max\{\tilde\phi(x),0\}. Since ϕ~(x)≤1\tilde\phi(x)\le 1 everywhere (as MM shifted to 11), we have Z(x)∈[0,1]Z(x)\in[0,1] and ϕ~(x)≤Z(x)\tilde\phi(x)\le Z(x). Meanwhile, for every y∈Ωy\in\Omega:

    • Taking x=yx=y in ϕ~(x)+ψ~(y)≤1{x≠y}\tilde\phi(x)+\tilde\psi(y)\le\mathbf 1_{\{x\ne y\}} gives ϕ~(y)+ψ~(y)≤0\tilde\phi(y)+\tilde\psi(y)\le 0, so ψ~(y)≤−ϕ~(y)\tilde\psi(y)\le -\tilde\phi(y);
    • Taking x=x∗x=x^* (where ϕ~(x∗)=1\tilde\phi(x^*)=1) gives 1+ψ~(y)≤1{x∗≠y}≤11+\tilde\psi(y)\le\mathbf 1_{\{x^*\ne y\}}\le 1, so ψ~(y)≤0\tilde\psi(y)\le 0.

    Combining both inequalities yields ψ~(y)≤min⁡{−ϕ~(y),0}=−max⁡{ϕ~(y),0}=−Z(y)\tilde\psi(y)\le\min\{-\tilde\phi(y),0\}=-\max\{\tilde\phi(y),0\}=-Z(y). Hence Eμ[ϕ]+Eν[ψ]=Eμ[ϕ~]+Eν[ψ~]≤Eμ[Z]−Eν[Z]. \mathbb E_\mu[\phi]+\mathbb E_\nu[\psi] =\mathbb E_\mu[\tilde\phi]+\mathbb E_\nu[\tilde\psi] \le \mathbb E_\mu[Z]-\mathbb E_\nu[Z].

Finally, in Chapter 5 (§1.4) we verified that sup⁡Z:Ω→[0,1](Eμ[Z]−Eν[Z])=dTV(μ,ν)\sup_{Z:\Omega\to[0,1]}(\mathbb E_\mu[Z]-\mathbb E_\nu[Z])=d_{\mathrm{TV}}(\mu,\nu), attained by Z∗=1{μ≥ν}Z^*=\mathbf 1_{\{\mu\ge\nu\}}. (Even more: complementary slackness γ∗(x,y)(1{x≠y}−Z∗(x)+Z∗(y))=0\gamma^*(x,y)(\mathbf 1_{\{x\ne y\}}-Z^*(x)+Z^*(y))=0 against Z∗=1{μ≥ν}Z^*=\mathbf 1_{\{\mu\ge\nu\}} immediately forces any optimal coupling γ∗\gamma^* to keep all shared mass on the diagonal (x,x)(x,x) and transport mass only from {μ>ν}\{\mu>\nu\} to {μ<ν}\{\mu<\nu\}!)

1.7 Turning curvature back on: the Pointwise Trick, the Gibbs Variational Principle, and the course-wide duality map

Sections 1.3–1.6 lived in the zero-curvature limit of §1.1: linear programs and Kantorovich couplings had flat objectives and flat {0,+∞}\{0,+\infty\} barriers. Now let us close the ring back to §1.1 by turning strict convex curvature back on—and feeding §1.2’s Lagrange multipliers into the Fenchel conjugate of negative Shannon entropy over a finite state space Ω\Omega: Φ(q):={−H(q)=∑x∈Ωq(x)ln⁡q(x),if q∈Δ(Ω)  (q≥0, ∑x∈Ωq(x)=1),+∞,otherwise. \Phi(q) := \begin{cases} -H(q)=\displaystyle\sum_{x\in\Omega} q(x)\ln q(x), & \text{if }q\in\Delta(\Omega)\;\bigl(q\ge 0,\,\sum_{x\in\Omega} q(x)=1\bigr),\\[6pt] +\infty, & \text{otherwise.} \end{cases} Because Δ(Ω)\Delta(\Omega) is compact and convex and t↦tln⁡tt\mapsto t\ln t is strictly convex and continuous on [0,1][0,1], Φ\Phi is proper, convex, and lower semicontinuous. Given any potential (negative energy) covector ϕ∈RΩ\phi\in\mathbb R^\Omega, we want to evaluate Φ∗(ϕ)=max⁡q∈Δ(Ω){⟨q,ϕ⟩+H(q)}\Phi^*(\phi) = \max_{q\in\Delta(\Omega)}\{\langle q,\phi\rangle + H(q)\}.

Why does this finite- or infinite-dimensional optimization yield a closed-form answer in five lines? Because once we enforce the normalization constraint ∑xq(x)=1\sum_x q(x)=1 using a single scalar Lagrange multiplier λ∈R\lambda\in\mathbb R from §1.2, the coordinates q(x)q(x) decouple completely and can be optimized pointwise (one x∈Ωx\in\Omega at a time)!

Theorem 6 (The Gibbs Variational Principle) Let Ω\Omega be a finite state space, let ϕ:Ω→R\phi:\Omega\to\mathbb R be any potential function, and define the partition function Z(ϕ):=∑x∈Ωeϕ(x)Z(\phi):=\sum_{x\in\Omega} e^{\phi(x)} and the Gibbs distribution pϕ(x):=eϕ(x)Z(ϕ)∈Δ(Ω)p_\phi(x):=\frac{e^{\phi(x)}}{Z(\phi)}\in\Delta(\Omega). Then the log-partition function ln⁡Z(ϕ)\ln Z(\phi) and negative entropy Φ(q)=−H(q)\Phi(q)=-H(q) are Fenchel conjugates of each other:

  1. Exact KL gap identity: For every q∈Δ(Ω)q\in\Delta(\Omega), ln⁡Z(ϕ)−(EX∼q[ϕ(X)]+H(q))=KL⁡(q∥pϕ)≥0, \ln Z(\phi) - \bigl(\mathbb E_{X\sim q}[\phi(X)] + H(q)\bigr) = \operatorname{KL}(q \| p_\phi) \ge 0, with equality if and only if q=pϕq = p_\phi.
  2. Dual variational formulas: ln⁡Z(ϕ)=Φ∗(ϕ)=max⁡q∈Δ(Ω){EX∼q[ϕ(X)]+H(q)},−H(q)=Φ∗∗(q)=sup⁡ϕ∈RΩ{EX∼q[ϕ(X)]−ln⁡Z(ϕ)}. \begin{aligned} \ln Z(\phi) &= \Phi^*(\phi) = \max_{q\in\Delta(\Omega)}\bigl\{\mathbb E_{X\sim q}[\phi(X)] + H(q)\bigr\},\\ -H(q) &= \Phi^{**}(q) = \sup_{\phi\in\mathbb R^\Omega}\bigl\{\mathbb E_{X\sim q}[\phi(X)] - \ln Z(\phi)\bigr\}. \end{aligned}

Proof. First discover the maximizer using the pointwise Lagrange multiplier trick from §1.2. Impose the single scalar equality constraint ∑x∈Ωq(x)=1\sum_{x\in\Omega} q(x) = 1 with unconstrained multiplier λ∈R\lambda\in\mathbb R: L(q,λ):=∑x∈Ωq(x)ϕ(x)−∑x∈Ωq(x)ln⁡q(x)−λ(∑x∈Ωq(x)−1)=λ+∑x∈Ω(q(x)ϕ(x)−q(x)ln⁡q(x)−λq(x)). \begin{aligned} \mathcal L(q,\lambda) &:= \sum_{x\in\Omega} q(x)\phi(x) - \sum_{x\in\Omega} q(x)\ln q(x) - \lambda\Bigl(\sum_{x\in\Omega} q(x)-1\Bigr)\\ &= \lambda + \sum_{x\in\Omega}\bigl(q(x)\phi(x)-q(x)\ln q(x)-\lambda q(x)\bigr). \end{aligned} For fixed λ\lambda, the sum separates across each x∈Ωx\in\Omega! Differentiating the scalar function z↦zϕ(x)−zln⁡z−λzz\mapsto z\phi(x)-z\ln z-\lambda z (z>0z>0) gives the first-order condition ϕ(x)−ln⁡q(x)−1−λ=0⟹q∗(x)=eϕ(x)−1−λ. \phi(x)-\ln q(x)-1-\lambda=0 \qquad\Longrightarrow\qquad q^*(x)=e^{\phi(x)-1-\lambda}. Enforcing the outer constraint ∑x∈Ωq∗(x)=1\sum_{x\in\Omega} q^*(x)=1 determines λ\lambda: 1=∑x∈Ωeϕ(x)−1−λ=e−1−λZ(ϕ)⟹λ=ln⁡Z(ϕ)−1⟹q∗(x)=eϕ(x)Z(ϕ)=pϕ(x). \begin{aligned} 1=\sum_{x\in\Omega} e^{\phi(x)-1-\lambda}=e^{-1-\lambda}Z(\phi) &\quad\Longrightarrow\quad \lambda = \ln Z(\phi) - 1\\ &\quad\Longrightarrow\quad q^*(x) = \frac{e^{\phi(x)}}{Z(\phi)} = p_\phi(x). \end{aligned}

Now check that pϕp_\phi is globally optimal over the entire closed simplex Δ(Ω)\Delta(\Omega)—including boundary distributions where some q(x)=0q(x)=0—by substituting ϕ(x)=ln⁡pϕ(x)+ln⁡Z(ϕ)\phi(x)=\ln p_\phi(x)+\ln Z(\phi) directly into Eq[ϕ]+H(q)\mathbb E_q[\phi]+H(q): EX∼q[ϕ(X)]+H(q)=∑x∈Ωq(x)ln⁡(pϕ(x)Z(ϕ))−∑x∈Ωq(x)ln⁡q(x)=ln⁡Z(ϕ)∑x∈Ωq(x)−∑x∈Ωq(x)ln⁡q(x)pϕ(x)=ln⁡Z(ϕ)−KL⁡(q∥pϕ). \begin{aligned} \mathbb E_{X\sim q}[\phi(X)] + H(q) &= \sum_{x\in\Omega} q(x)\ln\bigl(p_\phi(x)Z(\phi)\bigr) - \sum_{x\in\Omega} q(x)\ln q(x)\\ &= \ln Z(\phi)\sum_{x\in\Omega} q(x) - \sum_{x\in\Omega} q(x)\ln\frac{q(x)}{p_\phi(x)} = \ln Z(\phi) - \operatorname{KL}(q \| p_\phi). \end{aligned} Since KL⁡(q∥pϕ)≥0\operatorname{KL}(q\|p_\phi)\ge 0 with equality iff q=pϕq=p_\phi, this proves both (1) and the first identity Φ∗(ϕ)=ln⁡Z(ϕ)\Phi^*(\phi)=\ln Z(\phi) in (2). Applying the Biconjugate Theorem (Proposition 1 (3) from §1.1) to the convex continuous function Φ\Phi immediately yields Φ(q)=Φ∗∗(q)=sup⁡ϕ∈RΩ{⟨q,ϕ⟩−ln⁡Z(ϕ)}\Phi(q)=\Phi^{**}(q)=\sup_{\phi\in\mathbb R^\Omega}\{\langle q,\phi\rangle-\ln Z(\phi)\}.

Step back and look across all six chapters of our course through the single mirror of Definition 1:

Domain Primal VV Dual V∗V^* Conjugate (f↔f∗)(f\leftrightarrow f^*) Outcome
Lagrangian & LP (§§1.2–1.5) Perturbation (u,v)(u,v) Slopes (−λ,−μ)(-\lambda,-\mu) p(u,v)↔−q(λ,μ)p(u,v)\leftrightarrow -q(\lambda,\mu) d∗=p∗∗(0,0)d^*=p^{**}(0,0); LP & bounty bounds
Stat. physics (Gibbs, 1902) Distribution q∈Δ(Ω)q\in\Delta(\Omega) Potential ϕ∈RΩ\phi\in\mathbb R^\Omega −H(q)↔ln⁡Z(ϕ)-H(q)\leftrightarrow \ln Z(\phi) Gibbs pϕ∝eϕp_\phi\propto e^\phi
Online Learning (Ch 4 §1.9) Simplex Δn\Delta_n Loss −ηLt−1-\eta L_{t-1} −H(q)↔ln⁡∑ieyi-H(q)\leftrightarrow \ln\sum_i e^{y_i} Hedge / EXP3 mirror map ∇Φ∗\nabla\Phi^*
Concentration (Ch 1 & §2.4) Threshold aa Tilt λ\lambda Rate Λ∗(a)↔ln⁡E[eλX]\Lambda^*(a)\leftrightarrow\ln\mathbb E[e^{\lambda X}] Chernoff bound e−nΛ∗(a)e^{-n\Lambda^*(a)}
Markov Entropy (Ch 3 & §2.4) Normalized Z≥0Z\ge 0, E[Z]=1\mathbb E[Z]=1 Test function XX Ent⁡(Z)↔ln⁡E[eX]\operatorname{Ent}(Z)\leftrightarrow\ln\mathbb E[e^X] DV rescaling →\to tensorization
Prob. Coupling (Ch 2, Ch 5, §1.6) Couplings γ∈Π(μ,ν)\gamma\in\Pi(\mu,\nu) Potentials (ϕ,ψ)(\phi,\psi) Linear T1x≠y(μ,ν)\mathcal T_{\mathbf 1_{x\ne y}}(\mu,\nu) Coupling Lemma ≡dTV\equiv d_{\mathrm{TV}}

Look closely at one more bridge hiding inside Theorem 6: we just used §1.1’s Fenchel conjugate to prove the Gibbs Variational Principle at unit temperature, yet the arrow also runs in reverse! On any nonempty finite subset Ω⊂Rn\Omega\subset\mathbb R^n (identifying f:Ω→Rf:\Omega\to\mathbb R with f(x)=+∞f(x)=+\infty outside Ω\Omega), introduce a temperature parameter ε>0\varepsilon>0 and evaluate Theorem 6 at the scaled potential ϕy,ε(x):=(⟨y,x⟩−f(x))/ε\phi_{y,\varepsilon}(x):=(\langle y,x\rangle-f(x))/\varepsilon: fε∗(y):=εln⁡∑x∈Ωe(⟨y,x⟩−f(x))/ε=max⁡q∈Δ(Ω){∑x∈Ωq(x)(⟨y,x⟩−f(x))+εH(q)}. f_\varepsilon^*(y) := \varepsilon\ln\sum_{x\in\Omega} e^{(\langle y,x\rangle-f(x))/\varepsilon} = \max_{q\in\Delta(\Omega)}\Bigl\{\sum_{x\in\Omega} q(x)\bigl(\langle y,x\rangle-f(x)\bigr)+\varepsilon H(q)\Bigr\}. Because Shannon entropy satisfies 0≤H(q)≤ln⁡∣Ω∣0\le H(q)\le\ln|\Omega| on Δ(Ω)\Delta(\Omega) and the linear term is bounded above by f∗(y)=max⁡x∈Ω{⟨y,x⟩−f(x)}f^*(y)=\max_{x\in\Omega}\{\langle y,x\rangle-f(x)\} (achieved at point masses), every finite-temperature Gibbs conjugate is sandwiched between f∗(y)f^*(y) and f∗(y)+εln⁡∣Ω∣f^*(y)+\varepsilon\ln|\Omega|. Sending ε↓0\varepsilon\downarrow 0 concentrates pϕy,εp_{\phi_{y,\varepsilon}} onto arg⁡max⁡x∈Ω{⟨y,x⟩−f(x)}\arg\max_{x\in\Omega}\{\langle y,x\rangle-f(x)\} and recovers §1.1’s Fenchel hard-max directly from the ℓ1/ε→ℓ∞\ell_{1/\varepsilon}\to\ell_\infty norm limit of softmax free energy. Why does that same limit also trace back one rung further to Fourier transforms in Hilbert space—and turn convolution into infimal convolution? Reading §2.5 develops the full three-rung genealogy.

One more major actor waits in the wings. Looking ahead to Chapter 7 next week: when even linear relaxations of combinatorial problems (like Max-Cut) get stuck at a large integrality gap, we will lift decision variables from vectors x∈Rnx\in\mathbb R^n to positive semidefinite matrices X∈S+nX\in\mathcal S_+^n. What sits on the dual side of the positive semidefinite cone S+n\mathcal S_+^n? The exact same Fenchel perturbation duality pattern! (See Further Topics §3.2 for an appetizer before Chapter 7.)


II. Reading Contents

The sections below supply self-contained proofs and geometric depth for every part of our classroom narrative: why evaluation pairings ⟨y,x⟩\langle y,x\rangle differ from inner products, together with Fenchel–Rockafellar composite duality and Slater’s continuity condition (§2.1); the complete separating-hyperplane and Farkas proof of Strong LP Duality (§2.2); metric dd-transforms and the Kantorovich–Rubinstein W1W_1 theorem (§2.3); the Donsker–Varadhan variational proof underlying Chapter 3’s entropy tensorization alongside Cramér’s large-deviation conjugate (§2.4); and why Fenchel conjugation is the zero-temperature limit of Wick-rotated Fourier characters, turning convolution into infimal convolution (§2.5).

2.1 Paired spaces, Fenchel–Rockafellar composite duality, and Slater’s condition

Notice how often in §1.1 and §§1.6–1.7 we wrote ⟨y,x⟩\langle y, x\rangle for y⊤xy^\top x in Rn\mathbb R^n, ∑xq(x)ϕ(x)\sum_x q(x)\phi(x) on Δ(Ω)×RΩ\Delta(\Omega)\times\mathbb R^\Omega, or E[ZX]\mathbb E[ZX] between density ratios and test functions. A common source of confusion in optimization and probability is treating ⟨y,x⟩\langle y, x\rangle as an inner product on a single space. It is cleaner—and geometrically sharper—to distinguish an evaluation pairing from an inner product:

Geometrically—recalling the base-space topographic contour figure in §1.1 without picking any inner product—visualize a primal vector x∈Vx\in V as an arrow representing a state or displacement, and visualize a dual covector y∈V∗y\in V^* as a stack of parallel, equally spaced level hyperplanes {x∈V:y(x)=c}\{x\in V : y(x)=c\} (c∈Rc\in\mathbb R). Evaluating ⟨y,x⟩=y(x)\langle y, x\rangle = y(x) simply counts how many hyperplane layers the arrow xx pierces, regardless of orthogonality! That is why the exact same picture transports intact from Euclidean space to non-Hilbert pairs such as (L1,L∞)(L^1,L^\infty) and (M(Ω),Cb(Ω))(\mathcal M(\Omega),C_b(\Omega)), and clarifies Chapter 4’s Online Mirror Descent: ∇f(xt)\nabla f(x_t) is a covector (an affine slope on Δn\Delta_n), so gradient accumulation happens in V∗V^*, while ∇Φ∗\nabla\Phi^* maps covector stacks back into primal state arrows xt+1∈Vx_{t+1}\in V.

Fenchel–Rockafellar composite duality: dualizing sums directly

In §1.2 we applied Fenchel conjugation to explicit inequality and equality constraints via p(u,v)p(u,v). More generally, almost every convex problem in TCS and statistics can be written in composite form inf⁡x∈Rn{f(x)+g(Ax)}\inf_{x\in\mathbb R^n}\{f(x)+g(Ax)\}—putting constraints, regularizers, and linear transformations inside extended-real functions f,gf,g. Sliding a horizontal perturbation v∈Rmv\in\mathbb R^m into g(Ax−v)g(Ax-v) produces Fenchel–Rockafellar Duality, which swallows both constrained LPs and unconstrained convex sums at once.

Theorem 7 (Fenchel–Rockafellar composite duality) Let f:Rn→R∪{+∞}f:\mathbb R^n\to\mathbb R\cup\{+\infty\} and g:Rm→R∪{+∞}g:\mathbb R^m\to\mathbb R\cup\{+\infty\} be proper functions, and let A∈Rm×nA\in\mathbb R^{m\times n}.

  1. Weak composite duality (no convexity required): sup⁡y∈Rm{−f∗(A⊤y)−g∗(−y)}  ≤  inf⁡x∈Rn{f(x)+g(Ax)}. \sup_{y\in\mathbb R^m}\bigl\{-f^*(A^\top y)-g^*(-y)\bigr\} \;\le\; \inf_{x\in\mathbb R^n}\bigl\{f(x)+g(Ax)\bigr\}.
  2. Strong composite duality: If ff and gg are both convex and there exists x~∈dom⁡(f)\tilde x\in\operatorname{dom}(f) such that Ax~∈int⁡(dom⁡(g))A\tilde x\in\operatorname{int}(\operatorname{dom}(g)), then equality holds: inf⁡x∈Rn{f(x)+g(Ax)}=sup⁡y∈Rm{−f∗(A⊤y)−g∗(−y)}. \inf_{x\in\mathbb R^n}\bigl\{f(x)+g(Ax)\bigr\} = \sup_{y\in\mathbb R^m}\bigl\{-f^*(A^\top y)-g^*(-y)\bigr\}.

Proof. For (1), take any x∈Rnx\in\mathbb R^n and y∈Rmy\in\mathbb R^m. Because ff and gg are proper, f∗(A⊤y)>−∞f^*(A^\top y)>-\infty and g∗(−y)>−∞g^*(-y)>-\infty, so −f∗(A⊤y)−g∗(−y)<+∞-f^*(A^\top y)-g^*(-y)<+\infty is always well defined. Whenever f(x)<+∞f(x)<+\infty, g(Ax)<+∞g(Ax)<+\infty, f∗(A⊤y)<+∞f^*(A^\top y)<+\infty, and g∗(−y)<+∞g^*(-y)<+\infty, adding Young–Fenchel (Proposition 1 (2)) for (f,f∗)(f,f^*) at (x,A⊤y)(x,A^\top y) and (g,g∗)(g,g^*) at (Ax,−y)(Ax,-y) yields f(x)+f∗(A⊤y)+g(Ax)+g∗(−y)≥⟨A⊤y,x⟩+⟨−y,Ax⟩=0, f(x)+f^*(A^\top y)+g(Ax)+g^*(-y) \ge \langle A^\top y, x\rangle + \langle -y, Ax\rangle = 0, so −f∗(A⊤y)−g∗(−y)≤f(x)+g(Ax)-f^*(A^\top y)-g^*(-y)\le f(x)+g(Ax) (which also holds trivially if any of the four quantities equals +∞+\infty). Taking sup⁡y\sup_y and inf⁡x\inf_x proves (1).

For (2), define the composite perturbation function p:Rm→[−∞,+∞]p:\mathbb R^m\to[-\infty,+\infty] by p(v):=inf⁡x∈Rn{f(x)+g(Ax−v)}p(v):=\inf_{x\in\mathbb R^n}\{f(x)+g(Ax-v)\}, so p(0)=inf⁡x{f(x)+g(Ax)}p(0)=\inf_x\{f(x)+g(Ax)\}. Setting z:=Ax−vz:=Ax-v for each fixed x∈dom⁡(f)x\in\operatorname{dom}(f) factorizes the Fenchel conjugate of pp: p∗(y)=sup⁡x∈dom⁡(f),  v∈Rm{⟨y,Ax⟩−f(x)+⟨−y,Ax−v⟩−g(Ax−v)}=sup⁡x∈dom⁡(f){⟨A⊤y,x⟩−f(x)}+sup⁡z∈Rm{⟨−y,z⟩−g(z)}=f∗(A⊤y)+g∗(−y). \begin{aligned} p^*(y) &= \sup_{x\in\operatorname{dom}(f),\; v\in\mathbb R^m}\bigl\{\langle y,Ax\rangle - f(x) + \langle -y,Ax-v\rangle - g(Ax-v)\bigr\}\\ &= \sup_{x\in\operatorname{dom}(f)}\bigl\{\langle A^\top y,x\rangle - f(x)\bigr\} + \sup_{z\in\mathbb R^m}\bigl\{\langle -y,z\rangle - g(z)\bigr\} = f^*(A^\top y) + g^*(-y). \end{aligned} Hence the dual supremum is sup⁡y∈Rm{−p∗(y)}=p∗∗(0)\sup_{y\in\mathbb R^m}\{-p^*(y)\}=p^{**}(0). If p(0)=−∞p(0)=-\infty, weak duality already forces p∗∗(0)=−∞p^{**}(0)=-\infty. Otherwise p(0)∈Rp(0)\in\mathbb R (since p(0)≤f(x~)+g(Ax~)<+∞p(0)\le f(\tilde x)+g(A\tilde x)<+\infty). Because Ax~∈int⁡(dom⁡(g))A\tilde x\in\operatorname{int}(\operatorname{dom}(g)), pick r>0r>0 small enough that Ax~+srej∈dom⁡(g)A\tilde x + s r e_j\in\operatorname{dom}(g) for all j∈[m]j\in[m] and s∈{±1}s\in\{\pm 1\}. Writing every vv with ∥v∥1≤r\|v\|_1\le r as a convex combination Ax~−v=(1−∑j∣vj∣/r)Ax~+∑j(∣vj∣/r)(Ax~−sgn⁡(vj)rej)A\tilde x - v = (1-\sum_j |v_j|/r)A\tilde x + \sum_j (|v_j|/r)(A\tilde x - \operatorname{sgn}(v_j)r e_j) shows by convexity of gg that p(v)≤f(x~)+g(Ax~−v)≤f(x~)+max⁡{g(Ax~), max⁡j∈[m], s=±1g(Ax~+srej)}=:M<+∞ p(v)\le f(\tilde x)+g(A\tilde x - v) \le f(\tilde x)+\max\Bigl\{g(A\tilde x),\,\max_{j\in[m],\, s=\pm 1} g(A\tilde x + s r e_j)\Bigr\} =: M < +\infty on the cube {v∈Rm:∥v∥∞≤r/m}\{v\in\mathbb R^m : \|v\|_\infty \le r/m\}. The convexity and local-boundedness lemma in the folded proof below then proves that pp is convex, proper, and continuous at 00, forcing p∗∗(0)=p(0)p^{**}(0)=p(0) and establishing (2)!

As an instant check, observe how Theorem 7 recovers §1.3’s covering/packing LP pair directly from the indicator conjugates of Example 1: taking f(x):=c⊤x+δR≥0n(x)f(x):=c^\top x+\delta_{\mathbb R_{\ge 0}^n}(x) and g(z):=δ{z≥b}(z)g(z):=\delta_{\{z\ge b\}}(z) gives f∗(s)=δ{s:s≤c}(s)f^*(s)=\delta_{\{s:s\le c\}}(s), so f∗(A⊤y)=δ{s:s≤c}(A⊤y)f^*(A^\top y)=\delta_{\{s:s\le c\}}(A^\top y), and g∗(−y)=sup⁡s≥0{−y⊤(b+s)}=−b⊤y+δR≥0m(y)g^*(-y)=\sup_{s\ge 0}\{-y^\top(b+s)\}=-b^\top y+\delta_{\mathbb R_{\ge 0}^m}(y), turning sup⁡y{−f∗(A⊤y)−g∗(−y)}\sup_y\{-f^*(A^\top y)-g^*(-y)\} verbatim into max⁡y≥0{b⊤y:A⊤y≤c}\max_{y\ge 0}\{b^\top y : A^\top y\le c\}!

Why Slater’s condition forces strong duality

Why does Slater’s condition for §1.2’s convex program (P)(\mathsf{P}) (existence of a feasible point x~∈relint⁡(X)\tilde x\in\operatorname{relint}(\mathcal X) satisfying gi(x~)<0g_i(\tilde x)<0 for all non-affine inequality constraints and hj(x~)=0h_j(\tilde x)=0) guarantee p(0,0)=p∗∗(0,0)p(0,0)=p^{**}(0,0) whenever p∗>−∞p^*>-\infty? The folded verification below gives the complete self-contained argument for the strict-inequality case—showing why local upper boundedness alone prevents both −∞-\infty blowups and upward jump discontinuities at 00.

Verification: convexity, local boundedness implying continuity at 00, and the strict-inequality (k=0k=0) Slater mechanism
  1. Convexity of p(u,v)p(u,v) for convex programs and composite problems: Suppose X⊆Rd\mathcal X\subseteq\mathbb R^d is convex, f,g1,…,gmf,g_1,\ldots,g_m are convex on X\mathcal X, and h(x)=Cx−dh(x)=Cx-d is affine. Take (u1,v1),(u2,v2)∈dom⁡(p)(u_1,v_1),(u_2,v_2)\in\operatorname{dom}(p) and θ∈(0,1)\theta\in(0,1). For any near-optimal feasible choices x1,x2∈Xx_1,x_2\in\mathcal X (g(xr)≤urg(x_r)\le u_r, h(xr)=vrh(x_r)=v_r), convexity gives xθ:=(1−θ)x1+θx2∈Xx_\theta:=(1-\theta)x_1+\theta x_2\in\mathcal X with g(xθ)≤(1−θ)u1+θu2g(x_\theta)\le(1-\theta)u_1+\theta u_2 and h(xθ)=(1−θ)v1+θv2h(x_\theta)=(1-\theta)v_1+\theta v_2, so p((1−θ)(u1,v1)+θ(u2,v2))≤f(xθ)≤(1−θ)f(x1)+θf(x2)p((1-\theta)(u_1,v_1)+\theta(u_2,v_2))\le f(x_\theta)\le(1-\theta)f(x_1)+\theta f(x_2). Taking the infimum over admissible (x1,x2)(x_1,x_2) proves that pp is convex. (The identical midpoint estimate applied to f(x)+g(Ax−v)f(x)+g(Ax-v) proves convexity of the composite perturbation function p(v)p(v) in Theorem 7.)

  2. Continuity and zero gap at 00 from a local upper bound: Let p:Rm→[−∞,+∞]p:\mathbb R^m\to[-\infty,+\infty] be any convex function (meaning epi⁡(p)\operatorname{epi}(p) is convex) such that p(0)∈Rp(0)\in\mathbb R and p(u)≤M<+∞p(u)\le M < +\infty whenever ∥u∥∞≤δ\|u\|_\infty\le\delta for some δ>0\delta>0.

    • Never takes −∞-\infty: If (w,t)∈epi⁡(p)(w,t)\in\operatorname{epi}(p) with w≠0w\ne 0, setting u′:=−δ∥w∥∞wu':=-\frac{\delta}{\|w\|_\infty}w (∥u′∥∞=δ\|u'\|_\infty=\delta, so p(u′)≤Mp(u')\le M) and θ:=δ∥w∥∞+δ∈(0,1)\theta:=\frac{\delta}{\|w\|_\infty+\delta}\in(0,1) yields θw+(1−θ)u′=0\theta w+(1-\theta)u'=0, whence p(0)≤θt+(1−θ)M  ⟹  t≥p(0)−1−θθ(M−p(0))>−∞p(0)\le\theta t+(1-\theta)M\implies t\ge p(0)-\frac{1-\theta}{\theta}(M-p(0))>-\infty; thus pp is proper.
    • Lipschitz continuous at 00: Take any uu with 0<∥u∥∞≤δ0<\|u\|_\infty\le\delta, set α:=∥u∥∞/δ∈(0,1]\alpha:=\|u\|_\infty/\delta\in(0,1] and w′′:=δ∥u∥∞uw'':=\frac{\delta}{\|u\|_\infty}u (∥w′′∥∞=δ\|w''\|_\infty=\delta). Convexity on u=(1−α)0+αw′′u=(1-\alpha)0+\alpha w'' gives p(u)−p(0)≤α(M−p(0))p(u)-p(0)\le\alpha(M-p(0)); convexity on 0=11+αu+α1+α(−w′′)0=\frac{1}{1+\alpha}u+\frac{\alpha}{1+\alpha}(-w'') gives (1+α)p(0)≤p(u)+αM  ⟹  p(0)−p(u)≤α(M−p(0))(1+\alpha)p(0)\le p(u)+\alpha M\implies p(0)-p(u)\le\alpha(M-p(0)). Combining both yields ∣p(u)−p(0)∣≤M−p(0)δ∥u∥∞for all ∥u∥∞≤δ. |p(u)-p(0)|\le\frac{M-p(0)}{\delta}\|u\|_\infty \qquad\text{for all }\|u\|_\infty\le\delta.
    • Separating hyperplanes force p∗∗(0)=p(0)p^{**}(0)=p(0): Given any t0<p(0)t_0<p(0), continuity of pp at 00 keeps an open box around (0,t0)(0,t_0) disjoint from epi⁡(p)\operatorname{epi}(p), so (0,t0)∉epi⁡(p)‾(0,t_0)\notin\overline{\operatorname{epi}(p)}. Applying strict Euclidean hyperplane separation (§2.2) to (0,t0)(0,t_0) and the closed convex set epi⁡(p)‾\overline{\operatorname{epi}(p)} produces (v,α)∈Rm×R(v,\alpha)\in\mathbb R^m\times\mathbb R and ε>0\varepsilon>0 with αt0+ε≤⟨v,u⟩+αt\alpha t_0+\varepsilon\le\langle v,u\rangle+\alpha t for all (u,t)∈epi⁡(p)(u,t)\in\operatorname{epi}(p). Testing (u,t)=(0,p(0))(u,t)=(0,p(0)) rules out α=0\alpha=0, and sending t→+∞t\to+\infty rules out α<0\alpha<0. Thus α>0\alpha>0, and y:=−v/αy:=-v/\alpha gives p∗(y)≤−t0−ε/αp^*(y)\le -t_0-\varepsilon/\alpha, hence p∗∗(0)≥−p∗(y)≥t0p^{**}(0)\ge -p^*(y)\ge t_0. Sending t0↑p(0)t_0\uparrow p(0) proves p∗∗(0)=p(0)p^{**}(0)=p(0).
  3. The strict-inequality (k=0k=0) Slater mechanism: When k=0k=0, X=Rd\mathcal X=\mathbb R^d, and Slater’s point x~\tilde x satisfies gi(x~)<−δ<0g_i(\tilde x)<-\delta<0 for all i∈[m]i\in[m], every u∈Rmu\in\mathbb R^m with ∥u∥∞≤δ\|u\|_\infty\le\delta leaves x~\tilde x feasible (gi(x~)≤−δ≤uig_i(\tilde x)\le-\delta\le u_i), so p(u)≤f(x~)=:Mp(u)\le f(\tilde x)=:M on ∥u∥∞≤δ\|u\|_\infty\le\delta. Applying part (2) proves p(0)=p∗∗(0)p(0)=p^{**}(0) whenever p(0)>−∞p(0)>-\infty (and when p(0)=−∞p(0)=-\infty, d∗≤p∗=−∞d^*\le p^*=-\infty already holds). When affine equalities Cx=dCx=d or affine inequalities ai⊤x≤bia_i^\top x\le b_i are also present, a relative-interior separation argument on the perturbation domain establishes the refined Slater theorem; see Boyd and Vandenberghe (Convex Optimization, §5.2.3).

2.2 Separating hyperplanes, Farkas’ lemma, and Strong LP Duality

Now let us supply the promised self-contained proof of Strong LP Duality (Theorem 2 from §1.3). We build it directly from three finite-dimensional geometric pillars: (i) every finitely generated cone is closed, (ii) Euclidean closest-point projection separates any external point from a closed convex cone (Farkas’ Lemma), and (iii) applying Farkas’ Lemma to a primal–dual stack closes the gap.

Given a matrix A∈Rm×nA\in\mathbb R^{m\times n} with columns a1,…,an∈Rma_1,\ldots,a_n\in\mathbb R^m, denote the finitely generated cone spanned by its columns by C(A):={Ax:x∈R≥0n}={∑j=1nxjaj:xj≥0}⊆Rm. \mathcal C(A):=\bigl\{Ax : x\in\mathbb R_{\ge 0}^n\bigr\}=\left\{\sum_{j=1}^n x_j a_j : x_j\ge 0\right\}\subseteq\mathbb R^m.

Lemma 2 (Finitely generated cones are closed and convex) For every matrix A∈Rm×nA\in\mathbb R^{m\times n}, the cone C(A)={Ax:x∈R≥0n}\mathcal C(A)=\{Ax : x\in\mathbb R_{\ge 0}^n\} is a closed, convex subset of Rm\mathbb R^m.

Proof: Carathéodory linear-independence reduction guarantees sequential compactness

Convexity is immediate: if z1=Ax1z_1=Ax_1 and z2=Ax2z_2=Ax_2 with x1,x2≥0x_1,x_2\ge 0 and θ∈[0,1]\theta\in[0,1], then (1−θ)z1+θz2=A((1−θ)x1+θx2)∈C(A)(1-\theta)z_1+\theta z_2=A((1-\theta)x_1+\theta x_2)\in\mathcal C(A).

For closedness, first verify the conic Carathéodory property: every z=Ax∈C(A)z=Ax\in\mathcal C(A) can be written as z=∑j∈Jx~jajz=\sum_{j\in J} \tilde x_j a_j with x~j>0\tilde x_j>0 over a linearly independent subset of columns {aj:j∈J}\{a_j : j\in J\} (hence ∣J∣≤m|J|\le m). Indeed, choose x≥0x\ge 0 solving Ax=zAx=z with the smallest number of strictly positive coordinates J={j:xj>0}J=\{j : x_j>0\}. If {aj:j∈J}\{a_j : j\in J\} were linearly dependent, some nontrivial vector vv supported on JJ would satisfy Av=0Av=0. Rescaling vv so that at least one entry satisfies vj<0v_j<0 and picking t:=min⁡j∈J, vj<0(−xj/vj)>0t:=\min_{j\in J,\,v_j<0}(-x_j/v_j)>0, the point x′:=x+tv≥0x':=x+tv\ge 0 satisfies Ax′=Ax=zAx'=Ax=z and eliminates at least one positive coordinate, contradicting minimality!

Now let {z(r)}r=1∞⊆C(A)\{z^{(r)}\}_{r=1}^\infty\subseteq\mathcal C(A) converge to w∈Rmw\in\mathbb R^m. Write each z(r)=AJxJ(r)z^{(r)}=A_J x_J^{(r)} using a linearly independent column subset Jr⊆[n]J_r\subseteq[n] and x(r)∈R>0∣Jr∣x^{(r)}\in\mathbb R_{>0}^{|J_r|}. Since there are only finitely many subsets J⊆[n]J\subseteq[n], by the pigeonhole principle some fixed independent subset JJ appears infinitely often; pass to that subsequence. Because the matrix AJ∈Rm×∣J∣A_J\in\mathbb R^{m\times|J|} has full column rank, AJ⊤AJA_J^\top A_J is invertible and xJ(r)=(AJ⊤AJ)−1AJ⊤z(r)x_J^{(r)}=(A_J^\top A_J)^{-1}A_J^\top z^{(r)} converges to xˉJ:=(AJ⊤AJ)−1AJ⊤w≥0\bar x_J:=(A_J^\top A_J)^{-1}A_J^\top w\ge 0. By continuity of matrix multiplication, w=lim⁡r→∞AJxJ(r)=AJxˉJ∈C(A)w=\lim_{r\to\infty} A_J x_J^{(r)}=A_J\bar x_J\in\mathcal C(A).

Theorem 8 (Farkas’ Lemma (equality form)) Let A∈Rm×nA\in\mathbb R^{m\times n} and b∈Rmb\in\mathbb R^m. Then exactly one of the following two alternatives holds:

  1. There exists x∈R≥0nx\in\mathbb R_{\ge 0}^n such that Ax=bAx=b.
  2. There exists y∈Rmy\in\mathbb R^m such that A⊤y≥0A^\top y\ge 0 and b⊤y<0b^\top y < 0.

Proof. First check mutual exclusion: if both x≥0x\ge 0 with Ax=bAx=b and yy with A⊤y≥0A^\top y\ge 0 existed, then b⊤y=(Ax)⊤y=x⊤(A⊤y)≥0b^\top y = (Ax)^\top y = x^\top (A^\top y) \ge 0, contradicting b⊤y<0b^\top y < 0.

Now suppose (1) fails, i.e., b∉C(A)b\notin\mathcal C(A). By Lemma 2, C(A)\mathcal C(A) is nonempty (it contains 00), closed, and convex. Pick any radius R>∥b∥2R>\|b\|_2 large enough that C(A)∩B‾(b,R)\mathcal C(A)\cap\overline{B}(b,R) is nonempty and compact, so the continuous function z↦∥z−b∥22z\mapsto\|z-b\|_2^2 attains its global minimum on C(A)\mathcal C(A) at a unique closest point p∈C(A)p\in\mathcal C(A). Set y:=p−b≠0(since b∉C(A)). y := p - b \ne 0 \qquad\text{(since }b\notin\mathcal C(A)\text{)}. For any z∈C(A)z\in\mathcal C(A) and any t∈(0,1]t\in(0,1], convexity gives p+t(z−p)=(1−t)p+tz∈C(A)p+t(z-p)=(1-t)p+tz\in\mathcal C(A), so optimality of pp requires ∥p−b∥22≤∥p−b+t(z−p)∥22=∥p−b∥22+2t y⊤(z−p)+t2∥z−p∥22. \|p-b\|_2^2 \le \|p-b+t(z-p)\|_2^2 = \|p-b\|_2^2 + 2t\,y^\top(z-p) + t^2\|z-p\|_2^2. Dividing by 2t>02t>0 and letting t↓0t\downarrow 0 yields the variational inequality y⊤(z−p)≥0for all z∈C(A). y^\top(z-p) \ge 0 \qquad\text{for all }z\in\mathcal C(A). Since C(A)\mathcal C(A) is a cone, testing z=0∈C(A)z=0\in\mathcal C(A) gives y⊤p≤0y^\top p\le 0 and testing z=2p∈C(A)z=2p\in\mathcal C(A) gives y⊤p≥0y^\top p\ge 0, forcing y⊤p=0y^\top p=0. Hence y⊤z≥0y^\top z\ge 0 for every z∈C(A)z\in\mathcal C(A). Plugging in each column z=Aejz=Ae_j (j∈[n]j\in[n]) yields (A⊤y)j≥0(A^\top y)_j \ge 0, i.e., A⊤y≥0A^\top y\ge 0. Finally, b⊤y=(p−y)⊤y=p⊤y−∥y∥22=−∥y∥22<0, b^\top y = (p-y)^\top y = p^\top y - \|y\|_2^2 = -\|y\|_2^2 < 0, establishing alternative (2). (Notice that this exact same closest-point projection argument proves the strict hyperplane separation theorem used in the folded proofs of Proposition 1 in §1.1 and Slater’s mechanism in §2.1 when bb is separated from any closed convex set K\mathcal K.)

Translating the equality form Ax=bAx=b to the inequality form Ax≥bAx\ge b is immediate by adding nonnegative slack variables s∈R≥0ms\in\mathbb R_{\ge 0}^m.

Corollary 2 (Farkas’ Lemma (inequality form)) Let A∈Rm×nA\in\mathbb R^{m\times n} and b∈Rmb\in\mathbb R^m. Then exactly one of the following two alternatives holds:

  1. There exists x∈R≥0nx\in\mathbb R_{\ge 0}^n such that Ax≥bAx\ge b.
  2. There exists y∈R≥0my\in\mathbb R_{\ge 0}^m such that A⊤y≤0A^\top y\le 0 and b⊤y>0b^\top y > 0.

Proof. Condition (1) holds iff there exist x∈R≥0nx\in\mathbb R_{\ge 0}^n and s∈R≥0ms\in\mathbb R_{\ge 0}^m satisfying A~(xs)=b\tilde A\binom{x}{s}=b where A~:=[A    −Im]\tilde A:=[A\;\;-I_m]. By Theorem 8 applied to A~\tilde A, this fails iff there exists y~∈Rm\tilde y\in\mathbb R^m such that A~⊤y~=(A⊤y~−y~)≥0\tilde A^\top\tilde y = \binom{A^\top\tilde y}{-\tilde y}\ge 0 and b⊤y~<0b^\top\tilde y < 0. Defining y:=−y~∈R≥0my:=-\tilde y\in\mathbb R_{\ge 0}^m converts those conditions into A⊤y≤0A^\top y\le 0 and b⊤y>0b^\top y > 0.

We can now prove every part of Strong LP Duality (Theorem 2) in one clean sweep.

Theorem 9 (Proof of Strong LP Duality (Theorem 2)) Let A∈Rm×nA\in\mathbb R^{m\times n}, b∈Rmb\in\mathbb R^m, c∈Rnc\in\mathbb R^n, and consider (LP-P)(\mathsf{LP\text{-}P}) and (LP-D)(\mathsf{LP\text{-}D}).

  1. If both (LP-P)(\mathsf{LP\text{-}P}) and (LP-D)(\mathsf{LP\text{-}D}) are feasible, then there exist x∗∈R≥0nx^*\in\mathbb R_{\ge 0}^n and y∗∈R≥0my^*\in\mathbb R_{\ge 0}^m satisfying Ax∗≥bAx^*\ge b, A⊤y∗≤cA^\top y^*\le c, and c⊤x∗=b⊤y∗c^\top x^* = b^\top y^*.
  2. If (LP-P)(\mathsf{LP\text{-}P}) is feasible and (LP-D)(\mathsf{LP\text{-}D}) is infeasible, then (LP-P)(\mathsf{LP\text{-}P}) is unbounded below (p∗=−∞p^*=-\infty). Symmetrically, if (LP-D)(\mathsf{LP\text{-}D}) is feasible and (LP-P)(\mathsf{LP\text{-}P}) is infeasible, then (LP-D)(\mathsf{LP\text{-}D}) is unbounded above (d∗=+∞d^*=+\infty).

Proof. For (1), combine primal feasibility, dual feasibility, and reverse weak duality (b⊤y≥c⊤xb^\top y\ge c^\top x) into a single inequality system Mz≥rMz\ge r with z=(xy)∈R≥0n+mz=\binom{x}{y}\in\mathbb R_{\ge 0}^{n+m}: M:=[A00−A⊤−c⊤b⊤],r:=[b−c0]. M := \begin{bmatrix} A & 0 \\ 0 & -A^\top \\ -c^\top & b^\top \end{bmatrix}, \qquad r := \begin{bmatrix} b \\ -c \\ 0 \end{bmatrix}. If Mz≥rMz\ge r has a solution z∗=(x∗y∗)≥0z^*=\binom{x^*}{y^*}\ge 0, then Ax∗≥bAx^*\ge b, A⊤y∗≤cA^\top y^*\le c, and b⊤y∗≥c⊤x∗b^\top y^*\ge c^\top x^*; pairing the last inequality with Weak Duality c⊤x∗≥b⊤y∗c^\top x^*\ge b^\top y^* forces c⊤x∗=b⊤y∗c^\top x^*=b^\top y^*!

Suppose for contradiction that Mz≥r,z≥0Mz\ge r, z\ge 0 is infeasible. By Corollary 2, there exist multipliers u∈R≥0mu\in\mathbb R_{\ge 0}^m, v∈R≥0nv\in\mathbb R_{\ge 0}^n, and w∈R≥0w\in\mathbb R_{\ge 0} such that M⊤(u,v,w)⊤≤0M^\top(u,v,w)^\top\le 0 and r⊤(u,v,w)⊤>0r^\top(u,v,w)^\top>0, meaning A⊤u≤wc,Av≥wb,b⊤u>c⊤v. A^\top u \le w c, \qquad A v \ge w b, \qquad b^\top u > c^\top v.

  • Case 1 (w>0w>0): Define x~:=v/w≥0\tilde x := v/w \ge 0 and y~:=u/w≥0\tilde y := u/w \ge 0. Dividing by w>0w>0 gives Ax~≥bA\tilde x\ge b and A⊤y~≤cA^\top\tilde y\le c, so x~\tilde x is primal-feasible and y~\tilde y is dual-feasible, yet b⊤y~>c⊤x~b^\top\tilde y > c^\top\tilde x, contradicting Weak Duality!
  • Case 2 (w=0w=0): Here A⊤u≤0A^\top u\le 0 and Av≥0Av\ge 0. Fix any primal-feasible x0≥0x_0\ge 0 (Ax0≥bAx_0\ge b) and dual-feasible y0≥0y_0\ge 0 (A⊤y0≤cA^\top y_0\le c): b⊤u≤(Ax0)⊤u=x0⊤(A⊤u)≤0≤y0⊤(Av)=(A⊤y0)⊤v≤c⊤v, b^\top u \le (Ax_0)^\top u = x_0^\top(A^\top u) \le 0 \le y_0^\top(Av) = (A^\top y_0)^\top v \le c^\top v, contradicting b⊤u>c⊤vb^\top u > c^\top v.

Hence Mz≥r,z≥0Mz\ge r, z\ge 0 is always feasible, proving (1).

For (2), suppose (LP-D)(\mathsf{LP\text{-}D}) is infeasible, i.e., no y≥0y\ge 0 satisfies (−A⊤)y≥(−c)(-A^\top)y\ge (-c). By Corollary 2, there exists a recession ray d∈R≥0nd\in\mathbb R_{\ge 0}^n such that (−A⊤)⊤d=−Ad≤0(-A^\top)^\top d = -Ad \le 0 (  ⟺  Ad≥0\iff Ad\ge 0) and (−c)⊤d>0(-c)^\top d > 0 (  ⟺  c⊤d<0\iff c^\top d < 0). Given any primal-feasible x0≥0x_0\ge 0, every x0+tdx_0+td (t≥0t\ge 0) satisfies x0+td≥0x_0+td\ge 0 and A(x0+td)≥Ax0≥bA(x_0+td)\ge Ax_0\ge b, while c⊤(x0+td)=c⊤x0+t(c⊤d)→−∞c^\top(x_0+td)=c^\top x_0+t(c^\top d)\to-\infty as t→+∞t\to+\infty. Writing (LP-D)(\mathsf{LP\text{-}D}) as min⁡y≥0{(−b)⊤y:(−A⊤)y≥(−c)}\min_{y\ge 0}\{(-b)^\top y : (-A^\top)y\ge (-c)\} yields the symmetric statement.

2.3 Metric cost and the Kantorovich–Rubinstein W1W_1 theorem

In §1.6 we plugged the simplest metric c(x,y)=1{x≠y}c(x,y)=\mathbf 1_{\{x\ne y\}} into Kantorovich duality and watched the dual constraints collapse to bounded test functions Z:Ω→[0,1]Z:\Omega\to[0,1], recovering dTV(μ,ν)d_{\mathrm{TV}}(\mu,\nu).

What if the state space (Ω,d)(\Omega, d) carries a general metric d(x,y)d(x,y) measuring how far apart points xx and yy are? Plugging c(x,y)=d(x,y)c(x,y)=d(x,y) into Definition 4 defines the 11-Wasserstein distance (or earth mover’s distance): W1(μ,ν):=min⁡γ∈Π(μ,ν)∑x,y∈Ωd(x,y) γ(x,y). W_1(\mu,\nu) := \min_{\gamma\in\Pi(\mu,\nu)}\sum_{x,y\in\Omega} d(x,y)\,\gamma(x,y). Why does taking the dual over (ϕ,ψ)(\phi,\psi) with ϕ(x)+ψ(y)≤d(x,y)\phi(x)+\psi(y)\le d(x,y) simplify to maximizing Eμ[f]−Eν[f]\mathbb E_\mu[f]-\mathbb E_\nu[f] over 11-Lipschitz functions ff (meaning ∣f(x)−f(y)∣≤d(x,y)|f(x)-f(y)|\le d(x,y) for all x,y∈Ωx,y\in\Omega)? The key step is the dd-transform (or cc-transform) tightening one potential against the other.

Theorem 10 (Kantorovich–Rubinstein W1W_1 duality) Let (Ω,d)(\Omega,d) be a finite metric space and let μ,ν∈Δ(Ω)\mu,\nu\in\Delta(\Omega). Then W1(μ,ν)=max⁡f:Ω→R∣f(x)−f(y)∣≤d(x,y)∀x,y(Eμ[f]−Eν[f]). W_1(\mu,\nu) = \max_{\substack{f:\Omega\to\mathbb R\\ |f(x)-f(y)|\le d(x,y)\;\forall x,y}} \bigl(\mathbb E_\mu[f]-\mathbb E_\nu[f]\bigr).

Proof. By Kantorovich Duality (Theorem 5) with c=dc=d, it suffices to show max⁡ϕ⊕ψ≤d(Eμ[ϕ]+Eν[ψ])=max⁡∥f∥Lip≤1(Eμ[f]−Eν[f]), \max_{\phi\oplus\psi\le d}\bigl(\mathbb E_\mu[\phi]+\mathbb E_\nu[\psi]\bigr) = \max_{\|f\|_{\mathrm{Lip}}\le 1}\bigl(\mathbb E_\mu[f]-\mathbb E_\nu[f]\bigr), where ∥f∥Lip:=max⁡x≠y∣f(x)−f(y)∣d(x,y)\|f\|_{\mathrm{Lip}}:=\max_{x\ne y}\frac{|f(x)-f(y)|}{d(x,y)}.

  • (≥\ge direction): If ∥f∥Lip≤1\|f\|_{\mathrm{Lip}}\le 1, then f(x)−f(y)≤d(x,y)f(x)-f(y)\le d(x,y) for all x,y∈Ωx,y\in\Omega, so (ϕ,ψ):=(f,−f)(\phi,\psi):=(f,-f) is feasible for the Kantorovich dual with objective Eμ[f]−Eν[f]\mathbb E_\mu[f]-\mathbb E_\nu[f].
  • (≤\le direction): Let (ϕ,ψ)(\phi,\psi) be any dual-feasible pair satisfying ϕ(x)+ψ(y)≤d(x,y)\phi(x)+\psi(y)\le d(x,y) for all x,y∈Ωx,y\in\Omega. Define the tight upper envelope of ϕ\phi permitted by ψ\psi: f(x):=min⁡y∈Ω(d(x,y)−ψ(y)),x∈Ω. f(x) := \min_{y\in\Omega}\bigl(d(x,y)-\psi(y)\bigr), \qquad x\in\Omega. Check the three properties of ff:
    1. Because ϕ(x)≤d(x,y)−ψ(y)\phi(x)\le d(x,y)-\psi(y) for every y∈Ωy\in\Omega, we immediately have ϕ(x)≤f(x)\phi(x)\le f(x) for every x∈Ωx\in\Omega.
    2. Taking y=xy=x in the minimum (where d(x,x)=0d(x,x)=0) gives f(x)≤d(x,x)−ψ(x)=−ψ(x)f(x)\le d(x,x)-\psi(x)=-\psi(x), so ψ(x)≤−f(x)\psi(x)\le -f(x) for every x∈Ωx\in\Omega.
    3. Given any x,x′∈Ωx,x'\in\Omega, let y∗∈Ωy^*\in\Omega attain f(x′)=d(x′,y∗)−ψ(y∗)f(x')=d(x',y^*)-\psi(y^*). By the triangle inequality, f(x)≤d(x,y∗)−ψ(y∗)≤d(x,x′)+d(x′,y∗)−ψ(y∗)=d(x,x′)+f(x′). f(x)\le d(x,y^*)-\psi(y^*)\le d(x,x')+d(x',y^*)-\psi(y^*)=d(x,x')+f(x'). Swapping xx and x′x' gives ∣f(x)−f(x′)∣≤d(x,x′)|f(x)-f(x')|\le d(x,x'), so ∥f∥Lip≤1\|f\|_{\mathrm{Lip}}\le 1!
    Since ϕ≤f\phi\le f and ψ≤−f\psi\le -f, we conclude Eμ[ϕ]+Eν[ψ]≤Eμ[f]−Eν[f]\mathbb E_\mu[\phi]+\mathbb E_\nu[\psi]\le \mathbb E_\mu[f]-\mathbb E_\nu[f], and compactness of {f:∥f∥Lip≤1, f(x0)=0}\{f:\|f\|_{\mathrm{Lip}}\le 1,\, f(x_0)=0\} ensures attainment.

Notice how cleanly Theorem 10 generalizes Corollary 1: under the discrete metric d(x,y)=1{x≠y}d(x,y)=\mathbf 1_{\{x\ne y\}}, ∥f∥Lip≤1\|f\|_{\mathrm{Lip}}\le 1 means max⁡xf(x)−min⁡yf(y)≤1\max_x f(x)-\min_y f(y)\le 1, which up to subtracting min⁡f\min f is identical to Z:Ω→[0,1]Z:\Omega\to[0,1]. On general graphs or lines, however, W1W_1 remembers how far mass had to move.

Example 5 (Total variation versus W1W_1 on three collinear points) Take Ω={1,2,3}\Omega=\{1,2,3\} with metric d(x,y)=∣x−y∣d(x,y)=|x-y|, and compare μ=(12,14,14)\mu=\bigl(\frac12,\frac14,\frac14\bigr) against ν=(14,14,12)\nu=\bigl(\frac14,\frac14,\frac12\bigr).

  • Primal transport: Moving 14\frac14 unit of mass from 11 directly to 33 crosses distance d(1,3)=2d(1,3)=2, giving W1(μ,ν)=2⋅14=12W_1(\mu,\nu)=2\cdot\frac14=\frac12, whereas dTV(μ,ν)=14d_{\mathrm{TV}}(\mu,\nu)=\frac14 pays only 11 per unit of moved mass regardless of distance.
  • Dual 11-Lipschitz witness: The test function f(1)=2,f(2)=1,f(3)=0f(1)=2, f(2)=1, f(3)=0 has ∥f∥Lip=1\|f\|_{\mathrm{Lip}}=1 and achieves Eμ[f]−Eν[f]=∑x=13(μ(x)−ν(x))f(x)=14⋅2+0⋅1−14⋅0=12=W1(μ,ν)\mathbb E_\mu[f]-\mathbb E_\nu[f]=\sum_{x=1}^3(\mu(x)-\nu(x))f(x)=\frac14\cdot 2 + 0\cdot 1 - \frac14\cdot 0 = \frac12 = W_1(\mu,\nu).

2.4 The Donsker–Varadhan variational formula and Cramér rate functions

In Chapter 3 (Reading §2.13), we proved the Logarithmic Sobolev Inequality on {−1,1}n\{-1,1\}^n via the tensorization of entropy. Let us now prove the analytical workhorse behind that tensorization—the Donsker–Varadhan variational formula—using the exact same Fenchel conjugation + Gibbs-KL pattern from §§1.1 and 1.7.

Let (Ω,π)(\Omega,\pi) be a finite probability space (with π(x)>0\pi(x)>0 for all x∈Ωx\in\Omega, or restrict Ω\Omega to supp⁡(π)\operatorname{supp}(\pi)). Recall from Chapter 3 §2.13 that for any nonnegative random variable Z:Ω→[0,∞)Z:\Omega\to[0,\infty), its entropy functional under π\pi is Ent⁡π(Z):=Eπ[Zln⁡Z]−Eπ[Z]ln⁡Eπ[Z]=Eπ ⁣[Zln⁡ZEπ[Z]], \operatorname{Ent}_\pi(Z):=\mathbb E_\pi[Z\ln Z]-\mathbb E_\pi[Z]\ln\mathbb E_\pi[Z] =\mathbb E_\pi\!\left[Z\ln\frac{Z}{\mathbb E_\pi[Z]}\right], with 0ln⁡0:=00\ln 0:=0. Notice that when Eπ[Z]=1\mathbb E_\pi[Z]=1, ZZ is a likelihood ratio dμdπ\frac{\mathrm d\mu}{\mathrm d\pi} of a distribution μ(x)=Z(x)π(x)\mu(x)=Z(x)\pi(x) with respect to π\pi, and Ent⁡π(Z)=KL⁡(μ∥π)\operatorname{Ent}_\pi(Z)=\operatorname{KL}(\mu\|\pi)!

Theorem 11 (Donsker–Varadhan variational representation of entropy) For every nonnegative random variable Z:Ω→[0,∞)Z:\Omega\to[0,\infty) on a finite probability space (Ω,π)(\Omega,\pi), Ent⁡π(Z)=sup⁡X:Ω→R{Eπ[ZX]−Eπ[Z]ln⁡Eπ[eX]}=sup⁡X:Ω→REπ[eX]=1Eπ[ZX]. \operatorname{Ent}_\pi(Z) =\sup_{X:\Omega\to\mathbb R}\bigl\{\mathbb E_\pi[ZX]-\mathbb E_\pi[Z]\ln\mathbb E_\pi[e^X]\bigr\} =\sup_{\substack{X:\Omega\to\mathbb R\\ \mathbb E_\pi[e^X]=1}}\mathbb E_\pi[ZX].

Proof. If Z≡0Z\equiv 0, then Ent⁡π(0)=0\operatorname{Ent}_\pi(0)=0 and both right-hand sides equal 00 (note that the normalized constraint set {X:Eπ[eX]=1}\{X:\mathbb E_\pi[e^X]=1\} is nonempty since it contains X≡0X\equiv 0, so its supremum is likewise 00). Assume henceforth that Eπ[Z]>0\mathbb E_\pi[Z]>0 and define the normalized density ratio Z^:=Z/Eπ[Z]\widehat Z:=Z/\mathbb E_\pi[Z], which satisfies Z^≥0\widehat Z\ge 0, Eπ[Z^]=1\mathbb E_\pi[\widehat Z]=1, and Ent⁡π(Z)=Eπ[Z] Ent⁡π(Z^)\operatorname{Ent}_\pi(Z)=\mathbb E_\pi[Z]\,\operatorname{Ent}_\pi(\widehat Z) since Ent⁡π(Z^)=Eπ ⁣[ZEπ[Z]ln⁡ZEπ[Z]]=Eπ[Zln⁡Z]−Eπ[Z]ln⁡Eπ[Z]Eπ[Z]=Ent⁡π(Z)Eπ[Z]. \operatorname{Ent}_\pi(\widehat Z) =\mathbb E_\pi\!\left[\frac{Z}{\mathbb E_\pi[Z]}\ln\frac{Z}{\mathbb E_\pi[Z]}\right] =\frac{\mathbb E_\pi[Z\ln Z]-\mathbb E_\pi[Z]\ln\mathbb E_\pi[Z]}{\mathbb E_\pi[Z]} =\frac{\operatorname{Ent}_\pi(Z)}{\mathbb E_\pi[Z]}. Consider the proper, convex, continuous functional Λ(X):=ln⁡Eπ[eX]\Lambda(X):=\ln\mathbb E_\pi[e^X] on RΩ\mathbb R^\Omega (the log-MGF). Let us verify that for every q∈RΩq\in\mathbb R^\Omega, its Fenchel conjugate (under the probability-weighted pairing ⟨q,X⟩π:=Eπ[qX]\langle q,X\rangle_\pi:=\mathbb E_\pi[qX]) is Λ∗(q)={Eπ[qln⁡q],if q≥0 and Eπ[q]=1,+∞,otherwise. \Lambda^*(q) = \begin{cases} \mathbb E_\pi[q\ln q], & \text{if }q\ge 0\text{ and }\mathbb E_\pi[q]=1,\\ +\infty, & \text{otherwise.} \end{cases} A direct two-line calculation verifies both directions: for any q≥0q\ge 0 with Eπ[q]=1\mathbb E_\pi[q]=1 and any X:Ω→RX:\Omega\to\mathbb R, let pX(x):=eX(x)Eπ[eX]p_X(x):=\frac{e^{X(x)}}{\mathbb E_\pi[e^X]}; then pXπ∈Δ(Ω)p_X\pi\in\Delta(\Omega) and Eπ[qln⁡q]−(Eπ[qX]−ln⁡Eπ[eX])=∑x∈Ω(q(x)π(x))ln⁡q(x)π(x)pX(x)π(x)=KL⁡(qπ ∥ pXπ)≥0, \mathbb E_\pi[q\ln q]-\bigl(\mathbb E_\pi[qX]-\ln\mathbb E_\pi[e^X]\bigr) =\sum_{x\in\Omega}\bigl(q(x)\pi(x)\bigr)\ln\frac{q(x)\pi(x)}{p_X(x)\pi(x)} =\operatorname{KL}\bigl(q\pi \,\big\|\, p_X\pi\bigr)\ge 0, proving sup⁡X{Eπ[qX]−ln⁡Eπ[eX]}≤Eπ[qln⁡q]\sup_X\{\mathbb E_\pi[qX]-\ln\mathbb E_\pi[e^X]\}\le\mathbb E_\pi[q\ln q] (and note that if either q(x0)<0q(x_0)<0 or Eπ[q]≠1\mathbb E_\pi[q]\ne 1, shifting XX by constants or spikes X(x0)→−∞X(x_0)\to -\infty sends Eπ[qX]−ln⁡Eπ[eX]→+∞\mathbb E_\pi[qX]-\ln\mathbb E_\pi[e^X]\to+\infty, forcing Λ∗(q)=+∞\Lambda^*(q)=+\infty). To see that equality is approached for Z^≥0\widehat Z\ge 0 with Eπ[Z^]=1\mathbb E_\pi[\widehat Z]=1, set XM(ω):=ln⁡Z^(ω)X_M(\omega):=\ln\widehat Z(\omega) where Z^(ω)>0\widehat Z(\omega)>0 and XM(ω):=−MX_M(\omega):=-M where Z^(ω)=0\widehat Z(\omega)=0; then Eπ[Z^XM]=Eπ[Z^ln⁡Z^]\mathbb E_\pi[\widehat Z X_M]=\mathbb E_\pi[\widehat Z\ln\widehat Z] while Eπ[eXM]=Eπ[Z^]+π(Z^=0)e−M→1\mathbb E_\pi[e^{X_M}] = \mathbb E_\pi[\widehat Z] + \pi(\widehat Z=0)e^{-M} \to 1 as M→∞M\to\infty, giving Ent⁡π(Z^)=Λ∗(Z^)=sup⁡X:Ω→R{Eπ[Z^X]−ln⁡Eπ[eX]}. \operatorname{Ent}_\pi(\widehat Z)=\Lambda^*(\widehat Z)=\sup_{X:\Omega\to\mathbb R}\bigl\{\mathbb E_\pi[\widehat Z X]-\ln\mathbb E_\pi[e^X]\bigr\}. (Notice that Λ\Lambda and Eπ[qln⁡q]\mathbb E_\pi[q\ln q] are therefore an exact Fenchel conjugate pair on (RΩ,⟨⋅,⋅⟩π)(\mathbb R^\Omega,\langle\cdot,\cdot\rangle_\pi)!)

Multiplying both sides by Eπ[Z]>0\mathbb E_\pi[Z]>0 yields the first variational formula: Ent⁡π(Z)=Eπ[Z]sup⁡X{Eπ[Z^X]−ln⁡Eπ[eX]}=sup⁡X:Ω→R{Eπ[ZX]−Eπ[Z]ln⁡Eπ[eX]}. \operatorname{Ent}_\pi(Z)=\mathbb E_\pi[Z]\sup_{X}\bigl\{\mathbb E_\pi[\widehat Z X]-\ln\mathbb E_\pi[e^X]\bigr\}=\sup_{X:\Omega\to\mathbb R}\bigl\{\mathbb E_\pi[ZX]-\mathbb E_\pi[Z]\ln\mathbb E_\pi[e^X]\bigr\}. Finally, observe that replacing XX by X+cX+c (c∈Rc\in\mathbb R) shifts Eπ[Z(X+c)]−Eπ[Z]ln⁡Eπ[eX+c]\mathbb E_\pi[Z(X+c)]-\mathbb E_\pi[Z]\ln\mathbb E_\pi[e^{X+c}] by cEπ[Z]−cEπ[Z]=0c\mathbb E_\pi[Z]-c\mathbb E_\pi[Z]=0. Shifting every candidate XX by c:=−ln⁡Eπ[eX]c:=-\ln\mathbb E_\pi[e^X] preserves its objective while enforcing Eπ[eX+c]=1\mathbb E_\pi[e^{X+c}]=1, yielding Ent⁡π(Z)=sup⁡X:Eπ[eX]=1Eπ[ZX]\operatorname{Ent}_\pi(Z)=\sup_{X:\mathbb E_\pi[e^X]=1}\mathbb E_\pi[ZX].

Consequence: recovering Chapter 3’s Entropy Tensorization via Doob martingale log-increments

Let X=(X1,…,Xn)X=(X_1,\ldots,X_n) have independent coordinates on a finite product space and let Z=f(X)≥0Z=f(X)\ge 0 with E[Z]>0\mathbb E[Z]>0 (by continuity of Ent⁡\operatorname{Ent}, assume f>0f>0 first via f+εf+\varepsilon with ε↓0\varepsilon\downarrow 0). Form the Doob martingale Zk:=E[f(X)∣X1,…,Xk]Z_k:=\mathbb E[f(X)\mid X_1,\ldots,X_k] (Z0=E[f]Z_0=\mathbb E[f], Zn=fZ_n=f) and define the logarithmic martingale increments Uk:=ln⁡(Zk/Zk−1)U_k:=\ln(Z_k/Z_{k-1}). Telescoping gives Ent⁡(f)=E[Znln⁡ZnZ0]=∑k=1nE[f(X) Uk]. \operatorname{Ent}(f) =\mathbb E\Bigl[Z_n\ln\frac{Z_n}{Z_0}\Bigr] =\sum_{k=1}^n\mathbb E\bigl[f(X)\, U_k\bigr]. Condition on X−k:=(X1,…,Xk−1,Xk+1,…,Xn)X_{-k}:=(X_1,\ldots,X_{k-1},X_{k+1},\ldots,X_n) (notation from Chapter 3 §2.13). Because Uk=ln⁡(Zk/Zk−1)U_k=\ln(Z_k/Z_{k-1}) depends only on (X1,…,Xk)(X_1,\ldots,X_k) and the coordinates X1,…,XnX_1,\ldots,X_n are independent, averaging eUk=Zk/Zk−1e^{U_k}=Z_k/Z_{k-1} over XkX_k with X−kX_{-k} held fixed leaves Zk−1=E[f∣X1,…,Xk−1]Z_{k-1}=\mathbb E[f\mid X_1,\ldots,X_{k-1}] constant and integrates Zk=E[f∣X1,…,Xk]Z_k=\mathbb E[f\mid X_1,\ldots,X_k] down to Zk−1Z_{k-1}: E[eUk∣X−k]=E[Zk∣X1,…,Xk−1]Zk−1=Zk−1Zk−1=1. \mathbb E\bigl[e^{U_k}\mid X_{-k}\bigr] =\frac{\mathbb E[Z_k\mid X_1,\ldots,X_{k-1}]}{Z_{k-1}} =\frac{Z_{k-1}}{Z_{k-1}} =1. By Theorem 11 applied conditionally on X−kX_{-k}, E[f(X)Uk∣X−k]≤Ent⁡k(f)\mathbb E[f(X)U_k\mid X_{-k}]\le\operatorname{Ent}_k(f). Taking full expectations and summing over k=1,…,nk=1,\ldots,n recovers Ent⁡(f)≤∑k=1nE[Ent⁡k(f)]\operatorname{Ent}(f)\le\sum_{k=1}^n\mathbb E[\operatorname{Ent}_k(f)]!

Finally, look back at the very beginning of our course in Chapter 1 (Chernoff’s method). Why did optimizing the exponential Markov bound inf⁡λ≥0exp⁡(−n(λa−ln⁡E[eλX1]))\inf_{\lambda\ge 0}\exp(-n(\lambda a-\ln\mathbb E[e^{\lambda X_1}])) give the sharp decay exponent for empirical means of i.i.d. random variables? Because Cramér’s large-deviation rate function is literally the Fenchel conjugate of the log-MGF Λ(λ)=ln⁡E[eλX1]\Lambda(\lambda)=\ln\mathbb E[e^{\lambda X_1}]!

Proposition 2 (Chernoff bounds and Cramér rate functions as Fenchel conjugation) Let X1,…,XnX_1,\ldots,X_n be i.i.d. real-valued random variables with finite log-MGF Λ(λ):=ln⁡E[eλX1]<∞\Lambda(\lambda):=\ln\mathbb E[e^{\lambda X_1}]<\infty for all λ∈R\lambda\in\mathbb R, and let μ:=E[X1]\mu:=\mathbb E[X_1]. For every threshold a≥μa\ge\mu, Chernoff’s exponential Markov bound equals P ⁣[1n∑i=1nXi≥a]≤inf⁡λ≥0exp⁡(−n(λa−Λ(λ)))=exp⁡(−n Λ∗(a)), \mathbb P\!\left[\frac{1}{n}\sum_{i=1}^n X_i \ge a\right] \le \inf_{\lambda\ge 0}\exp\bigl(-n\bigl(\lambda a-\Lambda(\lambda)\bigr)\bigr) = \exp\bigl(-n\,\Lambda^*(a)\bigr), where Λ∗(a):=sup⁡λ∈R{λa−Λ(λ)}\Lambda^*(a):=\sup_{\lambda\in\mathbb R}\{\lambda a-\Lambda(\lambda)\} is the Fenchel conjugate of Λ\Lambda. In particular, for Xi∼Ber⁡(p)X_i\sim\operatorname{Ber}(p) (p∈(0,1)p\in(0,1)) and a∈[p,1)a\in[p,1), Λ∗(a)=KL⁡(Ber⁡(a) ∥ Ber⁡(p))=aln⁡ap+(1−a)ln⁡1−a1−p. \Lambda^*(a) = \operatorname{KL}\bigl(\operatorname{Ber}(a)\,\big\|\,\operatorname{Ber}(p)\bigr) = a\ln\frac{a}{p}+(1-a)\ln\frac{1-a}{1-p}.

Proof. Applying Markov’s inequality to exp⁡(λ∑i=1nXi)\exp\bigl(\lambda\sum_{i=1}^n X_i\bigr) for any λ≥0\lambda\ge 0 gives P[1n∑iXi≥a]≤exp⁡(−n(λa−Λ(λ)))\mathbb P[\frac1n\sum_i X_i\ge a]\le\exp(-n(\lambda a-\Lambda(\lambda))). Notice that for λ≤0\lambda\le 0 and a≥μa\ge\mu, Jensen’s inequality gives Λ(λ)=ln⁡E[eλX1]≥λE[X1]=λμ≥λa\Lambda(\lambda)=\ln\mathbb E[e^{\lambda X_1}]\ge\lambda\mathbb E[X_1]=\lambda\mu\ge\lambda a, so λa−Λ(λ)≤0\lambda a-\Lambda(\lambda)\le 0, whereas λ=0\lambda=0 already attains 00. Hence restricting sup⁡λ∈R{λa−Λ(λ)}\sup_{\lambda\in\mathbb R}\{\lambda a-\Lambda(\lambda)\} to λ≥0\lambda\ge 0 leaves the supremum unchanged, proving inf⁡λ≥0e−n(λa−Λ(λ))=e−nΛ∗(a)\inf_{\lambda\ge 0}e^{-n(\lambda a-\Lambda(\lambda))}=e^{-n\Lambda^*(a)}.

For X1∼Ber⁡(p)X_1\sim\operatorname{Ber}(p), Λ(λ)=ln⁡(1−p+peλ)\Lambda(\lambda)=\ln(1-p+pe^\lambda). Setting the derivative ddλ(λa−Λ(λ))=a−peλ1−p+peλ=0\frac{\mathrm d}{\mathrm d\lambda}(\lambda a-\Lambda(\lambda))=a-\frac{pe^\lambda}{1-p+pe^\lambda}=0 yields eλ∗=a(1−p)p(1−a)e^{\lambda^*}=\frac{a(1-p)}{p(1-a)} (so λ∗=ln⁡a(1−p)p(1−a)≥0\lambda^*=\ln\frac{a(1-p)}{p(1-a)}\ge 0 when a≥pa\ge p), and substituting λ∗\lambda^* back gives Λ∗(a)=aln⁡ap+(1−a)ln⁡1−a1−p=KL⁡(Ber⁡(a)∥Ber⁡(p))\Lambda^*(a)=a\ln\frac{a}{p}+(1-a)\ln\frac{1-a}{1-p}=\operatorname{KL}(\operatorname{Ber}(a)\|\operatorname{Ber}(p)).

(By Cramér’s Large Deviation Theorem, this upper-bound exponent Λ∗(a)\Lambda^*(a) is asymptotically tight: lim⁡n→∞1nln⁡P[1n∑i=1nXi≥a]=−Λ∗(a)\lim_{n\to\infty}\frac1n\ln\mathbb P[\frac1n\sum_{i=1}^n X_i\ge a]=-\Lambda^*(a) whenever aa lies in the interior of the range of Λ′\Lambda'.)

2.5 From Fourier to Gibbs to Fenchel: kernel transforms and infimal convolution

Chapter 3 worked extensively with Fourier characters on the Boolean hypercube, and Chapters 1, 4, and 6 kept circling back to Gibbs log-partition functions ln⁡Z\ln Z and Fenchel conjugates f∗f^*. Notice a striking structural echo: Fourier analysis swaps pointwise multiplication for convolution, maps differentiation to frequency multiplication, leaves the Gaussian e−∥x∥22/2e^{-\|x\|_2^2/2} invariant, and obeys Heisenberg uncertainty; meanwhile Fenchel conjugation swaps sums for infimal convolution, maps subgradients to dual slopes, leaves the quadratic 12∥x∥22\frac12\|x\|_2^2 invariant, and trades μ\mu-strong convexity for 1/μ1/\mu-smoothness. Is this merely a suggestive analogy, or can Fenchel duality actually be traced back to the Hilbert-space Fourier transform?

A natural first guess is to start in a Hilbert space, expand functions in any orthonormal basis {ek}\{e_k\}, and take some kind of limit. Tracking that guess carefully exposes two exact forks that pinpoint where Fenchel duality actually comes from:

  1. Why an arbitrary Hilbert orthonormal basis fails (homomorphism, not mere basis). Expanding FF in an arbitrary orthonormal basis (such as Hermite functions or wavelets) respects L2L^2 norms via Parseval, yet it neither diagonalizes translation/convolution nor turns products into affine shifts under logarithms. What singles out Fourier modes χy(x)=e−i⟨y,x⟩\chi_y(x)=e^{-i\langle y,x\rangle} on Rn\mathbb R^n—just like parity characters χS(x)=(−1)∑i∈Sxi\chi_S(x)=(-1)^{\sum_{i\in S} x_i} on F2n\mathbb F_2^n in Chapter 3—is the homomorphism property sending vector addition to scalar multiplication: ϕy(x1+x2)=ϕy(x1)ϕy(x2). \phi_y(x_1+x_2)=\phi_y(x_1)\phi_y(x_2). Once one passes to logarithms via εln⁡ϕy(x)\varepsilon\ln\phi_y(x), multiplication turns back into addition: εln⁡ϕy(x1+x2)=εln⁡ϕy(x1)+εln⁡ϕy(x2)\varepsilon\ln\phi_y(x_1+x_2)=\varepsilon\ln\phi_y(x_1)+\varepsilon\ln\phi_y(x_2). Thus any continuous positive solution ϕy\phi_y has the form ϕy(x)=ey(x)/ε\phi_y(x)=e^{y(x)/\varepsilon} for a linear functional y∈V∗y\in V^*! Even before fixing an inner product, Fourier’s kernel singles out the covector pairing ⟨y,x⟩\langle y,x\rangle from §2.1.
  2. Trading Hilbert orthogonality for order and convexity (−i↦1/ε-i\mapsto 1/\varepsilon). Why can’t χy(x)=e−i⟨y,x⟩\chi_y(x)=e^{-i\langle y,x\rangle} directly take suprema or preserve convex inequalities? Because Hilbert-space orthogonality ∫Rnei⟨y′−y,x⟩ dx=(2π)nδ(y′−y)\int_{\mathbb R^n} e^{i\langle y'-y,x\rangle}\,\mathrm dx = (2\pi)^n\delta(y'-y) relies entirely on oscillatory phase cancellation, which destroys real order (≤\le, sup⁡\sup). Performing a Wick rotation −i↦1/ε>0-i \mapsto 1/\varepsilon>0 replaces oscillating unit-modulus characters by strictly positive kernels e⟨y,x⟩/ε>0e^{\langle y,x\rangle/\varepsilon}>0. Hilbert orthogonality is gone, and in return we gain positivity, order preservation, and Hölder’s inequality—guaranteeing that for nonnegative Fε(x)=e−f(x)/εF_\varepsilon(x)=e^{-f(x)/\varepsilon}, the smoothed transform fε∗(y):=εln⁡∫Rne(⟨y,x⟩−f(x))/ε dx(=ln⁡∥e⟨y,⋅⟩−f(⋅)∥L1/ε(Rn) for ε∈(0,1]) f_\varepsilon^*(y):=\varepsilon\ln\int_{\mathbb R^n} e^{(\langle y,x\rangle-f(x))/\varepsilon}\,\mathrm dx \qquad\Bigl(= \ln\bigl\|e^{\langle y,\cdot\rangle-f(\cdot)}\bigr\|_{L^{1/\varepsilon}(\mathbb R^n)}\text{ for }\varepsilon\in(0,1]\Bigr) is automatically convex in y∈V∗y\in V^* for every ε>0\varepsilon>0 (and agrees with the log L1/εL^{1/\varepsilon} norm once p=1/ε≥1p=1/\varepsilon\ge 1)!

Now take the zero-temperature limit ε↓0\varepsilon\downarrow 0, which sends the LpL^p exponent p=1/ε→+∞p=1/\varepsilon\to+\infty. On any continuous, superlinearly coercive function f:Rn→Rf:\mathbb R^n\to\mathbb R (meaning lim⁡∥x∥2→∞f(x)/∥x∥2=+∞\lim_{\|x\|_2\to\infty} f(x)/\|x\|_2=+\infty, without assuming convexity), the supremum M:=f∗(y)=sup⁡x∈Rn{⟨y,x⟩−f(x)}M:=f^*(y)=\sup_{x\in\mathbb R^n}\{\langle y,x\rangle-f(x)\} is finite and attained at some x∗∈Rnx^*\in\mathbb R^n. Fix any δ>0\delta>0; continuity gives a ball B(x∗,r)B(x^*,r) of volume vr>0v_r>0 where ⟨y,x⟩−f(x)≥M−δ\langle y,x\rangle-f(x)\ge M-\delta, yielding the lower bound fε∗(y)≥εln⁡ ⁣(vre(M−δ)/ε)=M−δ+εln⁡vr. f_\varepsilon^*(y)\ge \varepsilon\ln\!\left(v_r e^{(M-\delta)/\varepsilon}\right) = M-\delta+\varepsilon\ln v_r. For the upper bound, superlinearity ensures R>0R>0 such that ⟨y,x⟩−f(x)≤M−∥x∥2\langle y,x\rangle-f(x)\le M-\|x\|_2 whenever ∥x∥2>R\|x\|_2>R. Comparing against ⟨y,x⟩−f(x)≤M\langle y,x\rangle-f(x)\le M on B(0,R)B(0,R) gives, for every ε∈(0,1]\varepsilon\in(0,1], ∫Rne(⟨y,x⟩−f(x))/ε dx≤eM/ε(vol⁡(B(0,R))+∫∥x∥2>Re−∥x∥2 dx). \int_{\mathbb R^n} e^{(\langle y,x\rangle-f(x))/\varepsilon}\,\mathrm dx \le e^{M/\varepsilon}\left(\operatorname{vol}(B(0,R))+\int_{\|x\|_2>R} e^{-\|x\|_2}\,\mathrm dx\right). Taking εln⁡(⋅)\varepsilon\ln(\cdot) and letting ε↓0\varepsilon\downarrow 0 with δ↓0\delta\downarrow 0 proves lim⁡ε↓0fε∗(y)=sup⁡x∈Rn{⟨y,x⟩−f(x)}=f∗(y). \lim_{\varepsilon\downarrow 0} f_\varepsilon^*(y) = \sup_{x\in\mathbb R^n}\bigl\{\langle y,x\rangle-f(x)\bigr\} = f^*(y). Notice why nonconvex pockets disappear in the third step! At ε>0\varepsilon>0, a point x0x_0 sitting strictly inside an upward-dented gap has exponent ⟨y,x0⟩−f(x0)≤f∗(y)−Δ\langle y,x_0\rangle-f(x_0) \le f^*(y)-\Delta with Δ>0\Delta>0, so every supporting hyperplane downweights its contribution by e−Δ/ε→0e^{-\Delta/\varepsilon}\to 0 as ε↓0\varepsilon\downarrow 0. Unlike Fourier analysis—where linearity and orthogonality preserve nonconvex oscillations faithfully—the ε↓0\varepsilon\downarrow 0 limit erases nonconvex pockets so that inverting a second time returns f∗∗=cl⁡conv⁡(f)f^{**}=\operatorname{cl}\operatorname{conv}(f) rather than ff.

Historical trajectory: Varadhan’s lemma and Maslov dequantization. In large deviations, S. R. S. Varadhan (Comm. Pure Appl. Math., 1966) formalized this Laplace asymptotic principle εln⁡∫eF(x)/ε dμε(x)→sup⁡x{F(x)−I(x)}\varepsilon\ln\int e^{F(x)/\varepsilon}\,\mathrm d\mu_\varepsilon(x)\to\sup_x\{F(x)-I(x)\}—the direct continuous sibling of Cramér duality in §2.4. Independently, Victor Maslov (Uspekhi Mat. Nauk, 1987) and Gunter Litvinov named the passage (R≥0,+,×)→ε↓0(R∪{−∞},max⁡,+)(\mathbb R_{\ge 0},+,\times)\xrightarrow{\varepsilon\downarrow 0}(\mathbb R\cup\{-\infty\},\max,+) idempotent analysis (or tropical dequantization, viewing ε\varepsilon as Planck’s constant ℏ↓0\hbar\downarrow 0 and the Fenchel transform as the classical Legendre transform of the tropical semiring). Pontryagin duality generalizes Fourier transforms to arbitrary locally compact abelian groups, whereas dropping complex phases trades group orthogonality for real convex cones.

Putting all three rungs side by side turns an abstract analogy into a single continuous family of semiring integral transforms:

Rung Semiring (⊕,⊗)(\oplus,\otimes) Kernel ϕy(x)\phi_y(x) Transform of F=e−f/εF=e^{-f/\varepsilon} Fixed point
1. Fourier (Hilbert L2L^2) (+,×)(+,\times) on C\mathbb C e−i⟨y,x⟩e^{-i\langle y,x\rangle} ∫F(x)e−i⟨y,x⟩ dx\int F(x)e^{-i\langle y,x\rangle}\,\mathrm dx e−∥x∥22/2e^{-\|x\|_2^2/2}
2. Laplace / Gibbs (ε>0\varepsilon>0) (+,×)(+,\times) on R≥0\mathbb R_{\ge 0} e⟨y,x⟩/εe^{\langle y,x\rangle/\varepsilon} εln⁡∫e(⟨y,x⟩−f(x))/ε dx\varepsilon\ln\int e^{(\langle y,x\rangle-f(x))/\varepsilon}\,\mathrm dx 12∥x∥22\tfrac12\|x\|_2^2 (limit)
3. Fenchel (ε↓0\varepsilon\downarrow 0) (sup⁡,+)(\sup,+) on R∪{−∞}\mathbb R\cup\{-\infty\} ⟨y,x⟩\langle y,x\rangle sup⁡x{⟨y,x⟩−f(x)}\sup_x\{\langle y,x\rangle-f(x)\} 12∥x∥22\tfrac12\|x\|_2^2

Once addition ++ becomes inf⁡\inf (the tropical operation matching convex minimization) and multiplication ×\times becomes ++, the exact analogue of Fourier’s convolution integral ∫F(u)G(x−u) du\int F(u)G(x-u)\,\mathrm du is infimal convolution:

Proposition 3 (Infimal convolution and additive conjugates) Let f,g:V→R∪{+∞}f,g:V\to\mathbb R\cup\{+\infty\} be proper functions on a paired space (V,V∗,⟨⋅,⋅⟩)(V,V^*,\langle\cdot,\cdot\rangle). Define their infimal convolution (f□g):V→[−∞,+∞](f\square g):V\to[-\infty,+\infty] by (f□g)(x):=inf⁡{f(u)+g(v):u∈dom⁡(f),  v∈dom⁡(g),  u+v=x}, (f\square g)(x):=\inf\bigl\{f(u)+g(v):u\in\operatorname{dom}(f),\;v\in\operatorname{dom}(g),\;u+v=x\bigr\}, with the convention inf⁡∅=+∞\inf\emptyset=+\infty when x∉dom⁡(f)+dom⁡(g)x\notin\operatorname{dom}(f)+\operatorname{dom}(g). Then for every covector y∈V∗y\in V^*, (f□g)∗(y)=f∗(y)+g∗(y). (f\square g)^*(y) = f^*(y) + g^*(y).

Proof. Expand the supremum in (f□g)∗(y)(f\square g)^*(y) using −inf⁡S(⋅)=sup⁡S(−⋅)-\inf_S(\cdot)=\sup_S(-\cdot) over pairs (u,v)∈dom⁡(f)×dom⁡(g)(u,v)\in\operatorname{dom}(f)\times\operatorname{dom}(g) (where f(u)f(u) and g(v)g(v) are both finite real numbers, eliminating any ∞−∞\infty-\infty ambiguity): (f□g)∗(y)=sup⁡x∈V  sup⁡u∈dom⁡(f),v∈dom⁡(g)u+v=x{⟨y,x⟩−f(u)−g(v)}=sup⁡u∈dom⁡(f),  v∈dom⁡(g){(⟨y,u⟩−f(u))+(⟨y,v⟩−g(v))}=sup⁡u∈dom⁡(f){⟨y,u⟩−f(u)}+sup⁡v∈dom⁡(g){⟨y,v⟩−g(v)}=f∗(y)+g∗(y). \begin{aligned} (f\square g)^*(y) &= \sup_{x\in V}\;\sup_{\substack{u\in\operatorname{dom}(f),\,v\in\operatorname{dom}(g)\\u+v=x}}\bigl\{\langle y,x\rangle - f(u) - g(v)\bigr\}\\ &= \sup_{u\in\operatorname{dom}(f),\;v\in\operatorname{dom}(g)}\bigl\{\bigl(\langle y,u\rangle-f(u)\bigr) + \bigl(\langle y,v\rangle-g(v)\bigr)\bigr\}\\ &= \sup_{u\in\operatorname{dom}(f)}\bigl\{\langle y,u\rangle-f(u)\bigr\} + \sup_{v\in\operatorname{dom}(g)}\bigl\{\langle y,v\rangle-g(v)\bigr\} = f^*(y) + g^*(y). \end{aligned} Notice why the step splitting into two independent suprema uses only finite arithmetic: because ff and gg are proper, both dom⁡(f)\operatorname{dom}(f) and dom⁡(g)\operatorname{dom}(g) are nonempty, so each supremum lies in (−∞,+∞](-\infty,+\infty] and no +∞+(−∞)+\infty+(-\infty) term can arise.

Two concrete convex-optimization operations fall out of Proposition 3 immediately. First, for indicator functions δA,δB\delta_{\mathcal A},\delta_{\mathcal B} of nonempty sets A,B⊆V\mathcal A,\mathcal B\subseteq V, (δA□δB)(x)=0(\delta_{\mathcal A}\square\delta_{\mathcal B})(x)=0 iff x=u+v∈A+Bx=u+v\in\mathcal A+\mathcal B (and +∞+\infty otherwise), so (δA□δB)=δA+B(\delta_{\mathcal A}\square\delta_{\mathcal B})=\delta_{\mathcal A+\mathcal B}; applying Proposition 3 recovers the support-function Minkowski sum law σA+B(y)=σA(y)+σB(y)\sigma_{\mathcal A+\mathcal B}(y)=\sigma_{\mathcal A}(y)+\sigma_{\mathcal B}(y). Second, in Euclidean space Rn\mathbb R^n, taking gλ(v):=12λ∥v∥22g_\lambda(v):=\frac{1}{2\lambda}\|v\|_2^2 (λ>0\lambda>0) produces the Moreau envelope eλf(x):=(f□12λ∥⋅∥22)(x)=inf⁡u∈Rn{f(u)+12λ∥x−u∥22}, e_\lambda f(x) := \Bigl(f\square\frac{1}{2\lambda}\|\cdot\|_2^2\Bigr)(x) = \inf_{u\in\mathbb R^n}\Bigl\{f(u)+\frac{1}{2\lambda}\|x-u\|_2^2\Bigr\}, whose Fenchel conjugate is simply (eλf)∗(y)=f∗(y)+λ2∥y∥22(e_\lambda f)^*(y)=f^*(y)+\frac{\lambda}{2}\|y\|_2^2—the tropical ε↓0\varepsilon\downarrow 0 shadow of convolving e−f/εe^{-f/\varepsilon} with a Gaussian heat kernel!

This three-rung translation explains the entire Fourier–Fenchel property dictionary at a glance:

Property Fourier (L2L^2 kernel e−i⟨ω,x⟩e^{-i\langle\omega,x\rangle}) Fenchel (sup⁡x{⟨y,x⟩−f(x)}\sup_x\{\langle y,x\rangle-f(x)\}) Shared root
Convolution F∗G^=F^⋅G^\widehat{F*G}=\hat F\cdot\hat G (f□g)∗=f∗+g∗(f\square g)^*=f^*+g^* Character homomorphism ϕy(u+v)=ϕy(u)ϕy(v)\phi_y(u+v)=\phi_y(u)\phi_y(v)
Inversion F−1FF=F\mathcal F^{-1}\mathcal F F=F f∗∗=ff^{**}=f (closed convex ff) L2L^2 unitarity vs. ε↓0\varepsilon\downarrow 0 convex envelope
Fixed point e−∥x∥22/2e^{-\|x\|_2^2/2} 12∥x∥22\tfrac12\|x\|_2^2 Log Gaussian density is −12∥x∥22-\tfrac12\|x\|_2^2
Uncertainty / Curvature Narrow in xx   ⟺  \iff wide in ω\omega μ\mu-strongly convex closed ff   ⟺  \iff 1μ\frac1\mu-smooth f∗f^* Broad quadratic lower bound   ⟺  \iff tight upper bound
Shift F[F(⋅−a)](ω)=e−i⟨ω,a⟩F^(ω)\mathcal F[F(\cdot-a)](\omega)=e^{-i\langle\omega,a\rangle}\hat F(\omega) [f(⋅−a)]∗(y)=⟨y,a⟩+f∗(y)[f(\cdot-a)]^*(y)=\langle y,a\rangle+f^*(y) Substituting x=u+ax=u+a factors out ϕy(a)\phi_y(a)
Zero mode F^(0)=∫F(x) dx\hat F(0)=\int F(x)\,\mathrm dx −f∗(0)=inf⁡xf(x)-f^*(0)=\inf_x f(x) Trivial character ϕ0≡1\phi_0\equiv 1 aggregates domain

III. Further Topics

3.1 Yao’s minimax principle as linear programming duality for lower bounds

In Chapter 5 Reading §2.4, we used Yao’s Minimax Principle to convert any randomized communication protocol into a deterministic protocol on a hard input distribution μ\mu: min⁡Rmax⁡x∈Xc(R,x)=max⁡μ∈Δ(X)min⁡DEx∼μ[c(D,x)]. \min_{R}\max_{x\in\mathcal X} c(R,x) = \max_{\mu\in\Delta(\mathcal X)}\min_{D} \mathbb E_{x\sim\mu}[c(D,x)]. Since every randomized algorithm RR is a convex combination (probability distribution p∈Δ(A)p\in\Delta(\mathcal A)) over deterministic algorithms A\mathcal A on finite input sets X\mathcal X, Yao’s principle is literally Theorem 2 (via von Neumann’s minimax theorem) applied to the cost matrix MD,x=c(D,x)M_{D,x}=c(D,x): the primal player picks a randomized algorithm p∈Δ(A)p\in\Delta(\mathcal A) to minimize worst-case cost, while the dual adversary picks a hard input distribution μ∈Δ(X)\mu\in\Delta(\mathcal X) to force every deterministic algorithm to pay at least V∗V^*. See Yao (1977) and Motwani–Raghavan (Randomized Algorithms, §2.2).

3.2 Conic and spectral duality: the positive semidefinite cone and Courant–Fischer

Our derivation of LP duality in §1.3 placed primal vectors in the nonnegative orthant x∈R≥0nx\in\mathbb R_{\ge 0}^n—a convex cone that is self-dual under the standard inner product, meaning {y∈Rn:y⊤x≥0  ∀x∈R≥0n}=R≥0n\{y\in\mathbb R^n : y^\top x\ge 0\;\forall x\in\mathbb R_{\ge 0}^n\}=\mathbb R_{\ge 0}^n. In semidefinite programming (SDP)—the centerpiece of Chapter 7—we replace R≥0n\mathbb R_{\ge 0}^n by the cone S+n\mathcal S_+^n of n×nn\times n real symmetric positive semidefinite matrices, paired via the Frobenius trace pairing ⟨Y,X⟩F:=tr⁡(YX)\langle Y, X\rangle_{\mathrm{F}}:=\operatorname{tr}(YX). Remarkably, S+n\mathcal S_+^n is also self-dual: tr⁡(YX)≥0\operatorname{tr}(YX)\ge 0 for all X⪰0X\succeq 0 iff Y⪰0Y\succeq 0! Applying the exact same Fenchel-Lagrangian recipe of §§1.2–1.3 to λmax⁡(P)=max⁡{tr⁡(PX):X⪰0, tr⁡(X)=1}\lambda_{\max}(P)=\max\{\operatorname{tr}(PX):X\succeq 0,\,\operatorname{tr}(X)=1\} immediately yields its dual minimization min⁡{λ:λI−P⪰0}\min\{\lambda:\lambda I - P\succeq 0\}, recovering the Courant–Fischer variational characterization from Chapter 2 via conic duality. Unlike LPs, conic SDPs can exhibit nonzero duality gaps or unattained optima; when the optimal value is finite, strict feasibility (Slater’s condition) on one side guarantees zero duality gap and attainment on the opposite side, whereas attainment on both sides uses strict feasibility on both sides. See Boyd and Vandenberghe (Convex Optimization, Chapters 4–5).

3.3 Monge versus Kantorovich, Prokhorov compactness, and optimal transport in algorithms

In finite spaces (§1.6), Kantorovich duality followed directly from Strong LP Duality. Over continuous Polish spaces (X,Y)(\mathcal X,\mathcal Y), why does Strong Kantorovich Duality inf⁡γ∈Π(μ,ν)∫c dγ=sup⁡ϕ⊕ψ≤c(∫ϕ dμ+∫ψ dν)\inf_{\gamma\in\Pi(\mu,\nu)}\int c\,\mathrm d\gamma = \sup_{\phi\oplus\psi\le c}(\int\phi\,\mathrm d\mu+\int\psi\,\mathrm d\nu) hold under mild lower-semicontinuity conditions, whereas Monge’s deterministic transport problem inf⁡T#μ=ν∫c(x,T(x)) dμ(x)\inf_{T_\#\mu=\nu}\int c(x,T(x))\,\mathrm d\mu(x) can lack any feasible solution (for example, transporting μ=δ0\mu=\delta_0 onto ν=12δ−1+12δ+1\nu=\frac12\delta_{-1}+\frac12\delta_{+1})? Two structural properties resolve both obstacles: relaxing deterministic maps TT to couplings γ\gamma makes Π(μ,ν)\Pi(\mu,\nu) convex, and Prokhorov’s theorem shows that fixed marginals (μ,ν)(\mu,\nu) keep Π(μ,ν)\Pi(\mu,\nu) tight—hence weakly compact—allowing Sion’s minimax theorem to swap inf⁡γ\inf_\gamma and sup⁡ϕ,ψ\sup_{\phi,\psi} cleanly. Adding an entropic penalty +εKL⁡(γ∥μ⊗ν)+\varepsilon\operatorname{KL}(\gamma\|\mu\otimes\nu) turns OT into strictly convex Gibbs scaling efficiently approximated by Sinkhorn’s algorithm (alternating Bregman projections), where each dense scaling pass costs O(∣X∣∣Y∣)O(|\mathcal X||\mathcal Y|) operations and iteration complexity scales with the regularization ε\varepsilon and target accuracy. See Santambrogio (Optimal Transport for Applied Mathematicians, Chapter 1 & Chapter 4) and Cuturi (NeurIPS 2013).

3.4 Variational inference, mean-field bounds, and Bethe free energy in counting and sampling

Look one more time at the Gibbs Variational Principle (Theorem 6): ln⁡Z(ϕ)=max⁡q∈Δ(Ω){Eq[ϕ]+H(q)}. \ln Z(\phi) = \max_{q\in\Delta(\Omega)}\bigl\{\mathbb E_q[\phi] + H(q)\bigr\}. Computing the partition function Z(ϕ)=∑x∈Ωeϕ(x)Z(\phi)=\sum_{x\in\Omega} e^{\phi(x)} of a spin system or combinatorial model (such as independent sets or proper colorings in Chapter 2) is typically #P\#\mathsf P-hard. Variational inference turns Theorem 6 into an algorithmic approximation paradigm by restricting the maximization from the intractable full simplex Δ(Ω)\Delta(\Omega) to a tractable sub-family Q⊂Δ(Ω)\mathcal Q\subset\Delta(\Omega)—for instance, product distributions q(x)=∏v∈Vqv(xv)q(x)=\prod_{v\in V} q_v(x_v), yielding the mean-field lower bound on ln⁡Z(ϕ)\ln Z(\phi) whose tightness is measured directly by min⁡q∈QKL⁡(q∥pϕ)\min_{q\in\mathcal Q}\operatorname{KL}(q\|p_\phi). Replacing global entropy H(q)H(q) with locally consistent pairwise entropies yields the Bethe free energy, whose stationary points correspond to fixed points of Belief Propagation (BP) on tree-like graphical models. See Wainwright and Jordan (Graphical Models, Exponential Families, and Variational Inference, 2008).

References

  1. Chihao Zhang, Duality from First Principles, Lagrangian Multiplier Methods, and Kantorovich Duality and Lagrangian Methods (course notes, 2026); together with Algorithms and Complexity (AI2615), Lecture 11: Linear Programming and Duality (2021) and Topics in Modern Algorithms (AA2025), Lecture 9: Tensorization of Entropy (2025), Shanghai Jiao Tong University. (Primary basis for the Fenchel-first architecture in §1.1, perturbation-derived Lagrange multipliers in §1.2, LP duality in §1.3, Farkas duality in §2.2, Kantorovich OT in §1.6, the pointwise Donsker–Varadhan/Gibbs derivation in §§1.7 and 2.4, and the paired-space Fenchel–Rockafellar & Slater synthesis in §2.1.)
  2. Stephen Boyd and Lieven Vandenberghe, Convex Optimization, Cambridge University Press, 2004, Chapters 3 and 5. (Standard reference for Lagrange dual functions, Slater’s condition, perturbation functions, Fenchel conjugation, and conic duality.)
  3. David P. Williamson and David B. Shmoys, The Design of Approximation Algorithms, Cambridge University Press, 2011, Chapters 1, 2, and 7; and Vijay V. Vazirani, Approximation Algorithms, Springer, 2001, Chapters 12–15. (References for bounty pricing, Greedy Set Cover dual fitting, and the primal–dual schema for Weighted Vertex Cover and network design.)
  4. Filippo Santambrogio, Optimal Transport for Applied Mathematicians, Birkhäuser, 2015, Chapters 1 and 4; and Marco Cuturi, “Sinkhorn Distances: Lightspeed Computation of Optimal Transport,” Advances in Neural Information Processing Systems (NeurIPS), 2013. (References for Kantorovich duality, cc-transforms, Kantorovich–Rubinstein W1W_1, Prokhorov compactness, and entropic optimal transport.)
  5. R. Tyrrell Rockafellar, Convex Analysis, Princeton University Press, 1970. (Classical treatise on biconjugation f∗∗=ff^{**}=f, Fenchel–Rockafellar duality, separating hyperplanes, and convex duality.)
  6. Martin J. Wainwright and Michael I. Jordan, Graphical Models, Exponential Families, and Variational Inference, Foundations and Trends in Machine Learning, vol. 1, nos. 1–2, pp. 1–305, 2008. (Reference for Fenchel duality between log-partition and negative entropy, mean-field approximations, and Bethe free energy.)