Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

Optimization

633 missions · 388 completed

Missions

Open245Completed388All633
🏆Completed
Machine LearningProbabilityStatistics·Captain: mikedeng1

Simultaneous Analysis of Lasso and Dantzig Selector IV: Estimation and Prediction Error Bounds for the Dantzig SelectorResearch Paper

Motivation

In high-dimensional linear regression the number of unknown coefficients MMM may be much larger than the number of observations nnn, and the coefficient vector can only be recovered because it is assumed to be sparse: few of its entries are non-zero. Two convex estimators dominate this setting: the Lasso of Tibshirani (1996), an ℓ1\ell_1ℓ1​-penalized least-squares estimator, and the Dantzig selector of Candès and Tao (2007), which minimizes the ℓ1\ell_1ℓ1​ norm subject to a bound on the correlation between the residual and the columns of the design. Both are used routinely in statistics, signal processing and machine learning, and their rates of convergence determine how many observations suffice to estimate a sparse vector.

Bickel, Ritov and Tsybakov (arXiv:0801.1095; Ann. Statist. 37(4), 2009) analysed the two estimators side by side under a single, weak condition on the design, the restricted eigenvalue (RE) assumption. This mission formalizes their rates for the Dantzig selector, Theorem 7.1 of the paper.

Timeline. Candès and Tao (Ann. Statist. 35, 2007) introduced the Dantzig selector and bounded its ℓ2\ell_2ℓ2​ error under a uniform uncertainty principle on the design. Bickel, Ritov and Tsybakov (2009) replaced that condition by the RE assumptions, which are implied by it (their Lemma 4.1), and obtained ℓp\ell_pℓp​ bounds for every 1≤p≤21\le p\le21≤p≤2 and a prediction bound, with explicit constants. Later work (van de Geer and Bühlmann, EJS 2009) compared RE with the compatibility condition and other design conditions.

Setting

Observations follow the linear model

y=Xβ∗+w,y=X\beta^*+w,y=Xβ∗+w,

where X∈Rn×MX\in\mathbb R^{n\times M}X∈Rn×M is a deterministic design matrix, n≥1n\ge1n≥1, M≥2M\ge2M≥2, β∗∈RM\beta^*\in\mathbb R^Mβ∗∈RM is unknown, and w=(W1,…,Wn)w=(W_1,\dots,W_n)w=(W1​,…,Wn​) has independent N(0,σ2)\mathcal N(0,\sigma^2)N(0,σ2) coordinates with σ>0\sigma>0σ>0. The columns are normalized: every diagonal element of the Gram matrix XTX/nX^TX/nXTX/n equals 1.

For β∈RM\beta\in\mathbb R^Mβ∈RM, J(β)={j:βj≠0}J(\beta)=\{j:\beta_j\ne0\}J(β)={j:βj​=0} is its support and M(β)=∣J(β)∣\mathcal M(\beta)=|J(\beta)|M(β)=∣J(β)∣ its sparsity; β∗\beta^*β∗ satisfies M(β∗)≤s\mathcal M(\beta^*)\le sM(β∗)≤s for an integer 1≤s≤M1\le s\le M1≤s≤M. Norms are ∣δ∣p=(∑j∣δj∣p)1/p|\delta|_p=(\sum_j|\delta_j|^p)^{1/p}∣δ∣p​=(∑j​∣δj​∣p)1/p and ∣v∣22=∑ivi2|v|_2^2=\sum_iv_i^2∣v∣22​=∑i​vi2​; for an index set JJJ, δJ\delta_JδJ​ keeps the coordinates of δ\deltaδ in JJJ and sets the others to 0, and JcJ^cJc is the complement of JJJ.

With a tuning level r=Aσlog⁡M/nr=A\sigma\sqrt{\log M/n}r=AσlogM/n​, A>2A>\sqrt2A>2​, the Dantzig selector is any minimizer

β^D∈arg⁡min⁡β∈Λ∣β∣1,Λ={β∈RM: ∣1nXT(y−Xβ)∣∞≤r}.\hat\beta_D\in\arg\min_{\beta\in\Lambda}|\beta|_1,\qquad \Lambda=\Big\{\beta\in\mathbb R^M:\ \Big|\tfrac1nX^T(y-X\beta)\Big|_\infty\le r\Big\}.β^​D​∈argβ∈Λmin​∣β∣1​,Λ={β∈RM: ​n1​XT(y−Xβ)​∞​≤r}.

The cone condition at an index set J0J_0J0​ with constant c0>0c_0>0c0​>0 is ∣δJ0c∣1≤c0∣δJ0∣1|\delta_{J_0^c}|_1\le c_0|\delta_{J_0}|_1∣δJ0c​​∣1​≤c0​∣δJ0​​∣1​. Assumption RE(s,c0)(s,c_0)(s,c0​) asks that

κ(s,c0)=min⁡∣J0∣≤s min⁡δ≠0, ∣δJ0c∣1≤c0∣δJ0∣1∣Xδ∣2n ∣δJ0∣2>0.\kappa(s,c_0)=\min_{|J_0|\le s}\ \min_{\delta\ne0,\ |\delta_{J_0^c}|_1\le c_0|\delta_{J_0}|_1}\frac{|X\delta|_2}{\sqrt n\,|\delta_{J_0}|_2}>0 .κ(s,c0​)=∣J0​∣≤smin​ δ=0, ∣δJ0c​​∣1​≤c0​∣δJ0​​∣1​min​n​∣δJ0​​∣2​∣Xδ∣2​​>0.

Assumption RE(s,m,c0)(s,m,c_0)(s,m,c0​) is the same with ∣δJ01∣2|\delta_{J_{01}}|_2∣δJ01​​∣2​ in the denominator, where J01=J0∪J1J_{01}=J_0\cup J_1J01​=J0​∪J1​ and J1J_1J1​ collects the mmm largest ∣δj∣|\delta_j|∣δj​∣ outside J0J_0J0​; it is used for s≤ms\le ms≤m, s+m≤Ms+m\le Ms+m≤M.

Formalization targets

Goal: Theorem 7.1

With probability at least 1−M1−A2/21-M^{1-A^2/2}1−M1−A2/2, every Dantzig selector satisfies

∣β^D−β∗∣1≤8Aκ2(s,1) σslog⁡Mn,∣X(β^D−β∗)∣22≤16A2κ2(s,1) σ2slog⁡M,|\hat\beta_D-\beta^*|_1\le\frac{8A}{\kappa^2(s,1)}\,\sigma s\sqrt{\frac{\log M}{n}},\qquad |X(\hat\beta_D-\beta^*)|_2^2\le\frac{16A^2}{\kappa^2(s,1)}\,\sigma^2s\log M,∣β^​D​−β∗∣1​≤κ2(s,1)8A​σsnlogM​​,∣X(β^​D​−β∗)∣22​≤κ2(s,1)16A2​σ2slogM,

and, on the same event, if RE(s,m,1)(s,m,1)(s,m,1) holds, simultaneously for all 1<p≤21<p\le21<p≤2,

∣β^D−β∗∣pp≤2p−1 8{1+sm}2(p−1)s(Aσκ2(s,m,1)log⁡Mn)p.|\hat\beta_D-\beta^*|_p^p\le2^{p-1}\,8\Big\{1+\sqrt{\tfrac sm}\Big\}^{2(p-1)}s\Big(\frac{A\sigma}{\kappa^2(s,m,1)}\sqrt{\frac{\log M}{n}}\Big)^p .∣β^​D​−β∗∣pp​≤2p−18{1+ms​​}2(p−1)s(κ2(s,m,1)Aσ​nlogM​​)p.

Milestones

In the order the proof of the paper uses them:

  1. The noise event B=⋂j{∣1n∑iXijWi∣≤r∥fj∥n}\mathcal B=\bigcap_j\{|\frac1n\sum_iX_{ij}W_i|\le r\|f_j\|_n\}B=⋂j​{∣n1​∑i​Xij​Wi​∣≤r∥fj​∥n​} has P{Bc}≤M1−A2/2\mathbb P\{\mathcal B^c\}\le M^{1-A^2/2}P{Bc}≤M1−A2/2 (proof of Lemma B.3).
  2. Lemma B.3, (B.9): for any β\betaβ satisfying the Dantzig constraint, δ=β^D−β\delta=\hat\beta_D-\betaδ=β^​D​−β satisfies the cone condition at J(β)J(\beta)J(β) with c0=1c_0=1c0​=1.
  3. (B.25): on B\mathcal BB, β∗∈Λ\beta^*\in\Lambdaβ∗∈Λ, 1n∣XTXδ∣∞≤2r\frac1n|X^TX\delta|_\infty\le2rn1​∣XTXδ∣∞​≤2r, and 1n∣Xδ∣22≤4rs ∣δJ0∣2\frac1n|X\delta|_2^2\le4r\sqrt s\,|\delta_{J_0}|_2n1​∣Xδ∣22​≤4rs​∣δJ0​​∣2​.
  4. (B.26): under RE(s,1)(s,1)(s,1), 1n∣Xδ∣22≤16r2s/κ2\frac1n|X\delta|_2^2\le16r^2s/\kappa^2n1​∣Xδ∣22​≤16r2s/κ2 and ∣δJ0∣2≤4rs/κ2|\delta_{J_0}|_2\le4r\sqrt s/\kappa^2∣δJ0​​∣2​≤4rs​/κ2.
  5. (B.27): on the cone, ∣δ∣1≤(1+c0)s ∣δJ0∣2|\delta|_1\le(1+c_0)\sqrt s\,|\delta_{J_0}|_2∣δ∣1​≤(1+c0​)s​∣δJ0​​∣2​.
  6. (B.28): on the cone, ∣δ∣2≤(1+c0s/m) ∣δJ01∣2|\delta|_2\le(1+c_0\sqrt{s/m})\,|\delta_{J_{01}}|_2∣δ∣2​≤(1+c0​s/m​)∣δJ01​​∣2​.
  7. (B.29): under RE(s,m,1)(s,m,1)(s,m,1), ∣δ∣22≤16(1+s/m)2(rs/κ2)2|\delta|_2^2\le16(1+\sqrt{s/m})^2(r\sqrt s/\kappa^2)^2∣δ∣22​≤16(1+s/m​)2(rs​/κ2)2.
  8. Interpolation: ∑jaj≤b1\sum_ja_j\le b_1∑j​aj​≤b1​, ∑jaj2≤b2\sum_ja_j^2\le b_2∑j​aj2​≤b2​, aj≥0a_j\ge0aj​≥0 imply ∑jajp≤b12−pb2p−1\sum_ja_j^p\le b_1^{2-p}b_2^{p-1}∑j​ajp​≤b12−p​b2p−1​ for 1<p≤21<p\le21<p≤2.

Significance

The result. Theorem 7.1 shows that, up to the factor log⁡M\log MlogM, the Dantzig selector estimates an sss-sparse vector as well as least squares would if the support were known: the prediction error 1n∣X(β^D−β∗)∣22\frac1n|X(\hat\beta_D-\beta^*)|_2^2n1​∣X(β^​D​−β∗)∣22​ is of order σ2slog⁡M/n\sigma^2s\log M/nσ2slogM/n, and the ℓp\ell_pℓp​ errors are of order s1/pσlog⁡M/ns^{1/p}\sigma\sqrt{\log M/n}s1/pσlogM/n​. The bounds hold for any MMM, including M≫nM\gg nM≫n, provided only that RE holds, and every constant is explicit. The paper's Theorem 7.2 gives the same rates for the Lasso; comparing the two is the paper's main message.

Formalizing it. The theorem is proved in the paper; to the best of current knowledge it has not been machine-checked. A complete formal proof would provide: a verified Gaussian maximal inequality for the noise event, the deterministic cone and RE arithmetic that underlies essentially all ℓ1\ell_1ℓ1​-regularized estimation theory, and a reusable ℓ1\ell_1ℓ1​–ℓ2\ell_2ℓ2​ interpolation lemma. Most milestones are deterministic and independent of the probability layer.

Difficulty

The obvious argument — compare β^D\hat\beta_Dβ^​D​ with β∗\beta^*β∗ in Euclidean norm using the smallest eigenvalue of XTX/nX^TX/nXTX/n — fails because that eigenvalue is 0 whenever M>nM>nM>n. The proof must instead show that the error vector lies in a cone on which XXX is injective in a quantitative sense, and this uses the optimality of β^D\hat\beta_Dβ^​D​ (not just feasibility) together with the event B\mathcal BB on which β∗\beta^*β∗ itself is feasible. The ℓp\ell_pℓp​ bound needs a second, stronger condition RE(s,m,1)(s,m,1)(s,m,1) and a control of the tail of the error outside the mmm largest coordinates. On the formal side, handling the non-uniqueness of the minimizer, real powers with exponent p−1p-1p−1 or 2−p2-p2−p, and the union over MMM Gaussian tails with the exact constant M1−A2/2M^{1-A^2/2}M1−A2/2 all need care.

Formalization scope

Vectors are functions Fin M → ℝ, the design is Matrix (Fin n) (Fin M) ℝ; the paper's dictionary of functions enters only through XXX. The unit diagonal of XTX/nX^TX/nXTX/n is a hypothesis, not a normalization performed in the proof. The noise is W : Fin n → Ω → ℝ on a probability space, measurable, mutually independent, each of law N(0,σ2)\mathcal N(0,\sigma^2)N(0,σ2); log⁡\loglog is the natural logarithm. The Dantzig selector is a predicate (feasible and of minimal ℓ1\ell_1ℓ1​ norm among feasible vectors), and every result is stated for every minimizer. RE(s,c0)(s,c_0)(s,c0​) and RE(s,m,c0)(s,m,c_0)(s,m,c0​) are stated through a witness κ\kappaκ (a number with the defining lower-bound property); κ(s,c0)\kappa(s,c_0)κ(s,c0​) is the largest witness and the bounds decrease in κ\kappaκ, so the statements are equivalent to the paper's while avoiding the value of a real infimum over an empty set. Two witnesses are kept apart: κ\kappaκ for RE(s,1)(s,1)(s,1) in (7.4)–(7.5), κ′\kappa'κ′ for RE(s,m,1)(s,m,1)(s,m,1) in (7.6). Ties in the choice of the mmm largest coordinates are handled by quantifying over every admissible J1J_1J1​. The probability statement asserts one measurable event EEE with P(E)≥1−M1−A2/2\mathbb P(E)\ge1-M^{1-A^2/2}P(E)≥1−M1−A2/2 on which all three bounds hold for every minimizer, every admissible mmm, every witness κ′\kappa'κ′ and every ppp.

The event EEE is fixed before the minimizer is quantified, so a formalization in which the event depends on β^D\hat\beta_Dβ^​D​, or in which RE is a hypothesis about the random error vector rather than the design, would be a different (weaker) statement and is not accepted. The deterministic milestones (B.26)–(B.29) take the conclusion of (B.25) as a hypothesis; they are true for every vector satisfying their hypotheses and are not restricted to the event.

A complete development needs Gaussian tail bounds and a union bound (Mathlib's gaussianReal), finite Hölder-type inequalities for real exponents, and elementary sorting arguments for the tail outside J01J_{01}J01​. The cone, RE and interpolation lemmas are reusable for the Lasso (Theorem 7.2, a sister mission) and beyond. Proofs of any milestone are welcome independently.

Selected references

  • P. J. Bickel, Y. Ritov, A. B. Tsybakov, Simultaneous analysis of Lasso and Dantzig selector, Ann. Statist. 37(4), 1705–1732, 2009. arXiv:0801.1095v3: https://arxiv.org/abs/0801.1095
  • E. Candès, T. Tao, The Dantzig selector: statistical estimation when p is much larger than n, Ann. Statist. 35(6), 2313–2351, 2007. https://doi.org/10.1214/009053606000001523
  • R. Tibshirani, Regression shrinkage and selection via the lasso, J. R. Stat. Soc. B 58(1), 267–288, 1996. https://doi.org/10.1111/j.2517-6161.1996.tb02080.x
  • S. van de Geer, P. Bühlmann, On the conditions used to prove oracle results for the Lasso, Electron. J. Statist. 3, 1360–1392, 2009. https://doi.org/10.1214/09-EJS506
10 thms4 active usersReviewed
🏆Completed
Machine LearningProbabilityStatistics·Captain: mikedeng1

Simultaneous Analysis of Lasso and Dantzig Selector II: Approximate Equivalence of the Lasso and Dantzig Prediction LossesResearch Paper

Motivation

Two estimators dominate sparse high-dimensional regression, where the number MMM of candidate regressors can far exceed the sample size nnn. The Lasso (Tibshirani, 1996) minimises a least-squares criterion plus an ℓ1\ell_1ℓ1​ penalty. The Dantzig selector (Candès and Tao, 2007) minimises the ℓ1\ell_1ℓ1​ norm of the coefficients subject to a bound on the correlation between the residual and the regressors, and is computed by a linear program. They were proposed independently and first analysed under different assumptions: sparsity oracle inequalities for the Lasso (Bunea, Tsybakov and Wegkamp, 2007) and ℓ2\ell_2ℓ2​ bounds for the Dantzig selector under a uniform uncertainty principle (Candès and Tao, 2007). A practitioner choosing between them needs to know whether guarantees for one say anything about the other.

Bickel, Ritov and Tsybakov (arXiv:0801.1095; Ann. Statist. 37(4), 2009, doi:10.1214/08-AOS620) analyse both estimators in parallel under one assumption on the design, the restricted eigenvalue condition. Their main message is that, under sparsity, the two estimators "exhibit similar behavior" (p. 2). Section 5 makes this precise: the prediction losses of the two estimators are close. The result holds in a nonparametric model: the regression function need not be a combination of the regressors. This mission formalizes that comparison, Theorem 5.1 of the paper.

Setting

Let f1,…,fMf_1,\dots,f_Mf1​,…,fM​ be real functions (the dictionary) on a set Z\mathcal ZZ, and Z1,…,Zn∈ZZ_1,\dots,Z_n\in\mathcal ZZ1​,…,Zn​∈Z fixed design points, with n≥1n\ge1n≥1 and M≥2M\ge2M≥2. The design matrix is X=(fj(Zi))∈Rn×MX=(f_j(Z_i))\in\mathbb R^{n\times M}X=(fj​(Zi​))∈Rn×M. Observations are Yi=f(Zi)+WiY_i=f(Z_i)+W_iYi​=f(Zi​)+Wi​, where fff is an unknown function and W1,…,WnW_1,\dots,W_nW1​,…,Wn​ are independent N(0,σ2)\mathcal N(0,\sigma^2)N(0,σ2) with σ>0\sigma>0σ>0. Write y=(Yi)y=(Y_i)y=(Yi​), f=(f(Zi))\boldsymbol f=(f(Z_i))f=(f(Zi​)) and w=(Wi)w=(W_i)w=(Wi​), so y=f+wy=\boldsymbol f+wy=f+w.

The empirical norm of ggg is ∥g∥n=(1n∑ig(Zi)2)1/2\|g\|_n=(\tfrac1n\sum_i g(Z_i)^2)^{1/2}∥g∥n​=(n1​∑i​g(Zi​)2)1/2. Every column has ∥fj∥n≠0\|f_j\|_n\neq0∥fj​∥n​=0, and fmax⁡=max⁡j∥fj∥nf_{\max}=\max_j\|f_j\|_nfmax​=maxj​∥fj​∥n​. For β∈RM\beta\in\mathbb R^Mβ∈RM, fβ=∑jβjfjf_\beta=\sum_j\beta_jf_jfβ​=∑j​βj​fj​ has value vector XβX\betaXβ. The support is J(β)={j:βj≠0}J(\beta)=\{j:\beta_j\ne0\}J(β)={j:βj​=0} and the sparsity is M(β)=∣J(β)∣\mathcal M(\beta)=|J(\beta)|M(β)=∣J(β)∣. For J⊆{1,…,M}J\subseteq\{1,\dots,M\}J⊆{1,…,M}, δJ\delta_JδJ​ agrees with δ\deltaδ on JJJ and vanishes elsewhere.

Fix r>0r>0r>0. The Lasso β^L\hat\beta_Lβ^​L​ is any minimiser of

1n∑i=1n(Yi−fβ(Zi))2+2r∑j=1M∥fj∥n∣βj∣.\frac1n\sum_{i=1}^n\big(Y_i-f_\beta(Z_i)\big)^2+2r\sum_{j=1}^M\|f_j\|_n|\beta_j| .n1​i=1∑n​(Yi​−fβ​(Zi​))2+2rj=1∑M​∥fj​∥n​∣βj​∣.

With D=diag(∥f1∥n2,…,∥fM∥n2)D=\mathrm{diag}(\|f_1\|_n^2,\dots,\|f_M\|_n^2)D=diag(∥f1​∥n2​,…,∥fM​∥n2​), the Dantzig constraint is ∣1nD−1/2X⊤(y−Xβ)∣∞≤r|\tfrac1nD^{-1/2}X^\top(y-X\beta)|_\infty\le r∣n1​D−1/2X⊤(y−Xβ)∣∞​≤r. The Dantzig selector β^D\hat\beta_Dβ^​D​ is any vector of smallest ∣β∣1=∑j∣βj∣|\beta|_1=\sum_j|\beta_j|∣β∣1​=∑j​∣βj​∣ that satisfies it. The estimators are f^L=fβ^L\hat f_L=f_{\hat\beta_L}f^​L​=fβ^​L​​ and f^D=fβ^D\hat f_D=f_{\hat\beta_D}f^​D​=fβ^​D​​.

Assumption RE(s,c0)(s,c_0)(s,c0​) with 1≤s≤M1\le s\le M1≤s≤M, c0>0c_0>0c0​>0 asks that

κ(s,c0)=min⁡∣J0∣≤s min⁡δ≠0, ∣δJ0c∣1≤c0∣δJ0∣1 ∣Xδ∣2n ∣δJ0∣2>0.\kappa(s,c_0)=\min_{|J_0|\le s}\ \min_{\delta\ne0,\ |\delta_{J_0^c}|_1\le c_0|\delta_{J_0}|_1}\ \frac{|X\delta|_2}{\sqrt n\,|\delta_{J_0}|_2}>0 .κ(s,c0​)=∣J0​∣≤smin​ δ=0, ∣δJ0c​​∣1​≤c0​∣δJ0​​∣1​min​ n​∣δJ0​​∣2​∣Xδ∣2​​>0.

Throughout, r=Aσlog⁡M/nr=A\sigma\sqrt{\log M/n}r=AσlogM/n​, where log⁡\loglog is the natural logarithm.

Formalization targets

Goal: Theorem 5.1

Assume RE(s,1)(s,1)(s,1) with 1≤s≤M1\le s\le M1≤s≤M, and let A>22A>2\sqrt2A>22​. With probability at least 1−M1−A2/81-M^{1-A^2/8}1−M1−A2/8, every Lasso solution with M(β^L)≤s\mathcal M(\hat\beta_L)\le sM(β^​L​)≤s and every Dantzig selector satisfy

∣ ∥f^D−f∥n2−∥f^L−f∥n2 ∣≤16A2 M(β^L)σ2n fmax⁡2κ2(s,1) log⁡M.\Big|\,\|\hat f_D-f\|_n^2-\|\hat f_L-f\|_n^2\,\Big|\le16A^2\,\frac{\mathcal M(\hat\beta_L)\sigma^2}{n}\,\frac{f_{\max}^2}{\kappa^2(s,1)}\,\log M .​∥f^​D​−f∥n2​−∥f^​L​−f∥n2​​≤16A2nM(β^​L​)σ2​κ2(s,1)fmax2​​logM.

Milestones

The proof uses one probabilistic event and two one-sided deterministic inequalities.

  1. The Lasso satisfies the Dantzig constraint (2.3).
  2. The noise event A=⋂j{2∣1n∑iXijWi∣≤r∥fj∥n}\mathcal A=\bigcap_j\{2|\tfrac1n\sum_iX_{ij}W_i|\le r\|f_j\|_n\}A=⋂j​{2∣n1​∑i​Xij​Wi​∣≤r∥fj​∥n​} has P(Ac)≤M1−A2/8\mathbb P(\mathcal A^c)\le M^{1-A^2/8}P(Ac)≤M1−A2/8 (B.4).
  3. On A\mathcal AA, ∣1nX⊤(f−Xβ^L)∣∞≤3rfmax⁡/2|\tfrac1nX^\top(\boldsymbol f-X\hat\beta_L)|_\infty\le 3rf_{\max}/2∣n1​X⊤(f−Xβ^​L​)∣∞​≤3rfmax​/2 (Lemma B.1, (B.2)).
  4. The Dantzig error lies in the cone ∣δJ0c∣1≤∣δJ0∣1|\delta_{J_0^c}|_1\le|\delta_{J_0}|_1∣δJ0c​​∣1​≤∣δJ0​​∣1​ (Lemma B.3, (B.9)).
  5. On the larger event B⊇A\mathcal B\supseteq\mathcal AB⊇A, ∣1nX⊤(f−Xβ^D)∣∞≤2rfmax⁡|\tfrac1nX^\top(\boldsymbol f-X\hat\beta_D)|_\infty\le 2rf_{\max}∣n1​X⊤(f−Xβ^​D​)∣∞​≤2rfmax​ (Lemma B.3, (B.10)).
  6. ∥f^D−f∥n2≤∥f^L−f∥n2+16fmax⁡2r2M(β^L)/κ2\|\hat f_D-f\|_n^2\le\|\hat f_L-f\|_n^2+16f_{\max}^2r^2\mathcal M(\hat\beta_L)/\kappa^2∥f^​D​−f∥n2​≤∥f^​L​−f∥n2​+16fmax2​r2M(β^​L​)/κ2 on B\mathcal BB (B.15).
  7. ∥f^L−f∥n2≤∥f^D−f∥n2+9fmax⁡2r2M(β^L)/κ2\|\hat f_L-f\|_n^2\le\|\hat f_D-f\|_n^2+9f_{\max}^2r^2\mathcal M(\hat\beta_L)/\kappa^2∥f^​L​−f∥n2​≤∥f^​D​−f∥n2​+9fmax2​r2M(β^​L​)/κ2 on A\mathcal AA (B.17).

Further result: Theorem 5.2

Assume ∥fj∥n=1\|f_j\|_n=1∥fj​∥n​=1 for all jjj and RE(s,5)(s,5)(s,5). With probability at least 1−M1−A2/81-M^{1-A^2/8}1−M1−A2/8, whenever M(β^D)≤s\mathcal M(\hat\beta_D)\le sM(β^​D​)≤s,

∥f^L−f∥n2≤10∥f^D−f∥n2+81A2 M(β^D)σ2n log⁡Mκ2(s,5).\|\hat f_L-f\|_n^2\le10\|\hat f_D-f\|_n^2+81A^2\,\frac{\mathcal M(\hat\beta_D)\sigma^2}{n}\,\frac{\log M}{\kappa^2(s,5)} .∥f^​L​−f∥n2​≤10∥f^​D​−f∥n2​+81A2nM(β^​D​)σ2​κ2(s,5)logM​.

Significance

The result. Theorem 5.1 bounds the gap between the two prediction losses by the rate M(β^L)σ2log⁡M/n\mathcal M(\hat\beta_L)\sigma^2\log M/nM(β^​L​)σ2logM/n of a sparse regression with M(β^L)\mathcal M(\hat\beta_L)M(β^​L​) parameters. The bound carries a factor fmax⁡2/κ2(s,1)f^2_{\max}/\kappa^2(s,1)fmax2​/κ2(s,1) that measures how ill-conditioned the Gram matrix is on sparse vectors. A prediction bound for one estimator therefore transfers to the other at this cost. The paper uses this transfer in Proposition 6.3, which combines Theorem 5.1 with the Lasso oracle inequality of Section 6 to derive an oracle inequality for the Dantzig selector. The theorem requires no assumption relating fff to the dictionary.

Formalizing it. The result has been proved since 2009, and this mission formalizes that proof. None of the objects involved exists on Prove2Me yet: the weighted Lasso, the Dantzig selector and the Gaussian noise events. The Wainwright series on the platform defines a differently normalised Lasso with an unweighted penalty, a single fixed support and a different restricted eigenvalue condition, so it cannot be reused here. A machine-checked proof would also confirm the paper's constants, 16A216A^216A2 and the thresholds 222\sqrt222​ and M1−A2/8M^{1-A^2/8}M1−A2/8, which appear in all later analyses.

Difficulty

Each estimator is defined only implicitly, as the solution of an optimisation problem, and neither need be unique. Comparing their losses directly gives ±2nδ⊤X⊤(f−Xβ^)\pm\tfrac2n\delta^\top X^\top(\boldsymbol f-X\hat\beta)±n2​δ⊤X⊤(f−Xβ^​) plus 1n∣Xδ∣22\tfrac1n|X\delta|_2^2n1​∣Xδ∣22​ with δ=β^L−β^D\delta=\hat\beta_L-\hat\beta_Dδ=β^​L​−β^​D​. A crude bound on the cross term, ∣δ∣1⋅∣X⊤(⋅)∣∞|\delta|_1\cdot|X^\top(\cdot)|_\infty∣δ∣1​⋅∣X⊤(⋅)∣∞​, yields an error proportional to ∣δ∣1|\delta|_1∣δ∣1​. This does not produce the sparse rate unless ∣δ∣1|\delta|_1∣δ∣1​ is controlled by ∣Xδ∣2|X\delta|_2∣Xδ∣2​. That control needs δ\deltaδ to lie in the restricted eigenvalue cone at the support of the random, data-dependent vector β^L\hat\beta_Lβ^​L​. The restricted eigenvalue condition must therefore hold uniformly over supports of size at most sss; a condition for one fixed support does not suffice. The probabilistic part is a union bound over MMM Gaussian coordinates, and it must be arranged so that a single event serves every minimiser of both programs.

Formalization scope

The dictionary and the design points enter every statement only through XXX and f\boldsymbol ff, so the Lean statements take X : Matrix (Fin n) (Fin M) ℝ and f : Fin n → ℝ directly, and fff is arbitrary. The noise is a family W : Fin n → Ω → ℝ of measurable, mutually independent random variables with law gaussianReal 0 σ², and y=f+W(ω)y=f+W(\omega)y=f+W(ω). The Lasso and the Dantzig selector are predicates (IsLasso, IsDantzig), and every theorem is stated for every solution. The Dantzig constraint is written coordinatewise as ∣1n∑iXij(yi−(Xβ)i)∣≤r∥fj∥n|\tfrac1n\sum_iX_{ij}(y_i-(X\beta)_i)|\le r\|f_j\|_n∣n1​∑i​Xij​(yi​−(Xβ)i​)∣≤r∥fj​∥n​. The Lasso penalty and the Dantzig constraint are weighted by ∥fj∥n\|f_j\|_n∥fj​∥n​, and the Dantzig objective ∣β∣1|\beta|_1∣β∣1​ is unweighted, exactly as in the paper. Theorem 5.1 does not normalise the columns.

RE(s,c0)(s,c_0)(s,c0​) is stated through a witness: a real κ>0\kappa>0κ>0 with κn∣δJ0∣2≤∣Xδ∣2\kappa\sqrt n|\delta_{J_0}|_2\le|X\delta|_2κn​∣δJ0​​∣2​≤∣Xδ∣2​ on the cone, for all ∣J0∣≤s|J_0|\le s∣J0​∣≤s. The paper's κ(s,c0)\kappa(s,c_0)κ(s,c0​) is attained, so it is the largest witness. Every bound decreases in κ\kappaκ, so this reading is equivalent to the paper's and avoids a real infimum over an empty set. "With probability at least ppp" becomes the existence of a measurable event EEE with P(E)≥p\mathbb P(E)\ge pP(E)≥p on which the conclusion holds for every Lasso solution and every Dantzig selector. The condition M(β^L)≤s\mathcal M(\hat\beta_L)\le sM(β^​L​)≤s is imposed inside the event, per realisation. The milestones (B.2), (B.10), (B.15) and (B.17) are stated deterministically, on the noise events A\mathcal AA and B\mathcal BB as predicates on the noise vector; this is how the proof uses them. (B.4) is stated for every A>0A>0A>0, which is stronger than the paper's A>22A>2\sqrt2A>22​ and still true.

The goal cannot be made vacuous. For A>22A>2\sqrt2A>22​ the probability bound 1−M1−A2/81-M^{1-A^2/8}1−M1−A2/8 is positive. Lasso solutions exist because r>0r>0r>0 and every ∥fj∥n>0\|f_j\|_n>0∥fj​∥n​>0, and Dantzig selectors exist because the Lasso is feasible. RE(s,1)(s,1)(s,1) with κ=1\kappa=1κ=1 holds for X=n IX=\sqrt n\,IX=n​I.

A complete development needs:

  • subgradient optimality for the weighted Lasso;
  • a Gaussian tail bound P(∣η∣≥t)≤e−t2/2\mathbb P(|\eta|\ge t)\le e^{-t^2/2}P(∣η∣≥t)≤e−t2/2 together with the law of a weighted sum of independent Gaussians;
  • Cauchy–Schwarz on supports;
  • the quadratic bound bx−x2≤b2/4bx-x^2\le b^2/4bx−x2≤b2/4.

The noise-event lemmas and the Lasso optimality condition can be reused by the companion missions on this paper. Proofs of any milestone are welcome, including proofs that route (B.4) through Mathlib's sub-Gaussian API.

Selected references

  • P. J. Bickel, Y. Ritov, A. B. Tsybakov, Simultaneous analysis of Lasso and Dantzig selector, Ann. Statist. 37(4), 1705–1732, 2009. arXiv:0801.1095v3: https://arxiv.org/abs/0801.1095 ; doi:10.1214/08-AOS620
  • E. Candès, T. Tao, The Dantzig selector: statistical estimation when p is much larger than n, Ann. Statist. 35(6), 2313–2351, 2007. https://doi.org/10.1214/009053606000001523
  • R. Tibshirani, Regression shrinkage and selection via the lasso, J. R. Stat. Soc. B 58(1), 267–288, 1996. https://doi.org/10.1111/j.2517-6161.1996.tb02080.x
  • F. Bunea, A. B. Tsybakov, M. H. Wegkamp, Sparsity oracle inequalities for the Lasso, Electron. J. Stat. 1, 169–194, 2007. https://doi.org/10.1214/07-EJS008
9 thms4 active usersReviewed
🏆Completed
CombinatoricsGraph TheoryOperations Research+1·Captain: mikedeng1

An Analysis of Several Heuristics for the Traveling Salesman Problem I: Nearest Neighbor Tours Can Be Far from OptimalResearch Paper

Motivation

The traveling salesman problem with the triangle inequality asks for a shortest closed tour through nnn points whose distances form a metric. It is NP-hard, so in practice tours are built by fast construction heuristics, and the natural question is how far such a tour can be from optimal in the worst case. Rosenkrantz, Stearns and Lewis (SIAM J. Comput. 6(3), 1977) gave the first systematic worst-case analysis of the standard heuristics. Their results are reproduced in textbooks on approximation algorithms and combinatorial optimization, and they are the reference point against which later guarantees (Christofides' 3/23/23/2 algorithm, the double-tree 222-approximation) are compared.

The simplest heuristic studied is the nearest neighbor algorithm (Bellmore and Nemhauser, 1968; the "next best method" of Gavett, 1965): from the current node, always move to the closest node not yet visited, and return to the start at the end. The paper shows that this greedy rule is never worse than logarithmic (Theorem 1) and that the logarithm cannot be removed (Theorem 2). This mission is about Theorem 2, the lower bound.

Setting

A traveling salesman graph on nnn nodes is a complete graph with a distance d(a,b)∈Rd(a,b)\in\mathbb Rd(a,b)∈R that is symmetric, d(a,b)=d(b,a)d(a,b)=d(b,a)d(a,b)=d(b,a), nonnegative, d(a,b)≥0d(a,b)\ge 0d(a,b)≥0, and satisfies the triangle inequality d(a,c)≤d(a,b)+d(b,c)d(a,c)\le d(a,b)+d(b,c)d(a,c)≤d(a,b)+d(b,c). A tour lists the nodes in a visiting order τ(0),…,τ(n−1)\tau(0),\dots,\tau(n-1)τ(0),…,τ(n−1) and returns to τ(0)\tau(0)τ(0); its length is the sum of the nnn distances along it. OPTIMAL is the least length of a tour.

The nearest neighbor algorithm starts at an arbitrary node τ(0)\tau(0)τ(0); having reached τ(k)\tau(k)τ(k), it moves to a node τ(k+1)\tau(k+1)τ(k+1) that minimizes d(τ(k),⋅)d(\tau(k),\cdot)d(τ(k),⋅) over the nodes not yet visited, breaking ties arbitrarily; after the last node it returns to τ(0)\tau(0)τ(0). The length of the resulting tour is written NEARNEIBER. Because the start node and the ties are free, one instance has in general several nearest-neighbor tours. A lower bound needs only one of them; an upper bound must hold for all.

The instances of the proof are built from a recursive family of weighted graphs. With li=16(4⋅2i−(−1)i+3)l_i=\frac16(4\cdot 2^i-(-1)^i+3)li​=61​(4⋅2i−(−1)i+3) (so l1,l2,l3,l4=2,3,6,11l_1,l_2,l_3,l_4=2,3,6,11l1​,l2​,l3​,l4​=2,3,6,11), the graph F1F_1F1​ is a triangle with unit weights, and Fi+1F_{i+1}Fi+1​ consists of two copies of FiF_iFi​ joined through one new node by two edges of length 111 and two edges of length lil_ili​. Each FiF_iFi​ has 2i+1−12^{i+1}-12i+1−1 nodes and a path PiP_iPi​ from its start node to its middle node through every node, of length LiL_iLi​ with L1=2L_1=2L1​=2, Li+1=2Li+2liL_{i+1}=2L_i+2l_iLi+1​=2Li​+2li​. The graph GiG_iGi​ adds two closing edges to FiF_iFi​, and Gˉi\bar G_iGˉi​ is the complete graph on the same nodes whose distance is the shortest-path distance of GiG_iGi​.

Formalization targets

Goal: Theorem 2 (p. 566)

For each m>3m>3m>3 there is a traveling salesman graph with n=2m−1n=2^m-1n=2m−1 nodes and a nearest-neighbor tour on it such that

NEARNEIBEROPTIMAL>13lg⁡(n+1)+49.\frac{\mathrm{NEARNEIBER}}{\mathrm{OPTIMAL}}>\frac13\lg(n+1)+\frac49 .OPTIMALNEARNEIBER​>31​lg(n+1)+94​.

The statement is existential in both the instance and the run of the algorithm, exactly as in the paper.

Milestones, in the order the proof uses them

  1. (2.12): the difference equation Li+1=2Li+2liL_{i+1}=2L_i+2l_iLi+1​=2Li​+2li​, L1=2L_1=2L1​=2, has the solution Li=19(6 i 2i+8⋅2i+(−1)i−9)L_i=\frac19(6\,i\,2^i+8\cdot2^i+(-1)^i-9)Li​=91​(6i2i+8⋅2i+(−1)i−9).
  2. Gˉi\bar G_iGˉi​ is a traveling salesman graph: the shortest-path distance of GiG_iGi​ is symmetric, nonnegative and satisfies the triangle inequality.
  3. (2.13)–(2.17): the shortest-path distances in Fi+1F_{i+1}Fi+1​ between the seven named nodes A,…,GA,\dots,GA,…,G of Fig. 1, e.g. AG‾=li+2−2\overline{AG}=l_{i+2}-2AG=li+2​−2.
  4. Property a): every edge of GiG_iGi​ is a shortest path between its endpoints.
  5. Property b): the nearest neighbor algorithm started at the start node of Gˉi\bar G_iGˉi​ can follow PiP_iPi​ and return along the edge of length li−1l_i-1li​−1.
  6. The optimal tour: OPTIMAL(Gˉi)=2i+1−1\mathrm{OPTIMAL}(\bar G_i)=2^{i+1}-1OPTIMAL(Gˉi​)=2i+1−1.
  7. The exact ratio: the tour along PiP_iPi​ has length Li+li−1L_i+l_i-1Li​+li​−1, so its ratio is (Li+li−1)/n(L_i+l_i-1)/n(Li​+li​−1)/n.
  8. The inequality: (Li+li−1)/n>13lg⁡(n+1)+49(L_i+l_i-1)/n>\frac13\lg(n+1)+\frac49(Li​+li​−1)/n>31​lg(n+1)+94​ for i≥3i\ge3i≥3.

The instance for mmm is Gˉm−1\bar G_{m-1}Gˉm−1​.

Significance

Theorem 1 of the same paper shows NEARNEIBER/OPTIMAL≤12⌈lg⁡n⌉+12\mathrm{NEARNEIBER}/\mathrm{OPTIMAL}\le\frac12\lceil\lg n\rceil+\frac12NEARNEIBER/OPTIMAL≤21​⌈lgn⌉+21​ for every nearest-neighbor tour on every traveling salesman graph. Theorem 2 shows that this bound has the right order: no constant-factor guarantee holds for the nearest neighbor rule, and the gap between the two constants (13\frac1331​ against 12\frac1221​) is all that remains. This separates the nearest neighbor rule from the insertion rules analysed later in the same paper, of which nearest and cheapest insertion are within a factor 222 of optimal. It is the standard example of a natural greedy heuristic whose approximation ratio grows with nnn.

The upper bound, Theorem 1, is already on Prove2Me with a machine-checked proof (SupplyChainTheory.nearest_neighbor_bound); its statement notes that the lower-bound instances are not formalized there. This mission supplies them: an explicit recursive family of metric instances, the shortest-path computations that certify it, and the arithmetic of its ratio. The result is proved in the paper; to our knowledge it has not been formalized in any proof assistant. The construction (a recursively defined weighted graph with a closed-form shortest-path table) is also a reusable pattern for other worst-case lower bounds of greedy heuristics.

Difficulty

The arithmetic ((2.12) and the final inequality) is routine. The content is in properties a) and b). A shortest-path distance is an infimum over all walks, and property a) asks that no detour through the recursive structure is shorter than the direct edge, at every level of the recursion. The paper handles this by an induction on (2.13)–(2.17) that tracks only seven nodes per level, and argues that distances inside a copy of FiF_iFi​ are not shortened by embedding it into Fi+1F_{i+1}Fi+1​. Property b) then needs that at each step of PiP_iPi​ the chosen node is at least as close as every unvisited node, including nodes in the other copy and nodes reached through the start or right nodes; ties occur, and the claim is only that some resolution of them follows PiP_iPi​. Checking small cases by computer does not give either property for all iii.

Formalization scope

Nodes of an instance are Fin n, a tour is a permutation of Fin n, the tour length is the sum over consecutive pairs including the closing edge, and OPTIMAL is a minimum over the finite set of permutations. The model is the paper's: symmetric, nonnegative distances with the triangle inequality. The distance structure also carries d(a,a)=0d(a,a)=0d(a,a)=0, a normalization not in the paper; the diagonal never enters a tour length. A nearest-neighbor tour is a permutation in which each step goes to a node at least as close as every unvisited node, from an arbitrary start with arbitrary ties.

Ratios are multiplied out: the goal is (13log⁡2(n+1)+49)⋅OPTIMAL<NEARNEIBER(\frac13\log_2(n+1)+\frac49)\cdot\mathrm{OPTIMAL}<\mathrm{NEARNEIBER}(31​log2​(n+1)+94​)⋅OPTIMAL<NEARNEIBER together with OPTIMAL>0\mathrm{OPTIMAL}>0OPTIMAL>0, the paper's standing assumption (1.1). lg⁡(n+1)\lg(n+1)lg(n+1) is Real.logb 2 of n+1n+1n+1, as printed. Because of the strict inequality and the conjunct OPTIMAL>0\mathrm{OPTIMAL}>0OPTIMAL>0, the all-zero distance does not satisfy the goal, so the statement cannot be met by a degenerate instance.

In the construction the nodes of FiF_iFi​, GiG_iGi​, Gˉi\bar G_iGˉi​ are numbered 0,…,2i+1−20,\dots,2^{i+1}-20,…,2i+1−2 from left to right (start node 000, middle node 2i−12^i-12i−1, right node 2i+1−22^{i+1}-22i+1−2); in Fi+1F_{i+1}Fi+1​ the left copy comes first, then the new node, then the right copy. Graphs are edge lists with real weights and lil_ili​ is defined in R\mathbb RR exactly as in (2.11). The shortest-path distance is the infimum of walk weights over an inductive walk predicate; it would be 000 for two nodes with no connecting walk, a case that does not arise because every GiG_iGi​ and FiF_iFi​ is connected. LiL_iLi​ is defined by its difference equation; its identification with the length of the tour along PiP_iPi​ is milestone 7. All construction statements assume i≥1i\ge1i≥1.

A complete development needs a small library for shortest-path distances of finite weighted edge lists (symmetry, triangle inequality, attainment, behaviour under relabelling and under gluing two graphs at a few nodes); this part is reusable beyond the mission. Contributions welcome: proofs of any milestone, and such general shortest-path lemmas as separate theorems. Theorem 1 is not part of this mission.

Selected references

  • D. J. Rosenkrantz, R. E. Stearns, P. M. Lewis II, An Analysis of Several Heuristics for the Traveling Salesman Problem, SIAM J. Comput. 6(3):563–581, 1977. https://doi.org/10.1137/0206041
  • M. Bellmore, G. L. Nemhauser, The Traveling Salesman Problem: A Survey, Operations Research 16(3):538–558, 1968. https://doi.org/10.1287/opre.16.3.538
  • J. W. Gavett, Three Heuristic Rules for Sequencing Jobs to a Single Production Facility, Management Science 11(8):B166–B176, 1965. https://doi.org/10.1287/mnsc.11.8.B166
  • N. Christofides, Worst-Case Analysis of a New Heuristic for the Travelling Salesman Problem, Report 388, Graduate School of Industrial Administration, Carnegie Mellon University, 1976.
12 thms4 active usersReviewed
🏆Completed
CombinatoricsOperations ResearchTheoretical Computer Science·Captain: mikedeng1

Worst-Case Performance Bounds for Simple One-Dimensional Packing Algorithms 2: First-Fit and Best-Fit with Bounded Item SizesResearch Paper

Motivation

Bin packing asks for the fewest unit-capacity bins that hold a given list of item sizes. It models cutting stock, memory allocation, file placement and the loading of trucks, and it is NP-hard, so in practice lists are packed by simple rules that look at one item at a time. The two most widely used rules are First-Fit and Best-Fit, and the question that Johnson, Demers, Ullman, Garey and Graham answered in 1974 is how far from optimal they can be in the worst case.

Their headline answer is that both rules use at most about 1710\tfrac{17}{10}1017​ times the optimal number of bins, and that 1710\tfrac{17}{10}1017​ is asymptotically attained. The lists that force this ratio use items larger than 12\tfrac1221​. When all items are known to be small, which is typical of memory and storage applications, the guarantee is much better, and this mission is about that refinement: the paper's Theorem 2.3 and its corollary, which determine the asymptotic worst-case ratio of First-Fit and Best-Fit exactly as a function of the largest allowed item size α≤12\alpha\le\tfrac12α≤21​.

Timeline. Ullman (1971) introduced the worst-case analysis of First-Fit with a 1710L∗+3\tfrac{17}{10}L^*+31017​L∗+3 bound. Garey, Graham and Ullman (1972) and Johnson's thesis (MIT, 1973) extended it to Best-Fit and to the decreasing variants. The 1974 SIAM paper collects these results; Theorem 2.3 there is the parametric bound for items of size at most α\alphaα. The additive constants in the unrestricted 1710\tfrac{17}{10}1017​ bound were sharpened over the following four decades, culminating in Dósa and Sgall's proof (2013) that FF(L)≤⌊1710L∗⌋FF(L)\le\lfloor\tfrac{17}{10}L^*\rfloorFF(L)≤⌊1017​L∗⌋.

Setting

A list is a finite sequence L=(a1,…,an)L=(a_1,\dots,a_n)L=(a1​,…,an​) of real numbers in (0,1](0,1](0,1]. Its optimum L∗L^*L∗ is the least number of bins into which the elements of LLL can be placed so that no bin contains numbers whose sum exceeds 111. The level of a bin is the sum of the numbers in it. For a real α>0\alpha>0α>0, write L⊆(0,α]L\subseteq(0,\alpha]L⊆(0,α] when every element of LLL is at most α\alphaα.

First-Fit (FFFFFF) considers bins B1,B2,…B_1,B_2,\dotsB1​,B2​,…, all initially empty, and places a1,a2,…,ana_1,a_2,\dots,a_na1​,a2​,…,an​ in that order: aia_iai​ goes into the bin BjB_jBj​ of least index whose level β\betaβ satisfies β≤1−ai\beta\le 1-a_iβ≤1−ai​. Best-Fit (BFBFBF) is the same except that, among the bins with β≤1−ai\beta\le 1-a_iβ≤1−ai​, it chooses one of largest level β\betaβ (least index among ties). FF(L)FF(L)FF(L) and BF(L)BF(L)BF(L) denote the numbers of nonempty bins at the end.

The restricted worst-case ratios are

RFFα(k)=max⁡{FF(L)L∗:L⊆(0,α], L∗=k},RBFα(k)=max⁡{BF(L)L∗:L⊆(0,α], L∗=k}.R^\alpha_{FF}(k)=\max\Big\{\frac{FF(L)}{L^*}: L\subseteq(0,\alpha],\ L^*=k\Big\},\qquad R^\alpha_{BF}(k)=\max\Big\{\frac{BF(L)}{L^*}: L\subseteq(0,\alpha],\ L^*=k\Big\}.RFFα​(k)=max{L∗FF(L)​:L⊆(0,α], L∗=k},RBFα​(k)=max{L∗BF(L)​:L⊆(0,α], L∗=k}.

Throughout, 0<α≤120<\alpha\le\tfrac120<α≤21​ and m=⌊α−1⌋m=\lfloor\alpha^{-1}\rfloorm=⌊α−1⌋, an integer with m≥2m\ge 2m≥2 and 1m+1<α≤1m\tfrac1{m+1}<\alpha\le\tfrac1mm+11​<α≤m1​.

Formalization targets

Goal: the asymptotic ratio (Corollary of Theorem 2.3, p. 308)

lim⁡k→∞RFFα(k)=lim⁡k→∞RBFα(k)=1+1⌊α−1⌋.\lim_{k\to\infty}R^\alpha_{FF}(k)=\lim_{k\to\infty}R^\alpha_{BF}(k)=1+\frac{1}{\lfloor\alpha^{-1}\rfloor}.k→∞lim​RFFα​(k)=k→∞lim​RBFα​(k)=1+⌊α−1⌋1​.

The goal is stated as a limit, which is the stable form of the result: it is unaffected by any improvement of the additive constants below.

Theorem 2.3(i): the lower bound (p. 307)

For each k≥1k\ge1k≥1 there is a list L⊆(0,α]L\subseteq(0,\alpha]L⊆(0,α] with L∗=kL^*=kL∗=k and FF(L)≥m+1mL∗−1mFF(L)\ge\frac{m+1}{m}L^*-\frac1mFF(L)≥mm+1​L∗−m1​; likewise for BFBFBF.

Two steps of the First-Fit upper bound (p. 308)

If no element of LLL exceeds 1m\frac1mm1​, then in the First-Fit packing every bin except possibly the last contains at least mmm elements, and all but at most two bins have level at least mm+1\frac{m}{m+1}m+1m​.

Theorem 2.3(ii): the upper bounds (p. 307)

For every list L⊆(0,α]L\subseteq(0,\alpha]L⊆(0,α],

FF(L)≤m+1mL∗+2,BF(L)≤m+1mL∗+2.FF(L)\le\frac{m+1}{m}L^*+2,\qquad BF(L)\le\frac{m+1}{m}L^*+2.FF(L)≤mm+1​L∗+2,BF(L)≤mm+1​L∗+2.

Significance

The theorem gives an exact, parametric description of how the worst case of the two greedy rules improves as items shrink: the asymptotic ratio is 32\tfrac3223​ when items are at most 12\tfrac1221​, 43\tfrac4334​ when at most 13\tfrac1331​, and tends to 111 as the maximum item size tends to 000. Combined with the 1710\tfrac{17}{10}1017​ bound for unrestricted lists, it shows that the bad behaviour of First-Fit is caused entirely by items larger than 12\tfrac1221​. Such parametric bounds are the standard way bin-packing heuristics are compared in the literature on online and semi-online packing, and the construction in part (i) is a reusable template for lower-bound lists.

The paper proves the First-Fit upper bound and the lower bound (the verification of the lower-bound construction is left to the reader). The Best-Fit upper bound is stated but not proved: the paper says only that "a similar, but slightly more complicated, argument can be used". A formal proof of the goal therefore requires supplying that argument. None of these results is known to have a machine-checked proof; Mathlib contains no bin-packing development.

Difficulty

For First-Fit the upper bound is a counting argument, but it rests on a property of the run, not of the final packing: an item that went into a later bin did not fit into an earlier bin at the moment it was placed. Turning that into a statement about the final levels requires an invariant maintained through the whole sequence of placements.

The Best-Fit upper bound is harder because that property fails: Best-Fit may put a small item into a fuller, later bin while an earlier, lighter bin still has room, so a light early bin and a light later bin can coexist longer than under First-Fit. The paper gives no argument for this case.

The lower bound requires computing the exact behaviour of both algorithms on a specific interleaved list with item sizes perturbed by powers of mmm, and computing L∗L^*L∗ exactly for that list, which needs a matching lower bound on the optimum.

Formalization scope

A list is L : List ℝ with the hypothesis IsList L (every element in (0,1](0,1](0,1]); L⊆(0,α]L\subseteq(0,\alpha]L⊆(0,α] is the additional hypothesis ∀ a ∈ L, a ≤ α. L∗L^*L∗ is optBins L, a sInf in ℕ over numbers of bins admitting a feasible assignment; the hypothesis IsList makes the set nonempty. The runs ffPack L and bfPack L are folds over the list that keep the nonempty bins in the order they were opened, each with its contents; an item that fits nowhere opens a new bin at the end, which is the paper's "least jjj" over infinitely many empty bins. Comparisons are exact (classical decidability on ℝ), and FF(L)FF(L)FF(L), BF(L)BF(L)BF(L) are the lengths of the final bin lists. mmm is Nat.floor α⁻¹, cast before any division.

The ratios RFFα(k)R^\alpha_{FF}(k)RFFα​(k), RBFα(k)R^\alpha_{BF}(k)RBFα​(k) are suprema taken in ℝ≥0∞: an unbounded family would give +∞+\infty+∞, never a default value, and at k=0k=0k=0 the only admissible list is empty and the value is 000. The goal is a Tendsto … atTop (𝓝 (1 + (⌊α⁻¹⌋₊)⁻¹)) statement in ℝ≥0∞. A real-valued sSup would have returned 000 on an unbounded family and made a false bound look provable; that encoding is ruled out. The upper bounds keep the additive constant 222 and the lower bound the subtractive 1m\frac1mm1​ exactly as printed.

The two proof steps are stated under the proof's own hypothesis "no element exceeding 1/m1/m1/m", which is weaker than L⊆(0,α]L\subseteq(0,\alpha]L⊆(0,α].

A complete development needs invariants of the First-Fit and Best-Fit folds, a lower bound L∗≥∑iaiL^*\ge\sum_i a_iL∗≥∑i​ai​, and exact evaluation of both runs on the construction of part (i). Lemmas about the fold encoding of First-Fit and Best-Fit and about L∗L^*L∗ are reusable in the companion missions on the 1710\tfrac{17}{10}1017​, 119\tfrac{11}{9}911​ and 7160\tfrac{71}{60}6071​ bounds of the same paper. Contributions on the Best-Fit upper bound are especially welcome, since the source gives no proof.

Selected references

  • D. S. Johnson, A. Demers, J. D. Ullman, M. R. Garey, R. L. Graham, Worst-Case Performance Bounds for Simple One-Dimensional Packing Algorithms, SIAM Journal on Computing 3(4):299–325, 1974. https://doi.org/10.1137/0203025
  • J. D. Ullman, The Performance of a Memory Allocation Algorithm, Technical Report 100, Princeton University, 1971.
  • M. R. Garey, R. L. Graham, J. D. Ullman, Worst-Case Analysis of Memory Allocation Algorithms, Proc. 4th ACM Symposium on Theory of Computing, 143–150, 1972. https://doi.org/10.1145/800152.804907
  • D. S. Johnson, Near-Optimal Bin Packing Algorithms, PhD thesis, Massachusetts Institute of Technology, 1973. http://hdl.handle.net/1721.1/57819
  • G. Dósa, J. Sgall, First Fit Bin Packing: A Tight Analysis, Proc. 30th STACS, LIPIcs 20:538–549, 2013. https://doi.org/10.4230/LIPIcs.STACS.2013.538
7 thms4 active usersReviewed
🏆Completed
CombinatoricsOperations ResearchTheoretical Computer Science·Captain: mikedeng1

Local Search Heuristics for k-Median and Facility Location Problems III: Add-Drop-Swap Local Search for Uncapacitated Facility Location Has Locality Gap 3Research Paper

Motivation

The uncapacitated facility location (UFL) problem is one of the basic models of location theory and operations research: a firm chooses which warehouses, plants or servers to open, paying a fixed cost for each open site and a service cost for every client according to its distance to the nearest open site. It is also a standard test case for approximation algorithms.

Local search is the simplest of these and the one most used in practice: start from any set of open facilities and repeatedly add, drop or exchange one facility while this lowers the cost. The question is how bad a solution can be when no such move helps. Arya, Garg, Khandekar, Meyerson, Munagala and Pandit (SIAM J. Comput. 33(3), 2004) answered it for UFL with an exact constant.

Timeline. Korupolu, Plaxton and Rajaraman (SODA 1998, J. Algorithms 2000) analysed local search with add, drop and swap moves and proved a locality gap of at most 5; their analysis contains the service cost bound restated here as Lemma 4.1. Charikar and Guha (FOCS 1999) proved a locality gap of 3 for a different local search, in which one facility is added and any number are dropped. Arya et al. (STOC 2001; journal version 2004) proved that the add/drop/swap neighbourhood itself has locality gap at most 3, and gave an instance showing that 3 cannot be improved (§4.3).

Setting

A metric instance consists of a finite set CCC of clients, a finite set FFF of facilities, and a distance ddd on C∪FC \cup FC∪F that is nonnegative, symmetric and satisfies the triangle inequality. The cost of serving client jjj by facility iii is cji=d(j,i)c_{ji} = d(j,i)cji​=d(j,i); the distance cii′c_{ii'}cii′​ between two facilities is also available. Each facility i∈Fi \in Fi∈F has an opening cost fi≥0f_i \ge 0fi​≥0.

A solution is a nonempty set S⊆FS \subseteq FS⊆F of open facilities. Every client is served by its nearest open facility, so

costf(S)=∑i∈Sfi,costs(S)=∑j∈Cmin⁡i∈Scji,cost(S)=costf(S)+costs(S).\mathrm{cost}_f(S) = \sum_{i \in S} f_i, \qquad \mathrm{cost}_s(S) = \sum_{j \in C} \min_{i \in S} c_{ji}, \qquad \mathrm{cost}(S) = \mathrm{cost}_f(S) + \mathrm{cost}_s(S).costf​(S)=i∈S∑​fi​,costs​(S)=j∈C∑​i∈Smin​cji​,cost(S)=costf​(S)+costs​(S).

The neighbourhood of SSS is the set of solutions reachable by adding one facility, dropping one facility, or swapping one open facility for another:

B(S)={S+{s′}}∪{S−{s}∣s∈S}∪{S−{s}+{s′}∣s∈S}.\mathcal B(S) = \{S + \{s'\}\} \cup \{S - \{s\} \mid s \in S\} \cup \{S - \{s\} + \{s'\} \mid s \in S\}.B(S)={S+{s′}}∪{S−{s}∣s∈S}∪{S−{s}+{s′}∣s∈S}.

SSS is locally optimum if cost(S)≤cost(S′)\mathrm{cost}(S) \le \mathrm{cost}(S')cost(S)≤cost(S′) for every S′∈B(S)S' \in \mathcal B(S)S′∈B(S). The locality gap is the supremum, over all instances, of the ratio between the cost of a worst local optimum and the cost of a global optimum.

The proofs use the following notation, which appears in the milestones but not in the goal. Fix a second solution OOO and nearest-facility assignments σS:C→S\sigma_S : C \to SσS​:C→S, σO:C→O\sigma_O : C \to OσO​:C→O; write Sj=cjσS(j)S_j = c_{j\sigma_S(j)}Sj​=cjσS​(j)​, Oj=cjσO(j)O_j = c_{j\sigma_O(j)}Oj​=cjσO​(j)​, NS(s)=σS−1(s)N_S(s) = \sigma_S^{-1}(s)NS​(s)=σS−1​(s), NO(o)=σO−1(o)N_O(o) = \sigma_O^{-1}(o)NO​(o)=σO−1​(o) and Nso=NO(o)∩NS(s)N^o_s = N_O(o) \cap N_S(s)Nso​=NO​(o)∩NS​(s). A facility s∈Ss \in Ss∈S captures o∈Oo \in Oo∈O if ∣Nso∣>12∣NO(o)∣|N^o_s| > \tfrac12 |N_O(o)|∣Nso​∣>21​∣NO​(o)∣; sss is good if it captures no facility of OOO and bad otherwise. The proof of the facility cost bound uses a permutation π\piπ of the clients that maps each NO(o)N_O(o)NO​(o) onto itself, moves every client of a non-capturing block NsoN^o_sNso​ out of that block (Property 3.1), and fixes every client of a capturing block that it would map into the same block.

Formalization targets

Goal: Theorem 4.3

cost(S)≤3⋅cost(O)for every locally optimum S and every solution O.\mathrm{cost}(S) \le 3 \cdot \mathrm{cost}(O) \quad \text{for every locally optimum } S \text{ and every solution } O.cost(S)≤3⋅cost(O)for every locally optimum S and every solution O.

This is the locality gap bound of Theorem 4.3 (p. 557) in its strongest printed form: OOO is any solution, not only an optimal one.

Milestones

  1. Lemma 4.1 (service cost), p. 554: costs(S)≤costf(O)+costs(O)\mathrm{cost}_s(S) \le \mathrm{cost}_f(O) + \mathrm{cost}_s(O)costs​(S)≤costf​(O)+costs​(O).
  2. The refined mapping π\piπ of the proof of Lemma 4.2, p. 555: such a permutation exists for any two assignments.
  3. Inequality (5), p. 555: the drop move for a good facility sss,
−fs+∑j∈NS(s), π(j)≠j(Oj+Oπ(j)+Sπ(j)−Sj)+2∑j∈NS(s), π(j)=jOj≥0.-f_s + \sum_{j \in N_S(s),\ \pi(j) \neq j} (O_j + O_{\pi(j)} + S_{\pi(j)} - S_j) + 2 \sum_{j \in N_S(s),\ \pi(j) = j} O_j \ge 0.−fs​+j∈NS​(s), π(j)=j∑​(Oj​+Oπ(j)​+Sπ(j)​−Sj​)+2j∈NS​(s), π(j)=j∑​Oj​≥0.
  1. Inequality (6), pp. 555–556: the swap of a bad facility sss with the facility ooo it captures that is nearest to it.
  2. Inequality (8), p. 556: for a bad facility sss capturing the set P⊆OP \subseteq OP⊆O, the analogue of (5) with ∑o′∈Pfo′−fs\sum_{o' \in P} f_{o'} - f_s∑o′∈P​fo′​−fs​ in place of −fs-f_s−fs​.
  3. Lemma 4.2 (facility cost), p. 555: costf(S)≤costf(O)+2⋅costs(O)\mathrm{cost}_f(S) \le \mathrm{cost}_f(O) + 2 \cdot \mathrm{cost}_s(O)costf​(S)≤costf​(O)+2⋅costs​(O).

A companion item, not a milestone, states the bound in the proof of Theorem 4.4 with α=2\alpha = \sqrt2α=2​: a local optimum of the instance with facility costs 2fi\sqrt2 f_i2​fi​ costs at most (1+2) cost(O)(1+\sqrt2)\,\mathrm{cost}(O)(1+2​)cost(O) in the original instance.

Significance

The result. Theorem 4.3 shows that the simplest local search for metric UFL is within a factor 3 of optimal at every local optimum, with no LP and no rounding, and the tight example of §4.3 shows the analysis cannot be improved for this neighbourhood. Because Lemmas 4.1 and 4.2 hold against every solution OOO, scaling the facility costs before running local search trades the two bounds against each other and gives the 1+2+ϵ1 + \sqrt2 + \epsilon1+2​+ϵ guarantee of Theorem 4.4. The same capture-and-reassign technique is used for k-median (§3) and capacitated facility location (§5).

Formalizing it. The theorem is proved on paper; no machine-checked proof of it or of any locality gap bound for facility location is known to this mission. A formal development would check the reassignment arguments, which are stated case by case in the paper, and would produce reusable Lean infrastructure for metric facility location instances, nearest-facility costs and neighbourhood-based local optimality.

Difficulty

The service cost bound is routine; the facility cost bound is where the work lies. The natural first idea, closing a facility s∈Ss \in Ss∈S and sending each of its clients to the facility of SSS nearest to that client's optimal facility, fails when sss serves most of the clients of some o∈Oo \in Oo∈O: the nearest facility of SSS to ooo may be sss itself, so the client has nowhere to go. The proof separates good facilities, which can be dropped, from bad ones, which must be swapped with a captured facility, and pays for the clients that cannot be moved through the distance between sss and its nearest captured facility. The combinatorial core is the construction of a permutation within each NO(o)N_O(o)NO​(o) that avoids every non-capturing block and has fixed points only where they are unavoidable.

Formalization scope

Clients and facilities are finite types Cl and Fa. The distance is a real-valued function on Cl ⊕ Fa that is nonnegative, symmetric and satisfies the triangle inequality; d(x,x)=0d(x,x) = 0d(x,x)=0 is not assumed, since the paper neither states nor uses it. Opening costs are a function f : Fa → ℝ with 0 ≤ f i, and demands are unit, as in the paper.

Solutions are nonempty Finsets. The service cost is ∑jmin⁡i∈Scji\sum_j \min_{i \in S} c_{ji}∑j​mini∈S​cji​ (Finset.inf') and is defined only for nonempty sets, so no junk value for ∅\emptyset∅ enters. Accordingly the drop move is considered only when a facility remains open; with at least one client, ∅\emptyset∅ cannot serve anyone and is not a solution. Local optimality is required for all moves of B(S)\mathcal B(S)B(S): every added facility, every dropped facility and every swap, not only the moves used in the proof. The goal is stated as the multiplied-out inequality cost(S)≤3 cost(O)\mathrm{cost}(S) \le 3\,\mathrm{cost}(O)cost(S)≤3cost(O) for every nonempty OOO, never as a ratio, since cost(O)\mathrm{cost}(O)cost(O) may be 000.

In the milestones, the nearest-facility assignments σS\sigma_SσS​, σO\sigma_OσO​ are arbitrary among the nearest ones (ties broken arbitrarily), and the family of bijections π:NO(o)→NO(o)\pi : N_O(o) \to N_O(o)π:NO​(o)→NO​(o) is a single permutation of the clients with σO∘π=σO\sigma_O \circ \pi = \sigma_OσO​∘π=σO​. Inequality (5) assumes at least one client, which the paper assumes implicitly: with no clients and S={s}S = \{s\}S={s} it would read −fs≥0-f_s \ge 0−fs​≥0. The goal and Lemma 4.2 need no such assumption.

A statement that assumes local optimality only for the moves the proof uses, that fixes OOO to be a global optimum defined by hypotheses, or that allows the empty set a zero service cost would be a different theorem; none of these is used.

Needed infrastructure: sums over nearest-facility assignments and their fibers NO(o)N_O(o)NO​(o), the permutation π\piπ, and bookkeeping of the three kinds of moves. The instance, cost and local optimality definitions are reusable for other local search analyses of metric location problems. Proofs of any milestone are welcome, as are alternative proofs of the goal.

Selected references

  • V. Arya, N. Garg, R. Khandekar, A. Meyerson, K. Munagala, V. Pandit, Local Search Heuristics for k-Median and Facility Location Problems, SIAM J. Comput. 33(3):544–562, 2004. https://doi.org/10.1137/S0097539702416402
  • M. R. Korupolu, C. G. Plaxton, R. Rajaraman, Analysis of a Local Search Heuristic for Facility Location Problems, J. Algorithms 37(1):146–188, 2000. https://doi.org/10.1006/jagm.2000.1100
  • M. Charikar, S. Guha, Improved Combinatorial Algorithms for the Facility Location and k-Median Problems, FOCS 1999, 378–388. https://doi.org/10.1109/SFFCS.1999.814609
10 thms4 active usersReviewed
🏆Completed
CombinatoricsMachine Learning·Captain: naimengye

Understanding Machine Learning XV: Neural NetworksTextbook

Motivation

A feedforward neural network is a directed acyclic graph of neurons, each computing a fixed scalar activation of a weighted sum of its inputs; fixing the graph and the activation and letting the weights vary gives a hypothesis class. Chapter 20 of Shalev-Shwartz and Ben-David, Understanding Machine Learning: From Theory to Algorithms (doi:10.1017/CBO9781107298019), studies these classes through the book's three lenses. Approximation: every Boolean function is implemented by a network of depth 2 (Claim 20.1), but only at exponential size (Theorem 20.2), while a sign neuron implements conjunctions and disjunctions (Lemma 20.4), the bridge to Boolean circuits and hence to everything computable in bounded time. Estimation: the VC dimension of the class of sign networks over a graph with ∣E∣|E|∣E∣ edges is O(∣E∣log⁡∣E∣)O(|E|\log|E|)O(∣E∣log∣E∣) (Theorem 20.6), so the sample complexity is governed by the number of weights. Optimization: training is NP-hard even for tiny networks, and the practical answer is SGD with the gradient computed by backpropagation, whose correctness the chapter derives from the chain rule.

Setting

A layered graph has layers V0,…,VTV_0, \dots, V_TV0​,…,VT​, every edge joining Vt−1V_{t-1}Vt−1​ to VtV_tVt​; V0V_0V0​ holds the nnn inputs and a constant neuron outputting 111. With weights w:E→Rw : E \to \mathbb{R}w:E→R and an activation σ\sigmaσ, the outputs are computed layer by layer, at+1,i=∑j:(vt,j,vt+1,i)∈Ewt,i,j ot,ja_{t+1,i} = \sum_{j : (v_{t,j}, v_{t+1,i}) \in E} w_{t,i,j}\,o_{t,j}at+1,i​=∑j:(vt,j​,vt+1,i​)∈E​wt,i,j​ot,j​ and ot+1,i=σ(at+1,i)o_{t+1,i} = \sigma(a_{t+1,i})ot+1,i​=σ(at+1,i​). The class HV,E,σ={hV,E,σ,w:w:E→R}H_{V,E,\sigma} = \{h_{V,E,\sigma,w} : w : E \to \mathbb{R}\}HV,E,σ​={hV,E,σ,w​:w:E→R} (20.1); for binary classification the output layer is a single neuron and σ\sigmaσ is the sign function, so HV,E,sign⁡H_{V,E,\operatorname{sign}}HV,E,sign​ is a set of {±1}\{\pm1\}{±1}-valued predictors on Rn\mathbb{R}^nRn. The size of the network is ∣V∣|V|∣V∣, its depth TTT. The growth function τH(m)=max⁡∣C∣≤m∣HC∣\tau_H(m) = \max_{|C| \le m}|H_C|τH​(m)=max∣C∣≤m​∣HC​∣ extends to classes with any finite codomain (p. 275), and the proof of Theorem 20.6 uses two of its properties, stated as Exercises 3 and 4: the growth function of a product class is at most the product of the growth functions, and likewise for a composition class. For backpropagation the activation is any differentiable σ\sigmaσ and the loss is 12∥oT−y∥2\frac12\|o_T - y\|^221​∥oT​−y∥2; the backward pass sets δT=oT−y\delta_T = o_T - yδT​=oT​−y and δt=δt+1diag⁡(σ′(at+1))Wt\delta_t = \delta_{t+1}\operatorname{diag}(\sigma'(a_{t+1}))W_tδt​=δt+1​diag(σ′(at+1​))Wt​.

Formalization targets

Goal: Theorem 20.6

The VC dimension of HV,E,sign⁡H_{V,E,\operatorname{sign}}HV,E,sign​ is O(∣E∣log⁡∣E∣)O(|E|\log|E|)O(∣E∣log∣E∣). Explicitly, for a layered graph of depth at least 111 with a single output neuron,

VCdim⁡(HV,E,sign⁡)≤2∣E∣log⁡2(16∣E∣),\operatorname{VCdim}(H_{V,E,\operatorname{sign}}) \le 2|E|\log_2(16|E|),VCdim(HV,E,sign​)≤2∣E∣log2​(16∣E∣),

stated as: every m≤VCdim⁡m \le \operatorname{VCdim}m≤VCdim satisfies this bound (so the VC dimension is finite).

Milestones

Claim 20.1 (the depth-2 graph with ∣V1∣=2n+1|V_1| = 2^n + 1∣V1​∣=2n+1 whose sign class contains every function {±1}n→{±1}\{\pm1\}^n \to \{\pm1\}{±1}n→{±1}); Theorem 20.2 (every sign network implementing all functions {0,1}n→{0,1}\{0,1\}^n \to \{0,1\}{0,1}n→{0,1} has 2n/3≤2∣V∣2^{n/3} \le 2|V|2n/3≤2∣V∣); Lemma 20.4 (conjunction and disjunction as sign neurons); Exercise 4 (growth function of a composition); the correctness of backpropagation (§20.6: the partial derivative for the edge (vt,j,vt+1,i)(v_{t,j}, v_{t+1,i})(vt,j​,vt+1,i​) is δt+1,iσ′(at+1,i)ot,j\delta_{t+1,i}\sigma'(a_{t+1,i})o_{t,j}δt+1,i​σ′(at+1,i​)ot,j​). Further items: Exercise 3 (growth function of a product) and the intermediate bound τH(m)≤(em)∣E∣\tau_H(m) \le (em)^{|E|}τH​(m)≤(em)∣E∣ of the proof of Theorem 20.6.

Significance

Theorem 20.6 is the reason networks are learnable at all in the book's sense: by the fundamental theorem, a class with finite VC dimension is agnostic PAC learnable with sample complexity linear in that dimension, and here the dimension is essentially the number of tunable parameters. The proof technique, due to Kakade and Tewari's lecture notes, is a composition-and-product argument on growth functions that applies to any layered class of threshold units and is reusable well beyond this chapter. Theorem 20.2 is the matching negative fact on expressive power, and it is a corollary of the same bound: a class that shatters 2n2^n2n points needs Ω(2n)\Omega(2^n)Ω(2n) edges. Backpropagation's correctness is the one theorem about training the chapter can offer, given the hardness results, and it is the algorithm every practitioner runs.

Difficulty

Claim 20.1 and Lemma 20.4 are explicit constructions: the neuron gi(x)=sign⁡(⟨x,ui⟩−n+1)g_i(x) = \operatorname{sign}(\langle x, u_i\rangle - n + 1)gi​(x)=sign(⟨x,ui​⟩−n+1) detects x=uix = u_ix=ui​ because ⟨x,ui⟩≤n−2\langle x, u_i\rangle \le n - 2⟨x,ui​⟩≤n−2 otherwise, and the output neuron takes the disjunction; formally one must build the weight function and evaluate the forward pass on the 2n2^n2n inputs. Exercises 3 and 4 are counting: a restricted product is determined by its two restricted factors, and a restricted composition f2∘f1f_2 \circ f_1f2​∘f1​ on CCC is determined by f1∣Cf_1|_Cf1​∣C​ and f2∣f1(C)f_2|_{f_1(C)}f2​∣f1​(C)​, with ∣f1(C)∣≤∣C∣|f_1(C)| \le |C|∣f1​(C)∣≤∣C∣. Theorem 20.6 then needs: the class of one neuron is the class of homogenous halfspaces on its dt,id_{t,i}dt,i​ incoming coordinates, of VC dimension at most dt,id_{t,i}dt,i​ (Mission VI), Sauer's lemma in the form τ(m)≤(em)d\tau(m) \le (em)^{d}τ(m)≤(em)d for every m≥1m \ge 1m≥1 (Mission IV; for m≤dm \le dm≤d use 2m≤(em)m2^m \le (em)^m2m≤(em)m), the layer class as a product and the network as a composition of layer classes, and finally the arithmetic 2m≤(em)∣E∣⇒m≤2∣E∣log⁡2(16∣E∣)2^m \le (em)^{|E|} \Rightarrow m \le 2|E|\log_2(16|E|)2m≤(em)∣E∣⇒m≤2∣E∣log2​(16∣E∣), which replaces the book's appeal to Lemma A.2 (for m≥8∣E∣m \ge 8|E|m≥8∣E∣ one has ln⁡m≤mln⁡22∣E∣\ln m \le \frac{m\ln 2}{2|E|}lnm≤2∣E∣mln2​). Theorem 20.2 follows from the goal with ∣E∣≤∣V∣2|E| \le |V|^2∣E∣≤∣V∣2. Backpropagation is a chain-rule computation in a single real variable: the loss as a function of one weight is a composition of finitely many differentiable maps, and the derivative unwinds to the backward recursion; the formal effort is in the induction along layers with the natural-number indexing of the model.

Formalization scope

Layers and neurons are indexed by natural numbers: a LayeredGraph records the depth, the layer widths and, for each t<Tt < Tt<T, the finite set of edges (vt,j,vt+1,i)(v_{t,j}, v_{t+1,i})(vt,j​,vt+1,i​) as pairs (i,j)(i, j)(i,j) within the layer widths. Weights are functions on all index triples, and only those on edges are used, so the class is the image of all weight functions, as in (20.1). The forward computation netOutput is a recursion on the layer index; netInput is at+1,ia_{t+1,i}at+1,i​. The sign activation returns ±1\pm1±1 with sign⁡(0)=−1\operatorname{sign}(0) = -1sign(0)=−1, the book's convention elsewhere, and a neuron with no incoming edges outputs σ(0)\sigma(0)σ(0) (p. 270). The binary class signNetClass n G is Bool-valued, true iff the output neuron's input is positive, and is stated for graphs of depth at least 111 (for depth 000 the edges out of the input layer would be used but not counted in ∣E∣|E|∣E∣). Growth functions with finite codomain are growthY, an sSup over restriction sizes, well defined because the codomains are finite; the Bool case is Mission IV's growth, and VC dimension and shattering are Mission IV's. Theorem 20.6 and Theorem 20.2 are given with explicit constants derived from the proof, since O(⋅)O(\cdot)O(⋅) statements have no formal content; the drafter verified max⁡{m:2m≤(em)∣E∣}≤2∣E∣log⁡2(16∣E∣)\max\{m : 2^m \le (em)^{|E|}\} \le 2|E|\log_2(16|E|)max{m:2m≤(em)∣E∣}≤2∣E∣log2​(16∣E∣) numerically for ∣E∣|E|∣E∣ up to 300030003000 and at 104,…,10710^4, \dots, 10^7104,…,107, and 2n≤2∣V∣2log⁡2(16∣V∣2)≤8∣V∣32^n \le 2|V|^2\log_2(16|V|^2) \le 8|V|^32n≤2∣V∣2log2​(16∣V∣2)≤8∣V∣3. Backpropagation is stated for an arbitrary layered graph (phantom edges have weight 000, p. 279), any differentiable activation, and one edge at a time as a HasDerivAt of the loss in that weight; δt\delta_tδt​ is defined by recursion on T−tT - tT−t. The book's layer indices in (20.3) are shifted by one in the statement.

Not stated: Theorem 20.3 (Turing machines), Theorem 20.5 and Exercise 1 (sigmoid approximation, which needs a convention for outputs in [−1,1][-1,1][−1,1] that the chapter leaves open), Theorem 20.7 and Exercise 6 (NP-hardness), Exercise 5 (the Ω(∣E∣2)\Omega(|E|^2)Ω(∣E∣2) sigmoid lower bound, which assumes an exact threshold), the sigmoid half of Theorem 20.2, and the SGD pseudocode of §20.6, which is a heuristic without a stated guarantee.

Selected references

  • S. Shalev-Shwartz, S. Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press, 2014, Chapter 20. doi:10.1017/CBO9781107298019
  • M. Anthony, P. L. Bartlett, Neural Network Learning: Theoretical Foundations, Cambridge University Press, 1999. doi:10.1017/CBO9780511624216
  • D. E. Rumelhart, G. E. Hinton, R. J. Williams, Learning representations by back-propagating errors, Nature 323, 1986. doi:10.1038/323533a0
  • I. Parberry, Circuit Complexity and Neural Networks, MIT Press, 1994.
  • E. B. Baum, D. Haussler, What size net gives valid generalization?, Neural Computation 1(1), 1989. doi:10.1162/neco.1989.1.1.151
8 thms4 active usersReviewed
🏆Completed
Bandit AlgorithmsOperations ResearchProbability·Captain: naimengye

Multi-armed Bandit Allocation Indices I: The Gittins Index, Optimal Stopping and MonotonicityTextbook

Motivation

A decision-maker has nnn projects, each a Markov reward process, and at every decision time may advance exactly one of them; the others stay frozen. Which project to advance so as to maximize the expected total discounted reward? Posed as a dynamic program the problem has a state space that is the product of the nnn state spaces, and the size of that product defeats every general method. The index theorem of Gittins and Jones (1974) says the dynamic program is solved exactly by an index policy: there is a real number ν(B,x)\nu(B, x)ν(B,x), computable for each bandit process BBB from its own data and its own current state xxx, such that always advancing a process of greatest index is optimal. Chapter 2 of Gittins, Glazebrook and Weber, Multi-armed Bandit Allocation Indices (2nd ed., doi:10.1002/9780470980033), introduces the index, proves the theorem three times, and works out the properties of the index that the rest of the book, from jobs and superprocesses to restless bandits, is built on: which stopping time attains it, how it is computed, how it moves with the discount factor, and when it collapses to the myopic rule.

The index theorem itself is already on the platform, proved, as BanditAlgorithm.gittins_index_theorem in the Bandit Algorithms series (Lattimore and Szepesvári, Theorem 35.9). This mission cites it and formalizes what Chapter 2 establishes around it.

Setting

A bandit process BBB (§2.3–2.4) is a Markov reward process on a countable state space EEE: transition probabilities P(y∣x)P(y \mid x)P(y∣x), a bounded reward r(x)r(x)r(x) received each time the continuation control is applied in state xxx, and a discount factor a∈(0,1)a \in (0, 1)a∈(0,1); the freeze control leaves the state unchanged and yields nothing. The law of the process started at xxx is Px\mathbb{P}_xPx​ and x(t)x(t)x(t) is its state at process time t=0,1,2,…t = 0, 1, 2, \dotst=0,1,2,…. A stopping time τ\tauτ is a past-measurable rule for switching from continuation to freezing, taking values in {1,2,… }∪{∞}\{1, 2, \dots\} \cup \{\infty\}{1,2,…}∪{∞}. For such τ\tauτ, Rτ(B,x)=Ex[∑t<τatr(x(t))]R_\tau(B, x) = \mathbb{E}_x[\sum_{t < \tau} a^t r(x(t))]Rτ​(B,x)=Ex​[∑t<τ​atr(x(t))] is the expected discounted reward and Wτ(B,x)=Ex[∑t<τat]W_\tau(B, x) = \mathbb{E}_x[\sum_{t < \tau} a^t]Wτ​(B,x)=Ex​[∑t<τ​at] the expected discounted time; their ratio ντ(B,x)\nu_\tau(B, x)ντ​(B,x) (2.7) is the equivalent constant reward rate of that portion of BBB. The Gittins index is

ν(B,x)=sup⁡τ>0Rτ(B,x)Wτ(B,x)(2.6)\nu(B, x) = \sup_{\tau > 0} \frac{R_\tau(B, x)}{W_\tau(B, x)} \tag{2.6}ν(B,x)=τ>0sup​Wτ​(B,x)Rτ​(B,x)​(2.6)

and, equivalently, the fair charge (2.5): the greatest rent λ\lambdaλ per period for which continuing BBB for one or more periods, paying λ\lambdaλ each period, can be done without expected loss. A simple family of alternative bandit processes (SFABP) is nnn such processes with a common discount factor, one of which is continued at each decision time; an index policy continues a process of greatest index. In the Lean development the single-arm model is the platform's (GittinsIndex): the chain law is built by the Ionescu–Tulcea construction, stopping times are adapted N∪{∞}\mathbb{N}\cup\{\infty\}N∪{∞}-valued maps on trajectories, and gittinsIndex P r a x is (2.6).

Formalization targets

Goal: Lemma 2.2, the optimal stopping set

The supremum in (2.6) is attained. For the initial state ξ\xiξ, the attaining stopping rule may be taken to be "stop at the first time t≥1t \ge 1t≥1 at which the state lies in Σ0\Sigma_0Σ0​" for any set Σ0\Sigma_0Σ0​ with

{x:ν(B,x)<ν(B,ξ)}⊆Σ0⊆{x:ν(B,x)≤ν(B,ξ)},\{x : \nu(B, x) < \nu(B, \xi)\} \subseteq \Sigma_0 \subseteq \{x : \nu(B, x) \le \nu(B, \xi)\},{x:ν(B,x)<ν(B,ξ)}⊆Σ0​⊆{x:ν(B,x)≤ν(B,ξ)},

and every such rule has ντ(B,ξ)=ν(B,ξ)\nu_\tau(B, \xi) = \nu(B, \xi)ντ​(B,ξ)=ν(B,ξ).

Milestones

Theorem 2.1 as a reference to the proved platform theorem; Eq. (2.5), the fair-charge characterization of the index; the restart-in-state formulation of §2.6.4 as the convergence of the Katehakis–Veinott value iteration; Theorem 2.3, monotonicity in the discount factor; Lemma 2.4, the interchange of two bandit portions; Propositions 2.5–2.8, the monotone-index cases in which the index is the immediate reward, or is attained only after the first step, or only at τ=∞\tau = \inftyτ=∞.

Significance

Lemma 2.2 is the working form of the index: it turns the supremum over all stopping times into a specific rule, the first time the index falls below its starting value, and it is what the interchange proof of §2.7, the modified-forwards-induction policies of §2.6.6, the monotone-index propositions of §2.11 and the treatment of jobs in Chapter 3 all use. The fair-charge form (2.5) is the prevailing-charge proof of the theorem (Weber 1992) and the interpretation that carries over to superprocesses and restless bandits. The restart formulation is how indices are computed in practice (Katehakis and Veinott 1987), and Theorem 2.3 is the first of the comparative statics used throughout Chapters 7 and 8. Lemma 2.4 is the elementary inequality behind the original proof of Gittins and Jones.

Of these, only the index theorem has a machine-checked proof today. Formalizing the rest gives the platform the index as a usable object: a characterization of the optimal stopping rule, a convergent algorithm for it, and the monotonicity facts, all stated against the existing model so that every later mission of this series and every future use of the L&S model can build on them.

Difficulty

The obvious first move for Lemma 2.2, "take the stopping time that achieves the supremum", is what has to be proved: the supremum is over an uncountable family, and attainment comes from the optimal stopping problem with charge λ=ν(B,ξ)\lambda = \nu(B, \xi)λ=ν(B,ξ), whose value function satisfies φ(x)=max⁡{0,r(x)−λ+aE[φ(x(1))∣x(0)=x]}\varphi(x) = \max\{0, r(x) - \lambda + a\mathbb{E}[\varphi(x(1)) \mid x(0) = x]\}φ(x)=max{0,r(x)−λ+aE[φ(x(1))∣x(0)=x]}, together with the fact that its optimal stopping set is characterized by the strict and non-strict inequalities λ>ν(B,x)\lambda > \nu(B, x)λ>ν(B,x) and λ≥ν(B,x)\lambda \ge \nu(B, x)λ≥ν(B,x). That last step is the content: it identifies the local decision "stop or continue" with a comparison of indices, which is why any set between the two level sets works. On the platform's model this requires the dynamic-programming theory of discounted optimal stopping on a countable space (Theorem 2.10 of the book), the identification of fairChargeProfit with that value function, and the strong Markov property of markovChainMeasure at a trajectory stopping time. Theorem 2.3 needs randomized stopping times (a geometric kill) and the fact that they do not enlarge the supremum. The restart iteration is monotone and bounded but its operator is not a contraction in the restart value, so its limit has to be identified with the restart problem's value directly; that value is max⁡(0,ν/(1−a))\max(0, \nu/(1-a))max(0,ν/(1−a)), not ν/(1−a)\nu/(1-a)ν/(1−a), because restarting forever is free.

Formalization scope

The state space is a countable type with measurable singletons, so every subset is measurable; rewards are bounded; a∈(0,1)a \in (0, 1)a∈(0,1). The chain law, stopping times, the discounted stopped sums and the index are the platform's, unchanged. Expectations are Bochner integrals; with bounded rewards they are finite and no total-function default value enters. IsPositiveStoppingTime fixes τ≥1\tau \ge 1τ≥1 everywhere, so Wτ≥1W_\tau \ge 1Wτ​≥1 and the ratio (2.7) is a genuine quotient. The stopping rule of Lemma 2.2 is the hitting time from time 111 of a set, with ∞\infty∞ when the set is never hit. The fair-charge profit is a real supremum over the nonempty bounded family of positive stopping times, and (2.5) is stated with the outer supremum over {λ:profit(λ)≥0}\{\lambda : \text{profit}(\lambda) \ge 0\}{λ:profit(λ)≥0}, a nonempty set bounded above. The restart iteration is stated as a limit, with the value max⁡(0,ν(B,ξ)/(1−a))\max(0, \nu(B, \xi)/(1-a))max(0,ν(B,ξ)/(1−a)): for a nonnegative index this is the book's ν/(1−a)\nu/(1-a)ν/(1−a), and the maximum is forced by a one-state example with negative reward. The propositions' hypotheses are almost-sure events under Px\mathbb{P}_xPx​, written as events of measure one.

Two trivializing readings are excluded: the index is never taken over all N∪{∞}\mathbb{N}\cup\{\infty\}N∪{∞}-valued maps but over adapted stopping times, and the stopping set of the goal is not restricted to the two extreme level sets. Contributions welcome: the optimal-stopping dynamic program on markovChainMeasure (value iteration, the strong Markov property at a stopping time), the equivalence of randomized and non-randomized stopping times for the supremum, and the monotone convergence of the restart iteration.

Selected references

  • J. Gittins, K. Glazebrook, R. Weber, Multi-armed Bandit Allocation Indices, 2nd ed., Wiley, 2011, Chapter 2. doi:10.1002/9780470980033
  • J. C. Gittins, D. M. Jones, A dynamic allocation index for the sequential design of experiments, in Progress in Statistics (Gani, ed.), North-Holland, 1974.
  • R. Weber, On the Gittins index for multiarmed bandits, Annals of Applied Probability 2(4), 1992. doi:10.1214/aoap/1177005588
  • M. N. Katehakis, A. F. Veinott, The multi-armed bandit problem: decomposition and computation, Mathematics of Operations Research 12(2), 1987. doi:10.1287/moor.12.2.262
  • T. Lattimore, C. Szepesvári, Bandit Algorithms, Cambridge University Press, 2020, Chapter 35. doi:10.1017/9781108571401
12 thms4 active usersReviewed
🏆Completed
Convex OptimizationOperations Research·Captain: naimengye

Robust Optimization X: Globalized Robust Counterparts of Uncertain Conic Problems (retired)Textbook

Motivation

A robust counterpart draws a hard line. Inside the uncertainty set the constraint must hold; outside it, nothing is promised — and in a real problem the perturbation does sometimes land outside. Chapter 3 answered this for linear problems with the globalized robust counterpart: keep the constraint exactly on the normal range Z\mathcal{Z}Z, and let it degrade at a controlled rate outside, proportionally to the distance from Z\mathcal{Z}Z. That mission published Proposition 3.2.1, which says the GRC of an uncertain linear inequality is equivalent to two ordinary robust counterparts.

Chapter 11 of Ben-Tal, El Ghaoui and Nemirovski, Robust Optimization (Princeton, 2009) does the same for conic constraints, and the move is not routine. The left hand side of a conic constraint is a vector, not a scalar, so "the constraint is violated by at most α dist(ζ,Z)\alpha \,\mathrm{dist}(\zeta, \mathcal{Z})αdist(ζ,Z)" has no direct meaning. What replaces it is the observation that a scalar inequality aTy−b≤0a^Ty - b \le 0aTy−b≤0 is the inclusion aTy−b∈Q≡R−a^Ty - b \in \mathbf{Q} \equiv \mathcal{R}_-aTy−b∈Q≡R−​, and that the violation is the distance from the left hand side to Q\mathbf{Q}Q. In that form the notion lifts verbatim, and the whole chapter follows.

Setting

Definition 11.1.2. Consider an uncertain convex constraint

[P0+∑ℓ=1LζℓPℓ]y−[p0+∑ℓ=1Lζℓpℓ] ∈ Q,(11.1.4)\Bigl[P^0 + \sum_{\ell=1}^L \zeta_\ell P^\ell\Bigr]y - \Bigl[p^0 + \sum_{\ell=1}^L \zeta_\ell p^\ell\Bigr] \ \in\ \mathbf{Q}, \tag{11.1.4}[P0+ℓ=1∑L​ζℓ​Pℓ]y−[p0+ℓ=1∑L​ζℓ​pℓ] ∈ Q,(11.1.4)

with Q⊆Rk\mathbf{Q} \subseteq \mathcal{R}^kQ⊆Rk nonempty, closed and convex. Let the perturbation space split as RL=RL1×⋯×RLS\mathcal{R}^L = \mathcal{R}^{L_1}\times\cdots\times\mathcal{R}^{L_S}RL=RL1​×⋯×RLS​, each factor carrying a normal range Zs\mathcal{Z}^sZs, a closed convex cone Ls\mathcal{L}^sLs and a norm ∥⋅∥s\|\cdot\|_s∥⋅∥s​, and let ∥⋅∥Q\|\cdot\|_{\mathbf{Q}}∥⋅∥Q​ be a norm on Rk\mathcal{R}^kRk. A candidate yyy is robust feasible with global sensitivities αs\alpha_sαs​ if

dist(P(y,ζ),Q) ≤ ∑s=1Sαs dist(ζs,Zs∣Ls)∀ ζ∈Z+L,(11.1.6)\mathrm{dist}\bigl(P(y,\zeta), \mathbf{Q}\bigr) \ \le\ \sum_{s=1}^S \alpha_s\, \mathrm{dist}(\zeta^s, \mathcal{Z}^s|\mathcal{L}^s) \qquad \forall\, \zeta \in \mathcal{Z} + \mathcal{L}, \tag{11.1.6}dist(P(y,ζ),Q) ≤ s=1∑S​αs​dist(ζs,Zs∣Ls)∀ζ∈Z+L,(11.1.6)

where dist(u,Q)=min⁡v∈Q∥u−v∥Q\mathrm{dist}(u,\mathbf{Q}) = \min_{v\in\mathbf{Q}}\|u - v\|_{\mathbf{Q}}dist(u,Q)=minv∈Q​∥u−v∥Q​ and dist(ζs,Zs∣Ls)=min⁡{∥ζs−v∥s:v∈Zs, ζs−v∈Ls}\mathrm{dist}(\zeta^s,\mathcal{Z}^s|\mathcal{L}^s) = \min\{\|\zeta^s - v\|_s : v \in \mathcal{Z}^s,\ \zeta^s - v \in \mathcal{L}^s\}dist(ζs,Zs∣Ls)=min{∥ζs−v∥s​:v∈Zs, ζs−v∈Ls}.

The object that makes the analysis work is the recessive cone of Q\mathbf{Q}Q (Definition 11.3.1): for any xˉ∈Q\bar x \in \mathbf{Q}xˉ∈Q,

Rec(Q)={h:xˉ+th∈Q  ∀t≥0},\mathrm{Rec}(\mathbf{Q}) = \{h : \bar x + th \in \mathbf{Q}\ \ \forall t \ge 0\},Rec(Q)={h:xˉ+th∈Q  ∀t≥0},

which does not depend on xˉ\bar xxˉ and is a nonempty closed convex cone.

Formalization targets

Goal — Proposition 11.3.3, the decomposition of the conic GRC

A candidate yyy is feasible for the GRC (11.1.6) if and only if it satisfies the system

(a)[P0+∑ℓζℓPℓ]y−[p0+∑ℓζℓpℓ]∈Q∀ζ∈Z=Z1×⋯×ZS,\text{(a)}\quad \Bigl[P^0 + \sum_\ell \zeta_\ell P^\ell\Bigr]y - \Bigl[p^0 + \sum_\ell \zeta_\ell p^\ell\Bigr] \in \mathbf{Q} \qquad \forall \zeta \in \mathcal{Z} = \mathcal{Z}^1\times \cdots\times\mathcal{Z}^S,(a)[P0+ℓ∑​ζℓ​Pℓ]y−[p0+ℓ∑​ζℓ​pℓ]∈Q∀ζ∈Z=Z1×⋯×ZS, (bs)dist(∑ℓ[Pℓy−pℓ](Esζs)ℓ, Rec(Q)) ≤ αs∀ζs∈Ls with ∥ζs∥s≤1,s=1,…,S.\text{(b}_s)\quad \mathrm{dist}\Bigl(\sum_{\ell} [P^\ell y - p^\ell](E_s\zeta^s)_\ell,\ \mathrm{Rec}(\mathbf{Q})\Bigr) \ \le\ \alpha_s \qquad \forall \zeta^s \in \mathcal{L}^s \text{ with } \|\zeta^s\|_s \le 1, \quad s = 1,\ldots,S .(bs​)dist(ℓ∑​[Pℓy−pℓ](Es​ζs)ℓ​, Rec(Q)) ≤ αs​∀ζs∈Ls with ∥ζs∥s​≤1,s=1,…,S.

Line (a) is the ordinary robust counterpart over the normal range. Each line (bs_ss​) is a bounded semi-infinite constraint — the perturbation ranges over the unit ball of a cone, not over an unbounded set — measuring the distance to the recessive cone rather than to Q\mathbf{Q}Q itself.

Supporting targets

(Def 11.3.1)Rec(Q) is independent of the base point and is a nonempty closed convex cone,\text{(Def 11.3.1)}\quad \mathrm{Rec}(\mathbf{Q}) \text{ is independent of the base point and is a nonempty closed convex cone},(Def 11.3.1)Rec(Q) is independent of the base point and is a nonempty closed convex cone, (Ex 11.3.2)Q bounded⇒Rec(Q)={0};Q a cone⇒Rec(Q)=Q;Rec{u:Au−b∈K}={h:Ah∈K},\text{(Ex 11.3.2)}\quad \mathbf{Q} \text{ bounded} \Rightarrow \mathrm{Rec}(\mathbf{Q}) = \{0\}; \quad \mathbf{Q} \text{ a cone} \Rightarrow \mathrm{Rec}(\mathbf{Q}) = \mathbf{Q}; \quad \mathrm{Rec}\{u : Au - b \in \mathbf{K}\} = \{h : Ah \in \mathbf{K}\},(Ex 11.3.2)Q bounded⇒Rec(Q)={0};Q a cone⇒Rec(Q)=Q;Rec{u:Au−b∈K}={h:Ah∈K}, (Prop 11.4.1)ΨΞ(M)=ΨΞ∗(M∗),Ψ(M)=max⁡{dist∥⋅∥F(Me,KF):e∈KE, ∥e∥E≤1}.\text{(Prop 11.4.1)}\quad \Psi_\Xi(\mathcal{M}) = \Psi_{\Xi_*}(\mathcal{M}^*), \qquad \Psi(\mathcal{M}) = \max\{\mathrm{dist}_{\|\cdot\|_F}(\mathcal{M}e, \mathbf{K}^F) : e \in \mathbf{K}^E,\ \|e\|_E \le 1\} .(Prop 11.4.1)ΨΞ​(M)=ΨΞ∗​​(M∗),Ψ(M)=max{dist∥⋅∥F​​(Me,KF):e∈KE, ∥e∥E​≤1}.

Significance

The goal is the chapter's structural result and it does exactly what Proposition 3.2.1 did one level down: it converts a single semi-infinite constraint over an unbounded perturbation set into a robust counterpart over the bounded normal range plus finitely many constraints over unit balls. That matters because every tractability result of Chapters 6 to 9 is about bounded uncertainty sets; without the decomposition none of them applies to a GRC.

The two halves of the decomposition are genuinely different objects. Line (a) is familiar. Lines (bs_ss​) are not: they measure the distance from a linear image of a ball to the recessive cone, and that is the function

Ψ(M)=max⁡{dist(Me,KF):e∈KE, ∥e∥E≤1}\Psi(\mathcal{M}) = \max\bigl\{\mathrm{dist}(\mathcal{M}e, \mathbf{K}^F) : e \in \mathbf{K}^E,\ \|e\|_E \le 1\bigr\}Ψ(M)=max{dist(Me,KF):e∈KE, ∥e∥E​≤1}

of §11.4, which is almost a norm on linear maps — nonnegative, positively homogeneous, subadditive, but neither symmetric nor strictly positive. Proposition 11.4.1 says this function is self-dual in the precise sense that Ψ\PsiΨ of a map with respect to a setup equals Ψ\PsiΨ of the adjoint map with respect to the dual setup: dual norms, dual cones, source and destination exchanged. That single identity is what lets every bound on Ψ\PsiΨ be computed on whichever side of the duality is tractable, and it is the engine of §11.4's tractability results.

The recessive cone results are the vocabulary. The one that earns its place is Rec{u:Au−b∈K}={h:Ah∈K}\mathrm{Rec}\{u : Au - b \in \mathbf{K}\} = \{h : Ah \in \mathbf{K}\}Rec{u:Au−b∈K}={h:Ah∈K}: the conic sets of this book are all of that form, so it says the recessive cone of every constraint in sight is computed by deleting the constant term.

Difficulty

The goal is an equivalence and the two directions are asymmetric.

Forward — GRC implies the system — is where the recessive cone is discovered rather than used. Fix ζˉ∈Z\bar\zeta \in \mathcal{Z}ζˉ​∈Z and ζs\zeta^sζs in the unit ball of Ls\mathcal{L}^sLs, and run ζi=ζˉ+i ζs\zeta_i = \bar\zeta + i\,\zeta^sζi​=ζˉ​+iζs out along the cone. The GRC bounds the distance to Q\mathbf{Q}Q by αsi\alpha_s iαs​i, so there are qi∈Qq_i \in \mathbf{Q}qi​∈Q with ∥P(y,ζˉ)+iΦ(y)Esζs−qi∥Q≤αsi\|P(y,\bar\zeta) + i\Phi(y)E_s\zeta^s - q_i\|_{\mathbf{Q}} \le \alpha_s i∥P(y,ζˉ​)+iΦ(y)Es​ζs−qi​∥Q​≤αs​i; the rescaled points qi/iq_i/iqi​/i stay bounded, and a limit point of them lies in Rec(Q)\mathrm{Rec}(\mathbf{Q})Rec(Q) by the limit characterization of the recessive cone. This is a genuine compactness argument, and it is why the recessive cone — not Q\mathbf{Q}Q — is what appears in lines (bs_ss​).

Backward is a decomposition-and-assemble: split each ζs=ζˉs+δs\zeta^s = \bar\zeta^s + \delta^sζs=ζˉ​s+δs with ζˉs∈Zs\bar\zeta^s \in \mathcal{Z}^sζˉ​s∈Zs, δs∈Ls\delta^s \in \mathcal{L}^sδs∈Ls realizing the distance, get a point of Q\mathbf{Q}Q from line (a) and a recession direction from each line (bs_ss​), and add them — using that Q+Rec(Q)⊆Q\mathbf{Q} + \mathrm{Rec}(\mathbf{Q}) \subseteq \mathbf{Q}Q+Rec(Q)⊆Q.

Proposition 11.4.1 is a chain of polarity identities: the polar of X+KX + KX+K is Xo∩(−K∗)X^o \cap (-K_*)Xo∩(−K∗​) for compact convex XXX containing the origin, the polar of a norm ball of radius α\alphaα is the dual-norm ball of radius 1/α1/\alpha1/α, and bipolarity. Each step is standard and the composition is not.

Formalization scope

Built on the module published by the third mission of this series, which carries the linear-case globalized robust counterpart and the dual cone. New here: norms as functions with their defining properties, dual norms, the two distances, the recessive cone, the conic GRC, and the function Ψ\PsiΨ.

Conventions committed to:

  • Norms are functions carrying an explicit predicate, not typeclass instances. Chapter 11 quantifies over arbitrary norms ∥⋅∥Q\|\cdot\|_{\mathbf{Q}}∥⋅∥Q​ and ∥⋅∥s\|\cdot\|_s∥⋅∥s​ on fixed coordinate spaces, and a statement must be able to range over them; a typeclass instance would fix one norm per type. IsNormOn bundles definiteness, absolute homogeneity and the triangle inequality, and nonnegativity follows from them.
  • The dual norm is a predicate, not a construction. ∥f∥∗=sup⁡{fTe:∥e∥≤1}\|f\|^* = \sup\{f^Te : \|e\| \le 1\}∥f∥∗=sup{fTe:∥e∥≤1} is asserted as a least upper bound of the set of values, so no supremum is taken on faith.
  • Distances are infima, not minima. The source writes min⁡\minmin, which is correct because the sets are closed; writing inf⁡\infinf avoids carrying an attainment proof into every statement, and agrees with the minimum whenever the source's own hypotheses hold.
  • The recessive cone is indexed by a base point. Definition 11.3.1 defines it at an arbitrary xˉ∈Q\bar x \in \mathbf{Q}xˉ∈Q and then asserts independence of the choice; that assertion is one of the published items, so the definition cannot presuppose it.
  • The perturbation is carried as a family of blocks, ζ=(ζ1,…,ζS)\zeta = (\zeta^1,\ldots,\zeta^S)ζ=(ζ1,…,ζS) with ζs∈RLs\zeta^s \in \mathcal{R}^{L_s}ζs∈RLs​, rather than as a single vector in RL\mathcal{R}^LRL together with the embeddings EsE_sEs​. This is the same data and removes the index bookkeeping of EsE_sEs​ from every statement.
  • Ψ\PsiΨ is a predicate on a real number, as for the dual norm and for the same reason.
  • §11.2 and §11.5 are out of scope: the definition of a tight safe approximation of a GRC and the worked analysis of nonexpansive dynamical systems. The first is a definition the chapter uses only to phrase §11.4's programme, the second an application.

Selected references

  • A. Ben-Tal, L. El Ghaoui and A. Nemirovski, Robust Optimization, Princeton University Press, 2009. Chapter 11, §§11.1, 11.3-11.4, pp. 281-294; Chapter 3 for the linear case. https://doi.org/10.1515/9781400831050
  • A. Ben-Tal, S. Boyd and A. Nemirovski, Extending scope of robust optimization: comprehensive robust counterparts of uncertain problems, Mathematical Programming 107 (2006), 63-89. https://doi.org/10.1007/s10107-005-0679-z
  • R. T. Rockafellar, Convex Analysis, Princeton University Press, 1970. https://doi.org/10.1515/9781400873173
8 thms4 active usersReviewed
🏆Completed
Convex OptimizationMachine Learning·Captain: mikedeng1

Introduction to Online Convex Optimization I: Learning from Expert Advice and the Hedge AlgorithmTextbook

Motivation

Consider a decision maker who must choose, at each of TTT rounds, between two actions on the advice of NNN "experts," none of which is known in advance to be reliable. This is the prediction-from-expert-advice problem, introduced by Littlestone and Warmuth [Littlestone & Warmuth, The Weighted Majority Algorithm, FOCS 1989/Inf. Comput. 1994] and generalized to real-valued losses by Freund and Schapire's Hedge algorithm [Freund & Schapire, A decision-theoretic generalization of on-line learning and an application to boosting, JCSS 1997]. It is one of the two founding problems of online learning (the other being universal portfolio selection, also introduced in this book's first chapter) and the historical origin of the multiplicative-weights update method, later recognized as a single algorithmic idea underlying results across game theory, optimization, and computational complexity [Arora, Hazan & Kale, The Multiplicative Weights Update Method: a Meta-Algorithm and Applications, Theory of Computing 2012]. This mission formalizes the chapter's three central guarantees: a matching deterministic lower bound, the Weighted Majority mistake bound, and Hedge's loss bound — the earliest instance, in the book's own development, of the "online convex optimization" phenomenon that its later chapters generalize to arbitrary convex losses.

Setting

At each round t=1,…,Tt = 1, \dots, Tt=1,…,T, a decision maker chooses one of two actions, AAA or BBB. After the choice, the true outcome for that round is revealed, and any action that disagrees with it is charged a mistake. NNN experts also each commit to a prediction every round, and the decision maker may consult their record.

The Weighted Majority (WM) algorithm maintains a weight Wt(i)W_t(i)Wt​(i) for each expert iii, initialized to W1(i)=1W_1(i) = 1W1​(i)=1. It predicts whichever action currently carries at least half the total weight, and after seeing the outcome, multiplies the weight of every expert who erred by (1−ε)(1-\varepsilon)(1−ε) for a fixed parameter ε∈(0,1/2)\varepsilon \in (0, 1/2)ε∈(0,1/2), leaving correct experts' weights unchanged. MTM_TMT​ denotes the algorithm's own mistake count through round TTT, and MT(i)M_T(i)MT​(i) expert iii's.

The Randomized Weighted Majority (RWM) algorithm uses the same weights, but instead of following the majority it samples an expert with probability proportional to its weight, pt(i)=Wt(i)/∑jWt(j)p_t(i) = W_t(i) / \sum_j W_t(j)pt​(i)=Wt​(i)/∑j​Wt​(j), and follows that expert's prediction; E[MT]\mathbb E[M_T]E[MT​] is its expected mistake count.

Hedge generalizes further, from binary mistakes to arbitrary non-negative real-valued losses ℓt(i)≥0\ell_t(i) \ge 0ℓt​(i)≥0 suffered by expert iii at round ttt. It samples expert iti_tit​ with probability xt(i)=Wt(i)/∑jWt(j)x_t(i) = W_t(i)/\sum_j W_t(j)xt​(i)=Wt​(i)/∑j​Wt​(j) from weights updated multiplicatively in the loss, Wt+1(i)=Wt(i) e−εℓt(i)W_{t+1}(i) = W_t(i) \, e^{-\varepsilon \ell_t(i)}Wt+1​(i)=Wt​(i)e−εℓt​(i). Writing losses and the mixed strategy as vectors, the algorithm's expected loss at round ttt is xt⊤ℓtx_t^\top \ell_txt⊤​ℓt​.

Formalization targets

Goal — Theorem 1.5 (Hedge's loss bound)

∑t=1Txt⊤ℓt  ≤  ∑t=1Tℓt(i⋆)  +  ε∑t=1Txt⊤ℓt2  +  log⁡Nε,∀ i⋆∈[N],\sum_{t=1}^T x_t^\top \ell_t \;\le\; \sum_{t=1}^T \ell_t(i^\star) \;+\; \varepsilon \sum_{t=1}^T x_t^\top \ell_t^2 \;+\; \frac{\log N}{\varepsilon}, \qquad \forall\, i^\star \in [N],t=1∑T​xt⊤​ℓt​≤t=1∑T​ℓt​(i⋆)+εt=1∑T​xt⊤​ℓt2​+εlogN​,∀i⋆∈[N],

where ℓt2(i):=ℓt(i)2\ell_t^2(i) := \ell_t(i)^2ℓt2​(i):=ℓt​(i)2. This is the chapter's most general result and the one the book reuses later on; it leaves ε\varepsilonε free (no asymptotic tuning), so it survives whatever later chapters do with ε\varepsilonε.

Milestones

  • Theorem 1.1 (deterministic lower bound). With L≤T/2L \le T/2L≤T/2 the best expert's mistake count, no deterministic algorithm can guarantee fewer than 2L2L2L mistakes on every instance.
  • Lemma 1.3 (Weighted Majority): MT≤2(1+ε)MT(i)+2log⁡N/εM_T \le 2(1+\varepsilon) M_T(i) + 2\log N/\varepsilonMT​≤2(1+ε)MT​(i)+2logN/ε for every expert iii.
  • Lemma 1.4 (Randomized Weighted Majority): E[MT]≤(1+ε)MT(i)+log⁡N/ε\mathbb E[M_T] \le (1+\varepsilon) M_T(i) + \log N /\varepsilonE[MT​]≤(1+ε)MT​(i)+logN/ε for every expert iii.

Significance

Theorem 1.1 shows the mistake-bound question has no trivial answer: even against only two maximally simple experts, any deterministic strategy is beaten by a factor of 222 by an adversary who knows its code. Lemmas 1.3 and 1.4 show this factor is essentially removable — first by relaxing "guarantee" to "guarantee in expectation" (RWM halves the deterministic penalty from 2(1+ε)2(1+\varepsilon)2(1+ε) to (1+ε)(1+\varepsilon)(1+ε)), then Theorem 1.5 removes the binary-mistake restriction altogether, replacing it with an explicit second-moment correction term ε∑txt⊤ℓt2\varepsilon \sum_t x_t^\top \ell_t^2ε∑t​xt⊤​ℓt2​ that vanishes as losses shrink. Together they trace the chapter's own narrative arc from "no algorithm beats 2L2L2L" to "an explicit, parameter-free family of algorithms gets within (1+ε)(1+\varepsilon)(1+ε) of the best expert for any ε\varepsilonε." All four results are proved by the book via the same device — a potential function Φt=∑iWt(i)\Phi_t = \sum_i W_t(i)Φt​=∑i​Wt​(i) — one of the first instances of the potential-function method that recurs throughout the rest of the book (e.g. Online Gradient Descent's regret proof) and throughout online learning generally. None of these four statements, in this exact form, has a formalized proof on Prove2Me or (to the extent searchable) elsewhere: the platform's closest existing result, BanditAlgorithm.ftrl_simplex_exp_weights_regret (see Formalization scope below), proves an asymptotically similar bound by an entirely different route and under a different loss model.

Difficulty

The natural first attempt at any of these bounds is to track MTM_TMT​ (or E[MT]\mathbb E[M_T]E[MT​], or ∑txt⊤ℓt\sum_t x_t^\top \ell_t∑t​xt⊤​ℓt​) directly and induct on TTT; this fails because the quantity itself has no useful recursive structure — knowing the algorithm's mistake count through round ttt says nothing about round t+1t+1t+1's outcome, which the adversary chooses to inflict maximum damage. The proofs instead introduce an auxiliary potential Φt=∑iWt(i)\Phi_t = \sum_i W_t(i)Φt​=∑i​Wt​(i) that is not the quantity being bounded, track it in two directions — an upper bound in terms of the algorithm's own performance (using 1+x≤ex1+x \le e^x1+x≤ex, or, for Hedge, e−x≤1−x+x2e^{-x} \le 1-x+x^2e−x≤1−x+x2 for x≥0x \ge 0x≥0) and a lower bound via the single best expert's weight, WT(i⋆)≤ΦTW_T(i^\star) \le \Phi_TWT​(i⋆)≤ΦT​ — and only convert back to the mistake/loss bound at the very end via one logarithm. Getting the direction of every inequality right (each of the four proofs chains four or five inequalities, each valid only in the stated parameter range) is the entire difficulty; there is no shortcut that avoids introducing Φt\Phi_tΦt​.

Formalization scope

Each algorithm is represented as a Prop-valued run predicate parametrizing over the weight sequence, the input (expert predictions/losses and true outcomes), and the algorithm's own output (predictions or mixed strategy), rather than as an executable program: IsHedgeRun fixes W 0 i = 1, the update W (t+1) i = W t i * exp(-ε * ℓ t i), and x t i = W t i / ∑ j, W t j; IsWeightedMajorityRun additionally fixes the majority-vote prediction rule explicitly (per the triage rubric, the algorithm is part of the audited statement here, not a black box the proof is free to instantiate). Randomization in RWM and Hedge is captured exactly as the book itself does — as a deterministic expectation, i.e. the inner product of the probability vector with the {0,1}-mistake or loss vector — rather than as a measure-theoretic random variable; the book's own Section 1.3.3 makes this identification explicit ("denote in vector notation the expected loss of the algorithm by E[ℓt(it)]=xt⊤ℓt\mathbb E[\ell_t(i_t)] = x_t^\top \ell_tE[ℓt​(it​)]=xt⊤​ℓt​"), so no probability space is introduced. Theorem 1.1's "deterministic algorithm" is a causal map from an outcome history to a prediction (prediction at round ttt depends only on outcomes before ttt), instantiated at the book's own two-expert construction (one expert always predicts AAA, the other always BBB) rather than a fully general NNN-expert adversary argument — a strictly weaker instance of the general claim, but the exact one the book's proof establishes, so no scope is lost relative to what is proved. ε\varepsilonε is kept as an explicit free parameter throughout, per the book's own presentation (no substitution of the corollary's optimized ε⋆=log⁡N/MT(i⋆)\varepsilon^\star = \sqrt{\log N / M_T(i^\star)}ε⋆=logN/MT​(i⋆)​ into the milestone statements).

A trivializing formalization to rule out: fixing N=1N = 1N=1 (a single expert) would make Lemmas 1.3–1.5 hold vacuously with MT=MT(i)M_T = M_T(i)MT​=MT​(i) regardless of the potential-function argument; every formal statement here quantifies over an unconstrained N:NN : \mathbb NN:N with N>0N > 0N>0, not a hard-coded small case.

The mission needs no Mathlib infrastructure beyond finite sums, Real.log, and Real.exp; the book's own OCO protocol and regret definition (§1.1) are not needed, since this chapter's proofs work directly with mistake/loss counts (per the chunk brief). BanditAlgorithm.ftrl_simplex_exp_weights_regret (Bandit Algorithms XII, Prop. 28.7, arXiv:2003.05963 §28) proves Rn≤2nlog⁡dR_n \le \sqrt{2n\log d}Rn​≤2nlogd​ for exponential weights on the simplex against [0,1][0,1][0,1]-valued losses, via an FTRL/mirror-descent instantiation — the same asymptotic phenomenon as Theorem 1.5, but a different proof technique, a different (bounded, not merely non-negative) loss assumption, and stated for simplex-comparator regret rather than the per-expert loss comparator here; it is listed as a reference/comparison point, not reused.

Selected references

  • N. Littlestone, M. Warmuth, The Weighted Majority Algorithm, FOCS 1989 / Information and Computation 108(2), 1994. https://doi.org/10.1006/inco.1994.1009
  • Y. Freund, R. Schapire, A Decision-Theoretic Generalization of On-Line Learning and an Application to Boosting, Journal of Computer and System Sciences 55(1), 1997. https://doi.org/10.1006/jcss.1997.1504
  • S. Arora, E. Hazan, S. Kale, The Multiplicative Weights Update Method: a Meta-Algorithm and Applications, Theory of Computing 8(1), 2012. https://doi.org/10.4086/toc.2012.v008a006
  • E. Hazan, Introduction to Online Convex Optimization, 2nd ed., arXiv:1909.05207v3, Chapter
    1. https://arxiv.org/abs/1909.05207
9 thms4 active usersReviewed
🏆Completed
Convex OptimizationLinear OptimizationOperations Research+1·Captain: mikedeng1

Introduction to Stochastic Programming I: Convexity, Attainment and Optimality of the Two-Stage Recourse ProblemTextbook

Motivation

Two-stage stochastic linear programming with recourse models a decision made before uncertainty resolves (the first-stage variables xxx) followed by a corrective decision made after (the second-stage, or recourse, variables yyy). Solving such a program means minimizing cTx+Q(x)c^{\mathsf T}x + Q(x)cTx+Q(x), where Q(x)Q(x)Q(x) is the expected cost of the best recourse action given xxx -- an object defined only implicitly, as the value of an embedded linear program that must be solved (or bounded) for every realization of the uncertain data. Before any algorithm for this problem can be justified -- the L-shaped method, stochastic decomposition, scenario decomposition, all developed in later chapters of Birge & Louveaux, Introduction to Stochastic Programming (Springer, 2011) -- one needs to know that QQQ is well-behaved enough to optimize over at all: that the feasible region is closed and convex, that QQQ itself is a finite, Lipschitz, convex function on it, that an optimal solution is actually attained rather than only approached in the limit, and finally what an optimality condition for the resulting nonsmooth convex program even looks like. This mission formalizes exactly that foundational layer, Chapter 3, Section 3.1 of the book.

Setting

Fix natural numbers n1,n2,m1,m2n_1, n_2, m_1, m_2n1​,n2​,m1​,m2​ and a finite scenario count KKK. A two-stage recourse instance consists of first-stage data A∈Rm1×n1A \in \mathbb{R}^{m_1 \times n_1}A∈Rm1​×n1​, b∈Rm1b \in \mathbb{R}^{m_1}b∈Rm1​, c∈Rn1c \in \mathbb{R}^{n_1}c∈Rn1​, a fixed recourse matrix W∈Rm2×n2W \in \mathbb{R}^{m_2 \times n_2}W∈Rm2​×n2​, and, for each scenario k=1,…,Kk = 1,\dots,Kk=1,…,K, a cost vector qk∈Rn2q_k \in \mathbb{R}^{n_2}qk​∈Rn2​, a right-hand side hk∈Rm2h_k \in \mathbb{R}^{m_2}hk​∈Rm2​, a technology matrix Tk∈Rm2×n1T_k \in \mathbb{R}^{m_2 \times n_1}Tk​∈Rm2​×n1​, and a probability pk≥0p_k \ge 0pk​≥0 with ∑kpk=1\sum_k p_k = 1∑k​pk​=1 (Eq. (1.1)). The first-stage feasible region is K1={x∣Ax=b, x≥0}K_1 = \{x \mid Ax = b,\ x \ge 0\}K1​={x∣Ax=b, x≥0}.

For a fixed xxx and scenario kkk, the second-stage value is

Q(x,ξk)=min⁡y{qkTy∣Wy=hk−Tkx, y≥0}Q(x,\xi_k) = \min_{y}\{q_k^{\mathsf T}y \mid Wy = h_k - T_k x,\ y \ge 0\}Q(x,ξk​)=ymin​{qkT​y∣Wy=hk​−Tk​x, y≥0}

(Eq. (1.6)), taken as an extended real: +∞+\infty+∞ if no feasible yyy exists, −∞-\infty−∞ if the inner program is unbounded below. The expected recourse value is Q(x)=∑kpk Q(x,ξk)Q(x) = \sum_k p_k\, Q(x,\xi_k)Q(x)=∑k​pk​Q(x,ξk​) (Eq. (1.3)), combined so that +∞+(−∞)=+∞+\infty + (-\infty) = +\infty+∞+(−∞)=+∞ -- the book's own convention (p. 109): infeasibility in one scenario is treated as fatal even if another scenario is unboundedly favorable. The second-stage feasibility set is K2={x∣Q(x)<∞}K_2 = \{x \mid Q(x) < \infty\}K2​={x∣Q(x)<∞}, and the deterministic-equivalent objective is z(x)=cTx+Q(x)z(x) = c^{\mathsf T}x + Q(x)z(x)=cTx+Q(x) (Eq. (1.2)). For xxx with Q(x)Q(x)Q(x) finite, the subdifferential ∂Q(x)\partial Q(x)∂Q(x) is the set of η\etaη satisfying Q(x)+ηT(y−x)≤Q(y)Q(x) + \eta^{\mathsf T}(y-x) \le Q(y)Q(x)+ηT(y−x)≤Q(y) for every yyy (p. 115).

A simple-recourse instance is the special case W=[I,−I]W = [I,-I]W=[I,−I]: the recourse cost splits as q=(q+,q−)q = (q^+,q^-)q=(q+,q−), and Q(x)Q(x)Q(x) decomposes componentwise via the closed form of Eq. (1.9)-(1.10) using the (left- and right-limit) distribution functions Fi−,Fi+F_i^-, F_i^+Fi−​,Fi+​ of each hih_ihi​.

Formalization targets

Goal -- Chapter 3, Theorem 9 (p. 116)

x∗∈K1 is optimal in (1.2)  ⟺  ∃ λ∗∈Rm1, μ∗∈R≥0n1, (μ∗)Tx∗=0,  s.t. −c+ATλ∗+μ∗∈∂Q(x∗),x^* \in K_1 \text{ is optimal in (1.2)} \iff \exists\, \lambda^* \in \mathbb{R}^{m_1},\ \mu^* \in \mathbb{R}^{n_1}_{\ge 0},\ (\mu^*)^{\mathsf T}x^* = 0,\ \text{ s.t. } -c + A^{\mathsf T}\lambda^* + \mu^* \in \partial Q(x^*),x∗∈K1​ is optimal in (1.2)⟺∃λ∗∈Rm1​, μ∗∈R≥0n1​​, (μ∗)Tx∗=0,  s.t. −c+ATλ∗+μ∗∈∂Q(x∗),

given that (1.2) has a finite optimal value. This is the KKT-style necessary and sufficient optimality condition for the two-stage recourse LP, and the weakest of the mission's targets in the sense that everything else supports it: convexity and finiteness of QQQ (Theorem 6) are what make the left-to-right implication meaningful, closedness/convexity of K2K_2K2​ (Theorem 5) makes the feasible region well-posed, and attainment (Theorem 8) is what makes "x∗x^*x∗ is optimal" a statement about a point that exists rather than an infimum that may not be reached.

Supporting milestones

  • Theorem 5(a) (p. 111): K2K_2K2​ is closed and convex.
  • Theorem 6(a) (p. 112): QQQ is finite on K2K_2K2​, and Lipschitzian and convex there.
  • Theorem 8 (p. 115): under boundedness of K1∩K2K_1 \cap K_2K1​∩K2​ or eventual linearity of QQQ along recession directions, a finite optimal value is attained.
  • Corollary 10 (p. 116): Theorem 9 specialized to simple recourse, with ∂Q(x∗)\partial Q(x^*)∂Q(x∗) replaced by its explicit componentwise description.

Significance

Theorem 9 is the hinge on which the rest of the book's algorithmic chapters turn. The L-shaped method (Chapter 5) is a cutting-plane scheme whose cuts are literally elements of ∂Q(x)\partial Q(x)∂Q(x); stochastic decomposition and sampling-based methods use the same subdifferential structure with estimated cuts; the differentiable specialization (Eq. (1.14), c+∇Q(x∗)=ATλ∗+μ∗c + \nabla Q(x^*) = A^{\mathsf T}\lambda^* + \mu^*c+∇Q(x∗)=ATλ∗+μ∗) underlies nonlinear-programming approaches to the smooth case. None of this is meaningful without first knowing QQQ is convex, finite where it needs to be, and that a minimizer exists to characterize. Formalizing this mission's four milestones from the actual definition of QQQ as an embedded linear program's value -- rather than assuming these properties -- is exactly the content the book itself proves (or, for Theorem 6, explicitly cites to Wets [1972] and Kall [1976] rather than proving); this mission asks for genuine Lean proofs of Theorems 5, 8, 9 and Corollary 10 from the LP structure of QQQ, and records Theorem 6 as a stated (not re-derived) input, matching the book's own presentation.

Difficulty

The obvious shortcut is to treat QQQ as an opaque convex function and apply a textbook convex-KKT theorem off the shelf. This fails to capture what Theorem 9 actually is: a statement about the specific function Q(x)=∑kpkmin⁡y{qkTy∣Wy=hk−Tkx, y≥0}Q(x) = \sum_k p_k \min_y\{q_k^{\mathsf T}y \mid Wy = h_k - T_k x,\ y \ge 0\}Q(x)=∑k​pk​miny​{qkT​y∣Wy=hk​−Tk​x, y≥0}, built from finitely many parametric linear programs, each of which can be infeasible (Q(x,ξk)=+∞Q(x,\xi_k) = +\inftyQ(x,ξk​)=+∞) or unbounded (Q(x,ξk)=−∞Q(x,\xi_k) = -\inftyQ(x,ξk​)=−∞) depending on xxx. Convexity of QQQ must come from convexity of the value function of a parametric LP in its right-hand side (the book's Theorem 2 argument: a convex combination of optimal solutions at two right-hand sides is feasible, hence suboptimal, at the combined right-hand side) -- not from an assumed hypothesis. Handling ±∞\pm\infty±∞ correctly is a second, easy-to-miss source of error: the book fixes an explicit, non-default convention (+∞+\infty+∞ dominates −∞-\infty−∞) for combining per-scenario values, the opposite of the convention Mathlib's own extended-real arithmetic uses, so any formalization that reaches for EReal's built-in addition to aggregate QQQ silently states a different theorem. Theorem 8's attainment condition is a genuine existence result, not an automatic consequence of convexity: continuity alone does not give attainment on an unbounded feasible region, and the book's own counterexample (Eq. (1.11), a negative-exponential tail with infimum 000 attained by no finite xxx) shows the boundedness/recession hypotheses are load-bearing.

Formalization scope

The scenario set is modeled as Fin K, a finite discrete random variable, matching Section 3.1b's development; under this model "ξ\xiξ has finite second moments" (the standing hypothesis of Theorems 4-11 in the general, possibly-continuous case) holds automatically and so does not appear as a separate hypothesis anywhere in this mission. Q(x,\xi_k) is defined as an EReal via sInf of the second-stage LP's feasible objective values -- sInf of the empty set is ⊤, and of a set unbounded below is ⊥ -- and is genuinely derived from that inner minimization rather than assumed convex; this rules out the chapter's trivializing formalization, which the paper-level triage explicitly warns against: taking Q(x) as an opaque convex-function hypothesis instead of deriving its properties from the inner LP's structure. Aggregating the KKK per-scenario values into Q(x)Q(x)Q(x) uses a bespoke bookAdd operation implementing the book's stated convention +∞+(−∞)=+∞+\infty+(-\infty)=+\infty+∞+(−∞)=+∞, since Mathlib's EReal addition is defined with the opposite convention (⊥+⊤=⊤+⊥=⊥\bot+\top=\top+\bot=\bot⊥+⊤=⊤+⊥=⊥). ∂Q(x)\partial Q(x)∂Q(x) is the ordinary subgradient-inequality set for this extended-real-valued function.

Theorem 8's condition (b) is stated with the book's own quantifier structure: the threshold λˉ\bar\lambdaλˉ and the recession value depend on the point xxx and direction vvv exactly as written, with no strengthening. Theorem 6(a)'s Lipschitz bound is stated, not derived -- the book itself cites it to Wets [1972] and Kall [1976] without proof -- so a faithful Lean proof of that milestone is expected to remain out of scope for this mission. Corollary 10 similarly takes the closed form of ∂Qi(x)\partial Q_i(x)∂Qi​(x) from Eq. (1.10) as a hypothesis on an abstract QQQ, matching how the book itself uses (1.10) as an already-established fact rather than re-deriving it from the second-stage LP in the corollary's own proof. Theorem 11's subdifferential-decomposition result (∂Q(x)=Eω[∂Q(x,ξ(ω))]+N(K2,x)\partial Q(x) = E_\omega[\partial Q(x,\xi(\omega))] + N(K_2,x)∂Q(x)=Eω​[∂Q(x,ξ(ω))]+N(K2​,x)) is deliberately left out of this mission's scope: it is not needed by Theorem 9's own proof, and its normal-cone term would require relatively-complete-recourse machinery this mission does not otherwise need. No prior-art match was found on the platform: VectorSpaceOpt.fenchel_duality and the Luenberger-derived VectorSpaceOpt.generalized_kuhn_tucker / kkt_complementary_slackness family use a differentiable (Gateaux-derivative) or conjugate-function KKT model over general normed spaces, not this chapter's finite-dimensional, possibly-nondifferentiable subgradient formulation over the specific polyhedral set K1K_1K1​, so none is a faithful match and all items here are original drafts.

Selected references

  • J.R. Birge and F. Louveaux, Introduction to Stochastic Programming, 2nd ed., Springer Series in Operations Research and Financial Engineering, Springer, 2011. https://doi.org/10.1007/978-1-4614-0237-4
  • R.J-B. Wets, "Programming Under Uncertainty: The Equivalent Convex Program," SIAM Journal on Applied Mathematics 14 (1966), 89-105 (Lipschitz continuity of the recourse function, cited by the book as Wets [1972] for the closely related result used in Theorem 6). https://doi.org/10.1137/0114008
  • D.P. Walkup and R.J-B. Wets, "Stochastic Programs with Recourse," SIAM Journal on Applied Mathematics 15 (1967), 1299-1314 (finiteness of the recourse function and coincidence of the possibility and expectation feasibility sets, underlying Proposition 3 and Theorem 4). https://doi.org/10.1137/0115113
8 thms4 active usersReviewed
🏆Completed
Linear OptimizationTheoretical Computer Science·Captain: moutei

Primal-Dual Online Algorithms II: Finite LP Duality and Complementary SlacknessTextbook

Motivation

Almost every competitive online algorithm built by the primal-dual method rests on the same two facts about a pair of linear programs. The first is weak duality: any feasible solution of the dual is a lower bound on any feasible solution of the primal. The second is complementary slackness: if a feasible primal-dual pair satisfies a local, per-coordinate tightness condition, the pair is optimal — and if it satisfies that condition only up to factors α\alphaα and β\betaβ, the primal is within αβ\alpha\betaαβ of optimal.

The second fact in its approximate form is the engine of the whole method. An online algorithm cannot compute an optimum; what it can do is maintain a primal solution and a dual solution side by side so that each new request preserves an approximate tightness invariant. The approximate complementary slackness theorem then converts that local invariant into a global competitive ratio, with no reference to the optimum at all. Chapter 2 of Buchbinder's thesis states it as the background result on which the rest of the work is built.

Setting

Fix finite index types III (primal variables) and JJJ (primal constraints), a matrix A:I×J→RA : I \times J \to \mathbb{R}A:I×J→R, a cost vector c:I→Rc : I \to \mathbb{R}c:I→R and a right-hand side b:J→Rb : J \to \mathbb{R}b:J→R. The covering primal and packing dual are

(P)min⁡∑icixi  s.t.  ∑iAijxi ≥ bj  (∀j),x≥0,(P)\quad \min \sum_{i} c_i x_i \ \text{ s.t. } \ \sum_{i} A_{ij} x_i \ \ge\ b_j \ \ (\forall j), \qquad x \ge 0,(P)mini∑​ci​xi​  s.t.  i∑​Aij​xi​ ≥ bj​  (∀j),x≥0, (D)max⁡∑jbjyj  s.t.  ∑jAijyj ≤ ci  (∀i),y≥0.(D)\quad \max \sum_{j} b_j y_j \ \text{ s.t. } \ \sum_{j} A_{ij} y_j \ \le\ c_i \ \ (\forall i), \qquad y \ge 0.(D)maxj∑​bj​yj​  s.t.  j∑​Aij​yj​ ≤ ci​  (∀i),y≥0.

Note the index convention: AijA_{ij}Aij​ carries the primal-variable index first, so the primal constraint indexed by jjj sums over iii and the dual constraint indexed by iii sums over jjj.

Given α,β≥1\alpha, \beta \ge 1α,β≥1, the pair (x,y)(x,y)(x,y) satisfies approximate complementary slackness when

  • primal side: for every iii with xi>0x_i > 0xi​>0, ci/α ≤ ∑jAijyj ≤ ci\quad c_i/\alpha \ \le\ \sum_j A_{ij} y_j \ \le\ c_ici​/α ≤ ∑j​Aij​yj​ ≤ ci​;
  • dual side: for every jjj with yj>0y_j > 0yj​>0, bj ≤ ∑iAijxi ≤ β bj\quad b_j \ \le\ \sum_i A_{ij} x_i \ \le\ \beta\, b_jbj​ ≤ ∑i​Aij​xi​ ≤ βbj​.

Formalization targets

Goal — approximate complementary slackness

For a primal-feasible xxx, a dual-feasible yyy, and α,β≥1\alpha,\beta \ge 1α,β≥1 satisfying the two conditions above,

∑icixi ≤ αβ∑jbjyj.\sum_{i} c_i x_i \ \le\ \alpha\beta \sum_{j} b_j y_j .i∑​ci​xi​ ≤ αβj∑​bj​yj​.

Taking α=β=1\alpha = \beta = 1α=β=1 recovers exact complementary slackness and hence optimality of both members of the pair. The goal is stated with the source's hypotheses, including the two-sided bounds, rather than the weakest hypotheses that make the inequality go through; a separate item records the minimal-hypothesis strengthening.

Weak duality

∑jbjyj ≤ ∑icixifor every feasible x and y,\sum_j b_j y_j \ \le\ \sum_i c_i x_i \quad \text{for every feasible } x \text{ and } y,j∑​bj​yj​ ≤ i∑​ci​xi​for every feasible x and y,

with no nonnegativity assumption on AAA, bbb or ccc beyond feasibility itself.

Strong duality — imported, not reproved

Strong duality is not proved in this mission. The platform already carries LinearOptimization.lp_strong_duality, proved in this exact environment, for linear programs in Bertsimas–Tsitsiklis general form over Fin-indexed data. This mission's contribution is an adapter: from a primal optimum of (P)(P)(P), produce a dual optimum of (D)(D)(D) of equal value, for Fin-indexed instances. Reference items point at the imported theorem, its dual construction, and the dual-of-dual identity.

The biconditional — a dual optimum exists if and only if a primal optimum does — is deliberately left open. Weak duality does not derive the existence of a primal optimum from the existence of a dual one; the reverse implication needs strong duality applied to the dual program together with the dual-of-dual identity, and that reduction is not yet compiled. It is offered as a parallel target rather than claimed as established.

Significance

This mission is the foundation of the series. Every later mission — set cover, ski rental, and the online covering and packing problems that follow — states its approximation or competitiveness result as an instance of approximate complementary slackness. Formalizing it once, over arbitrary finite index types, is what makes the later missions short.

It also fills a real gap. Mathlib currently has no linear-programming duality: four separate attempts were closed unmerged. Approximate (α,β)(\alpha,\beta)(α,β) complementary slackness appears not to be formalized in any public library, so the goal theorem is, as far as we can determine, first of its kind.

Difficulty

The goal is a summation argument, not a deep theorem: the work is in handling the per-coordinate case split on xi>0x_i > 0xi​>0 versus xi=0x_i = 0xi​=0 and in interchanging a double sum. Three mechanical milestones isolate exactly those steps. The strong-duality adapter is the hard item, because it must reconcile two different presentations of the same program — index types, matrix orientation, and bundling all differ between our definitions and the imported theorem's.

Formalization scope

Definitions cover §2.1 of the source. Four distinct notions of "the program has a finite optimum" are separated on purpose — attained optimum, nonempty feasible set, bounded objective, and the conjunction — because the source's informal word "bounded" conflates them. The definitions are stated over arbitrary finite index types; the strong-duality items are stated only for Fin, because that is the only index type for which the imported dependency path exists.

Selected references

  • Niv Buchbinder, Designing Competitive Online Algorithms via a Primal-Dual Approach, PhD thesis, Tel Aviv University, 2008, §2.1, pp. 7–9. https://www.tau.ac.il/~nivb/download/phd-thsis.pdf
  • Dimitris Bertsimas and John N. Tsitsiklis, Introduction to Linear Optimization, Athena Scientific, 1997 — the general form used by the imported strong-duality theorem.
11 thms4 active usersReviewed
🏆Completed
Convex OptimizationOperations Research·Captain: Shuze Chen

Convex Optimization V: Newton's MethodTextbook

The classical convergence theory of smooth convex minimization. For a function that is mmm-strongly convex and MMM-smooth (mI⪯∇2f(x)⪯MImI \preceq \nabla^2 f(x) \preceq MImI⪯∇2f(x)⪯MI), gradient descent converges linearly, while Newton's method exhibits its famous two phases: a damped phase in which every backtracking step decreases the objective by a fixed amount γ\gammaγ, and a quadratically convergent phase in which the scaled gradient norm squares at each step, L2m2∥∇f(x+)∥2≤(L2m2∥∇f(x)∥2)2\tfrac{L}{2m^2}\lVert \nabla f(x^{+})\rVert_2 \le \bigl(\tfrac{L}{2m^2}\lVert \nabla f(x)\rVert_2\bigr)^22m2L​∥∇f(x+)∥2​≤(2m2L​∥∇f(x)∥2​)2. Together they give the iteration count of B&V (9.36),

#iterations  ≤  f(x(0))−p⋆γ  +  log⁡2log⁡2(ε0/ε),γ=αβη2mM2,ε0=2m3L2,\#\text{iterations} \;\le\; \frac{f(x^{(0)}) - p^{\star}}{\gamma} \;+\; \log_2\log_2(\varepsilon_0/\varepsilon), \qquad \gamma = \frac{\alpha\beta\eta^2 m}{M^2}, \quad \varepsilon_0 = \frac{2m^3}{L^2},#iterations≤γf(x(0))−p⋆​+log2​log2​(ε0​/ε),γ=M2αβη2m​,ε0​=L22m3​,

with LLL the Lipschitz constant of the Hessian and α,β\alpha,\betaα,β the backtracking parameters. This mission formalizes Chapters 9–10 of Boyd & Vandenberghe with every constant exactly as printed — a quantitative theory entirely absent from Mathlib.

12 thms4 active usersReviewed
🏆Completed
Convex OptimizationOperations Research·Captain: Shuze Chen

Convex Optimization II: KKT ConditionsTextbook

The Karush–Kuhn–Tucker conditions are the central result of convex optimization: for a convex differentiable problem satisfying Slater's condition, a point is optimal exactly when primal feasibility, dual feasibility, complementary slackness and Lagrangian stationarity hold. This mission formalizes Chapters 4–5 of Boyd & Vandenberghe end to end — the first-order optimality criterion, concavity of the Lagrange dual, weak duality, Slater's strong-duality theorem with dual attainment (via the separating-hyperplane argument of §5.3.2), the saddle-point characterization, sensitivity bounds and Pareto scalarization — culminating in the full KKT characterization.

15 thms4 active usersReviewed
🏆Completed
Linear OptimizationOperations Research·Captain: Shuze Chen

Introduction to Linear Optimization XIII: Lagrangean Duality and Integer ProgrammingTextbook

Linear programming has a complete duality theory; integer programming does not — and the Lagrangean dual measures exactly how far duality reaches. This mission formalizes the duality theory of integer programming from Section 11.4 of Bertsimas–Tsitsiklis, built on the general linear programming duality of Section 4.10. For the integer program

ZIP=min⁡{c′x:Ax≥b, Dx≥d, x integer}Z_{IP} = \min\{c'x : Ax \ge b,\ Dx \ge d,\ x \text{ integer}\}ZIP​=min{c′x:Ax≥b, Dx≥d, x integer}

with integer data, the complicating constraints Ax≥bAx \ge bAx≥b are dualized with multipliers p≥0p \ge 0p≥0 over the tractable set X={x integer∣Dx≥d}X = \{x \text{ integer} \mid Dx \ge d\}X={x integer∣Dx≥d}: the dual function is

Z(p)=min⁡x∈X(c′x+p′(b−Ax))Z(p) = \min_{x \in X}\big(c'x + p'(b - Ax)\big)Z(p)=x∈Xmin​(c′x+p′(b−Ax))

and the Lagrangean dual is ZD=max⁡p≥0Z(p)Z_D = \max_{p \ge 0} Z(p)ZD​=maxp≥0​Z(p). Weak duality ZD≤ZIPZ_D \le Z_{IP}ZD​≤ZIP​ (Theorem 11.2) always holds, but strong duality can fail. The convex hull CH(X)CH(X)CH(X) of the integer points of a polyhedron with integer data is itself a polyhedron (Theorem 11.3, Meyer's theorem), and the capstone — Theorem 11.4, the central result of Section 11.4 — identifies the Lagrangean dual exactly: ZDZ_DZD​ equals the optimal cost of the linear program

min⁡{c′x:Ax≥b, x∈CH(X)}\min\{c'x : Ax \ge b,\ x \in CH(X)\}min{c′x:Ax≥b, x∈CH(X)}

. This is the geometric explanation of the strength of Lagrangean relaxation, yields the bound ordering ZLP≤ZD≤ZIPZ_{LP} \le Z_D \le Z_{IP}ZLP​≤ZD​≤ZIP​, and Corollary 11.1 characterizes exactly when the bounds collapse. The polyhedral engine is the general weak/strong duality pair (Theorems 4.17/4.18) over a primal min⁡c′x\min c'xminc′x s.t. Ax≥bAx \ge bAx≥b, x∈P={x∣Dx≥d}x \in P = \{x \mid Dx \ge d\}x∈P={x∣Dx≥d}, and the formulation-strength comparison Psub⊆PcutP_{sub} \subseteq P_{cut}Psub​⊆Pcut​ of Theorem 10.1 supplies the motivating principle that tighter relaxations of the same integer set give sharper bounds.

18 thms4 active usersReviewed
🏆Completed
Linear OptimizationOperations Research·Captain: Shuze Chen

Introduction to Linear Optimization VII: Cones, Extreme Rays, and the Resolution TheoremTextbook

How can an unbounded polyhedron be described by finitely many geometric objects? Sections 4.8-4.9 of Bertsimas-Tsitsiklis build the cone machinery: recession cones {d∣Ad≥0}\{d \mid Ad \ge 0\}{d∣Ad≥0} and their rays, extreme rays (defined, like basic solutions, by n−1n-1n−1 linearly independent active constraints), the pointedness criterion (Theorem 4.12: 000 is an extreme point of a polyhedral cone iff the cone contains no line iff nnn of the constraint vectors are linearly independent), and the characterization of unbounded linear programs (Theorems 4.13-4.14: over a pointed polyhedral cone, and then over any polyhedron with an extreme point, the optimal cost is −∞-\infty−∞ iff some extreme ray ddd has c′d<0c'd < 0c′d<0). The capstone is the resolution theorem (Theorem 4.15): a nonempty polyhedron PPP with at least one extreme point equals Q={∑iλixi+∑jθjwj∣λi≥0,θj≥0,∑iλi=1}Q = \{\sum_i \lambda_i x^i + \sum_j \theta_j w^j \mid \lambda_i \ge 0, \theta_j \ge 0, \sum_i \lambda_i = 1\}Q={∑i​λi​xi+∑j​θj​wj∣λi​≥0,θj​≥0,∑i​λi​=1} — the convex hull of its extreme points plus the cone generated by a complete set of its extreme rays. It specializes to Theorem 2.9 / Corollary 4.4 (a nonempty bounded polyhedron is the convex hull of its extreme points) and Corollary 4.5 (a pointed polyhedral cone is generated by its extreme rays). The converse, Theorem 4.16, states that every finitely generated set is a polyhedron — in particular the convex hull of finitely many vectors is a polyhedron. Together these form the Minkowski-Weyl equivalence of the two representations of polyhedra, verified absent from Mathlib and the genuine content of this mission.

21 thms4 active usersReviewed
🏆Completed
Machine LearningOperations ResearchStatistics·Captain: Shuze Chen

Matrix Completion has No Spurious Local MinimumResearch Paper

Matrix completion — recovering a low-rank matrix M=ZZ⊤M = ZZ^\topM=ZZ⊤ from a small random subset of its entries — powers recommender systems and collaborative filtering. In practice it is solved by running (stochastic) gradient descent on the non-convex objective

f(X)=min⁡X12∥PΩ(M−XX⊤)∥F2+λR(X)f(X)=\min_X\frac12\|P_\Omega(M-XX^\top)\|_F^2+\lambda R(X)f(X)=Xmin​21​∥PΩ​(M−XX⊤)∥F2​+λR(X)

where Ω={(i,j)∣Mi,j is observed}\Omega=\{(i,j)|M_{i,j} \text{ is observed}\}Ω={(i,j)∣Mi,j​ is observed} and R(X)R(X)R(X) is a certain regularizer. from a random starting point, and it just works.

Ge, Lee and Ma (NeurIPS 2016 Best student paper award) explained why: the regularized objective has no spurious local minima — every local minimum is global and exactly recovers MMM. This mission formalizes that landmark theorem in Lean 4, in its strongest known form and along its simplest known proof: the unified landscape analysis of Ge–Jin–Zheng (ICML 2017) and an improved sampling bound in Chen–Li (JMLR 2019). Conditional on an explicit good-sample predicate (which holds with high probability under Bernoulli sampling), every local minimum XXX of fff satisfies XX⊤=ZZ⊤XX^\top = ZZ^\topXX⊤=ZZ⊤.

14 thms4 active users
🏆Completed
Markov ChainOperations ResearchProbability+1·Captain: mikedeng1

Reversibility and Stochastic Networks V: Optimal Capacity Allocation in a Network of QueuesTextbook

Motivation

Chapter 4 of F. P. Kelly's Reversibility and Stochastic Networks (Wiley, 1979) applies the product-form theory of Chapter 3 to concrete systems. Two of its results have numbered statements, and they answer two practical questions.

The first comes from the design of store-and-forward communication networks (telegraph and packet-switched data networks). Messages queue at channels; the designer chooses each channel's capacity subject to a budget, and wants to minimize the delay messages suffer. Because the equilibrium law at every channel is geometric under several different modelling assumptions (§4.1, pp. 95–96), the mean delay has a closed form, and the budget allocation problem becomes a small convex program with an explicit solution. This square-root capacity assignment goes back to L. Kleinrock's work on communication nets (Communication Nets, McGraw-Hill, 1964) and remains the textbook example of optimal design for a network of queues.

The second comes from compartmental models in biology, birth–illness–death processes and manpower planning (§4.5, pp. 113–115). Individuals enter a system as a Poisson stream and move through it independently. Equilibrium results follow from Chapter 3; Theorem 4.2 describes the transient behaviour exactly, starting from an empty system.

Setting

Capacity allocation (§4.1). A network has J≥1J \ge 1J≥1 channels. Channel jjj receives traffic at average rate aj>0a_j > 0aj​>0 and is given capacity ϕj\phi_jϕj​. In equilibrium the number njn_jnj​ of messages at channel jjj has the geometric law (4.1),

P(nj=n)=(1−ajϕj)(ajϕj)n,n=0,1,2,…,P(n_j = n) = \Big(1 - \frac{a_j}{\phi_j}\Big)\Big(\frac{a_j}{\phi_j}\Big)^n, \qquad n = 0, 1, 2, \dots,P(nj​=n)=(1−ϕj​aj​​)(ϕj​aj​​)n,n=0,1,2,…,

which requires ϕj>aj\phi_j > a_jϕj​>aj​. Its mean is aj/(ϕj−aj)a_j/(\phi_j - a_j)aj​/(ϕj​−aj​). Capacity on channel jjj costs fj>0f_j > 0fj​>0 per unit and the total budget is FFF, giving the cost constraint (4.2)

∑jfjϕj=F.\sum_j f_j\phi_j = F.j∑​fj​ϕj​=F.

The mean number of customers in the network is

N(ϕ)=∑jajϕj−aj,N(\phi) = \sum_j \frac{a_j}{\phi_j - a_j},N(ϕ)=j∑​ϕj​−aj​aj​​,

and the feasible set is the set of ϕ∈RJ\phi \in \mathbb{R}^Jϕ∈RJ with ϕj>aj\phi_j > a_jϕj​>aj​ for every jjj that satisfy (4.2). In Lean these are meanNumberInNetwork a φ and FeasibleCapacities a f F. The proof works with the Lagrangian lagrangian a f F y φ =N(ϕ)+y(∑jfjϕj−F)= N(\phi) + y(\sum_j f_j\phi_j - F)=N(ϕ)+y(∑j​fj​ϕj​−F).

Compartmental model (§4.5). Individuals arrive in a Poisson stream of rate ν>0\nu > 0ν>0 at a system of JJJ compartments that is empty at time 000. Let pj(s)p_j(s)pj​(s) be the probability that an individual is in compartment jjj a time sss after its arrival; pj(s)≥0p_j(s) \ge 0pj​(s)≥0 and ∑jpj(s)≤1\sum_j p_j(s) \le 1∑j​pj​(s)≤1, since individuals may leave. Let nj(t)n_j(t)nj​(t) be the number of individuals in compartment jjj at time t>0t > 0t>0, and

αj(t)=∫0tpj(u) du.\alpha_j(t) = \int_0^t p_j(u)\,du.αj​(t)=∫0t​pj​(u)du.

In Lean the model is the predicate IsCompartmentModel P ν t p M T Loc, the counts are compartmentCount M Loc j, and αj(t)\alpha_j(t)αj​(t) is alpha p j t.

Formalization targets

Goal: Theorem 4.1 (p. 97)

If J≥1J \ge 1J≥1, aj>0a_j > 0aj​>0, fj>0f_j > 0fj​>0 and F>∑kakfkF > \sum_k a_k f_kF>∑k​ak​fk​, then

ϕj∗=aj+ajfj∑kakfk⋅F−∑kakfkfj\phi^*_j = a_j + \frac{\sqrt{a_j f_j}}{\sum_k \sqrt{a_k f_k}}\cdot\frac{F - \sum_k a_k f_k}{f_j}ϕj∗​=aj​+∑k​ak​fk​​aj​fj​​​⋅fj​F−∑k​ak​fk​​

is feasible and minimizes NNN over the feasible set, and every other feasible ϕ\phiϕ has N(ϕ)>N(ϕ∗)N(\phi) > N(\phi^*)N(ϕ)>N(ϕ∗).

Milestones toward the goal

  1. The mean of the geometric law (4.1) is aj/(ϕj−aj)a_j/(\phi_j - a_j)aj​/(ϕj​−aj​) (p. 97).
  2. For y>0y > 0y>0 the Lagrangian is minimized over {ϕj>aj}\{\phi_j > a_j\}{ϕj​>aj​} by ϕj=aj+aj/(yfj)\phi_j = a_j + \sqrt{a_j/(y f_j)}ϕj​=aj​+aj​/(yfj​)​ (proof of Theorem 4.1).
  3. The choice 1/y=(F−∑kakfk)/∑kakfk1/\sqrt y = (F - \sum_k a_k f_k)/\sum_k\sqrt{a_k f_k}1/y​=(F−∑k​ak​fk​)/∑k​ak​fk​​ makes that minimizer equal to ϕ∗\phi^*ϕ∗ and feasible for (4.2).

Second result: Theorem 4.2 (pp. 114–115)

The proof's generating-function identity, for zj∈[0,1]z_j \in [0,1]zj​∈[0,1],

E(z1n1(t)⋯zJnJ(t))=∏j=1Jexp⁡[−(1−zj)ναj(t)],E\big(z_1^{n_1(t)}\cdots z_J^{n_J(t)}\big) = \prod_{j=1}^J \exp\big[-(1 - z_j)\nu\alpha_j(t)\big],E(z1n1​(t)​⋯zJnJ​(t)​)=j=1∏J​exp[−(1−zj​)ναj​(t)],

and the theorem itself: n1(t),…,nJ(t)n_1(t), \dots, n_J(t)n1​(t),…,nJ​(t) are independent and nj(t)n_j(t)nj​(t) is Poisson with mean ναj(t)\nu\alpha_j(t)ναj​(t).

Significance

Theorem 4.1 is a closed-form design rule. Every channel first receives the capacity aja_jaj​ needed to carry its traffic; the remaining budget is shared in proportion to ajfj\sqrt{a_j f_j}aj​fj​​, not to the traffic aja_jaj​. Sizing capacity in proportion to the load, which is the obvious rule, is therefore not optimal. The same calculation applies to any network whose stations have the geometric law (4.1), for example a manufacturing job shop (p. 97). The mean number in the network and the mean time a customer spends in it are minimized together.

Theorem 4.2 is the exact transient law of a network of infinite-server queues started empty. It holds however complicated the motion of an individual is, provided individuals move independently, and letting t→∞t \to \inftyt→∞ it recovers the equilibrium Poisson law of §4.5.

Both results are classical and proved in the book. Neither is formalized on Prove2Me. The platform has the geometric equilibrium law of the M/M/1 queue (KellyStochasticNetworks.mm1_equilibrium) but not its mean, and no result on Poisson thinning or marking by independent random locations. The formal work for Theorem 4.1 is a strict-convexity and Lagrangian-sufficiency argument in RJ\mathbb{R}^JRJ. For Theorem 4.2 it is a Poisson marking theorem in measure-theoretic probability. Both pieces are reusable.

Difficulty

For Theorem 4.1, the book's proof sets the partial derivatives of the Lagrangian to zero. A stationary point is not a global minimizer in general, so the formal proof must show that LLL is (strictly) convex on the open region ϕj>aj\phi_j > a_jϕj​>aj​, and it must use Lagrangian sufficiency, not first-order conditions alone. The region is open and the objective is unbounded near its boundary. Feasibility of ϕ∗\phi^*ϕ∗ needs F>∑kakfkF > \sum_k a_k f_kF>∑k​ak​fk​, which the book leaves implicit.

For Theorem 4.2, the steps of the proof that read "conditional on MMM" have to be carried out with measure-theoretic independence. One step averages a product over MMM independent uniform instants. Another sums the Poisson mixture into an exponential. The last turns a factorized generating function into mutual independence of JJJ counts with Poisson marginals. Mathlib has the Poisson distribution (ProbabilityTheory.poissonMeasure) but no marking or thinning theorem, and no uniqueness theorem for multivariate probability generating functions.

Formalization scope

Channels and compartments are indexed by Fin J; all rates, costs and capacities are real numbers.

Theorem 4.1. The statement carries the book's implicit hypotheses explicitly: J≥1J \ge 1J≥1, aj>0a_j > 0aj​>0, fj>0f_j > 0fj​>0, F>∑kakfkF > \sum_k a_k f_kF>∑k​ak​fk​. Stability ϕj>aj\phi_j > a_jϕj​>aj​ is part of the feasible set. The conclusion is global optimality over the feasible set (IsMinOn) together with feasibility of ϕ∗\phi^*ϕ∗, plus strict optimality against every other feasible point. Uniqueness is a slight strengthening of the book's "the optimal allocation is", and it holds by strict convexity. A statement that ϕ∗\phi^*ϕ∗ satisfies (4.2), or that it is a stationary point of the Lagrangian, is not the theorem: those are one-line computations or the proof method, and the goal is stated as global optimality to rule them out.

Theorem 4.2. The model is pinned down as in the proof on p. 115:

  • the number MMM of arrivals in (0,t)(0,t)(0,t) is Poisson with mean νt\nu tνt;
  • an i.i.d. sequence of (arrival instant, location at time ttt) pairs is independent of MMM, and only its first MMM entries are used;
  • each instant is uniform on (0,t)(0,t)(0,t), and an individual arriving at uuu is in compartment jjj at time ttt with probability pj(t−u)p_j(t-u)pj​(t−u), or has left.

"Individuals move independently" is formalized as this conditional independence. The pjp_jpj​ are measurable sub-probabilities, not assumed to sum to one. The conclusion is mutual independence of the JJJ counts (iIndepFun) together with the Poisson probability mass function of each. Infinite time horizons and the point-process description of the system are out of scope.

Useful contributions: a reusable Lagrangian-sufficiency lemma for separable convex objectives under one linear constraint; a Poisson marking (colouring) theorem for finitely many colours; the multivariate generating-function uniqueness lemma for NJ\mathbb{N}^JNJ-valued random vectors.

Selected references

  • F. P. Kelly, Reversibility and Stochastic Networks, John Wiley & Sons, 1979, Chapter 4 (§4.1, pp. 95–97; §4.5, pp. 113–115).
  • L. Kleinrock, Communication Nets: Stochastic Message Flow and Delay, McGraw-Hill, 1964 (reprinted Dover, 1972).
  • J. F. C. Kingman, Poisson Processes, Oxford University Press, 1993 (colouring and marking theorems).
8 thms3 active usersReviewed
🏆Completed
Operations Research·Captain: mikedeng1

One-Machine Sequencing to Minimize Certain Functions of Job Tardiness II: EDD Order Minimizes Any Sum of Convex Nondecreasing Tardiness Penalties When No Job Starts After Its Due DateResearch Paper

Motivation

A single machine must process a set of jobs, each with a processing time and a due date, and the cost of a schedule depends on how late the jobs finish. Total tardiness is the classical criterion, but in many applications lateness is penalised more than proportionally: a job one week late costs more than twice a job half a week late, and a quadratic or other convex penalty describes this better. Hamilton Emmons's 1969 paper in Operations Research (DOI 10.1287/opre.17.4.701) derives dominance rules for total tardiness and then asks which of them survive when total tardiness is replaced by ∑Jg(Ti)\sum_J g(T_i)∑J​g(Ti​) for an arbitrary convex nondecreasing loss ggg.

Timeline of the relevant results:

  • 1955 — Jackson shows that ordering jobs by earliest due date (EDD) minimises the maximum lateness, and hence produces a schedule without late jobs whenever one exists.
  • 1956 — Smith gives the ratio rule for weighted completion time and an adjacent-interchange criterion for pairs of jobs.
  • 1969 — Emmons proves the precedence theorems for total tardiness that underlie later branch-and-bound and dynamic programming algorithms for 1 ∣∣ ∑Tj1\,||\,\sum T_j1∣∣∑Tj​, and shows (p. 713) that Theorems 2 and 3 and part of Theorem 1 extend to any sum of identical convex nondecreasing tardiness penalties.
  • 1977 — Lawler's pseudo-polynomial algorithm for total tardiness builds on Emmons's conditions; the problem is later shown NP-hard (Du and Leung, 1990).

Setting

A finite set JJJ of jobs is to be sequenced on one machine. Job JiJ_iJi​ has a processing time pi≥0p_i\ge 0pi​≥0 and a due date did_idi​. All jobs are available at time 000, and the machine processes them one after another without idle time. A schedule is an ordering lll of the jobs of JJJ. The completion time CiC_iCi​ of JiJ_iJi​ in lll is the sum of the processing times of JiJ_iJi​ and of every job before it; its waiting (starting) time is Wi=Ci−piW_i=C_i-p_iWi​=Ci​−pi​, and its tardiness is

Ti=max⁡(0, Ci−di).T_i=\max(0,\,C_i-d_i).Ti​=max(0,Ci​−di​).

A loss function g:R→Rg:\mathbb R\to\mathbb Rg:R→R, convex and nondecreasing on [0,∞)[0,\infty)[0,∞), is fixed, the same for every job. The objective is ∑i∈Jg(Ti)\sum_{i\in J} g(T_i)∑i∈J​g(Ti​), and a schedule is optimal if no schedule of JJJ has a smaller objective. With g(T)=Tg(T)=Tg(T)=T this is total tardiness.

Where the paper uses job indices, the jobs are indexed in SPT order: j<kj<kj<k implies pj<pkp_j<p_kpj​<pk​, or pj=pkp_j=p_kpj​=pk​ and dj≤dkd_j\le d_kdj​≤dk​. The notation j←kj\leftarrow kj←k means that some optimal schedule has JjJ_jJj​ before JkJ_kJk​; for a set AkA_kAk​ of jobs, k←Akk\leftarrow A_kk←Ak​ means that some optimal schedule has JkJ_kJk​ before every job of AkA_kAk​, and Ak′A_k'Ak′​ is the set of jobs of JJJ not in AkA_kAk​. An EDD schedule sequences the jobs in nondecreasing order of due dates.

Formalization targets

Goal: Corollary 2.2* (p. 713)

If an EDD schedule lll of JJJ satisfies

Wi≤difor every i∈J,W_i\le d_i\qquad\text{for every } i\in J,Wi​≤di​for every i∈J,

then lll minimises ∑Jg(Ti)\sum_J g(T_i)∑J​g(Ti​) over all schedules of JJJ, for every ggg convex and nondecreasing on [0,∞)[0,\infty)[0,∞).

The goal fixes no constant and no particular ggg: it is a statement about the whole class of convex nondecreasing penalties.

Milestones (in attack order)

  1. Convex exchange condition (p. 713): if Tja≤TjbT_{ja}\le T_{jb}Tja​≤Tjb​, Tkb≤TkaT_{kb}\le T_{ka}Tkb​≤Tka​ (all nonnegative), Tka−Tkb≤Tjb−TjaT_{ka}-T_{kb}\le T_{jb}-T_{ja}Tka​−Tkb​≤Tjb​−Tja​ and Tjb≥TkaT_{jb}\ge T_{ka}Tjb​≥Tka​, then g(Tka)−g(Tkb)≤g(Tjb)−g(Tja)g(T_{ka})-g(T_{kb})\le g(T_{jb})-g(T_{ja})g(Tka​)−g(Tkb​)≤g(Tjb​)−g(Tja​).
  2. Theorem 1* (p. 713): for j<kj<kj<k, if dj≤dkd_j\le d_kdj​≤dk​ then j←kj\leftarrow kj←k.
  3. Theorem 2* (p. 713): for j<kj<kj<k, if k←Akk\leftarrow A_kk←Ak​, dj>dkd_j>d_kdj​>dk​ and dj+pj≥∑Ak′pid_j+p_j\ge\sum_{A_k'}p_idj​+pj​≥∑Ak′​​pi​, then k←jk\leftarrow jk←j.
  4. Corollary 2.1* (p. 713): if dj=max⁡idid_j=\max_i d_idj​=maxi​di​ and dj+pj≥∑Jpid_j+p_j\ge\sum_J p_idj​+pj​≥∑J​pi​, then some optimal schedule ends with JjJ_jJj​.
  5. Last-job reduction (proof of Corollary 2.2, p. 706): if some optimal schedule ends with JjJ_jJj​, any optimal schedule of J∖{Jj}J\setminus\{J_j\}J∖{Jj​} followed by JjJ_jJj​ is optimal for JJJ.

Two further statements of the same section are included as items: Corollary 1.3* (the SPT schedule is optimal if it coincides with the EDD schedule) and Theorem 3 for the generalised objective.

Significance

The goal says that EDD is optimal for every convex nondecreasing tardiness penalty as long as no job starts after its due date. The classical sufficient condition, that at most one job is tardy, follows from Jackson's rule; Emmons's condition allows any or all jobs to be tardy, provided each is tardy by at most its own processing time. Because the conclusion holds for the whole class of penalties at once, an instance satisfying it needs no knowledge of ggg: total tardiness, total squared tardiness, and any other convex nondecreasing cost are minimised by the same sequence. Theorems 1* and 2* are the dominance rules that the paper's ordering procedure applies pairwise; they reduce the search space of branch-and-bound methods for convex tardiness objectives.

The results are proved in the paper (for ∑g(Ti)\sum g(T_i)∑g(Ti​) the proofs are said to be "easily established" and omitted). None of them has, to our knowledge, a machine-checked proof. The mission produces formal statements and proofs of the generalised results, including the omitted ones, on top of a reusable single-machine model.

Difficulty

The total-tardiness proofs compare changes in tardiness additively: an interchange is good if the decrease in one job's tardiness is at least the increase in another's. For a convex ggg this comparison is not enough, because a unit of tardiness costs more at higher tardiness levels; the changes must also occur at the right height on the curve, and part (b) of the proof of Theorem 1 fails for this reason. Each generalised argument therefore has to check, for every job whose tardiness changes, both the size and the location of the change, including jobs whose tardiness changes from zero to positive. Ties for the latest due date are a further obstacle: the printed proof of Corollary 2.1 cites Theorem 2, whose hypothesis dj>dkd_j>d_kdj​>dk​ is strict, so a job sharing the maximum due date is not covered by the argument as written, although the corollary is stated without excluding ties.

Formalization scope

Jobs are elements of a type ι\iotaι; the job set is a Finset JJJ, processing times and due dates are real functions p,d:ι→Rp,d:\iota\to\mathbb Rp,d:ι→R. Where the paper's index matters, ι\iotaι is linearly ordered and its order is the job index, together with the SPT-indexing hypothesis. A schedule is a duplicate-free list whose elements are exactly JJJ, and completion times are the published single-machine definition MooreLateJobs.Shared.completionTime (Moore 1968), which starts the machine at time 000 with no idle time. Optimality is against every schedule of JJJ. The relation j←kj\leftarrow kj←k is formalised as the existence of an optimal schedule with JjJ_jJj​ before JkJ_kJk​ (keeping the premise k←Akk\leftarrow A_kk←Ak​ in the conclusion where the theorem has one); the paper's cumulative reading of the notation is not formalised.

Standing assumptions and deviations:

  • ggg is convex and nondecreasing on [0,∞)[0,\infty)[0,∞) only; the page's "increasing" is read as nondecreasing, as in the abstract. No smoothness, strict monotonicity or g(0)=0g(0)=0g(0)=0 is assumed.
  • Processing times are assumed nonnegative; this is added (they are durations).
  • The reduction di<∑Jpid_i<\sum_J p_idi​<∑J​pi​ of p. 703 is not assumed, which makes the statements apply to more instances.
  • "The EDD schedule" is any schedule with nondecreasing due dates; ties are arbitrary.

A trivializing formalization is ruled out: the goal requires optimality of the given EDD list against every schedule of JJJ, not of some EDD list, and a sorry-free check shows its hypotheses hold on a two-job instance in which both jobs are tardy.

A complete development needs list lemmas for moving one job to a later position, the effect of such moves on completion times, and slope inequalities for convex functions on [0,∞)[0,\infty)[0,∞). The schedule-manipulation lemmas are reusable for other single-machine sequencing results. Proofs of any milestone, of the two further items, and of general interchange lemmas are welcome.

Selected references

  • H. Emmons, One-Machine Sequencing to Minimize Certain Functions of Job Tardiness, Operations Research 17(4):701–715, 1969. https://doi.org/10.1287/opre.17.4.701
  • J. R. Jackson, Scheduling a Production Line to Minimize Maximum Tardiness, Research Report 43, Management Science Research Project, UCLA, 1955.
  • W. E. Smith, Various Optimizers for Single-Stage Production, Naval Research Logistics Quarterly 3:59–66, 1956. https://doi.org/10.1002/nav.3800030106
  • E. L. Lawler, A "Pseudopolynomial" Algorithm for Sequencing Jobs to Minimize Total Tardiness, Annals of Discrete Mathematics 1:331–342, 1977. https://doi.org/10.1016/S0167-5060(08)70742-8
  • J. M. Moore, An n Job, One Machine Sequencing Algorithm for Minimizing the Number of Late Jobs, Management Science 15(1):102–109, 1968. https://doi.org/10.1287/mnsc.15.1.102
  • J. Du and J. Y.-T. Leung, Minimizing Total Tardiness on One Machine is NP-Hard, Mathematics of Operations Research 15(3):483–495, 1990. https://doi.org/10.1287/moor.15.3.483
9 thms3 active usersReviewed
🏆Completed
Numerical Analysis·Captain: mikedeng1

Minimization of Functions Having Lipschitz Continuous First Partial Derivatives: Gradient Steps with Sufficient Decrease δ|∇f(x_k)|², 0 < δ ≤ 1/4K, Converge to the MinimizerResearch Paper

Motivation

The gradient method minimizes a differentiable function fff on Rn\mathbb{R}^nRn by moving from the current point xkx_kxk​ along the negative gradient, xk+1=xk−λk∇f(xk)x_{k+1} = x_k - \lambda_k \nabla f(x_k)xk+1​=xk​−λk​∇f(xk​). Every practical implementation has to choose the step λk\lambda_kλk​. A fixed step requires knowing a Lipschitz constant of ∇f\nabla f∇f; an exact line search is expensive. Larry Armijo's four-page note (Pacific J. Math. 16 (1966) 1–3) proved that any step achieving a sufficient decrease proportional to ∣∇f(xk)∣2|\nabla f(x_k)|^2∣∇f(xk​)∣2 yields convergence, and gave the halving rule that is now called the Armijo rule or backtracking line search. The rule is the default step-size strategy of gradient, quasi-Newton and Newton-type methods in textbooks such as Nocedal–Wright and Bertsekas, and its sufficient-decrease test reappears in essentially every later line-search analysis.

Timeline:

  • 1944, H. B. Curry: convergence of steepest descent when each step minimizes fff along the ray, which needs a one-dimensional minimization per step (Quart. Appl. Math. 2).
  • 1962, A. A. Goldstein: convergence of the gradient method with a rate estimate, assuming f∈C2f \in C^2f∈C2 on a bounded level set S(x0)S(x_0)S(x0​) and a known bound on the Hessian norm there (Numer. Math. 4).
  • 1966, L. Armijo (received January 1964): the convergence theorem below for any step with sufficient decrease δ∣∇f(xk)∣2\delta|\nabla f(x_k)|^2δ∣∇f(xk​)∣2, 0<δ≤1/(4K)0 < \delta \le 1/(4K)0<δ≤1/(4K), under a Lipschitz condition on ∇f\nabla f∇f restricted to the level set, with the fixed-step and halving-step algorithms as corollaries. The paper's §3 places these hypotheses between Curry's (weaker) and Goldstein's (stronger).

Setting

Let EnE^nEn be real Euclidean nnn-space with norm ∣⋅∣|\cdot|∣⋅∣, and let f:En→Rf : E^n \to \mathbb{R}f:En→R be continuous and bounded below. For a fixed x0∈Enx_0 \in E^nx0​∈En the level set is S(x0)={x:f(x)≤f(x0)}S(x_0) = \{x : f(x) \le f(x_0)\}S(x0​)={x:f(x)≤f(x0​)}. Write ∇f(x)\nabla f(x)∇f(x) for the gradient of fff at xxx. "f∈C1f \in C^1f∈C1 on S(x0)S(x_0)S(x0​)" means that fff is differentiable at every point of S(x0)S(x_0)S(x0​) and ∇f\nabla f∇f is continuous there.

  • Condition III at x0x_0x0​: f∈C1f \in C^1f∈C1 on S(x0)S(x_0)S(x0​) and there is a Lipschitz constant K>0K > 0K>0 with ∣∇f(y)−∇f(x)∣≤K∣y−x∣|\nabla f(y) - \nabla f(x)| \le K|y - x|∣∇f(y)−∇f(x)∣≤K∣y−x∣ for all x,y∈S(x0)x, y \in S(x_0)x,y∈S(x0​).
  • Condition IV at x0x_0x0​: f∈C1f \in C^1f∈C1 on S(x0)S(x_0)S(x0​), x∗x^*x∗ is a point with f(x∗)=inf⁡Enff(x^*) = \inf_{E^n} ff(x∗)=infEn​f, and for every r>0r > 0r>0
m(r)=inf⁡{∣∇f(x)∣:x∈S(x0), ∣x−x∗∣≥r}>0,m(r) = \inf\{|\nabla f(x)| : x \in S(x_0),\ |x - x^*| \ge r\} > 0,m(r)=inf{∣∇f(x)∣:x∈S(x0​), ∣x−x∗∣≥r}>0,

with m(r)=∞m(r) = \inftym(r)=∞ when the set is empty. Condition IV forces x∗x^*x∗ to be the unique minimizer and the only stationary point in S(x0)S(x_0)S(x0​).

For δ>0\delta > 0δ>0 and x∈S(x0)x \in S(x_0)x∈S(x0​), the sufficient-decrease set of display (1) is

S∗(x,δ)={xλ:xλ=x−λ∇f(x), λ>0, f(xλ)−f(x)≤−δ∣∇f(x)∣2}.S^*(x,\delta) = \{x_\lambda : x_\lambda = x - \lambda\nabla f(x),\ \lambda > 0,\ f(x_\lambda) - f(x) \le -\delta|\nabla f(x)|^2\}.S∗(x,δ)={xλ​:xλ​=x−λ∇f(x), λ>0, f(xλ​)−f(x)≤−δ∣∇f(x)∣2}.

The steepest descent algorithm uses xk+1=xk−12K∇f(xk)x_{k+1} = x_k - \frac{1}{2K}\nabla f(x_k)xk+1​=xk​−2K1​∇f(xk​). The modified steepest descent algorithm fixes α>0\alpha > 0α>0, sets αm=α/2m−1\alpha_m = \alpha/2^{m-1}αm​=α/2m−1, and takes xk+1=xk−αmk∇f(xk)x_{k+1} = x_k - \alpha_{m_k}\nabla f(x_k)xk+1​=xk​−αmk​​∇f(xk​) with mkm_kmk​ the smallest positive integer such that

f(xk−αmk∇f(xk))−f(xk)≤−12αmk∣∇f(xk)∣2.(2)f(x_k - \alpha_{m_k}\nabla f(x_k)) - f(x_k) \le -\tfrac12\alpha_{m_k}|\nabla f(x_k)|^2. \tag{2}f(xk​−αmk​​∇f(xk​))−f(xk​)≤−21​αmk​​∣∇f(xk​)∣2.(2)

Formalization targets

Goal: the convergence theorem (§2, pp. 1–2)

Assume fff is continuous and bounded below and Conditions III and IV hold at x0x_0x0​. If 0<δ≤1/(4K)0 < \delta \le 1/(4K)0<δ≤1/(4K), then for every x∈S(x0)x \in S(x_0)x∈S(x0​)

∅≠S∗(x,δ)⊆S(x0),\emptyset \ne S^*(x,\delta) \subseteq S(x_0),∅=S∗(x,δ)⊆S(x0​),

and every sequence with first term x0x_0x0​ and xk+1∈S∗(xk,δ)x_{k+1} \in S^*(x_k,\delta)xk+1​∈S∗(xk​,δ) for all kkk satisfies

xk→x∗(k→∞).x_k \to x^* \qquad (k \to \infty).xk​→x∗(k→∞).

Milestones (the claims of the proof, p. 2)

  1. Along such a sequence, ∣∇f(xk)∣→0|\nabla f(x_k)| \to 0∣∇f(xk​)∣→0.
  2. Under Condition IV, a sequence in S(x0)S(x_0)S(x0​) with ∣∇f∣→0|\nabla f| \to 0∣∇f∣→0 converges to x∗x^*x∗.

Further claims of the proof (p. 2)

  • For x∈S(x0)x \in S(x_0)x∈S(x0​) and 0≤λ≤1/K0 \le \lambda \le 1/K0≤λ≤1/K: f(xλ)−f(x)≤−(λ−λ2K)∣∇f(x)∣2f(x_\lambda) - f(x) \le -(\lambda - \lambda^2K)|\nabla f(x)|^2f(xλ​)−f(x)≤−(λ−λ2K)∣∇f(x)∣2.
  • xλ∈S∗(x,δ)x_\lambda \in S^*(x,\delta)xλ​∈S∗(x,δ) for λ1≤λ≤λ2\lambda_1 \le \lambda \le \lambda_2λ1​≤λ≤λ2​, λi=12K[1+(−1)i1−4δK]\lambda_i = \frac{1}{2K}[1 + (-1)^i\sqrt{1 - 4\delta K}]λi​=2K1​[1+(−1)i1−4δK​].
  • Along such a sequence, xk∈S(x0)x_k \in S(x_0)xk​∈S(x0​) and f(xk)f(x_k)f(xk​) is nonincreasing.

Companion results

  • Corollary 1: the steepest descent iterates converge to x∗x^*x∗.
  • Corollary 2: the modified steepest descent iterates converge to x∗x^*x∗, for every α>0\alpha > 0α>0.
  • The index mkm_kmk​ of Corollary 2 exists; mk=1m_k = 1mk​=1 if α≤1/(2K)\alpha \le 1/(2K)α≤1/(2K) and αmk>1/(4K)\alpha_{m_k} > 1/(4K)αmk​​>1/(4K) otherwise; the half-step estimate f(xλ)−f(x)≤−12λ∣∇f(x)∣2f(x_\lambda) - f(x) \le -\frac12\lambda|\nabla f(x)|^2f(xλ​)−f(x)≤−21​λ∣∇f(x)∣2 for 0≤λ≤1/(2K)0 \le \lambda \le 1/(2K)0≤λ≤1/(2K).
  • The §1 remark: Condition IV implies Conditions I and II, and is equivalent to them when S(x0)S(x_0)S(x0​) is bounded.

Significance

The theorem separates the analysis of a gradient method from the choice of its step: whatever rule produces steps in S∗(xk,δ)S^*(x_k, \delta)S∗(xk​,δ) converges, and the two corollaries show that both a fixed step 1/(2K)1/(2K)1/(2K) and a halving search started from an arbitrary α\alphaα qualify. The halving rule needs no knowledge of KKK, which is why it became the standard globalization device for descent methods. The hypotheses are local to the level set: ∇f\nabla f∇f need only be Lipschitz on S(x0)S(x_0)S(x0​), not on all of EnE^nEn, so functions whose gradient is only locally Lipschitz, such as polynomials of degree above two with bounded level sets, satisfy Condition III.

The result is classical and proved on the page; it has not, to our knowledge, been machine-checked in this form. Formalizing it provides a verified sufficient-decrease convergence theorem with level-set-local hypotheses, a verified Armijo backtracking rule with explicit constants 12\tfrac1221​, 1/(4K)1/(4K)1/(4K) and 1/(8K)1/(8K)1/(8K), and reusable definitions (sufficient-decrease set, Armijo test with halving steps) on which later line-search results can build.

Difficulty

The mean value step in the proof of the descent inequality silently uses the Lipschitz bound along the whole segment from xxx to x−λ∇f(x)x - \lambda\nabla f(x)x−λ∇f(x), but Condition III gives it only on S(x0)S(x_0)S(x0​). One has to show that the segment cannot leave the closed set S(x0)S(x_0)S(x0​) for 0≤λ≤1/K0 \le \lambda \le 1/K0≤λ≤1/K; replacing the hypothesis by a global Lipschitz condition is not acceptable, because it changes the theorem. The final step needs Condition IV in its exact form: gradients tending to zero along the iterates do not by themselves give convergence of the iterates, and the positive lower bound m(r)m(r)m(r) away from x∗x^*x∗ is what turns stationarity into convergence. Corollary 2 additionally requires a termination argument for the halving search and a uniform lower bound on accepted steps.

Formalization scope

EnE^nEn is EuclideanSpace ℝ (Fin n), ∣⋅∣|\cdot|∣⋅∣ is the norm and ∇f\nabla f∇f is Mathlib's gradient f. All declarations live in the namespace ArmijoGrad.Conv, with one definition file ArmijoGrad.Conv.Setting.

Committed conventions:

  • The standing assumptions of §2 are binders of the goal and the corollaries: Continuous f, BddBelow (Set.range f), ConditionIII f x0 K, ConditionIV f x0 xstar. Milestones keep only the assumptions their claim uses, which makes them more general; nothing is added.
  • "f∈C1f \in C^1f∈C1 on S(x0)S(x_0)S(x0​)" is differentiability at every point of S(x0)S(x_0)S(x0​) plus continuity of gradient f on S(x0)S(x_0)S(x0​). The Lipschitz bound of Condition III holds on S(x0)S(x_0)S(x0​) only; K>0K > 0K>0 is part of Condition III.
  • Condition IV carries its minimizer x∗x^*x∗ and states m(r)>0m(r) > 0m(r)>0 as the existence of a positive lower bound for ∣∇f∣|\nabla f|∣∇f∣ on {x∈S(x0):∣x−x∗∣≥r}\{x \in S(x_0) : |x - x^*| \ge r\}{x∈S(x0​):∣x−x∗∣≥r}; this matches the convention m(r)=∞m(r) = \inftym(r)=∞ on the empty set. No real infimum is used.
  • Sequences are ℕ → EuclideanSpace ℝ (Fin n) with first term equal to x0x_0x0​, the base point of S(x0)S(x_0)S(x0​), as in the paper's notation.
  • λ>0\lambda > 0λ>0 in (1) is strict. αm=α/2m−1\alpha_m = \alpha/2^{m-1}αm​=α/2m−1 is used only with m≥1m \ge 1m≥1, and mkm_kmk​ is required to be the smallest such index.

A trivializing formalization is ruled out: the goal assumes nothing about λ1,λ2\lambda_1, \lambda_2λ1​,λ2​, the descent inequality or ∣∇f(xk)∣→0|\nabla f(x_k)| \to 0∣∇f(xk​)∣→0, Condition IV cannot hold vacuously because it names a minimizer, and all hypotheses are satisfiable by nontrivial data: f(x)=∣x∣2/2f(x) = |x|^2/2f(x)=∣x∣2/2 satisfies Conditions III and IV with K=1K = 1K=1 and x∗=0x^* = 0x∗=0, and both algorithms have runs for it.

A complete development needs the one-dimensional mean value inequality along a segment, a continuity argument keeping the segment in S(x0)S(x_0)S(x0​), the telescoping bound for monotone sequences bounded below, and the halving-search termination. The definitions file and the descent and Armijo-index lemmas are reusable for later line-search missions. Contributions are welcome on every milestone; the descent inequality is the natural first target.

Selected references

  • L. Armijo, Minimization of functions having Lipschitz continuous first partial derivatives, Pacific Journal of Mathematics 16(1), 1–3, 1966. https://doi.org/10.2140/pjm.1966.16.1
  • H. B. Curry, The method of steepest descent for non-linear minimization problems, Quarterly of Applied Mathematics 2, 1944. https://doi.org/10.1090/qam/10667
  • A. A. Goldstein, Cauchy's method of minimization, Numerische Mathematik 4, 146–150, 1962. https://doi.org/10.1007/BF01386306
  • J. Nocedal and S. J. Wright, Numerical Optimization, 2nd ed., Springer, 2006. https://doi.org/10.1007/978-0-387-40065-5
4 thms3 active usersReviewed
🏆Completed
CombinatoricsGraph TheoryOperations Research·Captain: mikedeng1

Maximal Flow Through a Network I: The Minimal Cut Theorem — the Maximal Flow Value Equals the Minimum Value of a Disconnecting SetResearch Paper

Motivation

The question behind this mission was posed by T. E. Harris to L. R. Ford, Jr. and D. R. Fulkerson at RAND, in the setting of rail transport: given a rail network linking two cities, with a capacity on every link, find the largest steady flow from one city to the other. Ford and Fulkerson's answer, the minimal cut theorem, published in the Canadian Journal of Mathematics in 1956 (DOI 10.4153/CJM-1956-045-5), says that the obvious upper bound, the total capacity of a set of links whose removal separates the two cities, is always achieved by some flow.

The theorem became the starting point of network flow theory, and through it of a large part of combinatorial optimization and operations research: transportation, assignment, scheduling and network reliability problems are routinely reduced to it.

Timeline.

  • 1927: K. Menger proves that the minimum number of vertices separating two vertex sets of a graph equals the maximum number of disjoint paths joining them (Fund. Math. 10), the unit-capacity ancestor of the theorem.
  • 1955: Harris and Ross study the Soviet rail network as a capacity problem in a RAND report; Harris formulates the maximal flow problem (Schrijver's historical account: Math. Program. 91, 2002).
  • 1956: Ford and Fulkerson publish the minimal cut theorem for undirected networks, with a non-constructive proof based on maximal flows (this paper). Independently, Elias, Feinstein and Shannon state and prove the max-flow min-cut theorem for directed networks (IRE Trans. Inf. Theory 2, 1956), and Dantzig and Fulkerson obtain it from linear programming duality.
  • 1956–1962: Ford and Fulkerson's labelling (augmenting path) algorithm, collected in Flows in Networks (Princeton, 1962).
  • 1972: Edmonds and Karp give polynomial bounds for augmenting-path methods (J. ACM 19).

Setting

A network NNN consists of a finite set of vertices VVV, a finite set of arcs EEE, two distinct vertices, the source aaa and the sink bbb, and a positive capacity c(e)>0c(e)>0c(e)>0 on every arc. Each arc eee has two distinct end vertices; arcs are undirected, and several arcs may join the same pair of vertices.

A chain joining uuu and www is a set of distinct arcs that can be arranged as α1(v0v1),α2(v1v2),…,αm(vm−1vm)\alpha_1(v_0v_1),\alpha_2(v_1v_2),\dots,\alpha_m(v_{m-1}v_m)α1​(v0​v1​),α2​(v1​v2​),…,αm​(vm−1​vm​) with v0=uv_0=uv0​=u, vm=wv_m=wvm​=w and the vertices v0,…,vmv_0,\dots,v_mv0​,…,vm​ pairwise distinct; each arc may be traversed in either direction. The null chain (m=0m=0m=0) joins uuu to itself.

A flow fff assigns a number f(C)≥0f(C)\ge 0f(C)≥0 to each chain CCC joining aaa and bbb (and 000 to every other set of arcs) such that the load ℓf(e)=∑C∋ef(C)\ell_f(e)=\sum_{C\ni e}f(C)ℓf​(e)=∑C∋e​f(C) satisfies ℓf(e)≤c(e)\ell_f(e)\le c(e)ℓf​(e)≤c(e) for every arc. Its value is val(f)=∑Cf(C)\mathrm{val}(f)=\sum_C f(C)val(f)=∑C​f(C). An arc is saturated by fff if ℓf(e)=c(e)\ell_f(e)=c(e)ℓf​(e)=c(e). A maximal flow is a flow of largest value.

A set DDD of arcs is a disconnecting set if every chain joining aaa and bbb contains an arc of DDD; its value is v(D)=∑e∈Dc(e)v(D)=\sum_{e\in D}c(e)v(D)=∑e∈D​c(e). A cut is a disconnecting set no proper subset of which is disconnecting.

The proof introduces two further objects: the set SSS of arcs saturated by every maximal flow, and the set L⊆SL\subseteq SL⊆S of left arcs, those arcs of SSS whose left vertex (the end vertex met first by a positive chain flow of a maximal flow, travelling from aaa) can be reached from aaa by a chain with no arc saturated by some maximal flow.

Formalization targets

Goal: Theorem 1 (Minimal cut theorem), p. 400

∃ m∈R:m=max⁡f flowval(f)=min⁡D disconnectingv(D),\exists\, m\in\mathbb R:\quad m=\max_{f\ \text{flow}}\mathrm{val}(f)=\min_{D\ \text{disconnecting}}v(D),∃m∈R:m=f flowmax​val(f)=D disconnectingmin​v(D),

with both the maximum and the minimum attained. The statement mentions only flows and disconnecting sets, not the proof objects SSS and LLL.

Milestones, in the order of the paper's proof

  1. A maximal flow exists, and the set of maximal flows is convex (p. 400).
  2. Lemma 1: SSS is a disconnecting set (p. 400).
  3. Every arc of SSS receives the same orientation from all positive chain flows of all maximal flows: its left vertex is unique (pp. 400–401).
  4. Lemma 2: LLL is a disconnecting set (p. 401).
  5. Lemma 3: no positive chain flow of a maximal flow contains more than one arc of LLL (p. 401).
  6. val(f)≤v(D)\mathrm{val}(f)\le v(D)val(f)≤v(D) for every flow fff and every disconnecting set DDD (p. 402).
  7. LLL is a cut of minimal value, and every maximal flow has value v(L)v(L)v(L) (p. 402).

Two further statements of the paper are included as items without being milestones: the remark that a disconnecting set of minimal value is a cut (p. 400), and the Corollary (p. 402): if a set AAA of arcs meets every cut in exactly one arc, adding kkk to the capacity of each arc of AAA raises the maximal flow value by kkk.

Significance

The minimal cut theorem turns a maximization over flows into a minimization over finite sets of arcs, so an optimal flow comes with a short certificate of optimality. It implies Menger's theorem (unit capacities), and through it König's theorem on bipartite matchings and Hall's marriage theorem. The Corollary is the tool behind the paper's own computing procedure for source–sink planar networks (§2, formalized in a companion mission).

The theorem is classical and proved. What this mission adds is a machine-checked proof of the paper's own formulation: undirected arcs, parallel arcs, flows decomposed along chains (path flows, with no circulations), and the minimum taken over arc sets meeting every chain, together with the proof's intermediate claims. Max-flow min-cut theorems already on the platform (Applied Combinatorics VIII, AppliedComb.Flows.max_flow_min_cut; Introduction to Linear Optimization X, LinearOptimization.max_flow_min_cut) concern directed networks with edge flows obeying conservation and cuts given by vertex sets. They are related results, not this statement, and connecting the two models is itself welcome work.

Difficulty

Weak duality (milestone 6) is immediate; the content is the reverse inequality. The obvious first step, taking a maximal flow and observing that its saturated arcs separate aaa from bbb, does not finish the proof: a positive chain flow may pass through several saturated arcs, so the total capacity of the saturated arcs can exceed the flow value. One has to single out a disconnecting subset that every positive chain flow crosses exactly once, and there is no canonical choice from a single flow. The paper's sets SSS and LLL are defined from all maximal flows at once, and the work consists in showing that these sets are well behaved. The orientation claim in particular needs an exchange argument on two chains that cross at an arc, where the recombined arc sequences may revisit vertices and must be reduced to chains. In a formal development this "a walk contains a chain" step and the averaging of maximal flows over finitely many chains are the main bookkeeping costs.

Formalization scope

  • A network is a structure on a vertex type V and an arc type E, both Fintype with decidable equality, with end-vertex maps tail, head (labels only, no direction), tail e ≠ head e, a source and a sink with source ≠ sink, and capacities cap : E → ℝ with 0 < cap e. These are the paper's standing assumptions; there are no others in §1. In particular, no planarity is assumed and an arc may join aaa and bbb directly.
  • A chain is a Finset E that is the arc set of some arrangement (list of arcs, list of pairwise distinct vertices, each arc joining consecutive vertices in either order).
  • A flow is a function f : Finset E → ℝ, non-negative, zero off the chains joining source and sink, with every arc load at most the capacity. A collection of chain flows that lists a chain twice merges into this form without changing the value or any load.
  • "Maximal" means of maximum value. The goal is stated with IsGreatest and IsLeast on the sets of flow values and of values of disconnecting sets, so no supremum of a real set appears and both extrema must be attained.
  • A trivializing formalization is ruled out: chains must be self-avoiding and must join the source and the sink, the disconnecting condition quantifies over exactly these chains, and the minimum ranges over all disconnecting sets rather than over a family chosen to match a given flow.
  • Needed infrastructure: finite sums over Finset (Finset E), convexity in Finset E → ℝ, compactness of the flow polytope (for existence), and lemmas on lists (extracting a chain from a walk). The walk-to-chain lemma and weak duality are reusable for the companion mission and for any path-flow model.

Selected references

  • L. R. Ford, Jr. and D. R. Fulkerson, Maximal Flow Through a Network, Canadian Journal of Mathematics 8 (1956), 399–404. https://doi.org/10.4153/CJM-1956-045-5
  • P. Elias, A. Feinstein and C. E. Shannon, A note on the maximum flow through a network, IRE Transactions on Information Theory 2 (1956), 117–119. https://doi.org/10.1109/TIT.1956.1056816
  • K. Menger, Zur allgemeinen Kurventheorie, Fundamenta Mathematicae 10 (1927), 96–115. https://doi.org/10.4064/fm-10-1-96-115
  • L. R. Ford, Jr. and D. R. Fulkerson, Flows in Networks, Princeton University Press, 1962.
  • J. Edmonds and R. M. Karp, Theoretical improvements in algorithmic efficiency for network flow problems, Journal of the ACM 19 (1972), 248–264. https://doi.org/10.1145/321694.321699
  • A. Schrijver, On the history of the transportation and maximum flow problems, Mathematical Programming 91 (2002), 437–445. https://doi.org/10.1007/s101070100259
13 thms3 active usersReviewed
🏆Completed
CombinatoricsGraph TheoryLinear Optimization+1·Captain: mikedeng1

Maximum Matching and a Polyhedron With 0,1-Vertices: The Vertices of the Matching Polyhedron Are Exactly the Matching VectorsResearch Paper

Motivation

A matching in a graph is a set of edges no two of which share a node. Given a real weight on every edge, the maximum-weight matching problem asks for a matching of largest total weight. It is one of the basic problems of combinatorial optimization: assignment, pairing and scheduling problems reduce to it, and it is the standard example of a combinatorial problem that is solvable in polynomial time although it is not obviously a linear program.

For bipartite graphs the problem is a linear program in disguise: the polytope cut out by nonnegativity and the node-degree inequalities has only 0–1 vertices (the Birkhoff–von Neumann theorem in the square case; Mathlib has it as extremePoints_doublyStochastic). For general graphs this fails already on a triangle, where the vector with every coordinate 1/21/21/2 satisfies all degree inequalities but is not a combination of matchings. Edmonds' 1965 paper (DOI 10.6028/jres.069b.013) adds one family of inequalities, one for each odd set of nodes, and proves that the resulting polyhedron has exactly the matching vectors as its vertices. The companion paper Paths, trees, and flowers gives the cardinality algorithm on which the weighted algorithm of §7 is built.

Timeline:

  • 1931: König and Egerváry prove the min–max theorems for bipartite matching; 1946: Birkhoff shows that the doubly stochastic matrices are the convex hull of the permutation matrices (the bipartite perfect-matching polytope).
  • 1947: Tutte characterizes graphs with a perfect matching.
  • 1965: Edmonds, Paths, trees, and flowers: the blossom algorithm for maximum-cardinality matching.
  • 1965: Edmonds, this paper: Theorem (P) (the matching polyhedron) and Theorem (M) (blossom-shrinking optimality certificates), with a weighted matching algorithm.

Setting

Let GGG be a finite graph with node set VVV and edge set EEE; each edge meets two different nodes, its ends. Real variables xex_exe​ correspond to the edges e∈Ee\in Ee∈E. The polyhedron C⊆REC\subseteq\mathbb R^EC⊆RE is the set of vectors xxx satisfying

  1. xe≥0x_e\ge 0xe​≥0 for every edge eee;
  2. ∑e meets vxe≤1\sum_{e \text{ meets } v} x_e\le 1∑e meets v​xe​≤1 for every node vvv;
  3. ∑e has both ends in Sxe≤r\sum_{e \text{ has both ends in } S} x_e\le r∑e has both ends in S​xe​≤r for every set SSS of 2r+12r+12r+1 nodes, rrr a strictly positive integer.

The matching vectors PPP are the vectors with every component 000 or 111 that satisfy (2); they are the incidence vectors of matchings. For edge weights c∈REc\in\mathbb R^Ec∈RE, the linear form (4) is W(c,x)=∑ecexeW(c,x)=\sum_e c_e x_eW(c,x)=∑e​ce​xe​.

The dual program has a variable yvy_vyv​ for each node and zSz_SzS​ for each odd set SSS (∣S∣=2rS+1|S|=2r_S+1∣S∣=2rS​+1, rS≥1r_S\ge1rS​≥1). Its objective is (5) U(y,z)=∑vyv+∑SrSzSU(y,z)=\sum_v y_v+\sum_S r_S z_SU(y,z)=∑v​yv​+∑S​rS​zS​, subject to (6) y,z≥0y,z\ge0y,z≥0 and (7) yv1+yv2+∑S∋v1,v2zS≥cey_{v_1}+y_{v_2}+\sum_{S\ni v_1,v_2}z_S\ge c_eyv1​​+yv2​​+∑S∋v1​,v2​​zS​≥ce​ for every edge eee with ends v1,v2v_1,v_2v1​,v2​. For a matching MMM, conditions (8)–(10) are the complementary slackness conditions: yv=0y_v=0yv​=0 at nodes not covered by MMM, equality in (7) on MMM, and every odd set with zS>0z_S>0zS​>0 contains exactly rSr_SrS​ edges of MMM.

A blossom sequence {Gi}i=0n\{G_i\}_{i=0}^n{Gi​}i=0n​ (Theorem (M)) starts from G0=GG_0=GG0​=G with matching M0=MM_0=MM0​=M and repeatedly shrinks an odd circuit BiB_iBi​ (a blossom, 2ai+12a_i+12ai​+1 edges of which aia_iai​ are matched) to a single node, carrying node weights w(vi)w(v^i)w(vi) and edge weights w(ei)w(e^i)w(ei) that obey conditions (a)–(k) of p. 127.

In the Lean development these are Graph, IsMatching, incidence, matchingPolyhedron (CCC), matchingVectors (PPP), W, U, DualFeasible ((6)–(7)), CompSlack ((8)–(10)) and BlossomSequence, all in the namespace EdmondsMatching65.Polyhedron.

Formalization targets

Goal: Theorem (P)

ext⁡(C)=P.\operatorname{ext}(C)=P.ext(C)=P.

The vertices (extreme points) of CCC are exactly the matching vectors of GGG. Hence the maximum weight of a matching equals max⁡{W(c,x):x∈C}\max\{W(c,x):x\in C\}max{W(c,x):x∈C} for every ccc.

Milestones

  1. P⊆ext⁡(C)P\subseteq\operatorname{ext}(C)P⊆ext(C) (§2, p. 126).
  2. If for every ccc some 0–1 point of CCC maximizes W(c,⋅)W(c,\cdot)W(c,⋅) over CCC, then ext⁡(C)=P\operatorname{ext}(C)=Pext(C)=P (§2, p. 126).
  3. Weak duality: W(c,x)≤U(y,z)W(c,x)\le U(y,z)W(c,x)≤U(y,z) for x∈Cx\in Cx∈C and ⟨y,z⟩\langle y,z\rangle⟨y,z⟩ satisfying (6)–(7) (§3, p. 126).
  4. If MMM is a matching and ⟨y,z⟩\langle y,z\rangle⟨y,z⟩ satisfies (6)–(10), then W(c,χM)=U(y,z)W(c,\chi^M)=U(y,z)W(c,χM)=U(y,z) (§3, p. 127).
  5. A blossom sequence for MMM yields ⟨y,z⟩\langle y,z\rangle⟨y,z⟩ satisfying (6)–(10) (§5, pp. 127–128).
  6. For every ccc some maximum matching has a blossom sequence (§6, p. 128).
  7. Theorem (M): a matching is maximum if and only if a blossom sequence for it exists (§4, p. 127).
  8. For every ccc there are a matching MMM and ⟨y,z⟩\langle y,z\rangle⟨y,z⟩ satisfying (6)–(10) (§3, p. 127).

Significance

The result. Theorem (P) turns maximum-weight matching in general graphs into a linear program over an explicitly described polyhedron, and Theorem (M) with the §5 translation gives a short certificate of optimality for every maximum matching. Together they established the template of polyhedral combinatorics: describe the convex hull of the combinatorial objects by inequalities, and prove the description through linear programming duality and an algorithm. The matching polytope underlies the analysis of the weighted blossom algorithm, separation over odd-set inequalities (Padberg–Rao), and many later integrality results; Edmonds' own §8 states the extension to degree-constrained subgraphs.

Formalizing it. The theorem has been proved since 1965 and appears in every text on combinatorial optimization; this mission asks for a machine-checked proof of the polytope statement for general finite graphs, including parallel edges, together with the duality certificate and the blossom-sequence characterization. The prove2me platform has a proved form of Edmonds' perfect matching polytope theorem on complete graphs in convex-decomposition form (MetricTSP.pm_polytope_decomposition), a different polytope with a different conclusion; nothing states Theorem (P) or Theorem (M).

Difficulty

The inclusion P⊆ext⁡(C)P\subseteq\operatorname{ext}(C)P⊆ext(C) and weak duality are routine. The difficulty is the reverse inclusion: showing that no fractional point of CCC is a vertex. The bipartite argument (a fractional point has a cycle of fractional edges along which it can be perturbed both ways) breaks on odd cycles: perturbing along an odd circuit violates a degree inequality, and the odd-set inequalities that cut off the half-integral points are exponentially many and overlap. The paper's route needs, for every weight vector, an optimal matching together with a dual solution satisfying (6)–(10), and the existence of that certificate is the substance of the weighted matching algorithm: the blossom sequence of Theorem (M) must be constructed, and the translation (11)–(16) from node and edge weights of the contracted graphs to ⟨y,z⟩\langle y,z\rangle⟨y,z⟩ must be verified through the whole shrinking history.

Formalization scope

  • The graph is a finite node type V, a finite edge type E and an end map ends : E → Sym2 V with no loops. Parallel edges are allowed: the contracted graphs of Theorem (M) have them, and Theorem (P) holds for multigraphs; simple graphs are the case of an injective end map.
  • Vectors are E → ℝ, one coordinate per edge. Vertices are Mathlib's Set.extremePoints ℝ. Odd sets carry an explicit r : ℕ with 1 ≤ r and |S| = 2r + 1; even sets and singletons carry no inequality.
  • Edge weights are arbitrary reals; matchings need not be perfect and may be empty. No connectivity, no parity of |V|.
  • The dual variable z is a function on all node sets of which only odd sets are read.
  • A contracted graph Gᵢ is a partition of V into blocks; an edge of G is an edge of Gᵢ when its ends lie in different blocks. Each Mᵢ must be a matching of Gᵢ, and all of (a)–(k) appear as fields of BlossomSequence; a sequence missing any of them would make milestone 6 trivial or milestone 5 false.
  • A trivializing formalization is ruled out: coordinates indexed by node pairs (Sym2 V → ℝ) leave non-edge coordinates free and give a polyhedron with no extreme points, and the goal is stated as equality of extreme points, not as a convex-hull identity or as the existence of a dual certificate.
  • Needed infrastructure: extreme points of polyhedra as unique maximizers of linear forms, finite LP weak duality over these index sets, and the weighted blossom algorithm (or another proof of milestone 8). The polyhedral lemmas are reusable for other integrality results; contributions on any milestone are welcome.

Selected references

  • J. Edmonds, Maximum Matching and a Polyhedron With 0,1-Vertices, J. Res. Nat. Bur. Standards Sect. B 69B (1965), 125–130. https://doi.org/10.6028/jres.069b.013
  • J. Edmonds, Paths, Trees, and Flowers, Canad. J. Math. 17 (1965), 449–467. https://doi.org/10.4153/CJM-1965-045-4
  • W. T. Tutte, The Factorization of Linear Graphs, J. London Math. Soc. 22 (1947), 107–111. https://doi.org/10.1112/jlms/s1-22.2.107
  • M. W. Padberg, M. R. Rao, Odd Minimum Cut-Sets and b-Matchings, Math. Oper. Res. 7 (1982), 67–80. https://doi.org/10.1287/moor.7.1.67
  • A. Schrijver, Combinatorial Optimization: Polyhedra and Efficiency, Springer, 2003, Chapter 25.
13 thms3 active usersReviewed
🏆Completed
Convex OptimizationLinear OptimizationOperations Research·Captain: mikedeng1

Linear Programming: Foundations and Extensions II: Farkas' Lemma and Strict Complementary SlacknessTextbook

Motivation

Every linear program comes with a second linear program, its dual, and most of what is known about linear programming is a statement about how the two interact. Weak duality gives certificates of optimality; strong duality says those certificates always exist; complementary slackness turns optimality into a system of equations. These three facts are the core of any first course in optimization and of every correctness argument for the simplex method.

Strict complementarity is the sharpest statement of the same kind. Complementary slackness says that in each pair (a primal variable and its dual slack, a dual variable and its primal slack) at least one member vanishes at optimality. Strict complementarity says that some optimal pair can be chosen so that exactly one member vanishes in each pair. The result is due to Goldman and Tucker (1956). It is what identifies the optimal face of a linear program and its partition of the variables into those that can be positive at an optimum and those that cannot, and it is a standing ingredient in the analysis of interior-point methods, which approach this strictly complementary optimum rather than a vertex.

This mission formalizes the chain from duality to strict complementarity as it is developed in Chapters 5 and 10 of Vanderbei, Linear Programming: Foundations and Extensions (4th ed., Springer 2014, doi:10.1007/978-1-4614-7630-6). It is the second mission of a series on that book.

Timeline:

  • 1902 — Farkas publishes the lemma on the solvability of linear inequality systems.
  • 1947–1951 — von Neumann, and Gale, Kuhn and Tucker, establish linear programming duality.
  • 1956 — Goldman and Tucker prove the existence of strictly complementary optimal solutions (in Linear Inequalities and Related Systems, Annals of Mathematics Studies 38).

Setting

Fix integers m,n≥0m, n \ge 0m,n≥0, a real m×nm \times nm×n matrix A=(aij)A = (a_{ij})A=(aij​), a vector b∈Rmb \in \mathbb{R}^mb∈Rm and a vector c∈Rnc \in \mathbb{R}^nc∈Rn. The primal problem is

maximize cTxsubject toAx+w=b,x≥0, w≥0,(10.9)\text{maximize } c^T x \quad\text{subject to}\quad Ax + w = b,\quad x \ge 0,\ w \ge 0, \qquad (10.9)maximize cTxsubject toAx+w=b,x≥0, w≥0,(10.9)

where w=b−Axw = b - Axw=b−Ax is the primal slack. The dual problem is

minimize bTysubject toATy−z=c,y≥0, z≥0,(10.10)\text{minimize } b^T y \quad\text{subject to}\quad A^T y - z = c,\quad y \ge 0,\ z \ge 0, \qquad (10.10)minimize bTysubject toATy−z=c,y≥0, z≥0,(10.10)

where z=ATy−cz = A^T y - cz=ATy−c is the dual slack. A vector xxx is primal feasible if x≥0x \ge 0x≥0 and w≥0w \ge 0w≥0; it is primal optimal if it is feasible and cTx′≤cTxc^T x' \le c^T xcTx′≤cTx for every feasible x′x'x′. Dual feasibility and dual optimality are defined in the same way, with minimization. Inequalities between vectors are componentwise, and ξ>0\xi > 0ξ>0 means that every component of ξ\xiξ is strictly positive.

A halfspace of Rn\mathbb{R}^nRn is a set {x:aTx≤β}\{x : a^T x \le \beta\}{x:aTx≤β} with a≠0a \ne 0a=0; a polyhedron is a set {x:Ax≤b}\{x : Ax \le b\}{x:Ax≤b} for some mmm, AAA and bbb.

In the Lean development these objects live in the namespace VanderbeiLP.StrictComp: primalSlack A b x, dualSlack A c y, PrimalFeasible, DualFeasible, PrimalOptimal, DualOptimal, IsHalfspace, IsPolyhedron.

Formalization targets

Goal: Strict Complementary Slackness (Theorem 10.7)

If the primal (10.9) has an optimal solution, then there exist a primal optimal x∗x^*x∗ and a dual optimal y∗y^*y∗, with slacks w∗=b−Ax∗w^* = b - Ax^*w∗=b−Ax∗ and z∗=ATy∗−cz^* = A^T y^* - cz∗=ATy∗−c, such that

x∗+z∗>0andy∗+w∗>0.x^* + z^* > 0 \qquad\text{and}\qquad y^* + w^* > 0.x∗+z∗>0andy∗+w∗>0.

The only hypothesis is primal optimality; the existence of a dual optimum is part of the conclusion.

Milestones

  1. Theorem 5.1 (Weak Duality). Primal feasible xxx and dual feasible yyy satisfy cTx≤bTyc^T x \le b^T ycTx≤bTy.
  2. Theorem 5.2 (Strong Duality). If the primal has an optimal x∗x^*x∗, the dual has an optimal y∗y^*y∗ with cTx∗=bTy∗c^T x^* = b^T y^*cTx∗=bTy∗.
  3. Theorem 5.3 (Complementary Slackness). Feasible xxx, yyy are both optimal if and only if xjzj=0x_j z_j = 0xj​zj​=0 for all jjj and wiyi=0w_i y_i = 0wi​yi​=0 for all iii.
  4. Lemma 10.5 (Farkas' Lemma). Ax≤bAx \le bAx≤b has no solution if and only if some yyy satisfies ATy=0A^T y = 0ATy=0, y≥0y \ge 0y≥0, bTy<0b^T y < 0bTy<0.
  5. Theorem 10.4 (Separation of polyhedra). Two disjoint nonempty polyhedra lie in two disjoint halfspaces.
  6. Theorem 10.6. If both problems are feasible, there are feasible xˉ\bar xxˉ, yˉ\bar yyˉ​ with xˉ+zˉ>0\bar x + \bar z > 0xˉ+zˉ>0 and yˉ+wˉ>0\bar y + \bar w > 0yˉ​+wˉ>0.

Theorem 10.6 is the feasible-solution version of the goal; Theorem 10.4 is a further consequence of Farkas' Lemma in the same chapter.

Significance

Strict complementarity determines the optimal partition: the set of indices jjj for which some optimal x∗x^*x∗ has xj∗>0x^*_j > 0xj∗​>0 is exactly the complement of the set for which some optimal dual slack zj∗z^*_jzj∗​ is positive. This partition describes the optimal faces of both problems, is the object that interior-point methods recover in the limit, and is the starting point of sensitivity analysis beyond a single optimal basis. Farkas' Lemma and the separation theorem are the linear-algebraic form of convex separation and are reused across optimization, game theory and polyhedral combinatorics.

All results of this mission are classical and proved in the literature. What the mission adds is a machine-checked version of them in one fixed linear-programming form, the inequality form with explicit slacks used throughout Vanderbei's book. Weak duality, strong duality and complementary slackness are already formalized on this platform for other forms (Bertsimas–Tsitsiklis's general form, a minimization, and a covering pair with the roles of primal and dual exchanged). Those statements are equivalent to the ones here only after a transformation (negating the objective, swapping primal and dual), so they are not the same theorems. The Farkas variant for inequality systems, the separation theorem for two polyhedra, and both strict complementarity theorems have no formal counterpart on the platform.

Difficulty

Weak duality and the converse direction of complementary slackness are short computations. The substance lies elsewhere. Strong duality and Farkas' Lemma require a genuine existence argument; the book obtains them from the simplex method, whose termination is itself a nontrivial fact, and any other route needs an independent theorem of the alternative.

For strict complementarity the obvious attempt fails. Complementary slackness gives, for each optimal pair, only that one member of each complementary pair vanishes; nothing in a single optimal basic solution forces the other member to be positive, and in degenerate problems every basic optimal pair can fail strictness. A strictly complementary pair is in general not a vertex of either optimal face, so it cannot be found by inspecting basic solutions. The goal also asks for more than Theorem 10.6: the positivity must be achieved within the optimal sets, which are faces cut out by an additional objective-level constraint, so the feasible-solution argument does not transfer verbatim.

Formalization scope

Vectors are Fin n → ℝ and Fin m → ℝ; the constraint matrix is Matrix (Fin m) (Fin n) ℝ; m and n are arbitrary natural numbers, including zero. The slacks are functions of the solution (primalSlack A b x = b - A *ᵥ x, dualSlack A c y = Aᵀ *ᵥ y - c), never free variables, so a "solution (x,w)(x, w)(x,w)" of the book is the vector xxx with the slack it determines. Optimality is attainment of the maximum (minimum) over the feasible set; no supremum, value function or extended reals are involved. The strict inequality ξ>0\xi > 0ξ>0 is written componentwise as ∀ j, 0 < x j + dualSlack A c y j and ∀ i, 0 < y i + primalSlack A b x i.

A halfspace carries a nonzero normal vector. Without that requirement the empty set would be a halfspace and the separation theorem would be trivial; the formal definition rules this out.

The book states every result in this mission with its hypotheses explicit, and none of them asserts the existence of an unspecified constant, so no explicit-constant instantiation was needed. The remark after Theorem 10.7 refers to "the complementary slackness theorem (Theorem 5.1)"; the complementary slackness theorem is Theorem 5.3, and the milestones follow the theorem numbering.

A complete development needs a theorem of the alternative for real linear inequality systems (Mathlib has Farkas-type results for cones and the geometric Hahn–Banach theorem, but no ready-made matrix version of Lemma 10.5) and elementary convex-combination arguments on feasible sets. The definitions of this mission are self-contained and reusable for any later chapter that works in Vanderbei's inequality form. Proofs of any milestone are welcome, as are proofs that avoid the simplex method.

Selected references

  • R. J. Vanderbei, Linear Programming: Foundations and Extensions, 4th ed., International Series in Operations Research & Management Science 196, Springer, 2014. doi:10.1007/978-1-4614-7630-6
  • J. Farkas, "Theorie der einfachen Ungleichungen", Journal für die reine und angewandte Mathematik 124 (1902), 1–27. doi:10.1515/crll.1902.124.1
  • A. J. Goldman and A. W. Tucker, "Theory of linear programming", in Linear Inequalities and Related Systems, Annals of Mathematics Studies 38, Princeton University Press, 1956, 53–97.
  • D. Gale, H. W. Kuhn and A. W. Tucker, "Linear programming and the theory of games", in Activity Analysis of Production and Allocation, Wiley, 1951, 317–329.
9 thms3 active usersReviewed
🏆Completed
Convex OptimizationLinear OptimizationOperations Research·Captain: mikedeng1

Minimization Methods for Non-Differentiable Functions XI: Convexity and Subgradients of the Value Function in Decomposition with Respect to VariablesTextbook

Motivation

Large convex programs often have a block structure: a small set of "complicating" variables xxx couples otherwise separate subproblems in the remaining variables yyy. Decomposition with respect to variables fixes xxx, solves the subproblem in yyy, and treats the optimal subproblem value as a function of xxx alone. The outer problem in xxx is then small but nonsmooth, because the optimal value of a constrained program is generally not differentiable in its parameters. Shor's Chapter 4 (Shor 1985, Ch. 4) presents this reduction as a principal application of subgradient methods: once a subgradient of the outer function can be read off from the subproblem, the methods of Chapters 2–3 apply directly. The same construction underlies Benders decomposition (Benders 1962) and its convex generalization (Geoffrion 1972), and parametric decomposition schemes for linear programs.

The chapter's other numbered results serve the same programme from the dual side: the Lagrangian dual function of a program over a compact set gives a lower bound usable in branch and bound (Theorem 4.3), exact nonsmooth penalty functions turn a constrained convex program into one unconstrained nonsmooth minimization (Theorem 4.2; nonsmooth penalties were first studied systematically by I. I. Eremin, 1967), and a stochastic transportation model is shown to be a convex program before being solved through its dual (Lemma 4.3).

Setting

The variables split into x∈Elxx \in E^x_lx∈Elx​ and y∈Emyy \in E^y_my∈Emy​ (Euclidean spaces, inner product (⋅,⋅)(\cdot,\cdot)(⋅,⋅)). The problem is

min⁡x,yf0(x,y)s.t.fi(x,y)≤0,i=1,…,n,(4.1)–(4.2)\min_{x,y} f_0(x,y) \quad \text{s.t.} \quad f_i(x,y) \le 0,\quad i = 1,\dots,n, \qquad (4.1)\text{–}(4.2)x,ymin​f0​(x,y)s.t.fi​(x,y)≤0,i=1,…,n,(4.1)–(4.2)

with f0,f1,…,fnf_0, f_1, \dots, f_nf0​,f1​,…,fn​ convex functions of z=(x,y)z = (x,y)z=(x,y) (jointly convex), finite everywhere. For a fixed xˉ\bar xxˉ, the subproblem (4.3)–(4.4) is min⁡y∈D(xˉ)f0(xˉ,y)\min_{y \in D(\bar x)} f_0(\bar x, y)miny∈D(xˉ)​f0​(xˉ,y) with D(xˉ)={y:fi(xˉ,y)≤0}D(\bar x) = \{y : f_i(\bar x,y) \le 0\}D(xˉ)={y:fi​(xˉ,y)≤0}. Where it has a solution y(xˉ)y(\bar x)y(xˉ), the value function is

Φ(xˉ)=min⁡y∈D(xˉ)f0(xˉ,y).(4.5)\Phi(\bar x) = \min_{y \in D(\bar x)} f_0(\bar x,y). \qquad (4.5)Φ(xˉ)=y∈D(xˉ)min​f0​(xˉ,y).(4.5)

The Slater condition at xˉ\bar xxˉ asks for a yyy with fi(xˉ,y)<0f_i(\bar x,y) < 0fi​(xˉ,y)<0 for all iii. The Lagrange function is LU(x,y)=f0(x,y)+∑iUifi(x,y)L_U(x,y) = f_0(x,y) + \sum_i U_i f_i(x,y)LU​(x,y)=f0​(x,y)+∑i​Ui​fi​(x,y), and U≥0U \ge 0U≥0 are Kuhn–Tucker multipliers at xˉ\bar xxˉ when Φ(xˉ)=min⁡yLU(xˉ,y)\Phi(\bar x) = \min_y L_U(\bar x,y)Φ(xˉ)=miny​LU​(xˉ,y). A subgradient of a function of (x,y)(x,y)(x,y) is written through its projections (gx,gy)(g^x, g^y)(gx,gy) on the two blocks; a subgradient of Φ\PhiΦ at xˉ\bar xxˉ is a ggg with Φ(x)−Φ(xˉ)≥(x−xˉ,g)\Phi(x) - \Phi(\bar x) \ge (x - \bar x, g)Φ(x)−Φ(xˉ)≥(x−xˉ,g).

Formalization targets

Goal: Theorem 4.1 (p. 94)

If WWW is a convex set of xxx-values at which the subproblem has a solution, then Φ\PhiΦ is convex on WWW; and if xˉ∈W\bar x \in Wxˉ∈W satisfies the Slater condition, then for every optimal y(xˉ)y(\bar x)y(xˉ), multipliers UUU exist, LUL_ULU​ has a subgradient at (xˉ,y(xˉ))(\bar x, y(\bar x))(xˉ,y(xˉ)) with vanishing yyy-projection, and the xxx-projection of any such subgradient satisfies

gΦ(xˉ)=gLUx(xˉ,y(xˉ))∈∂Φ(xˉ).(4.6)g_\Phi(\bar x) = g^x_{L_U}(\bar x, y(\bar x)) \in \partial \Phi(\bar x). \qquad (4.6)gΦ​(xˉ)=gLU​x​(xˉ,y(xˉ))∈∂Φ(xˉ).(4.6)

Milestones for the goal

  1. Convexity of Φ\PhiΦ on WWW (Theorem 4.1, first assertion).
  2. Existence of Kuhn–Tucker multipliers for the subproblem under Slater (p. 95, display).
  3. Existence of a subgradient of LUL_ULU​ with vanishing yyy-projection (p. 95).
  4. Formula (4.6) for a given multiplier vector and such a subgradient (p. 95, final display).

Further results of the chapter

  1. Corollary (4.7): if each fα(x,⋅)f_\alpha(x,\cdot)fα​(x,⋅) is continuously differentiable in yyy, then gf0x+∑iUigfixg^x_{f_0} + \sum_i U_i g^x_{f_i}gf0​x​+∑i​Ui​gfi​x​, built from arbitrary subgradients of the fαf_\alphafα​, is a subgradient of Φ\PhiΦ.
  2. Lemma 4.3: the stochastic transportation problem (4.163)–(4.165) is a convex program.
  3. Theorem 4.2: with nonsmooth penalties pip_ipi​ whose slopes ci=lim⁡t→0+pi(t)/tc_i = \lim_{t\to0+} p_i(t)/tci​=limt→0+​pi​(t)/t exceed a Lagrange multiplier vector yˉ\bar yyˉ​, the minimizers of S=f0+∑pi∘fiS = f_0 + \sum p_i \circ f_iS=f0​+∑pi​∘fi​ are exactly the solutions of the constrained program; and if a minimizer of SSS solves the program, some multiplier vector satisfies yˉ≤c\bar y \le cyˉ​≤c.
  4. Theorem 4.3: for Φ(u)=min⁡x∈X[f0+∑uifi]\Phi(u) = \min_{x\in X}[f_0 + \sum u_i f_i]Φ(u)=minx∈X​[f0​+∑ui​fi​] over a compact XXX, Q=max⁡u≥0Φ(u)≤f∗Q = \max_{u\ge0}\Phi(u) \le f^*Q=maxu≥0​Φ(u)≤f∗.

Significance

The result itself. Theorem 4.1 is what makes decomposition with respect to variables an instance of convex nonsmooth minimization: the outer problem is convex, and one subproblem solve returns both Φ(xˉ)\Phi(\bar x)Φ(xˉ) and a subgradient. The algorithm on p. 96 — solve the subproblem at xkx_kxk​, form gΦ(xk)g_\Phi(x_k)gΦ​(xk​) by (4.6) or (4.7), take a subgradient step — is exactly this, and the step-size theory of Chapter 2 then gives convergence. The Corollary is the version used in practice for linear and quadratic subproblems, where multipliers and partial subgradients are computed directly. Theorem 4.2 justifies replacing constraints by nonsmooth penalties of finite slope, and Theorem 4.3 is the weak-duality bound behind Lagrangian relaxation in branch and bound.

Formalizing it. All results are classical and proved in the book; none is formalized as stated here. The platform already has related statements with different shapes: convexity of the perturbation value function in the constraint right-hand side (VectorSpaceOpt.perturbationValue_convex, Luenberger), Slater strong duality over the whole space (ConvexOptimization.slater_strong_duality), weak duality with an unconstrained domain (ConvexOptimization.weak_duality), weak Lagrangean duality for integer programs (LinearOptimization.integer_program_weak_lagrangean_duality), and the LP special case of convexity of the optimal cost (LinearOptimization.lp_optimal_cost_convex_in_rhs). This mission adds the partial-minimization form in which one block of variables is minimized out under joint convexity, its subgradient calculus, exact nonsmooth penalties, and weak duality over a compact domain.

Difficulty

Convexity of Φ\PhiΦ is elementary once the minimum is attained. The subgradient formula is where the obvious argument fails: an arbitrary subgradient of LUL_ULU​ at (xˉ,y(xˉ))(\bar x, y(\bar x))(xˉ,y(xˉ)) does not project to a subgradient of Φ\PhiΦ, because its yyy-projection contributes a term (y(x)−y(xˉ),gy)(y(x) - y(\bar x), g^y)(y(x)−y(xˉ),gy) of unknown sign. The theorem needs a subgradient whose yyy-projection vanishes, and its existence is a separate fact about partial minimization of a jointly convex, everywhere-finite function. The multipliers come from the Kuhn–Tucker theorem for the subproblem, which requires the Slater condition. In the Corollary, the difficulty is to show that differentiability in yyy forces the yyy-projection of any combination gf0+∑Uigfig_{f_0} + \sum U_i g_{f_i}gf0​​+∑Ui​gfi​​ to vanish. In Theorem 4.2 the necessity part needs a subdifferential chain rule for pi∘fip_i \circ f_ipi​∘fi​.

Formalization scope

  • ElxE^x_lElx​, EmyE^y_mEmy​ and ENE_NEN​ are EuclideanSpace ℝ (Fin l), EuclideanSpace ℝ (Fin m), EuclideanSpace ℝ (Fin N); constraints are indexed by Fin n (or Fin m). All functions are real-valued and finite everywhere; joint convexity is convexity on the product Elx×EmyE^x_l \times E^y_mElx​×Emy​.
  • Φ\PhiΦ is a real infimum over D(x)D(x)D(x). It is the book's minimum wherever the minimum is attained, and every statement assumes attainment at each point of WWW. A statement about Φ\PhiΦ at points where the subproblem has no solution would be about Lean's default value 000, and is ruled out by these hypotheses.
  • "Convex on some convex subset WWW of EnE_nEn​" is read as convexity on every convex WWW on which Φ\PhiΦ is defined. A formalization quantifying over a single unspecified WWW (e.g. a singleton) would be trivially true.
  • Formula (4.6) is stated for subgradients of LUL_ULU​ whose yyy-projection is zero, as the book's proof uses it; the subgradient inequality for Φ\PhiΦ is stated on all of WWW.
  • Kuhn–Tucker multipliers relative to an optimal yˉ\bar yyˉ​: U≥0U \ge 0U≥0, Uifi(xˉ,yˉ)=0U_i f_i(\bar x,\bar y) = 0Ui​fi​(xˉ,yˉ​)=0, and yˉ\bar yyˉ​ minimizes LU(xˉ,⋅)L_U(\bar x,\cdot)LU​(xˉ,⋅) over all yyy.
  • Theorem 4.2: a Lagrange multiplier vector is yˉ≥0\bar y \ge 0yˉ​≥0 with f0+∑yˉifi≥f∗f_0 + \sum\bar y_i f_i \ge f^*f0​+∑yˉ​i​fi​≥f∗ everywhere, f∗f^*f∗ the finite optimal value; the necessity clause is read as "for some multiplier vector" (for all multiplier vectors it is false); the limits cic_ici​ are given as hypotheses.
  • Theorem 4.3: the minimum (4.187) attained for every u≥0u \ge 0u≥0 (the book's "min"; no continuity assumed); f∗f^*f∗ attained; QQQ attained as the book's "max" presupposes.
  • Lemma 4.3: demands with densities and finite mean, penalty coefficients rj≥0r_j \ge 0rj​≥0.

Useful infrastructure beyond this mission: partial minimization of jointly convex functions, subgradients on product spaces, and a Kuhn–Tucker saddle-point theorem for convex programs with inequality constraints. Proofs of any milestone, and reusable lemmas for these, are welcome.

Selected references

  • N. Z. Shor, Minimization Methods for Non-Differentiable Functions, Springer Series in Computational Mathematics 3, Springer, 1985, Ch. 4, pp. 93–96, 131–133, 146–148. https://doi.org/10.1007/978-3-642-82118-9
  • J. F. Benders, Partitioning procedures for solving mixed-variables programming problems, Numerische Mathematik 4, 1962, 238–252. https://doi.org/10.1007/BF01386316
  • A. M. Geoffrion, Generalized Benders decomposition, Journal of Optimization Theory and Applications 10, 1972, 237–260. https://doi.org/10.1007/BF00934810
  • I. I. Eremin, The penalty method in convex programming, Soviet Mathematics Doklady 8, 1967, 459–462 (Shor's reference [22]).
  • R. T. Rockafellar, Convex Analysis, Princeton University Press, 1970, §29 (partial minimization and perturbation functions). https://doi.org/10.1515/9781400873173
12 thms3 active usersReviewed
🏆Completed
Convex OptimizationNumerical AnalysisOperations Research·Captain: mikedeng1

Minimization Methods for Non-Differentiable Functions X: The Space-Dilation Ellipsoid Method Localizes the Solution in Ellipsoids Shrinking by the Ratio q_nTextbook

Motivation

The ellipsoid method is the algorithm that settled the polynomial-time solvability of linear programming (Khachiyan, 1979) and that underlies the equivalence of separation and optimization in combinatorial optimization (Grötschel, Lovász and Schrijver, 1981). Its origin is in nonsmooth convex optimization. In 1976 Yudin and Nemirovskii proposed a modified method of centered sections that localizes an optimum inside a sequence of ellipsoids, and in 1977 N. Z. Shor observed independently that the same scheme is a subgradient method with space dilation along the gradient, the family of methods he had developed since 1969. Section 3.8 of Shor's monograph Minimization Methods for Non-Differentiable Functions (Springer 1985) presents the method in this second form and proves its basic localization property.

Timeline:

  • 1965. A. Yu. Levin proposes the method of centered sections (cuts through the center of gravity of a polyhedron); each cut removes at least a fixed fraction of the volume, but computing centers of gravity is impractical for n>3n > 3n>3.
  • 1969–1972. Shor introduces subgradient methods with space dilation along the gradient (SDG methods).
  • 1976. Yudin and Nemirovskii replace the polyhedron by a minimal ellipsoid containing a half-ellipsoid, obtaining a geometric volume decrease depending only on the dimension ([Yudin–Nemirovskii 1976]).
  • 1977. Shor shows that the same method is an SDG algorithm with coefficient β=(n−1)/(n+1)\beta = \sqrt{(n-1)/(n+1)}β=(n−1)/(n+1)​ ([Shor 1977]).
  • 1979. Khachiyan applies the method to linear inequalities with integer data, obtaining the first polynomial-time algorithm for linear programming ([Khachiyan 1979]).

Setting

Let EnE_nEn​ be nnn-dimensional Euclidean space with inner product (x,y)(x, y)(x,y), and n>1n > 1n>1. For a unit vector ξ\xiξ and a number α\alphaα, the operator of space dilation along ξ\xiξ with coefficient α\alphaα is Rα(ξ)=I+(α−1)ξξTR_\alpha(\xi) = I + (\alpha - 1)\xi\xi^TRα​(ξ)=I+(α−1)ξξT: it multiplies the component of a vector along ξ\xiξ by α\alphaα and leaves the orthogonal component unchanged.

Let g:En→Eng : E_n \to E_ng:En​→En​ be a vector field, not necessarily continuous. The problem is to find a point x∗x^*x∗ with

(g(x),x−x∗)≥0for all x∈En,(g(x), x - x^*) \ge 0 \quad \text{for all } x \in E_n,(g(x),x−x∗)≥0for all x∈En​,

where it is known that such an x∗x^*x∗ exists in the closed ball S(x0,R)S(x_0, R)S(x0​,R) of radius R>0R > 0R>0 about a given point x0x_0x0​. Put β=(n−1)/(n+1)\beta = \sqrt{(n-1)/(n+1)}β=(n−1)/(n+1)​ and r=n/n2−1r = n/\sqrt{n^2-1}r=n/n2−1​. The algorithm (3.57)–(3.60) starts from x0x_0x0​, B0=InB_0 = I_nB0​=In​, h0=R/(n+1)h_0 = R/(n+1)h0​=R/(n+1), and at iteration k+1k+1k+1 stops if g(xk)=0g(x_k) = 0g(xk​)=0, and otherwise sets

ξk=BkTg(xk)∥BkTg(xk)∥,xk+1=xk−hkBkξk,Bk+1=BkRβ(ξk),hk+1=rhk.\xi_k = \frac{B_k^T g(x_k)}{\|B_k^T g(x_k)\|}, \quad x_{k+1} = x_k - h_k B_k \xi_k, \quad B_{k+1} = B_k R_\beta(\xi_k), \quad h_{k+1} = r h_k .ξk​=∥BkT​g(xk​)∥BkT​g(xk​)​,xk+1​=xk​−hk​Bk​ξk​,Bk+1​=Bk​Rβ​(ξk​),hk+1​=rhk​.

With Ak=Bk−1A_k = B_k^{-1}Ak​=Bk−1​, the localizing ellipsoid is Φk={x:∥Ak(x−xk)∥≤(n+1)hk}\Phi_k = \{x : \|A_k(x - x_k)\| \le (n+1)h_k\}Φk​={x:∥Ak​(x−xk​)∥≤(n+1)hk​}, and the dimension-dependent ratio is

qn=n−1n+1(nn2−1)n<1.q_n = \sqrt{\frac{n-1}{n+1}}\left(\frac{n}{\sqrt{n^2-1}}\right)^n < 1 .qn​=n+1n−1​​(n2−1​n​)n<1.

Three problems produce such a field: minimizing a convex fff on a ball (the field (3.62), a subgradient inside the ball and the outward radial direction outside); the convex program min⁡f0\min f_0minf0​ s.t. fi≤0f_i \le 0fi​≤0 (the field (3.65), a subgradient of the objective at feasible points and of a most violated constraint otherwise); and a convex–concave saddle point problem (the field {gfx,−gfy}\{g_f^x, -g_f^y\}{gfx​,−gfy​}).

Formalization targets

Goal: Theorem 3.14 (p. 86)

For every kkk,

∥Ak(xk−x∗)∥≤hk(n+1),(3.61)\|A_k(x_k - x^*)\| \le h_k (n+1), \tag{3.61}∥Ak​(xk​−x∗)∥≤hk​(n+1),(3.61)

that is, x∗∈Φkx^* \in \Phi_kx∗∈Φk​. The statement holds for every field ggg satisfying the monotonicity condition at x∗x^*x∗; nothing about continuity or convexity is assumed.

Milestones

  1. Eq. (3.4): ∥Rα(ξ)x∥=∥x∥2+(α2−1)(x,ξ)2\|R_\alpha(\xi)x\| = \sqrt{\|x\|^2 + (\alpha^2-1)(x,\xi)^2}∥Rα​(ξ)x∥=∥x∥2+(α2−1)(x,ξ)2​ for unit ξ\xiξ.
  2. Volume of Φk\Phi_kΦk​ (p. 87): (n+1)hk=Rrk(n+1)h_k = R r^k(n+1)hk​=Rrk and v(Φk)=v0Rnrnk/det⁡Akv(\Phi_k) = v_0 R^n r^{nk}/\det A_kv(Φk​)=v0​Rnrnk/detAk​, v0v_0v0​ the volume of the unit ball.
  3. Volume ratio (p. 87–88): v(Φk+1)=qn v(Φk)v(\Phi_{k+1}) = q_n\, v(\Phi_k)v(Φk+1​)=qn​v(Φk​) with qn<1q_n < 1qn​<1, the volumes being positive and finite.
  4. Eq. (3.62): the ball field satisfies (g(x),x−x∗)≥0(g(x), x - x^*) \ge 0(g(x),x−x∗)≥0.
  5. Eq. (3.65): the convex-programming field satisfies (g(x),x−x∗)≥0(g(x), x - x^*) \ge 0(g(x),x−x∗)≥0.
  6. Saddle point field (p. 90): (g(z),z−z∗)≥0(g(z), z - z^*) \ge 0(g(z),z−z∗)≥0.

Significance

The result. Theorem 3.14 with the volume identity says that after kkk steps the solution is confined to an ellipsoid of volume qnkq_n^kqnk​ times that of the initial ball, for any field of the above kind. Milestones 4–6 turn this into localization guarantees for constrained convex minimization, general convex programming and convex–concave saddle points, with a rate that depends only on the dimension. The same localization underlies the complexity bounds of the ellipsoid method for linear programming and the polynomial equivalence of separation and optimization.

Formalizing it. The results are classical and proved in the book. No machine-checked proof of the space-dilation form of the method is known to exist. The platform already contains a proved version of the Bertsimas–Tsitsiklis form (LinearOptimization.ellipsoid_update_halfspace_subset, LinearOptimization.ellipsoid_update_volume_lt: a half-ellipsoid E(z,D)∩{aTx≥aTz}E(z, D) \cap \{a^Tx \ge a^Tz\}E(z,D)∩{aTx≥aTz} is covered by an updated ellipsoid whose volume is smaller by a factor below e−1/(2(n+1))e^{-1/(2(n+1))}e−1/(2(n+1))), and Khachiyan's feasibility algorithm (SmaleNinth.khachiyan_ellipsoid_decides). Those statements are about a center/shape-matrix update and give a volume inequality; this mission is about the iterates of Shor's matrix recursion Bk+1=BkRβ(ξk)B_{k+1} = B_k R_\beta(\xi_k)Bk+1​=Bk​Rβ​(ξk​) and the exact ratio qnq_nqn​. Relating the two parametrizations (Dk=(n+1)2hk2BkBkTD_k = (n+1)^2 h_k^2 B_k B_k^TDk​=(n+1)2hk2​Bk​BkT​) is a welcome side result.

Difficulty

The obvious approach, tracking the ellipsoid through the center and shape matrix and invoking a minimum-volume covering argument, is not what the algorithm computes: here the iterate is updated through the factor BkB_kBk​ and the stepsize hkh_khk​ is fixed in advance, independent of the field, so the induction must be carried out in the transformed coordinates zk=Ak(xk−x∗)z_k = A_k(x_k - x^*)zk​=Ak​(xk​−x∗) in which the ellipsoid is a ball. The difficulty is that the monotonicity condition gives only the sign of one inner product, (zk,ξk)≥0(z_k, \xi_k) \ge 0(zk​,ξk​)≥0, while the norm of zk+1z_{k+1}zk+1​ depends on both (zk,ξk)(z_k,\xi_k)(zk​,ξk​) and ∥zk∥\|z_k\|∥zk​∥; the constants β\betaβ and rrr are exactly those for which the resulting quadratic estimate closes. For the volume identity, the main technical step is computing det⁡Rβ(ξ)=β\det R_\beta(\xi) = \betadetRβ​(ξ)=β and the Lebesgue measure of a linear image of a ball in EuclideanSpace.

Formalization scope

  • EnE_nEn​ is EuclideanSpace ℝ (Fin n); matrices act through Matrix.toEuclideanLin; Bk∗B_k^*Bk∗​ is the transpose. Rα(ξ)R_\alpha(\xi)Rα​(ξ) is the matrix I+(α−1)ξξTI + (\alpha-1)\xi\xi^TI+(α−1)ξξT (the book's property 10); for unit ξ\xiξ this is the operator of the book's definition.
  • The algorithm is the definition ellipsoidMethod g R x₀ : ℕ → EllState n, with state (xk,Bk,hk)(x_k, B_k, h_k)(xk​,Bk​,hk​), B0=IB_0 = IB0​=I, h0=R/(n+1)h_0 = R/(n+1)h0​=R/(n+1). If g(xk)=0g(x_k) = 0g(xk​)=0 the state is repeated from then on (the book stops); the normalization in (3.57) is only performed when g(xk)≠0g(x_k) \ne 0g(xk​)=0. AkA_kAk​ is the matrix inverse of BkB_kBk​, which is nonsingular.
  • Theorem 3.14 is stated for n>1n > 1n>1, R>0R > 0R>0, x∗x^*x∗ with ∥x0−x∗∥≤R\|x_0 - x^*\| \le R∥x0​−x∗∥≤R and (g(x),x−x∗)≥0(g(x), x - x^*) \ge 0(g(x),x−x∗)≥0 for all xxx, for every kkk. The book's additional assumption that g(x)≠0g(x) \ne 0g(x)=0 for x≠x∗x \ne x^*x=x∗ is not used by its proof and is omitted. The iterates are those of the recursion; a statement about an arbitrary ellipsoid containing x∗x^*x∗, or about an arbitrary invertible matrix in place of BkB_kBk​, would not be this theorem and is ruled out by the definitions.
  • Volumes are Lebesgue measure in ℝ≥0∞. The ellipsoid is given for an arbitrary center (the book writes x∗x^*x∗ in one place and xkx_kxk​ in another; the volume is the same). The volume formula requires the first kkk iterations to have been performed (g(xj)≠0g(x_j) \ne 0g(xj​)=0, j<kj < kj<k); the ratio requires iteration k+1k+1k+1 to be performed.
  • The printed chain on p. 87 has misprints (exponents 222 and 111 on n/n2−1n/\sqrt{n^2-1}n/n2−1​ where nnn is meant, and (n−1)/(n+1)(n-1)/(n+1)(n−1)/(n+1) for (n−1)/(n+1)\sqrt{(n-1)/(n+1)}(n−1)/(n+1)​); the statement follows the value of qnq_nqn​ given on p. 88. The estimate for x∉S(x0,R)x \notin S(x_0,R)x∈/S(x0​,R) before (3.62) has a sign misprint; only the conclusion is stated.
  • Needed infrastructure: determinant of a rank-one perturbation of the identity (det⁡(I+c ξξT)=1+c∥ξ∥2\det(I + c\,\xi\xi^T) = 1 + c\|\xi\|^2det(I+cξξT)=1+c∥ξ∥2, available in Mathlib as the matrix determinant lemma), the measure of a linear image (MeasureTheory.Measure.addHaar_image_linearMap), and elementary real inequalities for qn<1q_n < 1qn​<1. The space-dilation lemmas are reusable in the other Shor missions on SDG methods and the rrr-algorithm.

Selected references

  • N. Z. Shor, Minimization Methods for Non-Differentiable Functions, Springer Series in Computational Mathematics 3, Springer, 1985, §3.8. https://doi.org/10.1007/978-3-642-82118-9
  • D. B. Yudin and A. S. Nemirovskii, Informational complexity and efficient methods for the solution of convex extremal problems, Ekonomika i Matematicheskie Metody 12 (1976), 357–369 (English translation: Matekon 13 (1977), 25–45).
  • N. Z. Shor, Cut-off method with space extension in convex programming problems, Cybernetics 13 (1977), 94–96.
  • L. G. Khachiyan, A polynomial algorithm in linear programming, Soviet Mathematics Doklady 20 (1979), 191–194.
  • R. G. Bland, D. Goldfarb and M. J. Todd, The ellipsoid method: a survey, Operations Research 29 (1981), 1039–1091. https://doi.org/10.1287/opre.29.6.1039
  • M. Grötschel, L. Lovász and A. Schrijver, Geometric Algorithms and Combinatorial Optimization, Springer, 1988. https://doi.org/10.1007/978-3-642-97881-4
8 thms3 active usersReviewed
🏆Completed
Convex OptimizationOperations Research·Captain: mikedeng1

Minimization Methods for Non-Differentiable Functions III: Convergence of the Normalized Subgradient Method with Divergent-Series StepsizesTextbook

Motivation

Many optimization problems of operations research have objectives that are convex but not differentiable: Lagrangian duals of integer and combinatorial programs, maxima of finitely many affine or smooth functions, penalty functions for systems of inequalities, and the value functions produced by decomposition. For such functions the gradient method and steepest descent fail. Constant steps cannot work because the subgradients need not tend to zero at a nondifferentiable minimum, and exact line search along the negative gradient can converge to a point that is not a minimizer (the example on pp. 22–23 of the source).

The subgradient method replaces the gradient by an arbitrary subgradient and gives up monotone decrease of the objective. Its convergence theory is the foundation of nondifferentiable optimization and of Lagrangian relaxation in integer programming.

Timeline. N. Z. Shor proposed the method with normalized steps in 1962 (Kiev). Yu. M. Ermoliev proved convergence in finite dimensions with divergent-series stepsizes (Kibernetika, 1966), and B. T. Polyak proved it for constrained problems in Hilbert space (Doklady Akad. Nauk SSSR, 1967). Held, Wolfe and Crowder (Mathematical Programming, 1974) brought the method to large combinatorial problems through Lagrangian relaxation. This mission formalizes the exposition of Section 2.1–2.2 of Shor's monograph (Springer, 1985), which gives self-contained proofs of these results.

Setting

Let EnE_nEn​ be the nnn-dimensional Euclidean space with inner product (x,y)(x, y)(x,y) and norm ∥x∥\|x\|∥x∥. Let f:En→Rf : E_n \to \mathbb{R}f:En​→R be a convex function finite everywhere. A vector ggg is a subgradient of fff at x0x_0x0​ if

f(x)−f(x0)≥(g,x−x0)for all x∈En.f(x) - f(x_0) \ge (g, x - x_0) \quad \text{for all } x \in E_n.f(x)−f(x0​)≥(g,x−x0​)for all x∈En​.

Every convex fff has at least one subgradient at every point. Let M∗={x:f(x)≤f(y) ∀y}M^* = \{x : f(x) \le f(y) \ \forall y\}M∗={x:f(x)≤f(y) ∀y} be the set of minimum points and, when it is nonempty, f∗=min⁡ff^* = \min ff∗=minf.

A subgradient selection gfg_fgf​ assigns to each xxx some subgradient gf(x)g_f(x)gf​(x) of fff at xxx. No particular choice is made: every result holds for every selection. Given stepsizes h1,h2,⋯>0h_1, h_2, \dots > 0h1​,h2​,⋯>0 and a starting point x0x_0x0​, the normalized subgradient method is

xk+1=xk−hk+1 gf(xk)∥gf(xk)∥,k=0,1,…(2.4)x_{k+1} = x_k - h_{k+1}\, \frac{g_f(x_k)}{\|g_f(x_k)\|}, \qquad k = 0, 1, \dots \tag{2.4}xk+1​=xk​−hk+1​∥gf​(xk​)∥gf​(xk​)​,k=0,1,…(2.4)

If gf(xk)=0g_f(x_k) = 0gf​(xk​)=0, then xkx_kxk​ is a minimizer and the computation stops. The unnormalized method is xk+1=xk−hk+1gf(xk)x_{k+1} = x_k - h_{k+1} g_f(x_k)xk+1​=xk​−hk+1​gf​(xk​) (2.5), and the method with restarts takes that step when hk+1∥gf(xk)∥≤ch_{k+1}\|g_f(x_k)\| \le chk+1​∥gf​(xk​)∥≤c and returns to x0x_0x0​ otherwise.

Formalization targets

Goal: Theorem 2.2 (p. 25)

If M∗M^*M∗ is nonempty and bounded, hk>0h_k > 0hk​>0, hk→0h_k \to 0hk​→0 and ∑k≥1hk=+∞\sum_{k \ge 1} h_k = +\infty∑k≥1​hk​=+∞, then for every x0x_0x0​ and every subgradient selection, the method (2.4) either reaches M∗M^*M∗ at some index kˉ\bar kkˉ or

lim⁡k→∞min⁡y∈M∗∥xk−y∥=0,lim⁡k→∞f(xk)=f∗.\lim_{k \to \infty} \min_{y \in M^*} \|x_k - y\| = 0, \qquad \lim_{k \to \infty} f(x_k) = f^*.k→∞lim​y∈M∗min​∥xk​−y∥=0,k→∞lim​f(xk​)=f∗.

Milestones

  1. Eq. (2.3), the one-step inequality ∥xk+1−x∗∥2≤∥xk−x∗∥2+h2−2h ρ(x∗,Uk)\|x_{k+1} - x^*\|^2 \le \|x_k - x^*\|^2 + h^2 - 2h\,\rho(x^*, U_k)∥xk+1​−x∗∥2≤∥xk​−x∗∥2+h2−2hρ(x∗,Uk​), where Uk={x:f(x)=f(xk)}U_k = \{x : f(x) = f(x_k)\}Uk​={x:f(x)=f(xk​)}.
  2. Theorem 2.1: with constant step length hhh, some level surface {f=f(xk∗)}\{f = f(x_{k^*})\}{f=f(xk∗​)} passes within h(1+ε)/2h(1+\varepsilon)/2h(1+ε)/2 of any x∗∈M∗x^* \in M^*x∗∈M∗.
  3. Corollaries 1 and 2: a suitable constant step length yields a subsequence with f(xki)−f∗<δf(x_{k_i}) - f^* < \deltaf(xki​​)−f∗<δ. If M∗M^*M∗ contains a ball of radius r>h/2r > h/2r>h/2, the method terminates in M∗M^*M∗.
  4. Theorem 2.5: if M∗M^*M∗ contains a ball of radius rrr, ∑hk=∞\sum h_k = \infty∑hk​=∞ and lim sup⁡hk<2r\limsup h_k < 2rlimsuphk​<2r, then (2.4) terminates in M∗M^*M∗.
  5. Theorem 2.3: for the unnormalized method (2.5), bounded subgradients along the trajectory imply convergence, and unbounded subgradients rule it out.
  6. Theorem 2.4: the method with restarts converges for every c>0c > 0c>0.

Significance

Theorem 2.2 is the basic convergence guarantee for first-order methods on general nonsmooth convex functions. It needs no Lipschitz constant, no bound on the subgradients and no smoothness: normalizing the step makes the step length independent of the size of the subgradient. The divergent-series rule hk→0h_k \to 0hk​→0, ∑hk=∞\sum h_k = \infty∑hk​=∞ is the standard stepsize condition of stochastic approximation and of Lagrangian relaxation codes. Theorems 2.3–2.5 mark its boundaries. The unnormalized method needs bounded subgradients (Theorem 2.3), restarts remove that need (Theorem 2.4), and a solution set with nonempty interior gives finite termination (Theorem 2.5). The last result is the basis of the finite methods for systems of convex inequalities and for the dual of an assignment problem with a unique solution (pp. 28–29).

All of these results are classical and proved in the source. None of them is formalized in Lean's Mathlib. The platform has neighbouring results that are not the same statements: Poljak's divergent-series theorem for concave piecewise-linear maximization (in Validation of Subgradient Optimization I), and rate bounds for Lipschitz objectives (First-Order and Stochastic Optimization Methods for ML II, Understanding Machine Learning X). This mission adds the general convex case with normalized steps, the dichotomy for unnormalized steps, and finite termination.

Difficulty

The standard rate analysis of the subgradient method bounds ∥xk+1−x∗∥2−∥xk−x∗∥2\|x_{k+1} - x^*\|^2 - \|x_k - x^*\|^2∥xk+1​−x∗∥2−∥xk​−x∗∥2 by −2hk+1(f(xk)−f∗)/∥gf(xk)∥+hk+12-2h_{k+1}(f(x_k) - f^*)/\|g_f(x_k)\| + h_{k+1}^2−2hk+1​(f(xk​)−f∗)/∥gf​(xk​)∥+hk+12​. It then needs a uniform bound on ∥gf(xk)∥\|g_f(x_k)\|∥gf​(xk​)∥, which is exactly what is not assumed here. Nothing a priori keeps the iterates in a bounded set, and the subgradients of a general convex function (for instance f(x)=x4f(x) = x^4f(x)=x4, the source's example on p. 26) grow without bound away from M∗M^*M∗; with unnormalized steps this makes the method diverge. Even with normalized steps, the distance to a minimizer decreases only outside a neighbourhood of M∗M^*M∗ whose size is of the order of the current step, so a monotone decrease argument gives at best a subsequence with small function values. Convergence of the whole sequence min⁡y∈M∗∥xk−y∥\min_{y \in M^*}\|x_k - y\|miny∈M∗​∥xk​−y∥ to zero is a stronger statement, and boundedness of M∗M^*M∗ is essential to it.

Formalization scope

  • EnE_nEn​ is EuclideanSpace ℝ (Fin n); fff is real-valued (finite everywhere) with ConvexOn ℝ Set.univ f.
  • The subgradient selection g is arbitrary, with the hypothesis ∀ x, IsSubgradient f x (g x). The starting point is arbitrary.
  • The iterations are defined recursively (normalizedIter, plainIter, resetIter); the stepsize sequence is h : ℕ → ℝ with h (k+1) used at step kkk. In (2.4), a zero subgradient is handled by an explicit branch that repeats the current iterate (which is then in M∗M^*M∗). No statement relies on Lean's convention x/0=0x/0 = 0x/0=0.
  • M∗M^*M∗ is required to be nonempty wherever the book writes min⁡y∈M∗\min_{y \in M^*}miny∈M∗​ or f∗=min⁡ff^* = \min ff∗=minf. min⁡y∈M∗∥xk−y∥\min_{y \in M^*}\|x_k - y\|miny∈M∗​∥xk​−y∥ is Metric.infDist, and f∗f^*f∗ is ⨅ y, f y.
  • ∑k≥1hk=+∞\sum_{k \ge 1} h_k = +\infty∑k≥1​hk​=+∞ is Tendsto (fun N => ∑ k ∈ Finset.range N, h (k+1)) atTop atTop. lim sup⁡hk<2r\limsup h_k < 2rlimsuphk​<2r is "for some q<2rq < 2rq<2r, eventually hk≤qh_k \le qhk​≤q", so it cannot hold vacuously for an unbounded sequence.
  • Corollary 1's step length hδh_\deltahδ​ is quantified before the selection and the starting point: it depends only on fff and δ\deltaδ.
  • Theorem 2.3 is stated as two implications, (bounded subgradients ⇒ convergence) and (unbounded ⇒ no convergence), not as a disjunction that one case could satisfy trivially.
  • A formalization of Theorem 2.2 that assumes bounded subgradients, a Lipschitz fff, or a specific subgradient choice (such as the minimal-norm one) proves a different and weaker theorem, and does not close the goal.

Needed infrastructure: continuity of convex functions on EnE_nEn​ (in Mathlib), compactness of sublevel sets when M∗M^*M∗ is bounded, and the geometry of level surfaces relative to supporting hyperplanes. The one-step inequality (2.3) and the level-set compactness lemma are reusable by the later missions of this series (linear rate, Polyak's stepsize, stochastic subgradient). Contributions that prove Eq. (2.3) or Theorem 2.1 first are welcome.

Selected references

  • N. Z. Shor, Minimization Methods for Non-Differentiable Functions, Springer Series in Computational Mathematics 3, Springer, 1985, Chapter 2, pp. 22–30. https://doi.org/10.1007/978-3-642-82118-9
  • B. T. Polyak, A general method for solving extremal problems, Doklady Akademii Nauk SSSR 174 (1967), 33–36 (the source's reference [64]).
  • Yu. M. Ermoliev, Methods for solving nonlinear extremal problems, Kibernetika (Kiev), no. 4 (1966), 1–17 (the source's reference [24]).
  • M. Held, P. Wolfe, H. P. Crowder, Validation of subgradient optimization, Mathematical Programming 6 (1974), 62–88. https://doi.org/10.1007/BF01580223
9 thms3 active usersReviewed
PreviousPage 3 of 16Next

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me