Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in

Get started

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

Combinatorics

265 missions · 156 completed

The mathematics of finite and discrete structures — counting the arrangements of a set, deciding when a configuration meeting prescribed constraints can exist, and characterizing the patterns such structures are forced to contain. It encompasses enumerative and extremal combinatorics, graph theory, design theory, and additive combinatorics, with deep ties to algebra, probability, and computer science.

Missions

Open109Completed156All265
🏆Completed
Captain: mikedeng1

Applied Combinatorics IV: Newton's Binomial Theorem and the Central Binomial ConvolutionTextbook

Motivation

Generating functions are the standard device of enumerative combinatorics for turning a counting sequence into a single algebraic or analytic object: a sequence {an:n≥0}\{a_n : n \ge 0\}{an​:n≥0} is recorded as the power series ∑n≥0anxn\sum_{n\ge0} a_n x^n∑n≥0​an​xn, and operations on series (products, powers, derivatives) become operations on the counts. Chapter 8 of Keller and Trotter's Applied Combinatorics (appliedcombinatorics.org), an open textbook used in undergraduate combinatorics courses, develops the method up to one of its classical applications: extending the binomial theorem to real exponents, as Newton did, and reading off an identity about central binomial coefficients that is awkward to prove by direct counting.

The identity in question,

22n=∑k=0n(2kk)(2n−2kn−k),2^{2n} = \sum_{k=0}^{n} \binom{2k}{k}\binom{2n-2k}{n-k},22n=k=0∑n​(k2k​)(n−k2n−2k​),

appears in standard collections of binomial identities such as Graham, Knuth and Patashnik's Concrete Mathematics (1994).

Setting

For a real number ppp and a nonnegative integer kkk, the book defines a number P(p,k)P(p, k)P(p,k) by the recursion

P(p,0)=1,P(p,k)=p P(p−1,k−1)(k>0),P(p, 0) = 1, \qquad P(p, k) = p\,P(p-1, k-1) \quad (k > 0),P(p,0)=1,P(p,k)=pP(p−1,k−1)(k>0),

so that P(p,k)=p(p−1)⋯(p−k+1)P(p, k) = p(p-1)\cdots(p-k+1)P(p,k)=p(p−1)⋯(p−k+1) with no requirement p≥kp \ge kp≥k. The generalized binomial coefficient is

(pk)=P(p,k)k!.\binom{p}{k} = \frac{P(p,k)}{k!}.(kp​)=k!P(p,k)​.

For integers p≥k≥0p \ge k \ge 0p≥k≥0 this is the usual binomial coefficient; for integers 0≤p<k0 \le p < k0≤p<k it is 000; for other real ppp it is in general nonzero for every kkk. In the Lean development P(p,k)P(p,k)P(p,k) is AppliedComb.GenFun.fallingP p k and (pk)\binom pk(kp​) is AppliedComb.GenFun.binomReal p k.

The generating function of a real sequence a=(an)n≥0a = (a_n)_{n\ge0}a=(an​)n≥0​ is the formal power series A(x)=∑n≥0anxnA(x) = \sum_{n\ge0} a_n x^nA(x)=∑n≥0​an​xn, in Lean PowerSeries.mk a : PowerSeries ℝ. When a closed-form function such as (1+x)p(1+x)^p(1+x)p or (1−4x)−1/2(1-4x)^{-1/2}(1−4x)−1/2 is called the generating function of a sequence, the statements below read this as convergence of ∑nanxn\sum_n a_n x^n∑n​an​xn to the function's value on an explicit real interval around 000.

The central binomial coefficients are (2nn)\binom{2n}{n}(n2n​): 1,2,6,20,70,…1, 2, 6, 20, 70, \dots1,2,6,20,70,…

Formalization targets

Goal: Corollary 8.14

For every integer n≥0n \ge 0n≥0,

22n=∑k=0n(2kk)(2n−2kn−k),2^{2n} = \sum_{k=0}^{n} \binom{2k}{k}\binom{2n-2k}{n-k},22n=k=0∑n​(k2k​)(n−k2n−2k​),

stated as an identity of natural numbers.

Milestones

  • Lemma 8.11. For every real ppp and integer k≥0k \ge 0k≥0, P(p,k+1)=P(p,k) (p−k)P(p, k+1) = P(p, k)\,(p - k)P(p,k+1)=P(p,k)(p−k).
  • Lemma 8.12. For every integer k≥0k \ge 0k≥0, (−1/2k)=(−1)k(2kk)/22k\binom{-1/2}{k} = (-1)^k \binom{2k}{k} / 2^{2k}(k−1/2​)=(−1)k(k2k​)/22k.
  • Theorem 8.10 (Newton's Binomial Theorem). For real p≠0p \ne 0p=0 and real ∣x∣<1|x| < 1∣x∣<1,
(1+x)p=∑n=0∞(pn)xn.(1+x)^p = \sum_{n=0}^{\infty} \binom{p}{n} x^n .(1+x)p=n=0∑∞​(np​)xn.
  • Theorem 8.13. For real ∣x∣<1/4|x| < 1/4∣x∣<1/4,
(1−4x)−1/2=∑n=0∞(2nn)xn.(1-4x)^{-1/2} = \sum_{n=0}^{\infty} \binom{2n}{n} x^n .(1−4x)−1/2=n=0∑∞​(n2n​)xn.
  • Proposition 8.3. For real sequences aaa, bbb, the product of their generating functions is the generating function of (∑k=0nakbn−k)n≥0\bigl(\sum_{k=0}^n a_k b_{n-k}\bigr)_{n\ge0}(∑k=0n​ak​bn−k​)n≥0​.
  • Theorem 8.16 (already on the platform). For each n≥1n \ge 1n≥1, the number of partitions of nnn into distinct parts equals the number of partitions of nnn into odd parts.

The first five follow the chapter's own chain toward the goal; Theorem 8.16 is the chapter's other main result and is included as a reference.

Significance

Corollary 8.14 says that the sequence of central binomial coefficients convolved with itself is the sequence 4n4^n4n; equivalently, the generating function of (2nn)\binom{2n}{n}(n2n​) is a square root of 1/(1−4x)1/(1-4x)1/(1−4x). Central binomial coefficients count lattice paths with nnn up-steps and nnn down-steps, and the identity says that the pairs consisting of a balanced path of length 2k2k2k and one of length 2n−2k2n-2k2n−2k, summed over kkk, are equinumerous with all 4n4^n4n strings over a four-letter alphabet. The same generating function reappears in the book's Section 9.7, and Newton's theorem with exponent −1/2-1/2−1/2 or 1/21/21/2 is the standard route to closed forms for Catalan-type sequences.

On the formalization side, Mathlib has the central binomial coefficient (Nat.centralBinom), formal power series, and Newton's series in the complex-analytic form Complex.one_add_cpow_hasFPowerSeriesOnBall_zero, which is also published on the platform as FamousTheorems.newton_binomial_series_6b and included in this mission as a reference. It does not contain the convolution identity of Corollary 8.14, and it does not contain the book's recursive P(p,k)P(p,k)P(p,k) or the closed form of (−1/2k)\binom{-1/2}{k}(k−1/2​). The mission produces a machine-checked version of the chapter's chain from the book's own definitions to the identity.

Difficulty

The identity is not a special case of the Vandermonde convolution ∑k(ak)(bn−k)=(a+bn)\sum_k \binom{a}{k}\binom{b}{n-k} = \binom{a+b}{n}∑k​(ka​)(n−kb​)=(na+b​): both factors depend on the summation index in their upper argument as well as their lower one. Induction on nnn does not close directly, since the sum for n+1n+1n+1 is not a simple combination of the sum for nnn. A counting proof is possible but not obvious, which is why the chapter's route goes through a generating function with a non-integer exponent. That route passes from formal power series to real analysis: (1−4x)−1/2(1-4x)^{-1/2}(1−4x)−1/2 is a real function, and the passage from an identity of functions on an interval to an identity of coefficients requires the uniqueness of power series coefficients on an open interval and the product of two convergent series. The book asserts Newton's theorem without proof.

Formalization scope

  • Numbers. P(p,k)P(p,k)P(p,k) and (pk)\binom pk(kp​) are real-valued, defined by the book's recursion (Definition 8.8) and quotient (Definition 8.9) in the definition item AppliedComb.GenFun.binomReal. Mathlib's descPochhammer and Ring.choose compute the same values; they are not used in the statements so that Lemma 8.11 is a statement about the book's recursion rather than a definitional unfolding.
  • Pinned readings. The book treats generating functions as formal power series and states Theorems 8.10 and 8.13 without a domain for xxx. Here both are stated analytically: Theorem 8.10 for real p≠0p \ne 0p=0 and real xxx with ∣x∣<1|x| < 1∣x∣<1, Theorem 8.13 for real xxx with ∣x∣<1/4|x| < 1/4∣x∣<1/4, with the real power Real.rpow of a positive base on the left and HasSum (unconditional convergence of the series) on the right. The book's hypothesis p≠0p \ne 0p=0 is kept. No other explicit constants replace informal ones: the chapter's statements contain no O(⋅)O(\cdot)O(⋅), "≈\approx≈" or "sufficiently large".
  • Proposition 8.3 is stated for formal power series PowerSeries ℝ with the sum written as ∑k=0nakbn−k\sum_{k=0}^{n} a_k b_{n-k}∑k=0n​ak​bn−k​ over Finset.range (n + 1).
  • Goal. Corollary 8.14 is an identity in ℕ with Nat.choose; the subtractions 2n−2k2n-2k2n−2k and n−kn-kn−k occur only for k≤nk \le nk≤n and are exact. A statement asserting only that the square of the formal power series ∑n(2nn)Xn\sum_n \binom{2n}{n}X^n∑n​(n2n​)Xn equals ∑n4nXn\sum_n 4^n X^n∑n​4nXn, or a purely formal version of Theorem 8.13, would hide the identity in a coefficient comparison and is not the book's statement; the goal is the explicit sum identity.
  • Theorem 8.16 is referenced as FamousTheorems.card_odds_eq_card_distincts, stated for all nnn with Mathlib's Nat.Partition, whose partitions are multisets of positive integers, as in the book (p. 168); the case n=0n = 0n=0 it adds is immediate.

A complete development needs real power series on an interval (Cauchy products, identity theorem for coefficients), the real power function, and elementary manipulation of binomial coefficients; the identification of binomReal with Ring.choose is reusable for any later statement using the generalized binomial coefficient. Proofs of any milestone are welcome independently, and so is a direct proof of Corollary 8.14 that bypasses the analytic chain.

Selected references

  • M. T. Keller and W. T. Trotter, Applied Combinatorics, 2017 Edition, CC BY-SA 4.0. Chapter 8. https://www.appliedcombinatorics.org/
  • R. L. Graham, D. E. Knuth and O. Patashnik, Concrete Mathematics, 2nd ed., Addison-Wesley, 1994. ISBN 978-0-201-55802-9.
  • Mathlib, Complex.one_add_cpow_hasFPowerSeriesOnBall_zero (Newton's binomial series). https://github.com/leanprover-community/mathlib4
9 thms3 active usersReviewed
🏆Completed
Captain: mikedeng1

Applied Combinatorics II: Dilworth's Chain Covering TheoremTextbook

Motivation

Partially ordered sets model precedence: tasks that must wait for other tasks, versions that supersede others, files nested in directories, alternatives ranked by several criteria at once. Two questions about such a structure recur in scheduling and in the design of algorithms. How many sequential "threads" are needed so that every item lies on a thread in which all items are mutually comparable? How many "rounds" are needed so that no round contains two comparable items? Dilworth's theorem answers the first and its dual, due to Mirsky, answers the second: in both cases the obvious lower bound, given by one large set of mutually incomparable (resp. comparable) items, is attained.

This mission formalizes Chapter 6 of Keller and Trotter's open textbook Applied Combinatorics (2017 Edition, appliedcombinatorics.org), whose capstone is Dilworth's theorem, together with the chapter's other three proved theorems on the same objects.

Timeline. Sperner (1928, doi:10.1007/BF01171114) showed that the largest family of subsets of a ttt-set in which no member contains another has (t⌊t/2⌋)\binom{t}{\lfloor t/2\rfloor}(⌊t/2⌋t​) members. Dilworth (1950, doi:10.2307/1969503) proved that a finite poset whose largest antichain has www elements can be partitioned into www chains. Mirsky (1971, doi:10.2307/2316481) recorded the dual statement for antichain partitions. Fishburn (1970, doi:10.1016/0022-2496(70)90062-3) characterized the posets that arise from comparing real intervals as those with no subposet 2+2\mathbf 2 + \mathbf 22+2.

Setting

A poset P=(X,P)\mathbf P = (X, P)P=(X,P) is a set XXX with a reflexive, antisymmetric and transitive relation ≤\le≤. Here XXX is finite and is represented by a finite type α\alphaα with a partial order. A subset C⊆XC \subseteq XC⊆X is a chain if every two distinct points of CCC are comparable; a subset A⊆XA \subseteq XA⊆X is an antichain if every two distinct points of AAA are incomparable. The empty set is both.

The width of P\mathbf PP is the largest size of an antichain, and the height the largest size of a chain:

width⁡(P)=max⁡A antichain∣A∣,height⁡(P)=max⁡C chain∣C∣.\operatorname{width}(\mathbf P) = \max_{A \text{ antichain}} |A|, \qquad \operatorname{height}(\mathbf P) = \max_{C \text{ chain}} |C|.width(P)=A antichainmax​∣A∣,height(P)=C chainmax​∣C∣.

A chain partition of XXX into kkk parts is a family C1,…,CkC_1, \dots, C_kC1​,…,Ck​ of pairwise disjoint chains with union XXX; an antichain partition is defined the same way with antichains.

The subset lattice 2t\mathbf 2^t2t is the family of all subsets of a ttt-element set, ordered by inclusion.

A poset is an interval order if each point xxx can be assigned a closed real interval [ax,bx][a_x, b_x][ax​,bx​], degenerate intervals allowed, such that x<yx < yx<y exactly when bx<ayb_x < a_ybx​<ay​. The poset 2+2\mathbf 2 + \mathbf 22+2 consists of two disjoint two-element chains with no comparabilities between them, and P\mathbf PP excludes 2+2\mathbf 2 + \mathbf 22+2 if no four points of XXX induce a copy of it.

Formalization targets

Goal: Dilworth's theorem (Theorem 6.17)

For every finite poset P\mathbf PP with w=width⁡(P)w = \operatorname{width}(\mathbf P)w=width(P),

∃ C1,…,Cw chains partitioning X,andX=C1∪⋯∪Ck a chain partition  ⟹  w≤k.\exists\, C_1, \dots, C_w \text{ chains partitioning } X, \quad\text{and}\quad X = C_1 \cup \dots \cup C_k \text{ a chain partition} \implies w \le k.∃C1​,…,Cw​ chains partitioning X,andX=C1​∪⋯∪Ck​ a chain partition⟹w≤k.

Milestones

  • Theorem 6.18 (dual of Dilworth). With h=height⁡(P)h = \operatorname{height}(\mathbf P)h=height(P), XXX has a partition into hhh antichains, and every antichain partition has at least hhh parts.
  • Theorem 6.27 (Sperner). For t≥1t \ge 1t≥1,
width⁡(2t)=(t⌊t/2⌋).\operatorname{width}(\mathbf 2^t) = \binom{t}{\lfloor t/2 \rfloor}.width(2t)=(⌊t/2⌋t​).
  • Theorem 6.29 (Fishburn). A finite poset is an interval order if and only if it excludes 2+2\mathbf 2 + \mathbf 22+2.

The milestones stand on the same definitions as the goal (width, height, chain and antichain partitions, subposets) and are ordered from the one closest to the goal's statement to the one furthest from it.

Significance

The result itself. Dilworth's theorem is a min–max theorem: a minimum over covers equals a maximum over obstructions. It is equivalent to König's theorem on bipartite matchings and to Hall's marriage theorem, and it underlies the computation of minimum chain covers by bipartite matching and network flows (Chapter 14 of the same book). The dual theorem gives the layer decomposition used in scheduling with precedence constraints. Sperner's theorem is the first result of extremal set theory, and Fishburn's theorem is the basic structure theorem for interval orders, which model preferences with thresholds of indifference.

Formalizing it. All four results are classical and proved. In Mathlib at the environment revision of this mission there is no Dilworth or Mirsky theorem; Sperner's inequality (the upper bound on antichains in a Boolean lattice) is available through the LYM inequality, and there is no theory of interval orders. The Prove2Me library holds the easy half of Dilworth (an antichain is no larger than any chain partition) in a different Mathlib environment and over a different chain-partition structure. The mission asks for complete machine-checked statements of the book's four theorems over one common set of definitions.

Difficulty

For Dilworth's theorem the lower bound is a pigeonhole argument; the content is the existence of a partition into exactly www chains. Greedy constructions fail: removing a longest chain, or a maximal chain through a chosen point, can leave a poset whose width has not decreased, so a partition built by repeatedly peeling chains may use more than www of them. No local rule visible from a single chain decides whether its removal keeps the count at www.

For Sperner's theorem the lower bound (the middle rank is an antichain) is immediate and the upper bound needs a counting argument over maximal chains; both halves are required, since the target is an equality. For Fishburn's theorem one direction is a four-line contradiction; the other requires constructing real intervals from nothing but the absence of 2+2\mathbf 2 + \mathbf 22+2.

Formalization scope

The ground set is a type α with [PartialOrder α] [Fintype α]. Chains and antichains are Mathlib's IsChain (· ≤ ·) and IsAntichain (· ≤ ·). width α and height α are maxima of Finset.card over all antichains (resp. chains) of α; the family is never empty, since the empty set qualifies, so both are well defined and equal 000 for the empty poset. Width is defined from antichains, not as the least number of chains in a partition; a definition of the latter kind would make the goal true by definition and is ruled out. Chain and antichain partitions are families indexed by Fin k of pairwise disjoint Finsets whose union is all of α; empty parts are not excluded, which does not change either theorem. The "no fewer" clauses quantify over every k and every such family. The subset lattice 2t\mathbf 2^t2t is Finset (Fin t) ordered by inclusion, ⌊t/2⌋\lfloor t/2 \rfloor⌊t/2⌋ is t / 2 in ℕ, and Sperner's theorem keeps the book's hypothesis t≥1t \ge 1t≥1. An interval representation is a pair of maps a b : α → ℝ with a x ≤ b x; 2+2\mathbf 2 + \mathbf 22+2 is Fin 2 ⊕ Fin 2 with the disjoint-sum order, and "excludes" means there is no order embedding of it into α. Fishburn's theorem is stated for finite posets: the book's construction of a representation is finite, and the equivalence fails for some uncountable posets.

No statement contains an asymptotic bound, so no explicit constant is instantiated.

A complete development needs finite-poset combinatorics (induction on the ground set, subposets as subtypes, maximal and minimal elements), which is reusable across order theory; results proving the definitions agree with Mathlib's notions of chains in Finset lattices are welcome, as is an alternative proof of Dilworth via Hall's theorem, which Mathlib has.

Selected references

  • M. T. Keller and W. T. Trotter, Applied Combinatorics, 2017 Edition, Chapter 6, pp. 113–140. https://www.appliedcombinatorics.org
  • R. P. Dilworth, A decomposition theorem for partially ordered sets, Annals of Mathematics 51 (1950), 161–166. https://doi.org/10.2307/1969503
  • L. Mirsky, A dual of Dilworth's decomposition theorem, American Mathematical Monthly 78 (1971), 876–877. https://doi.org/10.2307/2316481
  • E. Sperner, Ein Satz über Untermengen einer endlichen Menge, Mathematische Zeitschrift 27 (1928), 544–548. https://doi.org/10.1007/BF01171114
  • P. C. Fishburn, Intransitive indifference with unequal indifference intervals, Journal of Mathematical Psychology 7 (1970), 144–149. https://doi.org/10.1016/0022-2496(70)90062-3
7 thms3 active usersReviewed
Convex OptimizationDiscrete GeometryOperations Research+1·Captain: Shuze Chen

Discrete Convex Analysis XXI: The Exchange Axiom as Local OptimalityTextbook

Motivation

Convexity on the integer lattice cannot be defined by the classical secant-line inequality alone: a function can be midpoint-convex along every line and still admit no useful global optimality theory, because integer points off a chosen line are invisible to it. M-convex functions, introduced by Murota, resolve this by replacing the secant condition with an exchange axiom directly generalizing the basis-exchange property of matroids and the convex-hull structure of network flows: a function on the integer lattice is M-convex if, whenever two points can be improved by moving one coordinate up and a compensating coordinate down, at least one such move weakly improves the sum of the two function values. This single axiom turns out to be equivalent to several strikingly different-looking properties — invariance under a wide family of domain operations, supermodularity in the M♮ (translation-invariant) case, and, most importantly, a local-to-global optimality principle: a point is a global minimizer of an M-convex function if and only if no single coordinate exchange improves it. This mission develops the algebraic core of that theory — the exchange axiom's basic consequences, its equivalent local and dynamic reformulations, and the operations that preserve it — building toward the theorem that recasts M-convexity itself as an algorithmically meaningful local-search guarantee.

Companion mission 06-mconvex-functions-i (Discrete Convex Analysis V) covers this chapter's own primary line of development: the equivalence of M-convexity and M♮-convexity with their respective exchange axioms (Theorem 6.2), the M-optimality criterion (Theorem 6.26), a minimizer-cut lemma (Theorem 6.28), and the M-proximity theorem (Theorem 6.37, its goal). This mission builds the vocabulary those results also need (redeclared here, since sibling drafts cannot yet import one another) and proves the results that chapter leaves for a second pass: the domain structure of M- and M♮-convex functions, worked examples (quadratic forms, quasi-separable functions), the operations that preserve M-convexity, supermodularity of the M♮-convex case, the descent-direction property, and — this mission's goal — the equivalence of the exchange axiom with a dynamic sequential-improvement property.

Setting

Fix a finite ground set VVV. A function f:ZV→R∪{+∞}f : \mathbb Z^V \to \mathbb R \cup \{+\infty\}f:ZV→R∪{+∞} with nonempty effective domain dom⁡f\operatorname{dom} fdomf is M-convex if it satisfies the exchange axiom (M-EXC[Z]): for x,y∈dom⁡fx, y \in \operatorname{dom} fx,y∈domf and u∈supp⁡+(x−y)u \in \operatorname{supp}^+(x-y)u∈supp+(x−y) (coordinates where xxx exceeds yyy), there is v∈supp⁡−(x−y)v \in \operatorname{supp}^-(x-y)v∈supp−(x−y) with

f(x)+f(y)≥f(x−χu+χv)+f(y+χu−χv).f(x) + f(y) \ge f(x - \chi_u + \chi_v) + f(y + \chi_u - \chi_v).f(x)+f(y)≥f(x−χu​+χv​)+f(y+χu​−χv​).

Writing f~(x0,x)=f(x)\tilde f(x_0, x) = f(x)f~​(x0​,x)=f(x) when x0=−x(V)x_0 = -x(V)x0​=−x(V) and +∞+\infty+∞ otherwise (a lift to one extra coordinate), fff is M♮^\natural♮-convex if f~\tilde ff~​ is M-convex; M♮-convexity is a genuine generalization of M-convexity (every M-convex function is M♮-convex, but not conversely) and coincides with it exactly when dom⁡f\operatorname{dom} fdomf lies on a single hyperplane. The linear-weighted function f[p](x)=f(x)−⟨p,x⟩f[p](x) = f(x) - \langle p, x \ranglef[p](x)=f(x)−⟨p,x⟩ (for p∈RVp \in \mathbb R^Vp∈RV) is the standard device for testing local optimality under an arbitrary reweighting.

Formalization targets

Goal: the exchange axiom as sequential improvement

f is M-convex  ⟺  ∀p∈RV, ∀x,y∈dom⁡f, f[p](x)>f[p](y)  ⟹  f[p](x)>min⁡u∈supp⁡+(x−y) min⁡v∈supp⁡−(x−y)f[p](x−χu+χv),f \text{ is M-convex} \iff \forall p \in \mathbb R^V,\ \forall x, y \in \operatorname{dom} f,\ f[p](x) > f[p](y) \implies f[p](x) > \min_{u \in \operatorname{supp}^+(x-y)}\ \min_{v \in \operatorname{supp}^-(x-y)} f[p](x - \chi_u + \chi_v),f is M-convex⟺∀p∈RV, ∀x,y∈domf, f[p](x)>f[p](y)⟹f[p](x)>u∈supp+(x−y)min​ v∈supp−(x−y)min​f[p](x−χu​+χv​),

with the analogous statement for M♮-convexity (Theorem 6.24). This is the weakest stable form: it makes no reference to a specific algorithm, only to the existence of an improving single exchange whenever the current point is suboptimal under any linear reweighting — a property a faster algorithm could exploit without invalidating the characterization itself.

Supporting structural targets

Eleven further results build the vocabulary and toolkit this goal draws on: the domain structure of M-convex and M♮-convex functions (Propositions 6.1, 6.7), the equivalence of the exchange axiom with a local, bounded-distance version (Theorem 6.4), worked examples establishing M-convexity for quadratic forms, univariate, conservation-law, and quasi-separable functions (Propositions 6.8-6.9), the domain and range operations preserving M-convexity (Theorem 6.13, Proposition 6.14), supermodularity of the M♮-convex case (Theorem 6.19), the descent-direction property (Proposition 6.23) that Theorem 6.24 generalizes, and a discrete subgradient inequality (Proposition 6.25).

Significance

Theorem 6.24 is the bridge between the static exchange axiom (a property of function values at pairs of points) and the dynamic behavior of local-search algorithms: it says a greedy single-coordinate-exchange step, applied to any linearly reweighted version of an M-convex function, always finds a strict improvement when one exists. This is exactly the guarantee that makes steepest-descent-type algorithms for M-convex function minimization correct, and it is the theorem chapter 10's algorithmic analysis (Schrijver-type methods) relies on implicitly whenever it argues that local exchange steps make global progress. The descent-direction property (Proposition 6.23) is the special case p=0p=0p=0, isolating the core combinatorial fact before the reweighting machinery is added. The operations catalog (Theorem 6.13) is the practical toolkit that lets later chapters build complex M-convex functions (network flow costs, matroid rank functions composed with linear maps) from simple pieces without re-verifying the exchange axiom from scratch each time.

None of these results are open — they are Murota's own systematic development of the exchange- axiom theory, with worked examples drawn from classical quadratic and separable function theory. What this mission contributes is a faithful, machine-checked formal statement of each, sharing the Lean vocabulary (MExchangeAxiom, MNaturalConvex, LinearWeight) the rest of the Discrete Convex Analysis series builds on; no comparable formalization exists on the platform (see Formalization scope).

Difficulty

The forward direction of Theorem 6.24 (M-convex   ⟹  \implies⟹ sequential improvement) follows in one step from Proposition 6.23 applied to f[p]f[p]f[p], itself M-convex by Theorem 6.13(3) — routine once those two pieces are in hand. The converse is the substantial direction: it must derive the full static exchange axiom from a property that only ever exhibits some improving exchange at some linear weighting, for every pair of suboptimal points — the proof constructs an explicit adversarial weighting ppp designed so that failure of the local exchange step at that specific ppp forces the domain itself to be M-convex (via Theorem 4.3) and then forces the local exchange axiom (M-EXCloc[Z]) via a bipartite-matching argument on the coordinates that differ, finally invoking Theorem 6.4 to lift locality to the full exchange axiom. No shortcut bypasses this two-stage reduction (domain structure, then local exchange) — attempting to verify (M-EXC[Z]) directly from (M-SI[Z]) without first pinning down that dom⁡f\operatorname{dom} fdomf is M-convex fails because the exchange axiom's own statement presupposes a well-structured domain.

Formalization scope

Ground-set elements are a Fintype V with DecidableEq; functions are (V → ℤ) → WithTop ℝ. SuppPos/SuppNeg are Finset V (not Set V), matching how the (M-SI[Z])/(M♮-SI[Z]) axioms and the descent-direction property use Finset.inf, whose value on an empty index set is ⊤ — exactly the book's own stated convention for an empty minimum. No Module ℝ or ConvexOn machinery is used for WithTop ℝ-valued arithmetic; scalar actions by positive reals (PosScalarMul, Theorem 6.13(1)) and by naturals (FCheck's flow coefficients, Proposition 6.25) are built directly from the native order and AddMonoid structure. No numeric constants are hard-coded anywhere in this mission (rule 7 is vacuous); Proposition 6.8's quadratic-form conditions are stated with the book's own literal coefficients (000, and the min/≥ structure of Eq. (6.25)-(6.28)), not a special case. Theorem 6.13's parts (7) (aggregation) and (8) (integer infimal convolution) are not restated here since the book itself proves them only later via Chapter 9's network-transformation machinery — see the Difficulty note and MODERATION_NOTES.md; this is not a trivializing omission, since the six operations that are included already exercise every domain- and range-transformation technique this mission's goal needs. This mission's definitions (MExchangeAxiom, MNaturalConvex, CharVec, DomZ, SuppPos, SuppNeg, CharVecOpt) are redeclared from chunk 06-mconvex-functions-i rather than imported, since sibling drafts in this series cannot yet reference one another. Contributions completing any of the twelve sorrys are welcome; the goal's converse direction and Theorem 6.13's operations are the two with the most independent proof content.

Selected references

  • K. Murota, Discrete Convex Analysis, SIAM, 2003. DOI: 10.1137/1.9780898718508.
  • K. Murota, "Discrete convex analysis," Mathematical Programming, 83 (1998), pp. 313-371 (the exchange axiom and its equivalent local/dynamic reformulations).
38 thms3 active usersReviewed
🏆Completed
Convex OptimizationDiscrete GeometryOperations Research+1·Captain: Shuze Chen

Discrete Convex Analysis XX: Integral Convexity of L-Convex SetsTextbook

Motivation

Shortest-path distances and network potentials are among the oldest objects in combinatorial optimization: a directed graph with arc lengths, its shortest-path distances, and the "feasible potentials" (vertex labels consistent with those lengths) underlie duality in min-cost flow, scheduling, and difference-constraint systems. Murota's Discrete Convex Analysis (SIAM, 2003) isolates the abstract structure behind these objects — distance functions satisfying the triangle inequality, and their associated sets of admissible potentials — and shows it is governed by exactly the same discrete-convexity machinery as submodular set functions: a one-to-one correspondence with a second family of well-behaved integer point sets, the L-convex sets. Where an M-convex set (chapter 4) is defined by an exchange axiom generalizing matroid base exchange, an L-convex set is defined by closure under coordinatewise lattice operations (∨, ∧) and translation by the all-ones vector — a genuinely different axiom system that nonetheless produces a parallel structural theory: hole-freeness, a polyhedral description via an induced distance function, and integral convexity.

Companion mission 05-lconvex-sets (Discrete Convex Analysis IV) covers this chapter's other half: the hole-free property (Theorem 5.2), the one-to-one correspondence between L-convex sets and integer-valued triangle-inequality distance functions (Theorem 5.5), the intersection properties (Theorem 5.7), and the chapter's discrete separation theorem (Theorem 5.9, its goal). This mission builds the vocabulary those results also need (redeclared here, since sibling drafts cannot yet import one another) and proves the results the chapter leaves for its second half: the fundamental facts connecting a distance function to its admissible potentials (Proposition 5.1), the two-way polyhedral correspondence's supporting propositions (5.3-5.4), Minkowski-sum convexity (Theorem 5.8), and — this mission's goal — the explicit description of an L-convex set's convex hull that establishes its integral convexity (Theorem 5.10).

Setting

Fix a finite ground set VVV. A distance function is a map γ:V×V→R∪{+∞}\gamma : V \times V \to \mathbb R \cup \{+\infty\}γ:V×V→R∪{+∞} with γ(v,v)=0\gamma(v,v) = 0γ(v,v)=0; it may take negative finite values and need not be symmetric. It defines a directed graph Gγ=(V,Aγ)G_\gamma = (V, A_\gamma)Gγ​=(V,Aγ​) with Aγ={(u,v):γ(u,v)<+∞}A_\gamma = \{(u,v) : \gamma(u,v) < +\infty\}Aγ​={(u,v):γ(u,v)<+∞}, arc (u,v)(u,v)(u,v) having length γ(u,v)\gamma(u,v)γ(u,v). Write γˉ(u,v)\bar\gamma(u,v)γˉ​(u,v) for the shortest-path length from uuu to vvv in GγG_\gammaGγ​ (+∞+\infty+∞ if none exists); γ\gammaγ is well defined (γˉ\bar\gammaγˉ​ finite-valued wherever a path exists) exactly when GγG_\gammaGγ​ has no negative cycle. The triangle inequality γ(v1,v2)+γ(v2,v3)≥γ(v1,v3)\gamma(v_1,v_2) + \gamma(v_2,v_3) \ge \gamma(v_1,v_3)γ(v1​,v2​)+γ(v2​,v3​)≥γ(v1​,v3​) defines the class T[R]T[\mathbb R]T[R] (or T[Z]T[\mathbb Z]T[Z] when integer-valued). A vector p∈RVp \in \mathbb R^Vp∈RV is an admissible potential of γ\gammaγ if p(v)−p(u)≤γ(u,v)p(v) - p(u) \le \gamma(u,v)p(v)−p(u)≤γ(u,v) for all u≠vu \ne vu=v; write D(γ)D(\gamma)D(γ) for the set of all such potentials.

A nonempty set D⊆ZVD \subseteq \mathbb Z^VD⊆ZV is L-convex if it satisfies (SBS[Z]): p,q∈D  ⟹  p∨q, p∧q∈Dp, q \in D \implies p \vee q,\ p \wedge q \in Dp,q∈D⟹p∨q, p∧q∈D (coordinatewise max/min), and (TRS[Z]): p∈D  ⟹  p±1∈Dp \in D \implies p \pm \mathbf 1 \in Dp∈D⟹p±1∈D. A set S⊆ZVS \subseteq \mathbb Z^VS⊆ZV is integrally convex if every point of its convex hull S‾\overline SS lies in the convex hull of SSS restricted to that point's integral neighborhood N(p)={y∈ZV:⌊p⌋≤y≤⌈p⌉ coordinatewise}N(p) = \{y \in \mathbb Z^V : \lfloor p \rfloor \le y \le \lceil p \rceil\text{ coordinatewise}\}N(p)={y∈ZV:⌊p⌋≤y≤⌈p⌉ coordinatewise} — a strong, local form of "no holes" saying every real point of the hull is explained by nearby integer points alone.

Formalization targets

Goal: integral convexity of L-convex sets

For an L-convex set D⊆ZVD \subseteq \mathbb Z^VD⊆ZV, writing a=p−⌊p⌋a = p - \lfloor p \rfloora=p−⌊p⌋ for the fractional part of p∈RVp \in \mathbb R^Vp∈RV, α1>⋯>αm\alpha_1 > \cdots > \alpha_mα1​>⋯>αm​ for the distinct nonzero values of aaa, and Ui(p)={v:a(v)≥αi}U_i(p) = \{v : a(v) \ge \alpha_i\}Ui​(p)={v:a(v)≥αi​} (with U0=∅U_0 = \emptysetU0​=∅):

D‾={p∈RV:⌊p⌋+χUi(p)∈D  (i=0,1,…,m)},hence D is integrally convex.\overline D = \{p \in \mathbb R^V : \lfloor p \rfloor + \chi_{U_i(p)} \in D\ \ (i = 0, 1, \ldots, m)\}, \qquad \text{hence } D \text{ is integrally convex}.D={p∈RV:⌊p⌋+χUi​(p)​∈D  (i=0,1,…,m)},hence D is integrally convex.

This is the weakest stable form available: it exhibits an explicit, finite set of at most ∣V∣+1|V|+1∣V∣+1 integer witnesses for every point of the hull, which is what "integrally convex" asserts abstractly, rather than a numerical bound that a sharper construction could later shrink.

Supporting structural targets

Four further results build the correspondence this goal uses: the basic duality between a distance function's admissible potentials, its shortest-path closure, and negative-cycle freedom (Prop. 5.1); the induced-distance-function construction recovering a triangle-inequality distance function from any integer point set, and the convex hull of an L-convex set as its associated polyhedron (Prop. 5.3); the converse construction recovering an L-convex set from an integer-valued distance function (Prop. 5.4); and convexity in Minkowski sum (Thm. 5.8).

Significance

Theorem 5.10 is what makes "L-convex" a genuinely convex-analytic notion rather than a combinatorial curiosity: it shows the convex hull of an L-convex set is not merely a polyhedron (already known from the chapter's polyhedral-description results) but one with the strongest local integrality property discrete convex analysis considers, integral convexity — every real point's hull membership is certified by a small, explicitly constructed set of nearby lattice points, uniformly across the whole set. This is the L-convex counterpart of the corresponding M-convex fact (chapter 4's Theorem 4.24) and is used later in the book wherever L-convex functions (chapter 7) need their epigraphs' local structure. Proposition 5.1 is the combinatorial engine underneath: it is exactly the LP-duality statement between shortest paths and feasible potentials that appears, in various guises, throughout network flow theory, made precise here as the base case the L-convex correspondence rests on.

None of these results are open — Murota presents them as, in his own words, "fundamental facts well known in network flow theory" (Proposition 5.1) systematized into the discrete convex analysis framework. What this mission contributes is a faithful, machine-checked formal statement of each, in the shared Lean vocabulary (LConvexSet, AdmissiblePotentials, ShortestDist) the rest of the Discrete Convex Analysis series can build on; no comparable formalization exists on the platform (see Formalization scope).

Difficulty

The shortest-path closure γˉ\bar\gammaγˉ​ is not a bookkeeping convenience but genuinely graph-theoretic content: proving Proposition 5.1 requires constructing an admissible potential from a shortest-path labeling and, conversely, deriving the negative-cycle-freeness of GγG_\gammaGγ​ from the mere existence of one admissible potential — a min-cost-flow-style LP duality argument, not a direct combinatorial check. Theorem 5.10's difficulty sits in a different place: the naive approach to "DDD is integrally convex" would attempt an inductive argument peeling off one coordinate at a time, but the actual proof constructs a single, uniform family of m+1m+1m+1 witness points from the sorted fractional values of ppp — a Carathéodory-style representation (Eq. (5.11)) that must simultaneously stay inside the integral neighborhood N(p)N(p)N(p) and land in DDD itself via the triangle inequality of DDD's induced distance function, a construction with no one-coordinate-at-a-time shortcut.

Formalization scope

Ground-set elements are a Fintype V with DecidableEq; L-convex sets are Set (V → ℤ); distance functions are V → V → WithTop ℝ; admissible-potential sets are Set (V → ℝ). The shortest-path closure is formalized directly from finite walks (Fin (k+1) → V) rather than via a graph-library shortest-path predicate, matching the book's own construction. The Eq. (5.11) witnesses are built exactly as the book describes them — sorted distinct nonzero fractional values and their level sets — mirroring the Lovász-extension construction of the companion mission 20-ch04b-mconvexsets. No numeric constants are hard-coded anywhere in this mission (rule 7 is vacuous). The goal's explicit witness set (at most ∣V∣+1|V|+1∣V∣+1 points) is not a trivializing special case: it holds for every L-convex set and every point of its hull, with no extra hypothesis narrowing the class. This mission's definitions (LConvexSet, AdmissiblePotentials, DistanceFunction, IsIntegrallyConvex) are redeclared from chunk 05-lconvex-sets (and, for IsIntegrallyConvex/IntegralNeighborhood, from chapter 3's own definitions) rather than imported, since sibling drafts in this series cannot yet reference one another; a later, published version of this book's namespace should consolidate them. Contributions completing any of the five sorrys are welcome; Proposition 5.1's LP-duality argument and the goal's Carathéodory-style construction are the two with the most independent proof content.

Selected references

  • K. Murota, Discrete Convex Analysis, SIAM, 2003. DOI: 10.1137/1.9780898718508.
  • A. J. Hoffman, "On abstract dual linear programs," Naval Research Logistics Quarterly, 10 (1963), pp. 369-373 (feasible-potential duality in network flow theory).
23 thms3 active usersReviewed
Convex OptimizationDiscrete GeometryOperations Research+1·Captain: Shuze Chen

Discrete Convex Analysis XIX: Discrete Separation for M-Convex SetsTextbook

Motivation

Submodular set functions are the combinatorial stand-in for convexity: a function ρ:2V→R\rho : 2^V \to \mathbb Rρ:2V→R on the subsets of a finite ground set VVV is submodular if ρ(X)+ρ(Y)≥ρ(X∪Y)+ρ(X∩Y)\rho(X) + \rho(Y) \ge \rho(X \cup Y) + \rho(X \cap Y)ρ(X)+ρ(Y)≥ρ(X∪Y)+ρ(X∩Y), and this single diminishing-returns inequality drives an enormous range of combinatorial optimization — matroid rank functions, graph cut capacities, entropy, coverage functions, and the max-flow min-cut theorem all arise as special or dual cases (Edmonds 1970; Lovász 1983; Fujishige 2005). M-convex sets are the "vector" incarnation of the same idea: subsets BBB of ZV\mathbb Z^VZV satisfying an exchange axiom that generalizes the basis-exchange property of matroids to sets of integer points lying on a common hyperplane. Murota's Discrete Convex Analysis (SIAM, 2003) develops both sides of this correspondence and proves they coincide exactly: M-convex sets are precisely the integer points of the base polyhedra of integer-valued submodular functions. This mission covers the second half of that development — the structural theory (integrality, holes, Minkowski sums) that turns the correspondence into a working calculus, and its capstone, a discrete separation theorem for two disjoint M-convex sets whose separating hyperplane is forced to have {0,1}\{0,1\}{0,1}- or {0,−1}\{0,-1\}{0,−1}-valued coefficients.

Companion mission 04-mconvex-sets (Discrete Convex Analysis III) covers the same chapter's foundational results: the equivalence of the exchange-axiom variants, the one-to-one correspondence between M-convex sets and integer submodular functions (Theorem 4.15), Edmonds's intersection theorem (Theorem 4.18), and Frank's discrete separation theorem for submodular/ supermodular pairs (Theorem 4.17). This mission builds on that vocabulary (redeclared here, since draft missions in the same series cannot yet import one another) and proves the results the chapter leaves for its second half.

Setting

Fix a finite ground set VVV. A vector x∈ZVx \in \mathbb Z^Vx∈ZV assigns an integer x(v)x(v)x(v) to each v∈Vv \in Vv∈V; write x(X)=∑v∈Xx(v)x(X) = \sum_{v \in X} x(v)x(X)=∑v∈X​x(v) for X⊆VX \subseteq VX⊆V. For x,y∈ZVx, y \in \mathbb Z^Vx,y∈ZV, the positive support supp⁡+(x−y)={v:x(v)>y(v)}\operatorname{supp}^+(x-y) = \{v : x(v) > y(v)\}supp+(x−y)={v:x(v)>y(v)} and negative support supp⁡−(x−y)={v:x(v)<y(v)}\operatorname{supp}^-(x-y) = \{v : x(v) < y(v)\}supp−(x−y)={v:x(v)<y(v)} record where xxx exceeds, and falls short of, yyy. A nonempty set B⊆ZVB \subseteq \mathbb Z^VB⊆ZV is M-convex if it satisfies the exchange axiom (B-EXC[Z]): for all x,y∈Bx, y \in Bx,y∈B and u∈supp⁡+(x−y)u \in \operatorname{supp}^+(x-y)u∈supp+(x−y), some v∈supp⁡−(x−y)v \in \operatorname{supp}^-(x-y)v∈supp−(x−y) has both x−χu+χv∈Bx - \chi_u + \chi_v \in Bx−χu​+χv​∈B and y+χu−χv∈By + \chi_u - \chi_v \in By+χu​−χv​∈B, where χu\chi_uχu​ is the characteristic vector of uuu.

A set function ρ:2V→R∪{+∞}\rho : 2^V \to \mathbb R \cup \{+\infty\}ρ:2V→R∪{+∞} with ρ(∅)=0\rho(\emptyset) = 0ρ(∅)=0 and ρ(V)<+∞\rho(V) < +\inftyρ(V)<+∞ is submodular (the class S[R]S[\mathbb R]S[R], or S[Z]S[\mathbb Z]S[Z] when integer-valued) if ρ(X)+ρ(Y)≥ρ(X∪Y)+ρ(X∩Y)\rho(X) + \rho(Y) \ge \rho(X \cup Y) + \rho(X \cap Y)ρ(X)+ρ(Y)≥ρ(X∪Y)+ρ(X∩Y) for all X,YX, YX,Y. Its base polyhedron is B(ρ)={x∈RV:x(X)≤ρ(X) (∀X), x(V)=ρ(V)}B(\rho) = \{x \in \mathbb R^V : x(X) \le \rho(X)\ (\forall X),\ x(V) = \rho(V)\}B(ρ)={x∈RV:x(X)≤ρ(X) (∀X), x(V)=ρ(V)}. The Lovász extension ρ^:RV→R∪{±∞}\hat\rho : \mathbb R^V \to \mathbb R \cup \{\pm\infty\}ρ^​:RV→R∪{±∞} linearly interpolates ρ\rhoρ off {0,1}V\{0,1\}^V{0,1}V: sorting the distinct values of p∈RVp \in \mathbb R^Vp∈RV as p^1>⋯>p^m\hat p_1 > \cdots > \hat p_mp^​1​>⋯>p^​m​ and setting Ui={v:p(v)≥p^i}U_i = \{v : p(v) \ge \hat p_i\}Ui​={v:p(v)≥p^​i​}, it is ρ^(p)=∑i=1m−1(p^i−p^i+1)ρ(Ui)+p^mρ(Um)\hat\rho(p) = \sum_{i=1}^{m-1}(\hat p_i - \hat p_{i+1})\rho(U_i) + \hat p_m \rho(U_m)ρ^​(p)=∑i=1m−1​(p^​i​−p^​i+1​)ρ(Ui​)+p^​m​ρ(Um​).

Formalization targets

Goal: discrete separation for M-convex sets

B1∩B2=∅  ⟹  ∃ p∗∈{0,1}V∪{0,−1}V,inf⁡x∈B1⟨p∗,x⟩−sup⁡x∈B2⟨p∗,x⟩≥1,B_1 \cap B_2 = \emptyset \implies \exists\, p^* \in \{0,1\}^V \cup \{0,-1\}^V,\quad \inf_{x \in B_1}\langle p^*, x\rangle - \sup_{x \in B_2}\langle p^*, x\rangle \ge 1,B1​∩B2​=∅⟹∃p∗∈{0,1}V∪{0,−1}V,x∈B1​inf​⟨p∗,x⟩−x∈B2​sup​⟨p∗,x⟩≥1,

for M-convex sets B1,B2⊆ZVB_1, B_2 \subseteq \mathbb Z^VB1​,B2​⊆ZV (Theorem 4.21). This is the weakest stable form of the result — it asserts only the existence of a combinatorially special separator, not any bound tied to ∣V∣|V|∣V∣ or a particular construction, so it is not invalidated by a sharper algorithm for finding p∗p^*p∗.

Supporting structural targets

Eleven further results build the calculus this goal rests on: the hyperplane property of M-convex sets (Prop. 4.1), an equivalent one-sided exchange axiom (Prop. 4.2), nonemptiness and the support-function identity for B(ρ)B(\rho)B(ρ) (Props. 4.4-4.5), integrality of B(ρ)B(\rho)B(ρ) for integer-valued ρ\rhoρ (Prop. 4.6), the hole-free property identifying an M-convex set with the integer points of its own convex hull (Thm. 4.12), the two-way polyhedral description of M-convex sets via induced submodular functions (Props. 4.13-4.14), the equivalence of submodularity with convexity of the Lovász extension (Thm. 4.16, due to Lovász), integrality of the intersection of M-convex sets (Thm. 4.22), and Minkowski-sum identities for base polyhedra and M-convex sets (Thm. 4.23).

Significance

The discrete separation theorem is what makes M-convexity discrete rather than merely a polyhedral fact: ordinary separation of two disjoint convex sets by a hyperplane is classical, but here the separator is forced into {0,1}V∪{0,−1}V\{0,1\}^V \cup \{0,-1\}^V{0,1}V∪{0,−1}V — a purely combinatorial object — with no loss of strength. This is the mechanism behind integrality results across combinatorial optimization (e.g., that the intersection of two integral base polyhedra is integral, Theorem 4.22, used pervasively in matroid intersection and submodular flow algorithms). The structural results (holes, Minkowski sums, the Lovász-extension convexity equivalence) are the working toolkit every later use of M-convexity in the book — proximity theorems for M-convex functions (chunks 06+), the discrete conjugacy theorem, submodular flows — draws on without restating.

None of these results are open: Murota attributes the exchange-axiom theory to the matroid and submodular-function literature it systematizes, citing Edmonds, Frank, and Lovász by name for the specific theorems. What this mission produces is a machine-checked formal statement of each result exactly as the book states it, in a shared Lean vocabulary (ExchangeAxiomB, BasePolyhedron, LovaszExtension) that the rest of the Discrete Convex Analysis series builds on; no result here has a prior formalization on the platform (see Formalization scope).

Difficulty

The separation theorem is not proved by convex separation directly — the whole point is that the naive proof (apply the ordinary hyperplane separation theorem to the convex hulls of B1,B2B_1, B_2B1​,B2​, then argue the separator can be taken {0,1}\{0,1\}{0,1}-valued) does not go through, because convex separation alone gives no control over the separator's coefficients. The book instead derives it from Edmonds's intersection theorem (Theorem 4.18, chunk 04-mconvex-sets) applied to a submodular/supermodular pair built from B1,B2B_1, B_2B1​,B2​'s associated set functions (Theorem 4.15), routed through Frank's discrete separation theorem (Theorem 4.17) — a genuine two-step reduction, not a direct argument. A second, independent difficulty sits in the supporting results: the hole-free property (Theorem 4.12) requires an explicit induction reducing an arbitrary convex combination representing an integer point to a single element of BBB, a combinatorial exchange argument with no shortcut through general polyhedral theory.

Formalization scope

Ground-set elements are a Fintype V with DecidableEq; M-convex sets are Set (V → ℤ); submodular/supermodular functions are Finset V → WithTop ℝ / WithBot ℝ; base polyhedra are Set (V → ℝ). The Lovász extension is formalized directly from the book's own sorted-values construction (SortedValues, LevelSet, Eq. (4.4)-(4.6)), not via an equivalent closed form. Since WithTop ℝ carries no Module ℝ structure, convexity for Theorem 4.16 is stated via a bespoke nonnegative-scalar action (ScalarWithTop) rather than Mathlib's ConvexOn — this changes no mathematical content, only its packaging (see MODERATION_NOTES.md). No numeric constants are hard-coded anywhere in this mission (rule 7 is vacuous). The goal's hypothesis (ExchangeAxiomB plus Nonempty on each BiB_iBi​) is exactly the book's own definition of M-convexity — no weaker substitute (e.g. requiring a specific ρ\rhoρ witness in the hypothesis rather than deriving one, or dropping the {0,1}/{0,−1}\{0,1\}/\{0,-1\}{0,1}/{0,−1} constraint on p∗p^*p∗ in favor of a generic separator) would be faithful, and both trivializations are ruled out by construction. This mission's definitions (ExchangeAxiomB, BasePolyhedron, SubmodularSetFunction, LovaszExtension) are redeclared from chunk 04-mconvex-sets rather than imported, since sibling drafts in this series cannot yet reference one another; a later, published version of this book's namespace should consolidate them. Contributions completing any of the twelve sorrys are welcome; the hole-free property (Theorem 4.12) and the goal are the two with the most independent proof content.

Selected references

  • K. Murota, Discrete Convex Analysis, SIAM, 2003. DOI: 10.1137/1.9780898718508.
  • J. Edmonds, "Submodular functions, matroids, and certain polyhedra," in Combinatorial Structures and Their Applications, 1970, pp. 69-87.
  • A. Frank, "An algorithm for submodular functions on graphs," Annals of Discrete Mathematics, 16 (1982), pp. 97-120.
  • L. Lovász, "Submodular functions and convexity," in Mathematical Programming: The State of the Art, Springer, 1983, pp. 235-257.
29 thms3 active usersReviewed
🏆Completed
Complexity TheoryOperations ResearchOptimization+2·Captain: mikedeng1

Maximizing Non-Monotone Submodular Functions V: Beating 1/2 for Symmetric Functions Requires Exponentially Many Value QueriesResearch Paper

Motivation

Maximizing a nonnegative submodular set function without constraints contains Max Cut, Max Directed Cut and facility-location problems as special cases. In the value-oracle model an algorithm knows nothing about the function except the values f(S)f(S)f(S) of the sets SSS it queries, and it is judged by the number of queries it makes. Feige, Mirrokni and Vondrák (SIAM J. Comput. 40(4), 2011) gave constant-factor algorithms in this model and matching limits on what any algorithm can do. For symmetric functions, such as cut functions of undirected graphs, a uniformly random set already achieves 12\tfrac1221​ of the optimum in expectation (Theorem 2.1 of the paper). The question this mission formalizes is whether any algorithm can do better, and the answer given by Theorem 4.5 is: not without exponentially many value queries. The same factor 12\tfrac1221​ was later shown to be achievable for general (non-symmetric) nonnegative submodular functions by Buchbinder, Feldman, Naor and Schwartz (FOCS 2012 / SIAM J. Comput. 2015), so the bound of Theorem 4.5 is the tight limit of the whole problem in the value-oracle model.

Timeline:

  • 2007 (FOCS) / 2011 (SIAM J. Comput.): Feige, Mirrokni and Vondrák prove that no algorithm with subexponentially many value queries achieves (12+ϵ)(\tfrac12 + \epsilon)(21​+ϵ) of the optimum on symmetric nonnegative submodular functions, and give 25\tfrac2552​ for general functions.
  • 2011: Vondrák's symmetry-gap framework (SIAM J. Comput. 42(1), 2013) generalizes the construction to constrained problems.
  • 2012: Buchbinder, Feldman, Naor and Schwartz give a randomized 12\tfrac1221​-approximation for general nonnegative submodular functions, matching the bound.

Setting

Let [n]={0,…,n−1}[n] = \{0, \dots, n-1\}[n]={0,…,n−1} be the ground set, with nnn even. A set function f:2[n]→Rf : 2^{[n]} \to \mathbb{R}f:2[n]→R is submodular if f(S∪T)+f(S∩T)≤f(S)+f(T)f(S \cup T) + f(S \cap T) \le f(S) + f(T)f(S∪T)+f(S∩T)≤f(S)+f(T) for all S,TS, TS,T, symmetric if f([n]∖S)=f(S)f([n]\setminus S) = f(S)f([n]∖S)=f(S) for all SSS, and OPT(f)=max⁡Sf(S)\mathrm{OPT}(f) = \max_{S} f(S)OPT(f)=maxS​f(S).

Fix an integer mmm with 1≤m≤n/21 \le m \le n/21≤m≤n/2 and write ϵ=m/n\epsilon = m/nϵ=m/n, so that ϵn\epsilon nϵn is an integer. For integers k,ℓk, \ellk,ℓ put

f(k,ℓ)={(k+ℓ)(n−k−ℓ)∣k−ℓ∣≤m,k(n−2ℓ)+(n−2k)ℓ+m2−2m∣k−ℓ∣∣k−ℓ∣>m.f(k,\ell) = \begin{cases} (k+\ell)(n-k-\ell) & |k-\ell| \le m,\\ k(n-2\ell) + (n-2k)\ell + m^2 - 2m|k-\ell| & |k-\ell| > m. \end{cases}f(k,ℓ)={(k+ℓ)(n−k−ℓ)k(n−2ℓ)+(n−2k)ℓ+m2−2m∣k−ℓ∣​∣k−ℓ∣≤m,∣k−ℓ∣>m.​

For a set C⊆[n]C \subseteq [n]C⊆[n] with ∣C∣=n/2|C| = n/2∣C∣=n/2 and D=[n]∖CD = [n] \setminus CD=[n]∖C, the hard instance is fC(S)=f(∣S∩C∣,∣S∩D∣)f_C(S) = f(|S\cap C|, |S\cap D|)fC​(S)=f(∣S∩C∣,∣S∩D∣). The cut function of the complete graph is g(S)=∣S∣(n−∣S∣)g(S) = |S|(n-|S|)g(S)=∣S∣(n−∣S∣), with maximum 14n2\tfrac14 n^241​n2. A set QQQ is balanced for CCC if ∣∣Q∩C∣−∣Q∩D∣∣≤m\bigl||Q\cap C| - |Q\cap D|\bigr| \le m​∣Q∩C∣−∣Q∩D∣​≤m; on balanced sets fC=gf_C = gfC​=g.

A deterministic adaptive qqq-query algorithm AAA chooses each query from the answers received so far, and after qqq answers outputs a set A(h)A(h)A(h) when run against an oracle hhh. A randomized algorithm is a distribution μ\muμ over deterministic ones, with expected value EA∼μ[h(A(h))]\mathbb{E}_{A\sim\mu}[h(A(h))]EA∼μ​[h(A(h))].

Formalization targets

Goal: Theorem 4.5 with the constants of its proof

For every such n,mn, mn,m:

  1. every fCf_CfC​ with ∣C∣=n/2|C| = n/2∣C∣=n/2 is nonnegative, symmetric and submodular, with
OPT(fC)=12n2(1−2ϵ+2ϵ2);\mathrm{OPT}(f_C) = \tfrac12 n^2 (1 - 2\epsilon + 2\epsilon^2);OPT(fC​)=21​n2(1−2ϵ+2ϵ2);
  1. for every q<eϵ2n/8q < e^{\epsilon^2 n/8}q<eϵ2n/8 and every randomized qqq-query algorithm μ\muμ there is a CCC with ∣C∣=n/2|C| = n/2∣C∣=n/2 and
EA∼μ[fC(A(fC))]≤14n2+(2e−ϵ2n/8+2e−ϵ2n/4) OPT(fC).\mathbb{E}_{A\sim\mu}\bigl[f_C(A(f_C))\bigr] \le \tfrac14 n^2 + \bigl(2e^{-\epsilon^2 n/8} + 2e^{-\epsilon^2 n/4}\bigr)\,\mathrm{OPT}(f_C).EA∼μ​[fC​(A(fC​))]≤41​n2+(2e−ϵ2n/8+2e−ϵ2n/4)OPT(fC​).

Hence the ratio attained is at most 12(1−2ϵ+2ϵ2)+4e−ϵ2n/8=12+ϵ+O(ϵ2)+4e−ϵ2n/8\frac{1}{2(1-2\epsilon+2\epsilon^2)} + 4e^{-\epsilon^2 n/8} = \tfrac12 + \epsilon + O(\epsilon^2) + 4e^{-\epsilon^2 n/8}2(1−2ϵ+2ϵ2)1​+4e−ϵ2n/8=21​+ϵ+O(ϵ2)+4e−ϵ2n/8.

Milestones

  • Theorem 1.2, the Chernoff bound for independent variables in [−1,1][-1,1][−1,1].
  • Submodularity of fCf_CfC​.
  • The value OPT(fC)=12n2(1−2ϵ+2ϵ2)\mathrm{OPT}(f_C) = \tfrac12 n^2(1 - 2\epsilon + 2\epsilon^2)OPT(fC​)=21​n2(1−2ϵ+2ϵ2), attained at S=CS = CS=C.
  • A fixed query is unbalanced for at most a 2e−ϵ2n/42e^{-\epsilon^2 n/4}2e−ϵ2n/4 fraction of the half-size sets CCC.
  • If all queries are balanced, the algorithm cannot distinguish fCf_CfC​ from ggg.
  • The deterministic case of the bound, averaged over CCC.

Significance

The theorem shows that the factor 12\tfrac1221​ for symmetric submodular maximization, and hence for unconstrained submodular maximization in general, cannot be improved by any algorithm that uses a subexponential number of value queries, whatever its running time. It is an information-theoretic bound and needs no complexity assumption. Along with the later matching 12\tfrac1221​-approximation, it settles the value-oracle approximability of the problem. The construction, a function equal to a symmetric function on "balanced" sets and larger elsewhere, is the prototype of the symmetry-gap technique used for many later oracle lower bounds.

The result is proved in the paper. No machine-checked version is known to exist: the platform has no value-oracle or query-lower-bound statement. Formalizing it requires a precise model of adaptive randomized query algorithms, a concentration bound for the hypergeometric distribution, and a finite verification of submodularity of an explicit two-regime function, and it fixes the constants that the printed statement leaves as O(⋅)O(\cdot)O(⋅) terms.

Difficulty

Two steps of the printed argument do not go through as written. First, the proof bounds the probability that a fixed query is unbalanced by citing the Chernoff bound for independent variables, but for a uniformly random half-size set CCC the count ∣Q∩C∣|Q\cap C|∣Q∩C∣ is hypergeometric, and the summands are not independent. A bound for sampling without replacement is needed instead. Replacing the balanced partition by independent coin flips is not an option: then ∣C∣≠n/2|C| \ne n/2∣C∣=n/2 in general, and the function is no longer the paper's instance.

Second, the argument counts only the queries, but the value an algorithm receives is fCf_CfC​ of its output, which equals ggg of the output only if the output is balanced as well. That event has to be controlled too.

Finally, submodularity of fCf_CfC​ must be checked across the boundary ∣k−ℓ∣=ϵn|k-\ell| = \epsilon n∣k−ℓ∣=ϵn between the two regimes, where the formula changes.

Formalization scope

  • The ground set is Fin n with nnn even; ϵn\epsilon nϵn is an integer mmm with 1≤m1 \le m1≤m and 2m≤n2m \le n2m≤n, following the paper's "assume that ϵn\epsilon nϵn is an integer". Sets are Finset (Fin n), and all values are real.
  • OPT\mathrm{OPT}OPT is Finset.sup' over all subsets. There is no junk value.
  • The partition (C,D)(C, D)(C,D) is uniform over half-size sets; probabilities over it are counts of n/2-subsets divided by (nn/2)\binom{n}{n/2}(n/2n​), written multiplied out.
  • A deterministic algorithm is a pair of decision rules query, output : List ℝ → Finset (Fin n) making exactly qqq adaptive queries with arbitrary real answers. A randomized algorithm is a PMF over deterministic algorithms, which covers every randomization with countable support. The algorithm sees fff only through query answers; it never receives CCC.
  • Pinned-down constants. The printed theorem, "fewer than eϵ2n/8e^{\epsilon^2 n/8}eϵ2n/8 queries" and "expected value at least (12+ϵ)OPT(\tfrac12+\epsilon)\mathrm{OPT}(21​+ϵ)OPT", is not what the proof gives for one and the same ϵ\epsilonϵ. On the proof's instances OPT=12n2(1−2ϵ+2ϵ2)\mathrm{OPT} = \tfrac12 n^2(1-2\epsilon+2\epsilon^2)OPT=21​n2(1−2ϵ+2ϵ2), and the ratio held is 12(1−2ϵ+2ϵ2)>12+ϵ\frac{1}{2(1-2\epsilon+2\epsilon^2)} > \tfrac12 + \epsilon2(1−2ϵ+2ϵ2)1​>21​+ϵ. The formal goal states the explicit bound the proof establishes. The literal printed pair, stated for the proof's family with the same ϵ\epsilonϵ, is false: the zero-query algorithm that outputs a fixed half-size set gets at least 14n2>(12+ϵ)OPT\tfrac14 n^2 > (\tfrac12+\epsilon)\mathrm{OPT}41​n2>(21​+ϵ)OPT.
  • Added term. The error term 2e−ϵ2n/42e^{-\epsilon^2 n/4}2e−ϵ2n/4 for the output set is added to the paper's 2e−ϵ2n/82e^{-\epsilon^2 n/8}2e−ϵ2n/8.
  • Ruled-out trivializations. A restricted algorithm class (non-adaptive, deterministic, or one that must return a queried set) would give a different, weaker theorem. So would a bound that lets the algorithm read CCC, which would make the statement false. Both the instance's properties (nonnegativity, symmetry, submodularity, the value of OPT) and the bound are part of the goal, so an empty or degenerate family cannot satisfy it. The quantifier order is: for every algorithm there is an instance.
  • Needed infrastructure: a value-oracle algorithm model; tail bounds for the hypergeometric distribution (Hoeffding's inequality for sampling without replacement), which Mathlib lacks; averaging over a PMF of algorithms. The algorithm model and the hypergeometric bound are reusable for other oracle lower bounds. Proofs of any milestone, and alternative derivations of the balance bound, are welcome.

Selected references

  • U. Feige, V. S. Mirrokni, J. Vondrák, Maximizing Non-Monotone Submodular Functions, SIAM J. Comput. 40(4):1133–1153, 2011. https://doi.org/10.1137/090779346
  • N. Alon, J. H. Spencer, The Probabilistic Method, Wiley (source of Theorem 1.2).
  • W. Hoeffding, Probability Inequalities for Sums of Bounded Random Variables, J. Amer. Statist. Assoc. 58(301):13–30, 1963. https://doi.org/10.1080/01621459.1963.10500830
  • J. Vondrák, Symmetry and Approximability of Submodular Maximization Problems, SIAM J. Comput. 42(1):265–304, 2013. https://doi.org/10.1137/110832318
  • N. Buchbinder, M. Feldman, J. Naor, R. Schwartz, A Tight Linear Time (1/2)-Approximation for Unconstrained Submodular Maximization, SIAM J. Comput. 44(5):1384–1402, 2015. https://doi.org/10.1137/130929205
12 thms3 active usersReviewed
🏆Completed
Operations ResearchOptimizationProbability+1·Captain: mikedeng1

Maximizing Non-Monotone Submodular Functions IV: Smooth Local Search Achieves 2/5 of the OptimumResearch Paper

Motivation

Many optimization problems ask for a subset of a finite ground set that maximizes a submodular function, a set function with diminishing marginal returns. Max Cut and Max Directed Cut in graphs, facility location with fixed costs, and the maximization of mutual information or entropy of a subset of random variables are all of this form. Unlike the monotone case, where a greedy algorithm achieves 1−1/e1 - 1/e1−1/e, a general nonnegative submodular function may decrease when elements are added, and the empty set and the full set can both be poor. The question is how large a constant fraction of the optimum a polynomial-time algorithm can guarantee when the function is given only through an oracle that returns f(S)f(S)f(S) for a queried set SSS.

Feige, Mirrokni and Vondrák (SIAM J. Comput. 40(4), 2011) gave the first constant-factor algorithms for this problem. A uniformly random set achieves 1/41/41/4 of the optimum, a deterministic local search achieves 1/3−ϵ/n1/3 - \epsilon/n1/3−ϵ/n, and a randomized smooth local search achieves 2/5−o(1)2/5 - o(1)2/5−o(1). The last result is the paper's best approximation for general nonnegative submodular functions (Table 1, p. 1136), and it is the subject of this mission.

Timeline. Feige, Mirrokni and Vondrák: 1/41/41/4, 1/31/31/3 and 2/52/52/5 (FOCS 2007; journal version 2011). Gharan and Vondrák (SODA 2011): about 0.410.410.41 by simulated annealing. Buchbinder, Feldman, Naor and Schwartz (FOCS 2012; SIAM J. Comput. 2015): a randomized double greedy algorithm achieving 1/21/21/2, which matches the 1/21/21/2 hardness in the value oracle model proved in the same paper by Feige, Mirrokni and Vondrák.

Setting

Let XXX be a finite ground set with n=∣X∣≥1n = |X| \ge 1n=∣X∣≥1 elements and f:2X→Rf : 2^X \to \mathbb{R}f:2X→R a function with f(S)≥0f(S) \ge 0f(S)≥0 for all SSS and

f(S∪T)+f(S∩T)≤f(S)+f(T)(S,T⊆X).f(S \cup T) + f(S \cap T) \le f(S) + f(T) \quad (S, T \subseteq X).f(S∪T)+f(S∩T)≤f(S)+f(T)(S,T⊆X).

Write OPT=max⁡S⊆Xf(S)OPT = \max_{S \subseteq X} f(S)OPT=maxS⊆X​f(S). The multilinear extension of fff is

F(x)=∑S⊆Xf(S)∏i∈Sxi∏j∉S(1−xj),F(x) = \sum_{S \subseteq X} f(S) \prod_{i \in S} x_i \prod_{j \notin S} (1 - x_j),F(x)=S⊆X∑​f(S)i∈S∏​xi​j∈/S∏​(1−xj​),

the expected value of fff on a random set containing each iii independently with probability xix_ixi​.

For A⊆XA \subseteq XA⊆X and δ∈[−1,1]\delta \in [-1,1]δ∈[−1,1], the random set R(A,δ)\mathcal{R}(A,\delta)R(A,δ) is sampled with bias δ\deltaδ based on AAA: each element of AAA is included independently with probability p=(1+δ)/2p = (1+\delta)/2p=(1+δ)/2, each element of B=X∖AB = X \setminus AB=X∖A with probability q=(1−δ)/2q = (1-\delta)/2q=(1−δ)/2. The potential is Φ(A)=E[f(R(A,δ))]\Phi(A) = \mathbf{E}[f(\mathcal{R}(A,\delta))]Φ(A)=E[f(R(A,δ))] and the smoothed marginal value of xxx is

ωA,δ(x)=E[f(R(A,δ)∪{x})]−E[f(R(A,δ)∖{x})].\omega_{A,\delta}(x) = \mathbf{E}[f(\mathcal{R}(A,\delta) \cup \{x\})] - \mathbf{E}[f(\mathcal{R}(A,\delta) \setminus \{x\})].ωA,δ​(x)=E[f(R(A,δ)∪{x})]−E[f(R(A,δ)∖{x})].

Algorithm SLS starts from A=∅A = \emptysetA=∅. At each iteration it obtains estimates ω~A,δ(x)\tilde\omega_{A,\delta}(x)ω~A,δ​(x) within ±1n2OPT\pm\frac{1}{n^2}OPT±n21​OPT of ωA,δ(x)\omega_{A,\delta}(x)ωA,δ​(x). If some x∉Ax \notin Ax∈/A has ω~A,δ(x)>2n2OPT\tilde\omega_{A,\delta}(x) > \frac{2}{n^2}OPTω~A,δ​(x)>n22​OPT it adds xxx; otherwise, if some x∈Ax \in Ax∈A has ω~A,δ(x)<−2n2OPT\tilde\omega_{A,\delta}(x) < -\frac{2}{n^2}OPTω~A,δ​(x)<−n22​OPT it removes xxx; otherwise it stops and returns a random set R(A,δ′)\mathcal{R}(A, \delta')R(A,δ′).

Formalization targets

Goal: Theorem 3.6 in the explicit form of its proof

With δ=1/3\delta = 1/3δ=1/3, and δ′=1/3\delta' = 1/3δ′=1/3 with probability 0.90.90.9 or δ′=−1\delta' = -1δ′=−1 with probability 0.10.10.1: for every run from ∅\emptyset∅ whose estimates are all accurate and which has terminated at AAA,

910 E[f(R(A,13))]+110 f(X∖A)≥(25−95n)OPT,\tfrac{9}{10}\,\mathbf{E}[f(\mathcal{R}(A,\tfrac13))] + \tfrac{1}{10}\,f(X \setminus A) \ge \Big(\frac{2}{5} - \frac{9}{5n}\Big) OPT,109​E[f(R(A,31​))]+101​f(X∖A)≥(52​−5n9​)OPT,

and, for every δ∈(0,1]\delta \in (0,1]δ∈(0,1], every run of kkk iterations with accurate estimates has k<n2/δk < n^2/\deltak<n2/δ (fewer than 3n23n^23n2 for δ=1/3\delta = 1/3δ=1/3).

Milestones, in attack order

  • Lemma 2.2: E[g(A(p))]≥(1−p)g(∅)+p g(A)\mathbf{E}[g(A(p))] \ge (1-p)g(\emptyset) + p\,g(A)E[g(A(p))]≥(1−p)g(∅)+pg(A).
  • Display (∗): for three independently sampled sets, E[f(A1(p1)∪A2(p2)∪A3(p3))]≥∑I⊆{1,2,3}∏i∈Ipi∏i∉I(1−pi)f(⋃i∈IAi)\mathbf{E}[f(A_1(p_1) \cup A_2(p_2) \cup A_3(p_3))] \ge \sum_{I \subseteq \{1,2,3\}} \prod_{i\in I} p_i \prod_{i \notin I}(1-p_i) f(\bigcup_{i \in I} A_i)E[f(A1​(p1​)∪A2​(p2​)∪A3​(p3​))]≥∑I⊆{1,2,3}​∏i∈I​pi​∏i∈/I​(1−pi​)f(⋃i∈I​Ai​).
  • The increment identity Φ(A∪{x})−Φ(A)=δ ωA,δ(x)\Phi(A \cup \{x\}) - \Phi(A) = \delta\,\omega_{A,\delta}(x)Φ(A∪{x})−Φ(A)=δωA,δ​(x) for x∉Ax \notin Ax∈/A, and its removal counterpart.
  • 0≤Φ(A)≤OPT0 \le \Phi(A) \le OPT0≤Φ(A)≤OPT.
  • The terminal upper estimates E[f(R∪(B∩C))], E[f(R∩(B∪C))]≤E[f(R)]+2nOPT\mathbf{E}[f(R \cup (B\cap C))],\ \mathbf{E}[f(R \cap (B \cup C))] \le \mathbf{E}[f(R)] + \frac{2}{n}OPTE[f(R∪(B∩C))], E[f(R∩(B∪C))]≤E[f(R)]+n2​OPT.
  • The two lower bounds in 272727ths on the same two expectations.
  • The final chain E[f(R)]+19f(B)+2nOPT≥49OPT\mathbf{E}[f(R)] + \frac19 f(B) + \frac2n OPT \ge \frac49 OPTE[f(R)]+91​f(B)+n2​OPT≥94​OPT.

Significance

The 2/52/52/5 bound showed that local search on a smoothed objective, the multilinear extension restricted to points with two coordinate values, beats both uniform sampling and plain local search for non-monotone submodular maximization. The multilinear extension later became the standard tool for submodular maximization under constraints, through continuous greedy methods, contention resolution schemes and the analysis of randomized rounding. Display (∗) and Lemma 2.2 are the basic sampling inequalities for submodular functions and are reused throughout that literature.

The result is proved in the paper; it has been superseded in ratio by later algorithms reaching 1/21/21/2. To our knowledge none of it is machine-checked: Mathlib has no multilinear extension and no submodular maximization results. This mission produces a checked form of the analysis with every constant explicit: the o(1)o(1)o(1) as 95n\frac{9}{5n}5n9​, "polynomial time" as n2/δn^2/\deltan2/δ iterations, and the dependence on the accuracy of the sampled estimates as an explicit hypothesis.

Difficulty

The iteration bound and the increment identity are routine once the multilinear extension is set up. The substance lies in the lower bounds. The returned set RRR is random, so the comparison with the optimal set CCC cannot be made through a single local-optimality inequality as in deterministic local search; and approximate local optimality holds only for the smoothed marginals ωA,δ\omega_{A,\delta}ωA,δ​, which are averages over the random set, not for fff at any fixed set. Sampling inequalities such as (∗) are stated for independent samples of arbitrary, possibly overlapping sets, and their expectations are sums over products of subsets; the bookkeeping of such sums is the main formalization burden. The constants must also balance exactly: with δ=1/3\delta = 1/3δ=1/3 the 272727ths add up so that the 910/110\frac{9}{10}/\frac{1}{10}109​/101​ mixture yields 2/52/52/5. A different split or a different δ\deltaδ gives a different constant.

Formalization scope

The ground set is a Fintype X with decidable equality; sets are Finset X; fff is real valued, with nonnegativity and submodularity as hypotheses. The standing assumptions of the paper are made explicit: f≥0f \ge 0f≥0 (§3), value-oracle access (modelled by fff itself), n=∣X∣n = |X|n=∣X∣, and n≥1n \ge 1n≥1 (Nonempty X), so that 1n2\frac{1}{n^2}n21​ and 95n\frac{9}{5n}5n9​ are not Lean's junk value of division by zero. OPTOPTOPT is Finset.sup' over all subsets, which has no junk value. Every expectation over independently sampled sets is an exact finite sum: the multilinear extension for R(A,δ)\mathcal{R}(A,\delta)R(A,δ), and iterated sums over subsets for the several independent samples in Lemma 2.2 and (∗). Sampling probabilities carry 0≤p≤10 \le p \le 10≤p≤1.

The algorithm is a relation, not a choice: any element meeting the step-3 condition may be added, and removal is allowed only when no addition applies. The goal quantifies over every run from ∅\emptyset∅, every choice of accurate estimates, recomputed at every iteration, and every termination point. Accuracy is non-strict ("within ±\pm±"); the thresholds are strict. The thresholds and accuracy use OPTOPTOPT itself, as the proof does, although step 1 of the algorithm says an estimate of OPTOPTOPT is used. The sampling that produces the estimates and its "with high probability" are not modelled, and the goal is conditional on accurate estimates. The value of the δ′=−1\delta' = -1δ′=−1 branch is written as E[f(R(A,−1))]\mathbf{E}[f(\mathcal{R}(A,-1))]E[f(R(A,−1))], which equals f(X∖A)f(X \setminus A)f(X∖A).

A statement "every AAA satisfying the terminal conditions gives 2/5−9/(5n)2/5 - 9/(5n)2/5−9/(5n)" would be the final milestone plus arithmetic and is not the goal. The goal fixes the start at ∅\emptyset∅, the thresholds, the step order, the accuracy of every estimate, termination and the 0.9/0.10.9/0.10.9/0.1 mixture.

A complete development needs basic calculus of the multilinear extension: affinity in one coordinate, translation f(⋅∪D)f(\cdot \cup D)f(⋅∪D) and restriction f(⋅∩D)f(\cdot \cap D)f(⋅∩D), and splitting a sample into disjoint pieces. These lemmas are reusable for any work on submodular maximization, and contributions of them as separate theorems are welcome. The golden-ratio variant δ=δ′\delta = \delta'δ=δ′ (proof omitted in the paper), the tight example and the hardness results of §4 are out of scope.

Selected references

  • U. Feige, V. S. Mirrokni, J. Vondrák, Maximizing Non-Monotone Submodular Functions, SIAM J. Comput. 40(4):1133–1153, 2011. https://doi.org/10.1137/090779346
  • S. O. Gharan, J. Vondrák, Submodular Maximization by Simulated Annealing, SODA 2011. https://doi.org/10.1137/1.9781611973082.83
  • N. Buchbinder, M. Feldman, J. Naor, R. Schwartz, A Tight Linear Time (1/2)-Approximation for Unconstrained Submodular Maximization, SIAM J. Comput. 44(5):1384–1402, 2015. https://doi.org/10.1137/130929205
  • G. Calinescu, C. Chekuri, M. Pál, J. Vondrák, Maximizing a Monotone Submodular Function Subject to a Matroid Constraint, SIAM J. Comput. 40(6):1740–1766, 2011. https://doi.org/10.1137/080733991
14 thms3 active usersReviewed
🏆Completed
Theoretical Computer Science·Captain: mikedeng1

Three Partition Refinement Algorithms 1: Distinguishing-Prefix Refinement Finds Every Distinguishing Prefix Within m′ Refinement StepsResearch Paper

Motivation

Sorting a collection of strings in lexicographic order is a basic subroutine in compilers, string indexing, suffix sorting and the construction of tries. The classical method, due to Aho, Hopcroft and Ullman (The Design and Analysis of Computer Algorithms, 1974), is a multipass radix sort that processes the strings from the last position to the first and runs in time proportional to the total length mmm of the input plus the alphabet size kkk. Mehlhorn showed that a straightforward first-to-last scan of equal-length strings needs Ω(km)\Omega(km)Ω(km) time.

Paige and Tarjan (Three Partition Refinement Algorithms, SIAM J. Comput. 16(6):973–989, 1987, doi:10.1137/0216062) observed that most of the input is usually irrelevant to the sorted order: only the shortest prefix of each string that tells it apart from the others matters. Their algorithm separates the problem into two steps: (1) find this distinguishing prefix of every string, and (2) sort the distinguishing prefixes. The first step is carried out by partition refinement, the same technique that the paper then applies to the relational coarsest partition problem (the second mission of this series) and to double lexical ordering. This mission formalizes the correctness and the termination bound of the first step.

Setting

Fix k≥1k \ge 1k≥1 and the alphabet Σ={1,2,…,k}\Sigma = \{1, 2, \dots, k\}Σ={1,2,…,k}, together with an end marker 000 that is smaller than every symbol. A string is a finite sequence over Σ∪{0}\Sigma \cup \{0\}Σ∪{0}; λ\lambdaλ is the empty string, ∣x∣|x|∣x∣ is the length of xxx, and x(i)x(i)x(i) is its iii-th symbol (positions start at 111). A string α\alphaα is a prefix of yyy if y=αzy = \alpha zy=αz for some string zzz; every string is a prefix of itself. Σ∗0\Sigma^*0Σ∗0 is the set of strings over Σ\SigmaΣ followed by one 000.

The input is a multiset U={x1,…,xn}⊆Σ∗0U = \{x_1, \dots, x_n\} \subseteq \Sigma^*0U={x1​,…,xn​}⊆Σ∗0 with n≥1n \ge 1n≥1; repeated strings are allowed. The distinguishing prefix xi′x'_ixi′​ of xix_ixi​ in UUU is

  1. the shortest prefix of xix_ixi​ that is not a prefix of any other string of UUU, if xix_ixi​ occurs only once in UUU;
  2. xix_ixi​ itself, if xix_ixi​ occurs more than once.

Write m′=∑i=1n∣xi′∣m' = \sum_{i=1}^n |x'_i|m′=∑i=1n​∣xi′​∣.

For a string α\alphaα, the labeled block BαB_\alphaBα​ is the multiset of strings of UUU having α\alphaα as a prefix, and α\alphaα is its associated prefix. The block is finished if α=xi′\alpha = x'_iα=xi′​ for some iii, and unfinished otherwise. A state PPP is a set of labeled blocks. For an unfinished block Bα∈PB_\alpha \in PBα​∈P,

split(Bα,P)=(P∖{Bα})∪{ Bαu:u∈Σ∪{0}, ∃x∈Bα, x(∣α∣+1)=u }.\mathrm{split}(B_\alpha, P) = \bigl(P \setminus \{B_\alpha\}\bigr) \cup \{\, B_{\alpha u} : u \in \Sigma \cup \{0\},\ \exists x \in B_\alpha,\ x(|\alpha| + 1) = u \,\}.split(Bα​,P)=(P∖{Bα​})∪{Bαu​:u∈Σ∪{0}, ∃x∈Bα​, x(∣α∣+1)=u}.

The refinement algorithm starts from P0={Bλ}P_0 = \{B_\lambda\}P0​={Bλ​} and repeatedly applies the step Refine: pick any unfinished block Bα∈PB_\alpha \in PBα​∈P and replace PPP by split(Bα,P)\mathrm{split}(B_\alpha, P)split(Bα​,P). A run with KKK steps is a sequence P0,P1,…,PKP_0, P_1, \dots, P_KP0​,P1​,…,PK​ produced this way; any choice of unfinished block is allowed at every step.

Formalization targets

Goal: Theorem 1 with its explicit bound

For every run P0,…,PKP_0, \dots, P_KP0​,…,PK​ of the refinement algorithm,

K≤m′and(no block of PK is unfinished)  ⟹  PK={Bx1′,…,Bxn′}.K \le m' \qquad\text{and}\qquad \bigl(\text{no block of } P_K \text{ is unfinished}\bigr) \implies P_K = \{B_{x'_1}, \dots, B_{x'_n}\}.K≤m′and(no block of PK​ is unfinished)⟹PK​={Bx1′​​,…,Bxn′​​}.

The paper states Theorem 1 as "The algorithm terminates and is correct"; the bound K≤m′K \le m'K≤m′ is the explicit count proved in the last sentence of its proof (p. 975). The goal leaves the choice of unfinished block free, so it holds for every refinement order.

Milestones

  1. End markers (§2, p. 974). No string of UUU is a proper prefix of another string of UUU.
  2. Lemma 1 (p. 975). Along every run, every finished block BβB_\betaBβ​ is contained in a block of the current state, and there is Bα∈PjB_\alpha \in P_jBα​∈Pj​ with α\alphaα a prefix of β\betaβ.
  3. Proof of Theorem 1, second sentence. For every state of every run, ∑Bα∈Pj∣α∣≤m′\sum_{B_\alpha \in P_j} |\alpha| \le m'∑Bα​∈Pj​​∣α∣≤m′.
  4. Proof of Theorem 1, third sentence. Every Refine step strictly increases ∑Bα∈P∣α∣\sum_{B_\alpha \in P} |\alpha|∑Bα​∈P​∣α∣.

A supplementary item states the fact on p. 974 that motivates the two-step design: distinct strings have distinct distinguishing prefixes, and xi≤xjx_i \le x_jxi​≤xj​ iff xi′≤xj′x'_i \le x'_jxi′​≤xj′​ in lexicographic order.

Significance

Theorem 1 is the correctness half of the lexicographic sorting algorithm: once the distinguishing prefixes are known, sorting UUU reduces to sorting strings of total length m′m'm′, which is how the paper obtains its O(m′+k)O(m' + k)O(m′+k) time bound in place of O(m+k)O(m + k)O(m+k). The paper notes that under a natural probability model m′m'm′ is of order nlog⁡knn \log_k nnlogk​n, so the gain is large whenever the strings are long. The invariant of Lemma 1 is also the pattern on which the later partition refinement algorithms of the paper are built: a target partition is shown to refine every intermediate partition, and a potential function bounds the number of refinement steps.

The result has been proved since 1987. What this mission adds is a machine-checked account of the algorithm at the level of its abstract refinement steps, with the explicit bound m′m'm′ rather than an asymptotic statement, and with the standing assumptions of §2 (non-empty input, end markers) made explicit. No formal proof of this algorithm is present in Mathlib or on the platform.

Difficulty

The obvious argument, "each step makes the labels longer, and labels never grow past the distinguishing prefixes", needs two facts that are not immediate from the definitions. First, the labels of a reached state must form a partition of UUU into non-empty blocks whose labels are pairwise incomparable under the prefix order; this is an invariant of the algorithm, not part of the definition of a state, and it fails for arbitrary sets of labels. Second, the label of an unfinished block must be a proper prefix of every finished label below it, which rests on the end marker: without end markers a string can be a proper prefix of another, a block can be unfinished yet have no strictly longer children, and the algorithm can stall. Bounding the sum of label lengths by m′m'm′ is not a label-by-label comparison: a state can have fewer labels than strings, and the distinguishing prefixes of different strings can share a label as a common prefix.

Formalization scope

Strings are List (Fin (k + 1)), with 0 : Fin (k + 1) the end marker and prefix the Mathlib relation <+:. The multiset UUU is a family x : Fin n → List (Fin (k + 1)), so repetitions are distinct indices. The hypotheses 0 < n and EndMarked x (U⊆Σ∗0U \subseteq \Sigma^*0U⊆Σ∗0) are the paper's standing assumptions. A block is identified by its label, not by its set of members: two different labels can carry the same strings (for instance Bλ=B1B_\lambda = B_1Bλ​=B1​ when every string begins with 111), and they are different blocks. A state is a Finset of labels; a run is a map Fin (K + 1) → Finset (List (Fin (k + 1))) starting at {[]}. Positions are 1-based in the paper and 0-based in Lean, so x(∣α∣+1)x(|\alpha|+1)x(∣α∣+1) is (x i)[α.length]?. The distinguishing prefix follows the literal definition; for n=1n = 1n=1 it is the empty string.

The running times O(m′+k)O(m' + k)O(m′+k) and O(n+k)O(n + k)O(n+k) space, the implementation with a queue and a global index, and step two (sorting the prefixes via the refinement tree) are RAM-model statements and are not formalized. Only the explicit step count m′m'm′ is. A formalization in which split added all k+1k + 1k+1 children, added none, or allowed refining a finished block would change the theorem (the bound fails or the goal becomes vacuous); the definitions add exactly the children realized by some string of the block and refine only unfinished blocks.

Contributions welcome: proofs of the milestones, a general API for prefix-closed partition refinement on List, and a proof of the order-preservation item via Mathlib's List.Lex.

Selected references

  • R. Paige, R. E. Tarjan, Three Partition Refinement Algorithms, SIAM Journal on Computing 16(6):973–989, 1987. https://doi.org/10.1137/0216062
  • A. V. Aho, J. E. Hopcroft, J. D. Ullman, The Design and Analysis of Computer Algorithms, Addison-Wesley, 1974.
  • K. Mehlhorn, Data Structures and Algorithms 1: Sorting and Searching, Springer, 1984. https://doi.org/10.1007/978-3-642-69672-5
7 thms3 active usersReviewed
🏆Completed
Graph TheoryGroup TheoryOperations Research+1·Captain: mikedeng1

λ1, Isoperimetric Inequalities for Graphs, and Superconcentrators 2: Cayley Graphs of Finite Quotients of a Property (T) Group Are Linear EnlargersResearch Paper

Motivation

An expander is a sparse graph in which every set of vertices has many neighbours outside itself. Expanders are the building blocks of superconcentrators (sparse directed graphs that route any rrr inputs to any rrr outputs along vertex-disjoint paths), of sorting and switching networks, and of many constructions in complexity theory and coding; the survey of Hoory, Linial and Wigderson (Bull. AMS 2006) describes these uses. Random regular graphs are expanders with high probability, but applications need explicit families with fixed degree and a uniform expansion constant.

Alon and Milman (J. Combin. Theory Ser. B 38 (1985)) replace combinatorial expansion by a spectral quantity, the second-smallest eigenvalue λ1\lambda_1λ1​ of the matrix Q=D−AQ = D - AQ=D−A of a graph, which Fiedler called the algebraic connectivity (Czech. Math. J. 1973). Their Theorem 4.3 shows that a regular graph with λ1\lambda_1λ1​ bounded away from 000 yields an expander. This mission formalizes their Section 4 source of such graphs: Cayley graphs of the finite quotients of a group with Kazhdan's property (T).

Timeline:

  • 1967: Kazhdan introduces property (T) and proves that SL(n,Z)SL(n,\mathbb{Z})SL(n,Z), n≥3n \ge 3n≥3, has it (Funct. Anal. Appl. 1 (1967)).
  • 1973: Margulis uses property (T) to give the first explicit expander family (Probl. Inf. Transm. 9 (1973)).
  • 1981: Gabber and Galil give a variant of Margulis' construction with an explicit expansion constant, proved by Fourier analysis (J. Comput. Syst. Sci. 22 (1981)).
  • 1985: Alon and Milman state the construction in terms of λ1\lambda_1λ1​ (Lemma 4.8, Theorem 4.9) and link it to the concentration property of Section 2 of their paper.

Setting

Let TTT be a finite group. A finite multigraph on TTT is a symmetric matrix M=(Mw,u)M = (M_{w,u})M=(Mw,u​) of nonnegative integers, Mw,uM_{w,u}Mw,u​ being the number of edges joining www and uuu (diagonal entries count loops). It is kkk-regular if every row sums to kkk. Its matrix is Q=diag⁡(d(v))−MQ = \operatorname{diag}(d(v)) - MQ=diag(d(v))−M with d(v)=∑uMv,ud(v) = \sum_u M_{v,u}d(v)=∑u​Mv,u​, a real symmetric positive semidefinite matrix. Its eigenvalues, repeated according to multiplicity, are 0=λ0≤λ1≤⋯≤λ∣T∣−10 = \lambda_0 \le \lambda_1 \le \dots \le \lambda_{|T|-1}0=λ0​≤λ1​≤⋯≤λ∣T∣−1​, and λ1(G)\lambda_1(G)λ1​(G) denotes the second of them.

Let HHH be a group, S⊆HS \subseteq HS⊆H a finite set with S=S−1S = S^{-1}S=S−1, and ϕ:H→T\phi : H \to Tϕ:H→T a homomorphism onto TTT. The Cayley multigraph G(T,ϕ(S))G(T, \phi(S))G(T,ϕ(S)) joins www and uuu by as many edges as there are s∈Ss \in Ss∈S with wu−1=ϕ(s)w u^{-1} = \phi(s)wu−1=ϕ(s). It is ∣S∣|S|∣S∣-regular, and its matrix is Q=∣S∣⋅I−∑s∈Sπ(ϕ(s))Q = |S| \cdot I - \sum_{s\in S} \pi(\phi(s))Q=∣S∣⋅I−∑s∈S​π(ϕ(s)), where π(t)\pi(t)π(t) is the permutation matrix of the left regular representation, (π(t))w,u=1(\pi(t))_{w,u} = 1(π(t))w,u​=1 iff wu−1=tw u^{-1} = twu−1=t.

An (n,k,ε)(n,k,\varepsilon)(n,k,ε)-enlarger (Definition 4.1) is a kkk-regular graph on nnn vertices with λ1≥ε\lambda_1 \ge \varepsilonλ1​≥ε.

A unitary representation π\piπ of HHH in a complex Hilbert space VVV is essentially nontrivial (Definition 4.5) if no nonzero vector is fixed by every π(h)\pi(h)π(h). A discrete group HHH has property (T) (Definition 4.6) if there are ε>0\varepsilon > 0ε>0 and a finite K⊆HK \subseteq HK⊆H such that for every essentially nontrivial unitary representation π\piπ and every unit vector yyy some h∈Kh \in Kh∈K satisfies ∣(π(h)y,y)∣<1−ε|(\pi(h)y, y)| < 1 - \varepsilon∣(π(h)y,y)∣<1−ε.

Formalization targets

Goal: Theorem 4.9

Let HHH have property (T), let SSS be a finite generating set of HHH with S=S−1S = S^{-1}S=S−1, and let ϕi:H→Ti\phi_i : H \to T_iϕi​:H→Ti​ be surjective homomorphisms onto finite groups with ∣Ti∣→∞|T_i| \to \infty∣Ti​∣→∞. Then there is one ε>0\varepsilon > 0ε>0 with

G(Ti,ϕi(S)) is a (∣Ti∣, ∣S∣, ε)-enlarger for every i with ∣Ti∣≥2.G(T_i, \phi_i(S)) \text{ is a } (|T_i|,\ |S|,\ \varepsilon)\text{-enlarger for every } i \text{ with } |T_i| \ge 2 .G(Ti​,ϕi​(S)) is a (∣Ti​∣, ∣S∣, ε)-enlarger for every i with ∣Ti​∣≥2.

The constant is unspecified: the theorem asserts uniformity in iii, not a value.

Milestones, in the order the paper's argument uses them

  1. Lemma 4.7. For any generating set SSS of a property (T) group there is ε>0\varepsilon > 0ε>0 such that every essentially nontrivial unitary representation and every unit vector yyy admit s∈Ss \in Ss∈S with ∣(π(s)y,y)∣<1−ε|(\pi(s)y,y)| < 1-\varepsilon∣(π(s)y,y)∣<1−ε.
  2. Proof of Lemma 4.8, essential nontriviality. For ϕ\phiϕ onto TTT, every nonzero vector of W={v:∑tvt=0}W = \{v : \sum_t v_t = 0\}W={v:∑t​vt​=0} is moved by some π(ϕ(h))\pi(\phi(h))π(ϕ(h)).
  3. Proof of Lemma 4.8, Rayleigh's principle. For the Cayley multigraph, min⁡{(Qy,y):y∈W, ∥y∥=1}=λ1(G)\min\{(Qy,y) : y \in W,\ \|y\| = 1\} = \lambda_1(G)min{(Qy,y):y∈W, ∥y∥=1}=λ1​(G).
  4. Lemma 4.8. With HHH, SSS and ε\varepsilonε as in Lemma 4.7, SSS finite and S=S−1S = S^{-1}S=S−1, and ϕ\phiϕ onto a finite group TTT, the Cayley graph G(T,ϕ(S))G(T,\phi(S))G(T,ϕ(S)) is a (∣T∣,∣S∣,ε)(|T|, |S|, \varepsilon)(∣T∣,∣S∣,ε)-enlarger.

Significance

Theorem 4.9 turns an analytic property of one infinite group into a uniform spectral bound for infinitely many finite graphs of fixed degree. With Theorem 4.3 of the paper it produces explicit families of linear expanders, hence of linear superconcentrators; for H=SL(n,Z)H = SL(n,\mathbb{Z})H=SL(n,Z), n≥3n \ge 3n≥3, and its reductions modulo iii the paper obtains infinitely many explicit families of (n,4,ε)(n, 4, \varepsilon)(n,4,ε)-enlargers. The same mechanism underlies later work on expanders from groups, surveyed in Lubotzky's monograph (Birkhäuser 1994).

The result is proved in the paper, modulo Lemma 4.7, which the paper refers to Margulis for. The formalization adds a checked account of every step, including Lemma 4.7 itself. At the pinned Mathlib revision there is no notion of property (T), of Kazhdan constants, or of the algebraic connectivity of a multigraph, and no machine-checked version of Theorem 4.9 is known on this platform.

Difficulty

The combinatorial and linear-algebra steps are routine; the substance is in two places. First, Lemma 4.7: Definition 4.6 supplies a constant for one finite set KKK, nothing in the definition relates KKK to a given generating set SSS, the paper gives no proof, and the standard references state the textbook form ∥π(h)y−y∥≥ε\|\pi(h)y - y\| \ge \varepsilon∥π(h)y−y∥≥ε rather than the paper's absolute-value form ∣(π(h)y,y)∣<1−ε|(\pi(h)y,y)| < 1-\varepsilon∣(π(h)y,y)∣<1−ε. Second, the uniformity: a spectral gap for each fixed quotient is easy, since a connected graph has λ1>0\lambda_1 > 0λ1​>0, but a bound that does not decay as ∣Ti∣→∞|T_i| \to \infty∣Ti​∣→∞ is exactly what cannot come from any finite computation and must come from property (T) through Lemma 4.8. The Rayleigh quotient of milestone 3 is taken over real vectors, while Lemma 4.7 is stated for complex Hilbert spaces.

Formalization scope

Groups are Lean types with a Group instance; the finite groups TTT carry Fintype and DecidableEq. Graphs are multigraphs given by symmetric matrices Matrix T T ℕ, with loops allowed. This matters: when ϕ\phiϕ identifies two generators or sends one to the identity, the degree is still ∣S∣|S|∣S∣, and a loop contributes 000 to QQQ. Mathlib's SimpleGraph Cayley graph forgets these multiplicities and is not used. λ1\lambda_1λ1​ is the second-smallest eigenvalue with multiplicity of the real symmetric matrix QQQ (via Matrix.IsHermitian.eigenvalues₀). It is defined spectrally, as in the paper, and not as a Rayleigh minimum. It is only meaningful for ∣T∣≥2|T| \ge 2∣T∣≥2, and the goal excludes trivial quotients explicitly. Unitary representations are homomorphisms into the unitary group of bounded operators on a complex Hilbert space in universe Type. Compact subsets of a discrete group are finite sets.

A trivializing formalization is ruled out. Property (T) is not replaced by the hypothesis that the regular representations of the quotients have no almost-invariant vectors, which would make Theorem 4.9 a restatement of its hypothesis. And λ1\lambda_1λ1​ is not defined as the minimum of (Qy,y)(Qy,y)(Qy,y) over zero-sum unit vectors, which would make milestone 3 true by definition.

A complete development needs basic Kazhdan-constant manipulations, Courant–Fischer for real symmetric matrices, and the regular representation of a finite group as a unitary representation. The regularity of Cayley multigraphs and the identity Q=∣S∣I−∑sπ(ϕ(s))Q = |S| I - \sum_s \pi(\phi(s))Q=∣S∣I−∑s​π(ϕ(s)) are short. The spectral and representation-theoretic lemmas are reusable beyond this mission. Contributions of intermediate lemmas, such as the variational characterization of eigenvalues₀ or the invariance of the zero-sum subspace, are welcome.

Selected references

  • N. Alon, V. D. Milman, λ1, Isoperimetric inequalities for graphs, and superconcentrators, J. Combin. Theory Ser. B 38 (1985) 73–88. https://doi.org/10.1016/0095-8956(85)90092-9
  • D. A. Kazhdan, Connection of the dual space of a group with the structure of its closed subgroups, Funct. Anal. Appl. 1 (1967) 63–65. https://doi.org/10.1007/BF01075866
  • G. A. Margulis, Explicit constructions of concentrators, Probl. Inf. Transm. 9 (1973) 325–332. http://mi.mathnet.ru/ppi1162
  • O. Gabber, Z. Galil, Explicit constructions of linear-sized superconcentrators, J. Comput. Syst. Sci. 22 (1981) 407–420. https://doi.org/10.1016/0022-0000(81)90040-4
  • M. Fiedler, Algebraic connectivity of graphs, Czech. Math. J. 23 (1973) 298–305. https://doi.org/10.21136/CMJ.1973.101168
  • A. Lubotzky, Discrete Groups, Expanding Graphs and Invariant Measures, Birkhäuser, 1994. https://doi.org/10.1007/978-3-0346-0332-4
  • B. Bekka, P. de la Harpe, A. Valette, Kazhdan's Property (T), Cambridge University Press, 2008. https://doi.org/10.1017/CBO9780511542749
  • S. Hoory, N. Linial, A. Wigderson, Expander graphs and their applications, Bull. AMS 43 (2006) 439–561. https://doi.org/10.1090/S0273-0979-06-01126-8
12 thms3 active usersReviewed
🏆Completed
Graph TheoryOperations Research·Captain: mikedeng1

λ1, Isoperimetric Inequalities for Graphs, and Superconcentrators 1: A Diameter Bound from λ1Research Paper

Motivation

The eigenvalues of the Laplacian of a graph carry metric information about the graph. The second-smallest one, λ1(G)\lambda_1(G)λ1​(G), was named the algebraic connectivity by Fiedler (Fiedler 1973), who showed it is positive exactly for connected graphs. N. Alon and V. D. Milman (J. Combin. Theory Ser. B 38 (1985) 73–88) showed that a large λ1\lambda_1λ1​ also forces two further properties: small diameter and a concentration of measure phenomenon, in which almost every vertex is close to any set containing half the vertices. They used these facts to build explicit expanders and superconcentrators, which are sparse networks with strong connectivity guarantees used in the theory of computation and in communication network design.

This mission covers Section 2 of that paper, "The Main Tools": the edge-count inequality (Lemma 2.1), the isoperimetric inequalities (Theorems 2.5 and 2.6), and the resulting diameter bound (Theorem 2.7).

Timeline:

  • 1973: Fiedler introduces λ1(G)\lambda_1(G)λ1​(G) as algebraic connectivity and proves λ1≤nn−1min⁡vd(v)\lambda_1 \le \frac{n}{n-1}\min_v d(v)λ1​≤n−1n​minv​d(v).
  • 1985: Alon and Milman prove the isoperimetric and diameter bounds of Section 2.
  • 1986: Alon proves the converse direction, that edge expansion implies a spectral gap (Alon 1986).
  • Later work sharpened the constant in the diameter bound, e.g. Chung 1989.

Setting

Let G=(V,E)G = (V, E)G=(V,E) be a finite, connected, simple graph on n=∣V∣≥2n = |V| \ge 2n=∣V∣≥2 vertices. Write d(v)d(v)d(v) for the degree of a vertex vvv, d=max⁡vd(v)d = \max_v d(v)d=maxv​d(v) for the maximum degree, and AGA_GAG​ for the adjacency matrix. The Laplacian is the V×VV \times VV×V matrix

Q=QG=diag⁡(d(v))v∈V−AG.Q = Q_G = \operatorname{diag}(d(v))_{v \in V} - A_G .Q=QG​=diag(d(v))v∈V​−AG​.

For real functions fff on VVV with scalar product (f,g)=∑vf(v)g(v)(f, g) = \sum_v f(v)g(v)(f,g)=∑v​f(v)g(v), the quadratic form of QQQ is (Qf,f)=∑{u,v}∈E(f(u)−f(v))2≥0(Qf, f) = \sum_{\{u,v\} \in E} (f(u) - f(v))^2 \ge 0(Qf,f)=∑{u,v}∈E​(f(u)−f(v))2≥0. The eigenvalues of QQQ, counted with multiplicity, are real and are written 0=λ0≤λ1≤⋯≤λn−10 = \lambda_0 \le \lambda_1 \le \dots \le \lambda_{n-1}0=λ0​≤λ1​≤⋯≤λn−1​. The algebraic connectivity λ1=λ1(G)\lambda_1 = \lambda_1(G)λ1​=λ1​(G) is the second-smallest of them.

For vertices u,vu, vu,v, dist⁡(u,v)\operatorname{dist}(u, v)dist(u,v) is the number of edges of a shortest path from uuu to vvv. For disjoint vertex sets A,BA, BA,B the paper writes ρ\rhoρ for the distance between them, a=∣A∣/na = |A|/na=∣A∣/n and b=∣B∣/nb = |B|/nb=∣B∣/n for their relative sizes, and EAE_AEA​ (EBE_BEB​) for the set of edges with both endpoints in AAA (in BBB). [x][x][x] denotes the integer part of x≥0x \ge 0x≥0.

Formalization targets

Goal: Theorem 2.7 (p. 79)

dist⁡(u,v)  ≤  2[2d/λ1 log⁡2n]for all u,v∈V.\operatorname{dist}(u, v) \;\le\; 2\left[\sqrt{2d/\lambda_1}\,\log_2 n\right] \qquad\text{for all } u, v \in V.dist(u,v)≤2[2d/λ1​​log2​n]for all u,v∈V.

Milestones, in the order the proof uses them

  1. Section 2, p. 76: 0=λ0<λ10 = \lambda_0 < \lambda_10=λ0​<λ1​ for connected GGG.
  2. Eq. (2.1), Rayleigh's principle: if ∑vf(v)=0\sum_v f(v) = 0∑v​f(v)=0 then (Qf,f)≥λ1∥f∥2(Qf, f) \ge \lambda_1 \|f\|^2(Qf,f)≥λ1​∥f∥2.
  3. Lemma 2.1: for nonempty A,BA, BA,B at distance ρ≥1\rho \ge 1ρ≥1,
λ1n≤1ρ2(1a+1b)(∣E∣−∣EA∣−∣EB∣).\lambda_1 n \le \frac{1}{\rho^2}\Big(\frac1a + \frac1b\Big)\big(|E| - |E_A| - |E_B|\big).λ1​n≤ρ21​(a1​+b1​)(∣E∣−∣EA​∣−∣EB​∣).
  1. Remark 2.3: λ1≤nn−1min⁡vd(v)\lambda_1 \le \frac{n}{n-1}\min_v d(v)λ1​≤n−1n​minv​d(v).
  2. Theorem 2.5: if ρ>1\rho > 1ρ>1 then
b≤1−a1+(λ1/d) aρ2.b \le \frac{1-a}{1 + (\lambda_1/d)\,a\rho^2}.b≤1+(λ1​/d)aρ21−a​.
  1. Theorem 2.6: if every AAA–BBB distance exceeds a real ρ≥1\rho \ge 1ρ≥1, then
b≤(1−a)exp⁡ ⁣(−ln⁡(1+2a)[λ1/(2d) ρ]).b \le (1-a)\exp\!\Big(-\ln(1+2a)\Big[\sqrt{\lambda_1/(2d)}\,\rho\Big]\Big).b≤(1−a)exp(−ln(1+2a)[λ1​/(2d)​ρ]).

Each statement keeps the paper's explicit constants. The goal is the endpoint of this chain and the paper's headline graph-theoretic bound.

Significance

Theorem 2.7 gives, for any family of graphs of bounded maximum degree whose algebraic connectivity stays bounded away from zero, a diameter of order log⁡n\log nlogn. By the paper's Remark 2.8, the 4-regular graphs constructed in its Section 4 show that this order cannot be improved. Theorem 2.6 is a discrete concentration of measure inequality: the proportion of vertices at distance more than ρ\rhoρ from a set of relative size aaa decays exponentially in ρλ1/(2d)\rho\sqrt{\lambda_1/(2d)}ρλ1​/(2d)​. It is the graph analogue of the Gromov–Milman concentration for manifolds, and Section 3 of the paper applies it to cubes and other product graphs. Theorem 2.5 is the input for the construction of expanders from graphs with a spectral gap (Theorem 4.3 of the paper).

All results are proved in the paper, and the formal work here is a machine-checked version of known proofs. As far as could be determined, none of the four inequalities (Lemma 2.1, Theorems 2.5–2.7) has been formalized in Lean or elsewhere. Mathlib has the Laplacian matrix, its positive semidefiniteness, and the relation between its kernel and connected components, but no statement about its second eigenvalue. The spectral facts (milestones 1–2), stated for Mathlib's Matrix.IsHermitian.eigenvalues₀, are reusable for any future work on algebraic connectivity.

Difficulty

The combinatorial steps are short. The work is at the interface between the spectral definition and the quadratic form. Mathlib defines eigenvalues through the spectral theorem for a Hermitian matrix, sorted into a list. Obtaining Rayleigh's principle for the second eigenvalue from that list, with the constant functions as the eigenvector of λ0=0\lambda_0 = 0λ0​=0, takes a Courant–Fischer-type argument over an orthonormal eigenbasis. It does not follow from positive semidefiniteness alone. Strict positivity of λ1\lambda_1λ1​ additionally needs that the kernel of QQQ is one-dimensional for a connected graph.

Theorem 2.6 iterates Theorem 2.5 over a sequence of neighbourhoods {v:dist⁡(v,A)≤jμ}\{v : \operatorname{dist}(v, A) \le j\mu\}{v:dist(v,A)≤jμ} with a real step length μ\muμ, so it needs bookkeeping of integer parts and of real-valued distance thresholds. Theorem 2.7 then combines Theorem 2.6 with Remark 2.3 and needs the estimate 12 2−[log⁡2n]<1/n\tfrac12\, 2^{-[\log_2 n]} < 1/n21​2−[log2​n]<1/n with the integer part kept. Replacing [⋅][\cdot][⋅] by the real number inside it changes the statement.

Formalization scope

  • Graphs are Mathlib SimpleGraph V on a Fintype vertex type with decidable adjacency. Every item assumes G.Connected and 2≤∣V∣2 \le |V|2≤∣V∣ (the goal writes 1<∣V∣1 < |V|1<∣V∣, as the paper does).
  • QQQ is G.lapMatrix ℝ. λ1\lambda_1λ1​ is the mission definition AlonMilman.Diameter.lambda1: the eigenvalue at index n−2n-2n−2 of eigenvalues₀, which lists the eigenvalues in decreasing order. It is 000 by convention when n<2n < 2n<2, a case no theorem uses.
  • λ1\lambda_1λ1​ is defined spectrally. Defining it as the best constant in Eq. (2.1) would make Rayleigh's principle definitional and remove the spectral content of the mission, so that formalization is excluded. Likewise the goal quantifies over all pairs of vertices of a connected graph and does not use SimpleGraph.diam without connectivity, since that is 000 for a disconnected graph.
  • Distances are SimpleGraph.dist (a natural number). "The distance between AAA and BBB is ρ\rhoρ" is encoded as ρ≤dist⁡(u,v)\rho \le \operatorname{dist}(u, v)ρ≤dist(u,v) for all u∈Au \in Au∈A, v∈Bv \in Bv∈B. Because the bounds weaken as ρ\rhoρ decreases, this is equivalent to the paper's exact distance. In Theorem 2.6 ρ\rhoρ is real and the hypothesis is strict.
  • EAE_AEA​ is AlonMilman.Diameter.edgesWithin G A. All counts are cast to R\mathbb RR before subtraction, a=∣A∣/na = |A|/na=∣A∣/n is a real quotient, [x][x][x] is Nat.floor, log⁡2\log_2log2​ is Real.logb 2, and ln⁡\lnln is Real.log.
  • Lemma 2.1 requires A,BA, BA,B nonempty (so a,b>0a, b > 0a,b>0). Theorems 2.5 and 2.6 hold as stated for empty sets and carry no such hypothesis.

Contributions welcome: proofs of any milestone, and in particular general Mathlib-style lemmas for Rayleigh quotients and eigenvalues₀, which have uses beyond this mission.

Selected references

  • N. Alon, V. D. Milman, λ1, isoperimetric inequalities for graphs, and superconcentrators, J. Combin. Theory Ser. B 38 (1985) 73–88. https://doi.org/10.1016/0095-8956(85)90092-9
  • M. Fiedler, Algebraic connectivity of graphs, Czechoslovak Math. J. 23 (1973) 298–305. https://doi.org/10.21136/CMJ.1973.101168
  • N. Alon, Eigenvalues and expanders, Combinatorica 6 (1986) 83–96. https://doi.org/10.1007/BF02579166
  • F. R. K. Chung, Diameters and eigenvalues, J. Amer. Math. Soc. 2 (1989) 187–196. https://doi.org/10.1090/S0894-0347-1989-0965008-X
9 thms3 active usersReviewed
🏆Completed
Graph TheoryOperations ResearchTheoretical Computer Science·Captain: mikedeng1

A Linear-Time Algorithm for Finding a Sparse k-Connected Spanning Subgraph of a k-Connected Graph 2: FOREST's Forests E_i Preserve Local Node-Connectivity up to i in a Simple GraphResearch Paper

Motivation

Given a kkk-connected graph, many connectivity algorithms run in time that grows with the number of edges ∣E∣|E|∣E∣. A sparse certificate is a spanning subgraph with only O(k∣V∣)O(k|V|)O(k∣V∣) edges that is still kkk-connected; computing one first and running the expensive algorithm on it replaces ∣E∣|E|∣E∣ by k∣V∣k|V|k∣V∣ in the bound. Finding a kkk-connected spanning subgraph with the minimum number of edges is NP-complete for every fixed k≥2k \ge 2k≥2 (Garey and Johnson, problem GT31), so the question is how cheaply a sparse, not necessarily minimum, certificate can be found.

Nagamochi and Ibaraki (Algorithmica 7 (1992) 583–596) answered this with a single linear-time scanning procedure, FOREST, which partitions the edges into classes E1,E2,…,E∣E∣E_1, E_2, \dots, E_{|E|}E1​,E2​,…,E∣E∣​. They showed that the prefix unions E1∪⋯∪EkE_1 \cup \dots \cup E_kE1​∪⋯∪Ek​ are certificates for edge-connectivity and, for simple graphs, for node-connectivity. The node-connectivity result is the subject of this mission; the edge-connectivity result is the preceding mission of this series.

Timeline:

  • 1980: Galil gives an algorithm testing κ(G)≥k\kappa(G) \ge kκ(G)≥k whose running time depends on ∣E∣|E|∣E∣ (SIAM J. Comput. 9).
  • Before 1992 (as cited on p. 583): Suzuki et al. give O(∣E∣)O(|E|)O(∣E∣)-time algorithms for sparse 2- and 3-node-connected spanning subgraphs; Nishizeki and Poljak find, for general kkk, a kkk-node-connected spanning subgraph with at most k(∣V∣−1)k(|V|-1)k(∣V∣−1) edges in O(∣V∣1/2∣E∣2)O(|V|^{1/2}|E|^2)O(∣V∣1/2∣E∣2) time.
  • 1992: Nagamochi and Ibaraki prove that FOREST, which runs in O(∣V∣+∣E∣)O(|V| + |E|)O(∣V∣+∣E∣) time, yields a kkk-node-connected spanning subgraph GkG_kGk​ of every simple kkk-node-connected graph, with ∣E(Gk)∣≤k∣V∣−k(k+1)/2|E(G_k)| \le k|V| - k(k+1)/2∣E(Gk​)∣≤k∣V∣−k(k+1)/2. Their Theorem 3.1 states a stronger, local form.
  • 1993: Cheriyan, Kao and Thurimella isolate "scan-first search" as the general principle behind such certificates (SIAM J. Comput. 22 (1993)).

Setting

A graph G=(V,E)G = (V, E)G=(V,E) has a finite node set VVV with ∣V∣≥2|V| \ge 2∣V∣≥2 and a finite edge set EEE; each edge has an unordered pair of two distinct end nodes. In this mission the graph is simple: no two edges have the same end nodes. For F⊆EF \subseteq EF⊆E, (V,F)(V, F)(V,F) is the spanning subgraph with edge set FFF.

The local node-connectivity κ(x,y;H)\kappa(x, y; H)κ(x,y;H) of nodes x,yx, yx,y in a graph HHH on VVV is ∣V∣−1|V| - 1∣V∣−1 if xxx and yyy are adjacent in HHH, and otherwise the minimum size of a node set W⊆V−{x,y}W \subseteq V - \{x, y\}W⊆V−{x,y} whose deletion leaves no xxx–yyy path. The node connectivity is κ(G)=min⁡x,yκ(x,y;G)\kappa(G) = \min_{x, y} \kappa(x, y; G)κ(G)=minx,y​κ(x,y;G).

Procedure FOREST keeps a label r(v)≥0r(v) \ge 0r(v)≥0 on each node, initially 000. While some node is unscanned, it chooses an unscanned node xxx of largest label; for each unscanned edge e=(x,y)e = (x, y)e=(x,y) it puts eee into the class Er(y)+1E_{r(y)+1}Er(y)+1​, increases r(x)r(x)r(x) by one if r(x)=r(y)r(x) = r(y)r(x)=r(y), and increases r(y)r(y)r(y) by one; then it marks xxx scanned. Ties are broken arbitrarily. The time instants are the states between these elementary operations; Ei∗E^*_iEi∗​ denotes the class iii at an instant, and EiE_iEi​ its final value. Put

Gi=(V, E1∪E2∪⋯∪Ei).G_i = (V,\ E_1 \cup E_2 \cup \dots \cup E_i).Gi​=(V, E1​∪E2​∪⋯∪Ei​).

Formalization targets

Goal: Theorem 3.1

For a simple graph GGG and the classes of any completed run of FOREST, for 1≤i≤∣E∣1 \le i \le |E|1≤i≤∣E∣,

κ(x,y;Gi) ≥ min⁡{κ(x,y;G), i}for any x,y∈V.(3.1)\kappa(x, y; G_i) \ \ge\ \min\{\kappa(x, y; G),\ i\} \qquad \text{for any } x, y \in V. \tag{3.1}κ(x,y;Gi​) ≥ min{κ(x,y;G), i}for any x,y∈V.(3.1)

The statement is local: it holds pair by pair, not only for the global minimum, and for every tie-breaking of the procedure.

Milestones, in the order the proof uses them

  1. Lemma 2.2: at every instant, a node vvv meets EiE_iEi​ exactly for i=1,…,r(v)i = 1, \dots, r(v)i=1,…,r(v).
  2. Lemma 2.4(b): at every instant, a uuu–vvv path in Ej∗E^*_jEj∗​ yields uuu–vvv paths in every Ei∗E^*_iEi∗​, i<ji < ji<j.
  3. In-degree at most one (§2, p. 588): orienting each edge from the earlier-scanned to the later-scanned end, every node has at most one entering arc in each class.
  4. Lemma 3.1: if an xxx–yyy path of Ej∗E^*_jEj∗​ has the form x,u1,…,uk=w,yx, u_1, \dots, u_k = w, yx,u1​,…,uk​=w,y with k=1k = 1k=1 or u1u_1u1​ scanned before www, then any www–xxx and www–yyy paths in Ei∗E^*_iEi∗​ (i<ji < ji<j) share a node other than www.
  5. Lemma 3.2: for a node cut set W={w1,…,wi}W = \{w_1, \dots, w_i\}W={w1​,…,wi​} of Gi+1G_{i+1}Gi+1​ (in scan order) separating a component XXX from the rest YYY, immediately after wtw_twt​ is scanned every XXX–YYY path of Et∗E^*_tEt∗​ passes through wtw_twt​, and Ej∗E^*_jEj∗​ has no XXX–YYY path for t+1≤j≤i+1t + 1 \le j \le i + 1t+1≤j≤i+1.

A companion item states the paper's announcement in §3: GkG_kGk​ is kkk-node-connected for every 1≤k≤κ(G)1 \le k \le \kappa(G)1≤k≤κ(G).

Significance

Theorem 3.1 at i=ki = ki=k shows that the first kkk classes of FOREST form a kkk-node-connected spanning subgraph whenever GGG is, and the edge-count analysis of the companion mission bounds its size by k∣V∣−k(k+1)/2k|V| - k(k+1)/2k∣V∣−k(k+1)/2. Since FOREST runs in linear time, any algorithm testing κ(G)≥k\kappa(G) \ge kκ(G)≥k can be run on GkG_kGk​ instead of GGG; the paper uses this to improve the bound for testing κ(G)≥k\kappa(G) \ge kκ(G)≥k from O(max⁡{k2∣V∣1/2,k∣V∣}∣E∣)O(\max\{k^2|V|^{1/2}, k|V|\}|E|)O(max{k2∣V∣1/2,k∣V∣}∣E∣) to O(max⁡{k3∣V∣3/2,k2∣V∣2})O(\max\{k^3|V|^{3/2}, k^2|V|^2\})O(max{k3∣V∣3/2,k2∣V∣2}), and similar gains for computing the number of node-disjoint paths between two nodes. The local form (3.1) is what makes the sss–ttt applications possible.

The result is proved on paper. As far as a search of the platform shows, neither FOREST nor local node-connectivity has a machine-checked treatment there; Mathlib has no notion of vertex connectivity of a pair of nodes. This mission produces a formal model of FOREST as a nondeterministic transition system and the statements needed to verify the paper's proof step by step.

Difficulty

For edge-connectivity the analogous statement follows from a general principle: any sequence of maximal spanning forests, each taken in what remains of the graph, preserves local edge-connectivity up to its length. The obvious attempt is to prove (3.1) the same way, from the fact that each EiE_iEi​ is a maximal spanning forest of what the earlier classes leave. The paper gives no such argument for node-connectivity: its proof uses the specific scan order of FOREST in an essential way, through the orientation of edges from earlier- to later-scanned nodes and the in-degree bound of that orientation (Lemmas 3.1 and 3.2). The argument tracks, for a hypothetical node cut WWW of size iii in Gi+1G_{i+1}Gi+1​, the classes at the moments the nodes of WWW are scanned, which requires reasoning about intermediate states of the algorithm and about paths in several classes at once. None of this reduces to a static property of the output partition.

Formalization scope

  • Graphs. A node type V and an edge type E, both finite, with ends : E → Sym2 V; loop-freeness is ∀ e, ¬ (ends e).IsDiag and simplicity is Function.Injective ends. The standing assumptions of p. 583 and p. 589 (∣V∣≥2|V| \ge 2∣V∣≥2, no self-loop, a simple graph when node-connectivity is discussed) appear as hypotheses; §2 items are stated for loopless graphs, as on the page.
  • Connectivity. κ(x,y;(V,F))\kappa(x, y; (V, F))κ(x,y;(V,F)) is valued in N∞\mathbb N_\inftyN∞​: ∣V∣−1|V| - 1∣V∣−1 on adjacent pairs, the minimum node cut otherwise, and ⊤\top⊤ when x=yx = yx=y, where (3.1) holds trivially.
  • FOREST. A nondeterministic step relation with three steps (select, scan, finish), a run of length KKK from the initial state, and completion when every node is scanned. Every tie-breaking is allowed, so the theorems quantify over all completed runs. A time instant is a state of a run; "scanned before" compares positions in the run's selection order; "immediately after wtw_twt​ has been scanned" is the state right after the finish step of wtw_twt​.
  • Excluded. The running time "O(∣V∣+∣E∣)O(|V| + |E|)O(∣V∣+∣E∣)" and everything in §4 (the connectivity-testing algorithms and their bounds) are not stated: the paper fixes no machine model. The edge bounds on ∣Ei∣|E_i|∣Ei​∣ belong to the edge-connectivity mission.
  • Ruled out. Stating (3.1) for an arbitrary partition into maximal spanning forests, or reading the classes Ej∗E^*_jEj∗​ of Lemmas 3.1–3.2 off the final state, would state a different theorem from the one the paper proves; the classes are those of a run of FOREST at the instant the page specifies.
  • Infrastructure. Reachability avoiding a node set, walks and paths in SimpleGraph, and invariants of the FOREST transition system. The definitions duplicate those of the edge-connectivity mission by design and are candidates for a shared layer. Contributions of general lemmas about the run (label invariants, monotonicity of classes along a run) are welcome.

Selected references

  • H. Nagamochi, T. Ibaraki, A linear-time algorithm for finding a sparse kkk-connected spanning subgraph of a kkk-connected graph, Algorithmica 7 (1992), 583–596. https://doi.org/10.1007/BF01758778
  • Z. Galil, Finding the vertex connectivity of graphs, SIAM J. Comput. 9 (1980), 197–199. https://doi.org/10.1137/0209016
  • J. Cheriyan, M.-Y. Kao, R. Thurimella, Scan-first search and sparse certificates: an improved parallel algorithm for kkk-vertex connectivity, SIAM J. Comput. 22 (1993), 157–174. https://doi.org/10.1137/0222013
  • M. R. Garey, D. S. Johnson, Computers and Intractability: A Guide to the Theory of NP-Completeness, Freeman, 1979.
9 thms3 active usersReviewed
🏆Completed
Linear OptimizationOperations ResearchOptimization·Captain: Shuze Chen

Disjunctive Programming XV: Dominants of Polytopes and Upper SeparationTextbook

Motivation

Many real-world disjunctive models are not unions of polyhedra in a single shared space, but unions of polyhedra in different spaces linked by a logical implication: some action affecting one set of entities has consequences for another. Balas's treatment of such models (§17 of the book, following [17]) reduces to understanding a single auxiliary object attached to each polytope in isolation: its dominant, the set of points that dominate (coordinatewise) some feasible point. Dominants and their duals, blockers, have a long history in combinatorial optimization — blocking-pair theory for covering and packing polyhedra traces to Fulkerson (D. R. Fulkerson, Blocking and anti-blocking pairs of polyhedra, Mathematical Programming 1 (1971), 168–194, https://doi.org/10.1007/BF01584085) — but this chapter develops a self-contained, constructive theory tailored to polytopes inside the unit cube, culminating in an exact, facet-complete description of the dominant for an arbitrary such polytope.

Setting

For a polyhedron P⊆R+nP \subseteq \mathbb{R}^n_+P⊆R+n​, the dominant is P+:=P+R+n={y≥0:y≥x for some x∈P}P^+ := P + \mathbb{R}^n_+ = \{y \ge 0 : y \ge x \text{ for some } x \in P\}P+:=P+R+n​={y≥0:y≥x for some x∈P}, and the blocker is P∗:={π∈R+n:πx≥1 for all x∈P}P^* := \{\pi \in \mathbb{R}^n_+ : \pi x \ge 1 \text{ for all } x \in P\}P∗:={π∈R+n​:πx≥1 for all x∈P} — the covering inequalities valid for PPP. (The blocker is not the reverse polar of 02b-polarity: restricting to the nonnegative orthant is essential and changes the object.) For x∗∈R+nx^* \in \mathbb{R}^n_+x∗∈R+n​, the upper-separation value is αP(x∗):=min⁡{πx∗:π∈P∗}\alpha_P(x^*) := \min\{\pi x^* : \pi \in P^*\}αP​(x∗):=min{πx∗:π∈P∗}; a violated covering inequality for x∗x^*x∗ exists exactly when αP(x∗)<1\alpha_P(x^*) < 1αP​(x∗)<1. A polytope P⊆[0,1]nP \subseteq [0,1]^nP⊆[0,1]n is upper monotone (with respect to [0,1]n[0,1]^n[0,1]n) if P=P+∩[0,1]nP = P^+ \cap [0,1]^nP=P+∩[0,1]n — the natural "closure" condition under which the theory of this chapter applies cleanly.

For S⊆N:={1,…,n}S \subseteq N := \{1,\dots,n\}S⊆N:={1,…,n}, write a(S):=∑j∈Saja(S) := \sum_{j\in S} a_ja(S):=∑j∈S​aj​. Given P⊆RnP \subseteq \mathbb{R}^nP⊆Rn and a coordinate subset SSS, the projection PSP^SPS keeps only the SSS-coordinates, letting the rest range freely. ISI^SIS is the set of valid inequalities πx≥1\pi x \ge 1πx≥1 of PSP^SPS with πj>0\pi_j > 0πj​>0 exactly on SSS, tight at ∣S∣|S|∣S∣ linearly independent points of PSP^SPS.

Formalization targets

Proposition 13.1. For an upper monotone P=⋂iPiP = \bigcap_i P_iP=⋂i​Pi​ (each PiP_iPi​ a single inequality in [0,1]n[0,1]^n[0,1]n), P+=⋂iPi+P^+ = \bigcap_i P_i^+P+=⋂i​Pi+​.

Theorem 13.3. For P={x∈[0,1]n:ax≥1}P = \{x \in [0,1]^n : ax \ge 1\}P={x∈[0,1]n:ax≥1} (a≥0a \ge 0a≥0) upper monotone,

P+={x≥0:∑j∈Sajxj1−a(N∖S)≥1 for every S⊆N with 1−a(N∖S)>0}.P^+ = \Big\{x \ge 0 : \sum_{j\in S} \frac{a_j x_j}{1-a(N\setminus S)} \ge 1 \text{ for every } S\subseteq N \text{ with } 1-a(N\setminus S)>0\Big\}.P+={x≥0:j∈S∑​1−a(N∖S)aj​xj​​≥1 for every S⊆N with 1−a(N∖S)>0}.

Theorem 13.5. For the same PPP and any x∗≥0x^* \ge 0x∗≥0, with xq∗x^*_qxq∗​ the greatest coordinate value xj∗x^*_jxj∗​ satisfying a(N∖S(xj∗))<1a(N\setminus S(x^*_j))<1a(N∖S(xj∗​))<1 and xj∗≤g(xj∗)x^*_j \le g(x^*_j)xj∗​≤g(xj∗​): S(αP)=S(xq∗)S(\alpha_P) = S(x^*_q)S(αP​)=S(xq∗​) and αP=g(xq∗)\alpha_P = g(x^*_q)αP​=g(xq∗​), an explicit, computable value.

Theorem 13.7 (goal). For an arbitrary polytope P⊆[0,1]nP \subseteq [0,1]^nP⊆[0,1]n (not necessarily upper monotone):

P+={x≥0:πx≥1 for every S⊆N and π∈IS},P^+ = \{x \ge 0 : \pi x \ge 1 \text{ for every } S \subseteq N \text{ and } \pi \in I^S\},P+={x≥0:πx≥1 for every S⊆N and π∈IS},

and every one of these inequalities is facet-defining for P+P^+P+.

Corollary 13.8. Every facet-defining inequality of P+P^+P+ has at most dim⁡(P)+1\dim(P)+1dim(P)+1 nonzero coefficients.

The targets move from the intersection-distributivity fact (13.1) through an explicit, exponentially-large but fully closed-form facet system for the single-inequality case (13.3) and its constructive, polynomial evaluation recipe (13.5) to the fully general facet characterization (13.7, requiring no monotonicity assumption at all) and its immediate corollary on facet sparsity (13.8).

Significance

Theorem 13.7 is a rare case in polyhedral combinatorics of a complete and exact facet description obtained for the dominant of an arbitrary polytope, not merely a valid relaxation or an algorithmic separation oracle — every facet is accounted for, and every listed inequality is genuinely a facet, not merely valid. Corollary 13.8's support bound is the mechanism that makes Theorem 13.10 (not part of this mission) tractable: it lets the facets of a dominant built from a disjunction of polytopes in different spaces be characterized purely in terms of each factor's own low-dimensional facets, avoiding an exponential blowup in the combined space.

Both directions are proved in the source (Balas's own treatment, following the joint framework of [17]) but have no counterpart on this platform: nothing existing treats dominants, blockers, or upper monotonicity. This mission produces the first Lean statements of all five targets.

Difficulty

The obvious shortcut for Theorem 13.7 is to state only the validity half of the claim (every inequality from ISI^SIS is valid for P+P^+P+) and treat "facet-defining" as a decoration — after all, Proposition 13.1's polar-style validity argument generalizes easily. But the theorem's actual force is the converse: not merely that these inequalities suffice to describe P+P^+P+, but that none of them is redundant, and no other facet exists. The book's own converse proof needs a genuine perturbation argument (splitting a facet candidate with fewer than ∣S∣|S|∣S∣ independent tight points into two distinct valid inequalities averaging back to it, contradicting facetness) — this is where the real content lives, and a formalization that only captures the forward direction would understate the theorem substantially.

For Theorem 13.5, the difficulty is that S(α)S(\alpha)S(α) and g(α)g(\alpha)g(α) are themselves defined in terms of α\alphaα, so "the largest xj∗x^*_jxj∗​ satisfying [a condition stated in terms of S(xj∗)S(x^*_j)S(xj∗​) and g(xj∗)g(x^*_j)g(xj∗​)]" is a genuinely self-referential extremal characterization, not a closed-form formula one could simply plug into — hence its faithful statement (via IsGreatest over an explicit, self-referential candidate set) rather than an unwound algebraic expression.

Formalization scope

The ambient space is Fin n → ℝ throughout, matching the series default. Dominant/Blocker are given their own names (not reusing, even informally, 02b-polarity's polar/reverse-polar vocabulary), per BRIEF.md's explicit warning that the nonnegativity restriction makes these different objects. PolyDim/IsFacet are restated from 02b-polarity/11a-intersection-cuts (affine dimension via Module.finrank of vectorSpan, faces via IsExtreme), since Chapter 2 already pins these down precisely for this series and Chapter 13's own facet claims use the same notion. IsUpperMonotone is stated exactly as Definition 4 (P = P⁺ ∩ [0,1]ⁿ), not paraphrased as coordinatewise monotonicity, per BRIEF.md's explicit warning that these are different conditions.

IsInIS (membership in ISI^SIS) uses LinearIndependent ℝ directly for the "|S| linearly independent points" hypothesis, matching the book's own wording; since every such point satisfies πx=1\pi x=1πx=1, a linear dependence among them is automatically an affine dependence (the coefficients of any nontrivial linear relation among them must sum to zero), so this is not a weakening of the more familiar "affinely independent" reading a reader might otherwise expect. A trivializing formalization to rule out explicitly: describing Theorem 13.7's P+P^+P+ using only the validity half of the claim (dropping "each of these inequalities is facet-defining for P+P^+P+") — this mission states both conjuncts, since the facet-exactness is the theorem's genuine content beyond a Farkas-style validity certificate.

This mission depends on no other chunk's Lean definitions; it restates the affine-dimension/facet vocabulary of 02b-polarity/11a-intersection-cuts only informally, per the series convention. Corollary 13.6 (an O(n)O(n)O(n)-time algorithmic claim for computing αP\alpha_PαP​) is out-of-cone per BRIEF.md: it is fully quantified, not a veto-V3 case, but is a computational-complexity statement outside this mission's polyhedral-characterization scope.

Selected references

  • D. R. Fulkerson, Blocking and anti-blocking pairs of polyhedra, Mathematical Programming 1 (1971), 168–194. https://doi.org/10.1007/BF01584085
  • E. Balas and R. G. Jeroslow, Strengthening cuts for mixed integer programs (for the broader monotonization-of-polyhedra context cited by this chapter's introduction), European Journal of Operational Research 4 (1980), 224–234. https://doi.org/10.1016/0377-2217(80)90106-X
  • E. Balas, Disjunctive Programming, Springer, 2018, Chapter 13, §13.1–13.2. https://doi.org/10.1007/978-3-030-00148-3
6 thms3 active usersReviewed
🏆Completed
Graph TheoryOperations ResearchTheoretical Computer Science·Captain: mikedeng1

A Linear-Time Algorithm for Finding a Sparse k-Connected Spanning Subgraph of a k-Connected Graph 1: The FOREST Decomposition Preserves Local Edge-ConnectivityResearch Paper

Motivation

Many graph algorithms for connectivity questions run in time proportional to the number of edges. When the question is only whether a graph is kkk-edge-connected, or what its local edge-connectivities are up to a threshold kkk, most edges are irrelevant: a spanning subgraph with O(k∣V∣)O(k|V|)O(k∣V∣) edges already carries the answer. Such a subgraph is called a sparse certificate. Computing one first and running the expensive algorithm on it replaces ∣E∣|E|∣E∣ by k∣V∣k|V|k∣V∣ in the running time of connectivity testing, of Matula-type edge-connectivity algorithms, and of sss–ttt flow computations used as connectivity oracles.

Nagamochi and Ibaraki (Algorithmica 7, 1992) gave a procedure, FOREST, that computes such a certificate for edge-connectivity and, on simple graphs, for node-connectivity, with a single graph search. The same partition of the edges into forests is the engine of their deterministic minimum-cut algorithm for multigraphs (SIAM J. Discrete Math. 5, 1992), which later became the maximum-adjacency ordering of the Stoer–Wagner minimum-cut algorithm (J. ACM 44, 1997).

Timeline:

  • 1927: Menger identifies the minimum number of edges separating two nodes with the maximum number of edge-disjoint paths between them.
  • 1992: Nagamochi and Ibaraki publish Procedure FOREST and prove that its iii-th prefix preserves local edge-connectivity up to iii in multigraphs, and local node-connectivity up to iii in simple graphs.
  • 1993: Cheriyan, Kao and Thurimella (SIAM J. Comput. 22) obtain sparse certificates by scan-first search; Frank, Ibaraki and Nagamochi (J. Graph Theory 17) give a shorter proof for the node-connectivity case.
  • 1994: Nishizeki and Poljak (Discrete Appl. Math. 55) publish the forest-decomposition lemma (Lemma 2.1 below), found independently.

Setting

A graph G=(V,E)G = (V, E)G=(V,E) is finite and undirected, has ∣V∣≥2|V| \ge 2∣V∣≥2 nodes, may have multiple edges (several edges with the same pair of end nodes), and has no self-loop. It is simple if no two edges have the same end nodes. For F⊆EF \subseteq EF⊆E, (V,F)(V, F)(V,F) is the spanning subgraph with edge set FFF. It is a forest if it has no cycle; two parallel edges form a cycle. It is a maximal spanning forest in (V,H)(V, H)(V,H), for F⊆HF \subseteq HF⊆H, if adding any edge of H∖FH \setminus FH∖F to FFF creates a cycle.

The local edge-connectivity λ(x,y;H)\lambda(x, y; H)λ(x,y;H) is the minimum number of edges of HHH whose removal leaves no path from xxx to yyy; parallel edges count separately. It is ∞\infty∞ when x=yx = yx=y.

Procedure FOREST keeps a label r(v)∈Nr(v) \in \mathbb{N}r(v)∈N on every node, initially 000, and classes E1,E2,…,E∣E∣E_1, E_2, \dots, E_{|E|}E1​,E2​,…,E∣E∣​, initially empty. While an unscanned node exists, it picks an unscanned node xxx of largest label; for every unscanned edge eee from xxx to a node yyy, it puts eee into Er(y)+1E_{r(y)+1}Er(y)+1​, increases r(x)r(x)r(x) by one if r(x)=r(y)r(x) = r(y)r(x)=r(y), increases r(y)r(y)r(y) by one, and marks eee scanned; then it marks xxx scanned. Ties among nodes and the order of edges are free. On termination, Gi=(V,E1∪⋯∪Ei)G_i = (V, E_1 \cup \cdots \cup E_i)Gi​=(V,E1​∪⋯∪Ei​).

Formalization targets

Goal: Theorem 2.1 (pp. 588–589), without the running time

For every graph GGG and every completed execution of FOREST on GGG:

  1. every edge lies in exactly one class EiE_iEi​, 1≤i≤∣E∣1 \le i \le |E|1≤i≤∣E∣;
  2. for i=1,…,∣E∣i = 1, \dots, |E|i=1,…,∣E∣,
λ(x,y;Gi)≥min⁡{λ(x,y;G), i}for all x,y∈V;(2.1)\lambda(x, y; G_i) \ge \min\{\lambda(x, y; G),\ i\} \qquad \text{for all } x, y \in V; \tag{2.1}λ(x,y;Gi​)≥min{λ(x,y;G), i}for all x,y∈V;(2.1)
  1. ∣Ei∣≤∣V∣−1|E_i| \le |V| - 1∣Ei​∣≤∣V∣−1 for all iii;
  2. if GGG is simple, ∣Ei∣≤∣V∣−i|E_i| \le |V| - i∣Ei​∣≤∣V∣−i for i≤∣V∣−1i \le |V| - 1i≤∣V∣−1 and Ei=∅E_i = \emptysetEi​=∅ for i≥∣V∣i \ge |V|i≥∣V∣.

Milestones

  • Lemma 2.2 (p. 587): during the execution, a node vvv has incident edges in exactly the classes E1,…,Er(v)E_1, \dots, E_{r(v)}E1​,…,Er(v)​.
  • Lemma 2.3 (p. 587): each (V,Ei)(V, E_i)(V,Ei​) is a forest at every instant.
  • Lemma 2.4 (p. 588): (a) an edge (u,v)(u, v)(u,v) added to EiE_iEi​ has its end nodes joined by a path in Ei−1E_{i-1}Ei−1​; (b) a path in EjE_jEj​ between uuu and vvv yields a path in every EiE_iEi​, i<ji < ji<j.
  • Lemma 2.5 (p. 588): each output (V,Ei)(V, E_i)(V,Ei​) is a maximal spanning forest in G−E1∪⋯∪Ei−1G - E_1 \cup \cdots \cup E_{i-1}G−E1​∪⋯∪Ei−1​.
  • Lemma 2.1 (p. 584): any sequence of successive maximal spanning forests satisfies (2.1).

Companions

  • the sparse certificate (p. 589): if λ(x,y;G)≥k\lambda(x, y; G) \ge kλ(x,y;G)≥k for all x,yx, yx,y, then GkG_kGk​ is kkk-edge-connected with ∣E(Gk)∣≤k(∣V∣−1)|E(G_k)| \le k(|V| - 1)∣E(Gk​)∣≤k(∣V∣−1), and ∣E(Gk)∣≤k∣V∣−k(k+1)/2|E(G_k)| \le k|V| - k(k+1)/2∣E(Gk​)∣≤k∣V∣−k(k+1)/2 for simple GGG;
  • Lemma 2.6 (p. 589): for k≤δ(G)k \le \delta(G)k≤δ(G), GkG_kGk​ has a node of degree exactly kkk.

Significance

(2.1) says that one search produces, for every threshold kkk at once, a subgraph with at most k(∣V∣−1)k(|V|-1)k(∣V∣−1) edges that keeps every local edge-connectivity up to kkk. Any algorithm whose running time grows with ∣E∣|E|∣E∣ can then be run on GkG_kGk​ in place of GGG; §4 of the paper uses this to speed up kkk-connectivity tests and the computation of local connectivities. The same forest partition is the structural fact behind the Nagamochi–Ibaraki and Stoer–Wagner minimum-cut algorithms. Lemma 2.6 shows that the certificate is tight: its edge-connectivity is exactly kkk when λ(G)≥k\lambda(G) \ge kλ(G)≥k.

The results are proved in the paper. No machine-checked proof of them is known. Formalizing them means formalizing a graph search with free tie-breaking as a transition system, reasoning about invariants of all its executions, and proving a cut-counting statement for multigraphs. Mathlib's connectivity notions, such as SimpleGraph.IsEdgeReachable, do not see parallel edges, so the multigraph cut theory here is new.

Difficulty

Lemma 2.1 is a short cut argument once maximality is available. The difficulty is showing that FOREST, which assigns each edge to a class by looking only at the label of one end node, produces maximal forests in the successive residual graphs (Lemma 2.5). The obvious invariant, that the class of an edge is the first forest it does not close a cycle in, is not what line 7 computes. The label r(y)r(y)r(y) records only which classes touch yyy, not which component of each class contains yyy. The paper's argument needs Lemma 2.4(a): at the moment an edge is added to EiE_iEi​ its ends already lie in one tree of Ei−1E_{i-1}Ei−1​. That relies on the choice of the unscanned node of largest label, on the order of lines 8 and 9, and on an argument about the scan order of tree roots.

Formalization scope

  • Graphs. A graph is a finite node type V with ∣V∣≥2|V| \ge 2∣V∣≥2, a finite edge type E, and ends : E → Sym2 V with no diagonal value (no self-loops). Parallel edges are distinct elements of E. Simplicity is injectivity of ends, and edge subsets are Finset E. A forest is an edge set in which every edge is a bridge, a condition that sees parallel edges.
  • Connectivity. λ\lambdaλ is an infimum in ℕ∞ over separating edge sets, ∞\infty∞ at x=yx = yx=y. (2.1) is kept "for all x,yx, yx,y", as printed.
  • FOREST. FOREST is a nondeterministic step relation (select, scan, finish) on explicit states: labels, class index per edge (000 = unscanned), scanned nodes, current node and selection order. The theorems quantify over every run from the initial state, so no tie-breaking rule is fixed. "At some time instant" is a state of the run; "upon completion" is a run whose last state has every node scanned. Lemma 2.2 is stated at every state, not only after a scan block (the other steps change neither labels nor classes). Lemma 2.4(a) assumes i≥2i \ge 2i≥2, since E0E_0E0​ does not exist.
  • Exclusions. Theorem 2.1's clause "is found in O(∣V∣+∣E∣)O(|V| + |E|)O(∣V∣+∣E∣) time", the bucket implementation, and the time bound of the certificate are not formalized: the paper fixes no machine model. The goal consists of the structural conclusions only. The bound printed "if GGG is multiple" is stated for every loopless graph.
  • Non-triviality. The goal is about the classes of a run of FOREST. An arbitrary partition of EEE into maximal spanning forests is Lemma 2.1's hypothesis, not a formalization of Theorem 2.1. A statement in which the classes are unconstrained variables, or in which the run hypotheses cannot be met, would be trivial. A separate sanity file checks that a complete run on the triangle K3K_3K3​ exists and attains ∣E1∣=∣V∣−1|E_1| = |V| - 1∣E1​∣=∣V∣−1, ∣E2∣=∣V∣−2|E_2| = |V| - 2∣E2​∣=∣V∣−2.
  • Welcome contributions. Useful reusable infrastructure includes:
    • a cut and Menger layer for finite multigraphs;
    • forest and bridge lemmas for edge-indexed graphs;
    • invariant-style reasoning over runs.

Selected references

  • H. Nagamochi, T. Ibaraki, A linear-time algorithm for finding a sparse kkk-connected spanning subgraph of a kkk-connected graph, Algorithmica 7 (1992) 583–596. https://doi.org/10.1007/BF01758778
  • H. Nagamochi, T. Ibaraki, Computing edge-connectivity in multigraphs and capacitated graphs, SIAM J. Discrete Math. 5 (1992) 54–66. https://doi.org/10.1137/0405004
  • T. Nishizeki, S. Poljak, kkk-connectivity and decomposition of graphs into forests, Discrete Appl. Math. 55 (1994) 295–301. https://doi.org/10.1016/0166-218X(94)90014-0
  • J. Cheriyan, M.-Y. Kao, R. Thurimella, Scan-first search and sparse certificates: an improved parallel algorithm for kkk-vertex connectivity, SIAM J. Comput. 22 (1993) 157–174. https://doi.org/10.1137/0222013
  • A. Frank, T. Ibaraki, H. Nagamochi, On sparse subgraphs preserving connectivity properties, J. Graph Theory 17 (1993) 275–281. https://doi.org/10.1002/jgt.3190170302
  • M. Stoer, F. Wagner, A simple min-cut algorithm, J. ACM 44 (1997) 585–591. https://doi.org/10.1145/263867.263872
10 thms3 active usersReviewed
Graph TheoryLinear OptimizationOperations Research·Captain: mikedeng1

Cones of Matrices and Set-Functions and 0–1 Optimization II: One Round of N on the Stable Set Polytope Gives Exactly the Odd Hole ConstraintsResearch Paper

Motivation

The stable set problem (vertex packing) asks for a largest set of pairwise non-adjacent nodes of a graph. It is NP-hard, and its polyhedral study, the description of the stable set polytope STAB(G)\mathrm{STAB}(G)STAB(G) by linear inequalities, is one of the most studied topics of polyhedral combinatorics. Classes of valid inequalities (clique, odd hole, odd antihole, wheel constraints) and the graph classes they describe exactly (perfect, ttt-perfect, hhh-perfect graphs) organize much of that literature; see Grötschel, Lovász and Schrijver, Geometric Algorithms and Combinatorial Optimization (Springer, 1988).

Lovász and Schrijver (SIAM J. Optim. 1(2), 1991) introduced a general lift-and-project procedure for 0–1 programs: lift a relaxation KKK into a space of matrices, impose linear conditions that every 0–1 point satisfies, and project back. One round of their operator NNN gives a tighter relaxation N(K)N(K)N(K) that still contains every 0–1 point of KKK; nnn rounds give the 0–1 hull. The procedure is an ancestor of the Sherali–Adams and Lasserre hierarchies, and the stable set problem is its first test case. This mission formalizes the paper's exact description of what one round of NNN does to the fractional stable set polytope: it adds precisely the odd hole constraints.

Setting

Let G=(V,E)G = (V, E)G=(V,E) be a finite graph with no isolated nodes, n=∣V∣n = |V|n=∣V∣. Vectors of RV∪{0}\mathbb{R}^{V \cup \{0\}}RV∪{0} have a distinguished coordinate x0x_0x0​; RV\mathbb{R}^VRV sits inside as the hyperplane H0={x0=1}H_0 = \{x_0 = 1\}H0​={x0​=1}, via x↦(1,x)x \mapsto (1, x)x↦(1,x).

  • FRAC(G)⊆RV\mathrm{FRAC}(G) \subseteq \mathbb{R}^VFRAC(G)⊆RV is the solution set of the nonnegativity constraints xi≥0x_i \ge 0xi​≥0 (i∈Vi \in Vi∈V) and the edge constraints xi+xj≤1x_i + x_j \le 1xi​+xj​≤1 (ij∈Eij \in Eij∈E).
  • FR(G)⊆RV∪{0}\mathrm{FR}(G) \subseteq \mathbb{R}^{V\cup\{0\}}FR(G)⊆RV∪{0} is the cone given by xi≥0x_i \ge 0xi​≥0 and xi+xj≤x0x_i + x_j \le x_0xi​+xj​≤x0​; it is the cone spanned by the vectors (1,x)(1, x)(1,x) with x∈FRAC(G)x \in \mathrm{FRAC}(G)x∈FRAC(G).
  • QQQ is the cone spanned by the 0–1 vectors with x0=1x_0 = 1x0​=1. For a convex cone KKK, its polar cone is K∗={u:uTx≥0 ∀x∈K}K^* = \{u : u^{\mathsf T}x \ge 0 \ \forall x \in K\}K∗={u:uTx≥0 ∀x∈K}.
  • M(K)=M(K,Q)M(K) = M(K, Q)M(K)=M(K,Q) is the set of (n+1)×(n+1)(n+1)\times(n+1)(n+1)×(n+1) matrices Y=(yij)Y = (y_{ij})Y=(yij​) that are symmetric, satisfy yii=y0iy_{ii} = y_{0i}yii​=y0i​ for i∈Vi \in Vi∈V, and satisfy uTYv≥0u^{\mathsf T} Y v \ge 0uTYv≥0 for all u∈K∗u \in K^*u∈K∗, v∈Q∗v \in Q^*v∈Q∗.
  • N(K)={Ye0:Y∈M(K)}N(K) = \{Y e_0 : Y \in M(K)\}N(K)={Ye0​:Y∈M(K)}, and N(G)={x∈RV:(1,x)∈N(FR(G))}N(G) = \{x \in \mathbb{R}^V : (1, x) \in N(\mathrm{FR}(G))\}N(G)={x∈RV:(1,x)∈N(FR(G))}.
  • A set C⊆VC \subseteq VC⊆V is an odd hole if it induces a chordless cycle of odd length ∣C∣≥3|C| \ge 3∣C∣≥3 (triangles included). Its odd hole constraint is ∑i∈Cxi≤12(∣C∣−1)\sum_{i \in C} x_i \le \frac12(|C| - 1)∑i∈C​xi​≤21​(∣C∣−1).

Formalization targets

Goal: Theorem 2.3 (p. 178)

For every finite graph GGG without isolated nodes,

N(G)={x∈RV:xi≥0 (i∈V),  xi+xj≤1 (ij∈E),  ∑i∈Cxi≤12(∣C∣−1) (C an odd hole)}.N(G) = \Big\{x \in \mathbb{R}^V : x_i \ge 0\ (i \in V),\ \ x_i + x_j \le 1\ (ij \in E),\ \ \sum_{i \in C} x_i \le \tfrac12(|C|-1)\ (C \text{ an odd hole})\Big\}.N(G)={x∈RV:xi​≥0 (i∈V),  xi​+xj​≤1 (ij∈E),  i∈C∑​xi​≤21​(∣C∣−1) (C an odd hole)}.

Milestones, in the order the proof uses them

  1. Lemma 1.3 (p. 171): for a convex cone K⊆QK \subseteq QK⊆Q and i∈Vi \in Vi∈V, N(K)⊆(K∩Hi)+(K∩Gi)N(K) \subseteq (K \cap H_i) + (K \cap G_i)N(K)⊆(K∩Hi​)+(K∩Gi​), with Hi={xi=0}H_i = \{x_i = 0\}Hi​={xi​=0}, Gi={xi=x0}G_i = \{x_i = x_0\}Gi​={xi​=x0​}.
  2. Lemma 2.2 (p. 178): if both the deletion and the contraction of some node vvv give inequalities valid for KKK, then aTx≤ba^{\mathsf T}x \le baTx≤b is valid for N(K)N(K)N(K).
  3. Part (1) of the proof of Theorem 2.3 (p. 178): for an odd hole CCC and i∈Ci \in Ci∈C, the deletion and contraction of iii in the odd hole constraint are valid for FRAC(G)\mathrm{FRAC}(G)FRAC(G).
  4. Observation of Section 2.b (p. 177): every Y∈M(FR(G))Y \in M(\mathrm{FR}(G))Y∈M(FR(G)) has yij=0y_{ij} = 0yij​=0 for ij∈Eij \in Eij∈E.
  5. Part (2) of the proof of Theorem 2.3 (p. 178): x∈N(G)x \in N(G)x∈N(G) if and only if some nonnegative symmetric YYY with y00=1y_{00} = 1y00​=1, yi0=yii=xiy_{i0} = y_{ii} = x_iyi0​=yii​=xi​ satisfies xi+xj+xk−1≤yik+yjk≤xkx_i + x_j + x_k - 1 \le y_{ik} + y_{jk} \le x_kxi​+xj​+xk​−1≤yik​+yjk​≤xk​ for all i,j,ki, j, ki,j,k with ij∈Eij \in Eij∈E.
  6. Lemma 2.4 (p. 178): a system a(ij)≤yi+yj≤b(ij)a(ij) \le y_i + y_j \le b(ij)a(ij)≤yi​+yj​≤b(ij), y≥0y \ge 0y≥0, y∣U=0y|_U = 0y∣U​=0 on a graph is infeasible if and only if a walk with a negative alternating sum of one of four types exists.

Significance

Theorem 2.3 gives a complete description of one round of NNN on the stable set problem: the only new constraints are the odd hole constraints. Consequences:

  • For ttt-perfect graphs (those for which nonnegativity, edge and odd hole constraints describe STAB(G)\mathrm{STAB}(G)STAB(G)), N(G)=STAB(G)N(G) = \mathrm{STAB}(G)N(G)=STAB(G).
  • It is the base case for the paper's bounds on the NNN-index of stable set inequalities (Theorem 2.13), and it contrasts with the semidefinite operator N+N_+N+​, which after one round already satisfies clique, odd antihole and wheel constraints.
  • Lemma 2.4 is a combinatorial feasibility criterion for systems with two variables per inequality, useful beyond this paper.

The result has been proved since 1991. At the time of drafting, Prove2Me holds no formalization of it or of any part of the Lovász–Schrijver construction, and Mathlib has none. The mission produces a formal account of the NNN operator on the stable set polytope and a formal proof of the walk criterion for two-variable systems.

Difficulty

The inclusion of N(G)N(G)N(G) in the odd hole system is a short argument once Lemma 1.3 is available. The reverse inclusion is the substance: given xxx satisfying all odd hole constraints, one must exhibit a lifted matrix YYY. A direct appeal to Farkas' lemma yields a certificate with no visible relation to odd cycles; the difficulty is to show that every obstruction to solvability of the matrix system forces a violated odd hole constraint, which is what Lemma 2.4 and the analysis of its four walk types accomplish. Case (d) of that analysis needs the odd hole constraints; the other cases need only the edge constraints. Lemma 2.4 itself is called folklore on the page and is stated without proof there.

A further point: Lemma 2.4 is stated for lower bounds 0≤a0 \le a0≤a, while the lower bounds that arise from the matrix system, xi+xj+xk−1x_i + x_j + x_k - 1xi​+xj​+xk​−1, can be negative.

Formalization scope

  • Coordinates of RV∪{0}\mathbb{R}^{V\cup\{0\}}RV∪{0} are indexed by Option V, with none the coordinate x0x_0x0​. Graphs are Mathlib SimpleGraphs on a finite type VVV with decidable adjacency. Every statement about a graph carries the paper's standing assumption that GGG has no isolated nodes (∀ v, ∃ w, G.Adj v w).
  • MMM is defined by condition (iii), never by its rewritings. Lemma 1.3 and Lemma 2.2 take the cone KKK closed, a hypothesis the paper leaves tacit (its cones are polyhedral); for a non-closed KKK Lemma 1.3 is false. FR(G)\mathrm{FR}(G)FR(G) is polyhedral, so the goal needs no such hypothesis.
  • FR(G)\mathrm{FR}(G)FR(G) is defined by its constraints; this agrees with the cone over FRAC(G)\mathrm{FRAC}(G)FRAC(G) because GGG has no isolated nodes.
  • Lemma 2.2 is stated in cone form: KKK is any closed convex cone inside FR(G)\mathrm{FR}(G)FR(G), and validity is read on the slice x0=1x_0 = 1x0​=1. The paper's extra hypothesis STAB(G)⊆K\mathrm{STAB}(G) \subseteq KSTAB(G)⊆K is dropped, which strengthens the lemma.
  • Deletion and contraction of a node are coefficient vectors on the same graph (coefficients set to 000), not inequalities on the subgraphs G−vG - vG−v and G−Γ(v)−vG - \Gamma(v) - vG−Γ(v)−v.
  • Odd holes are chordless odd cycles including triangles; triangles are needed, as 121\tfrac12\mathbf 121​1 satisfies all other constraints on a triangle.
  • The matrix system of part (2) is stated as an equivalence; the page uses one direction.
  • Lemma 2.4 uses edge values on unordered pairs and strict inequalities, exactly as printed.

A trivializing formalization is ruled out: the goal is the set equality for every graph without isolated nodes, not the existence of a lifted matrix and not a single graph.

Not formalized here: the semidefinite operator N+N_+N+​, the operator N^\hat NN^, algorithmic statements (Theorems 1.6, 2.1, Corollary 2.5), and the set-function results of Section 3.

Reusable beyond this mission: the matrix cone layer (QQQ, MMM, NNN), the stable-set cones, and the two-variable feasibility criterion of Lemma 2.4. Contributions of any of the milestones, and of general facts about polar cones of polyhedral cones in this setting, are welcome.

Selected references

  • L. Lovász and A. Schrijver, Cones of matrices and set-functions and 0–1 optimization, SIAM Journal on Optimization 1(2) (1991) 166–190. https://doi.org/10.1137/0801013
  • 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
  • H. D. Sherali and W. P. Adams, A hierarchy of relaxations between the continuous and convex hull representations for zero-one programming problems, SIAM Journal on Discrete Mathematics 3(3) (1990) 411–430. https://doi.org/10.1137/0403036
13 thms3 active usersReviewed
🏆Completed
Operations ResearchOptimizationTheoretical Computer Science·Captain: mikedeng1

Approximation Algorithms for Combinatorial Problems V: The Overlap-Ratio Greedy C2 Is Within 1 + ln k of the Least-Overlap Cover on EC(k)Research Paper

Motivation

David S. Johnson's 1974 paper Approximation Algorithms for Combinatorial Problems (J. Comput. System Sci. 9 (1974) 256–278) was one of the first systematic worst-case analyses of polynomial-time heuristics for NP-complete optimization problems. Its Section 5 proves the harmonic bound ∑j=1k1/j\sum_{j=1}^k 1/j∑j=1k​1/j for the greedy algorithm on minimum-cardinality set cover, a result that still underlies the standard ln⁡n\ln nlnn approximation guarantee.

Section 6, the subject of this mission, asks what happens when the cost of a cover is its total size rather than its number of sets. This problem, SET COVERING II (EC), is the optimization version of the EXACT COVER recognition problem of Karp's list (Karp 1972): a family has a disjoint subcover exactly when the optimum equals the number of covered points. Johnson shows that the change of measure breaks the cardinality greedy but that a greedy rule based on an overlap ratio recovers essentially the same guarantee. The same accounting (paying for each newly covered point) later became the standard analysis of greedy weighted set cover (Chvátal 1979).

Setting

An input is a finite family F={S1,…,Sp}F = \{S_1, \dots, S_p\}F={S1​,…,Sp​} of finite sets. Its covered set is T=⋃S∈FST = \bigcup_{S \in F} ST=⋃S∈F​S. A subcover is a subfamily F′⊆FF' \subseteq FF′⊆F with ⋃S∈F′S=T\bigcup_{S\in F'} S = T⋃S∈F′​S=T, and its measure is

mEC(F′)=∑S∈F′∣S∣.m_{EC}(F') = \sum_{S \in F'} |S|.mEC​(F′)=S∈F′∑​∣S∣.

The optimum F∗F^*F∗ is the least measure of a subcover; since every subcover has measure at least ∣T∣|T|∣T∣, an optimal subcover is one with the least possible overlapping. The subproblem EC(k)(k)(k) admits only families in which every set has at most kkk points.

Algorithm C2 keeps a subfamily SUB (initially empty), the unused sets LEFT (initially FFF) and the uncovered points UNCOV (initially TTT). While UNCOV is nonempty it chooses S′∈S' \inS′∈ LEFT minimizing

Ratio(S)=∣S−UNCOV∣∣S∩UNCOV∣,\mathrm{Ratio}(S) = \frac{|S - \mathrm{UNCOV}|}{|S \cap \mathrm{UNCOV}|},Ratio(S)=∣S∩UNCOV∣∣S−UNCOV∣​,

the number of already-covered points of SSS per newly covered point, and moves S′S'S′ from LEFT to SUB, removing its points from UNCOV. When several sets tie, any of them may be chosen; a subcover is choosable by C2 if some sequence of admissible choices returns it.

The overlap of a chosen set is ∣S′−UNCOV∣|S' - \mathrm{UNCOV}|∣S′−UNCOV∣ at the moment it is chosen, and the cumulative overlap OV(F1)\mathrm{OV}(F_1)OV(F1​) of a run returning F1F_1F1​ is the sum of these overlaps.

Formalization targets

Goal: Theorem 6 (p. 271)

For all k≥1k \ge 1k≥1 and n>0n > 0n>0,

R[C2,EC(k)](n)≤1+ln⁡(k)≤∑j=1k1j+12,R[C2, EC(k)](n) \le 1 + \ln(k) \le \sum_{j=1}^k \frac1j + \frac12,R[C2,EC(k)](n)≤1+ln(k)≤j=1∑k​j1​+21​,

and for all sufficiently large nnn, R[C2,EC(k)](n)≥∑j=1k(1/j)R[C2, EC(k)](n) \ge \sum_{j=1}^k (1/j)R[C2,EC(k)](n)≥∑j=1k​(1/j). In the size-free form used here, for every k≥1k \ge 1k≥1:

  1. every subcover MMM choosable by C2 on an input of EC(k)(k)(k) satisfies mEC(M)≤(1+ln⁡k) F∗m_{EC}(M) \le (1 + \ln k)\,F^*mEC​(M)≤(1+lnk)F∗;
  2. 1+ln⁡k≤∑j=1k1/j+1/21 + \ln k \le \sum_{j=1}^k 1/j + 1/21+lnk≤∑j=1k​1/j+1/2;
  3. some input of EC(k)(k)(k) with F∗>0F^* > 0F∗>0 has a choosable subcover with mEC(M)≥(∑j=1k1/j)F∗m_{EC}(M) \ge \big(\sum_{j=1}^k 1/j\big) F^*mEC​(M)≥(∑j=1k​1/j)F∗.

Milestones (proof of Theorem 6, pp. 271–272)

  • the measure of the output is ∣T∣+OV(F1)|T| + \mathrm{OV}(F_1)∣T∣+OV(F1​);
  • if C2 may choose a set with Ratio(S′)≥y\mathrm{Ratio}(S') \ge yRatio(S′)≥y, then (y+1) ∣UNCOV∣≤F∗(y+1)\,|\mathrm{UNCOV}| \le F^*(y+1)∣UNCOV∣≤F∗;
  • with a=F∗/∣T∣a = F^*/|T|a=F∗/∣T∣ and x=∣T−UNCOV∣/∣T∣x = |T - \mathrm{UNCOV}|/|T|x=∣T−UNCOV∣/∣T∣, the next chosen set has Ratio(S′)≤a/(1−x)−1\mathrm{Ratio}(S') \le a/(1-x) - 1Ratio(S′)≤a/(1−x)−1;
  • on EC(k)(k)(k), OV(F1)≤∣T∣ (a[ln⁡(k)+1]−1)\mathrm{OV}(F_1) \le |T|\,(a[\ln(k) + 1] - 1)OV(F1​)≤∣T∣(a[ln(k)+1]−1);
  • the analytic inequality 1+ln⁡(k)≤∑j=1k1/j+1/21 + \ln(k) \le \sum_{j=1}^k 1/j + 1/21+ln(k)≤∑j=1k​1/j+1/2;
  • the lower-bound input (Fig. 1 of the paper with every set of F1F_1F1​ filled out to exactly kkk points) on which C2 may pay ∑j=1k1/j\sum_{j=1}^k 1/j∑j=1k​1/j times the optimum.

Significance

The result. The measure ∑∣S∣\sum|S|∑∣S∣ penalizes overlap, and the paper notes (without proof, p. 270) that an algorithm returning an optimal cover for the cardinality measure can be a factor kkk from optimal for this one. Theorem 6 shows that the ratio rule C2 is within 1+ln⁡k1 + \ln k1+lnk of the least-overlap cover, and the lower bound shows that no analysis of C2 can beat ∑j=1k1/j\sum_{j=1}^k 1/j∑j=1k​1/j. The two bounds differ by less than 1/21/21/2 for every kkk. The theorem was an early instance of a logarithmic guarantee for a weighted covering problem, where each set's cost is its size.

Formalizing it. The theorem has been proved since 1974; no machine-checked proof is known to exist. The mission produces a formal model of the EC problem and of C2 as a nondeterministic process, the overlap identity, and the discrete form of the paper's area-under-a-curve estimate. The last is the part the paper argues informally, through a step function and an integral.

Difficulty

The cardinality argument for C1 counts the sets chosen; here the sets have different sizes, so it does not apply. The overlap C2 pays per newly covered point is not bounded by a constant: early choices can be free and late ones cost up to k−1k-1k−1 per point, and the bound on the cumulative overlap must hold against the whole run, for every sequence of tie-breaks.

In a formal proof the integral must be replaced by a sum. Covered points arrive in blocks (one block per chosen set), the charge is constant on a block but the bound depends on the covered fraction at the start of the block, and the sum has to be compared with a logarithm. The terms aln⁡aa\ln aalna and a/ka/ka/k that the paper drops using 1≤a≤k1 \le a \le k1≤a≤k must be controlled as well, and the relation 1≤a≤k1 \le a \le k1≤a≤k must itself be proved from optimality. The lower bound needs an explicit run of C2 through ties on an input with k⋅k!k \cdot k!k⋅k! points, checking at every stage that the intended set is a ratio minimizer.

Formalization scope

  • Inputs. A family is p : ℕ with S : Fin p → Finset α (0-based, repetitions allowed; a repeated set counts twice in the measure if both copies are chosen, which C2 never does). Subcovers and SUB, LEFT are index sets. F∗F^*F∗ is a minimum over the finite, nonempty set of subcovers (Finset.inf'), never a junk value.
  • Algorithm. C2 is a step relation on states (SUB, LEFT, UNCOV). The choice at Step 3 is existential over all minimizers, so every result quantifies over every choosable output (the paper's WORST). Ratio(S)\mathrm{Ratio}(S)Ratio(S) is +∞+\infty+∞ when S∩UNCOV=∅S \cap \mathrm{UNCOV} = \emptysetS∩UNCOV=∅; the formal rule requires the chosen set to meet UNCOV and compares ratios by cross-multiplication, with no division.
  • Overlap. The cumulative overlap depends on the run, not on the output alone, so it is carried by an inductive run relation RunOV.
  • No problem size. The paper's R[A,P](n)R[A, P](n)R[A,P](n) maximizes over inputs of size at most nnn in an unspecified encoding. Upper bounds are stated for every input and every choosable output; the lower bound exhibits one input and one choosable output. Given monotonicity of RRR in nnn, these are equivalent to the paper's claims. Ratios are stated multiplicatively, so F∗=0F^* = 0F∗=0 does not create a vacuous bound.
  • Numbers. Measures are natural numbers cast to R\mathbb RR; ln⁡\lnln is Real.log; ∑j=1k1/j\sum_{j=1}^k 1/j∑j=1k​1/j is Mathlib's harmonic k.
  • Ruled out. A deterministic tie-break would prove a weaker upper bound and could not realize the lower-bound run, and a ratio with x/0=0x/0 = 0x/0=0 would make disjoint-from-UNCOV sets the most attractive choice. The formalization uses neither.

The overlap identity and the discrete integral comparison are reusable for any greedy covering analysis that charges cost per newly covered point. Contributions welcome include proofs of the milestones, the invariants of the C2 run relation (SUB and LEFT partition the indices; UNCOV =T−⋃= T - \bigcup=T−⋃ SUB), and the explicit lower-bound run.

Selected references

  • D. S. Johnson, Approximation algorithms for combinatorial problems, J. Comput. System Sci. 9 (1974), 256–278. https://doi.org/10.1016/S0022-0000(74)80044-9
  • R. M. Karp, Reducibility among combinatorial problems, in Complexity of Computer Computations, Plenum, 1972, 85–103. https://doi.org/10.1007/978-1-4684-2001-2_9
  • V. Chvátal, A greedy heuristic for the set-covering problem, Math. Oper. Res. 4 (1979), 233–235. https://doi.org/10.1287/moor.4.3.233
10 thms3 active usersReviewed
🏆Completed
Linear algebraTheoretical Computer Science·Captain: mikedeng1

Sparse Approximate Solutions to Linear Systems 2: An Exact Cover by 3-Sets Exists iff Its Incidence System Has a 1/2-Approximate Solution with at Most m/3 NonzerosResearch Paper

Motivation

Many problems in signal processing, statistics and function interpolation ask for a solution of a linear system Ax≈bAx\approx bAx≈b that uses as few columns of AAA as possible: a sparse approximate solution. Natarajan's 1995 paper Sparse Approximate Solutions to Linear Systems (SIAM J. Comput. 24(2):227–234) was motivated by radial basis interpolation, where each column corresponds to a basis function and fewer columns mean a cheaper interpolant. The paper does two things. It proves that finding the sparsest approximate solution is computationally hard (§2, Theorem 1), and it analyses a greedy column-selection algorithm whose number of chosen columns is within a factor, depending on the conditioning of AAA, of the optimum (§3, Theorem 2; a separate mission of this series).

The hardness theorem is the reason the second half of the paper exists: once exact minimization is ruled out, one settles for approximation guarantees. It is cited throughout the compressed-sensing literature as the canonical statement that ℓ0\ell_0ℓ0​-minimization under an ℓ2\ell_2ℓ2​ error constraint is NP-hard, and is the starting point for the later theory of when convex relaxations recover sparse solutions.

The argument follows the classical reduction from Exact Cover by 3-sets (X3C) to minimum-weight solutions of linear systems in Garey and Johnson (1979), pp. 221 and 246, adapted to an approximate right-hand side.

Setting

Sparse approximate solution (SAS). Given a matrix A∈Rm×nA\in\mathbb R^{m\times n}A∈Rm×n, a vector b∈Rmb\in\mathbb R^mb∈Rm and a tolerance ε>0\varepsilon>0ε>0, find a vector x∈Rnx\in\mathbb R^nx∈Rn with ∥Ax−b∥2≤ε\|Ax-b\|_2\le\varepsilon∥Ax−b∥2​≤ε whose number of nonzero entries, written ∥x∥0=∣{j:xj≠0}∣\|x\|_0=|\{j : x_j\neq0\}|∥x∥0​=∣{j:xj​=0}∣, is as small as possible. Here ∥⋅∥2\|\cdot\|_2∥⋅∥2​ is the Euclidean norm.

Exact Cover by 3-sets (X3C). An instance is a ground set S={s1,…,sm}S=\{s_1,\dots,s_m\}S={s1​,…,sm​} and a list C=c1,…,cnC=c_1,\dots,c_nC=c1​,…,cn​ of subsets of SSS, each with exactly three elements. An exact cover is a sub-collection C^={cj:j∈J}\hat C=\{c_j : j\in J\}C^={cj​:j∈J}, J⊆{1,…,n}J\subseteq\{1,\dots,n\}J⊆{1,…,n}, such that every element of SSS occurs in exactly one set of C^\hat CC^.

The transformation. From an X3C instance build the SAS instance with

  • the incidence matrix A∈Rm×nA\in\mathbb R^{m\times n}A∈Rm×n: Aij=1A_{ij}=1Aij​=1 if si∈cjs_i\in c_jsi​∈cj​ and Aij=0A_{ij}=0Aij​=0 otherwise, so column jjj is the characteristic vector of cjc_jcj​;
  • the all-ones vector b=(1,1,…,1)∈Rmb=(1,1,\dots,1)\in\mathbb R^mb=(1,1,…,1)∈Rm;
  • the tolerance ε=12\varepsilon=\tfrac12ε=21​.

In Lean, SSS is Fin m, the collection is C : Fin n → Finset (Fin m) with hC : ∀ j, (C j).card = 3, an exact cover is an index set J with IsExactCover C J, the matrix is incidence C, the vector bbb is onesVec m, AxAxAx is Matrix.toEuclideanLin (incidence C) x, and ∥x∥0\|x\|_0∥x∥0​ is nnz x.

Formalization targets

Goal: correctness of the reduction

For every X3C instance (S,C)(S,C)(S,C) as above,

(∃J, {cj}j∈J is an exact cover of S)  ⟺  (∃x∈Rn, ∥Ax−b∥2≤12 and 3 ∥x∥0≤m).\bigl(\exists J,\ \{c_j\}_{j\in J}\text{ is an exact cover of }S\bigr)\iff\bigl(\exists x\in\mathbb R^n,\ \|Ax-b\|_2\le\tfrac12\ \text{and}\ 3\,\|x\|_0\le m\bigr).(∃J, {cj​}j∈J​ is an exact cover of S)⟺(∃x∈Rn, ∥Ax−b∥2​≤21​ and 3∥x∥0​≤m).

This is the sentence the proof of Theorem 1 (p. 228) establishes: "the constructed instance of SAS has a solution with m/3m/3m/3 or fewer entries if and only if the given instance of X3C has a solution."

Milestones

  1. Forward direction. If {cj}j∈J\{c_j\}_{j\in J}{cj​}j∈J​ is an exact cover, the indicator vector x=1Jx=\mathbf 1_Jx=1J​ satisfies Ax=bAx=bAx=b and 3∥x∥0=m3\|x\|_0=m3∥x∥0​=m.
  2. Entry bounds. For every xxx with ∥Ax−b∥2≤12\|Ax-b\|_2\le\frac12∥Ax−b∥2​≤21​, each entry of AxAxAx lies in [12,32][\frac12,\frac32][21​,23​].
  3. Lower bound on sparsity. For every such xxx, m≤3∥x∥0m\le3\|x\|_0m≤3∥x∥0​.
  4. Exact cover from a sparse solution. If moreover 3∥x∥0≤m3\|x\|_0\le m3∥x∥0​≤m, the sets cjc_jcj​ with xj≠0x_j\neq0xj​=0 form an exact cover.

Significance

The result. The equivalence shows that deciding whether a sparse approximate solution with a prescribed number of nonzeros exists is at least as hard as X3C, which is NP-complete. Consequently no polynomial-time algorithm computes the optimum of SAS unless P = NP, and approximation algorithms such as the greedy method of §3 are the natural object of study. The same instance shows hardness persists for 0/1 matrices, a right-hand side of all ones and a constant tolerance, so the difficulty does not come from ill-conditioned data or from vanishing precision.

Formalizing it. The reduction is proved in the paper; this mission produces a machine-checked proof of its correctness, the combinatorial core of every NP-hardness claim for ℓ0\ell_0ℓ0​-constrained least squares. No prior machine-checked version is known to exist, on the platform or elsewhere. The complexity-theoretic wrapper is out of scope (see below).

Difficulty

The forward direction is a direct computation. The converse contains the only real step, which the paper passes over with "it is clear". From ∥Ax−b∥2≤12\|Ax-b\|_2\le\frac12∥Ax−b∥2​≤21​ one gets only that every entry of AxAxAx is in [12,32][\frac12,\frac32][21​,23​]; the entries of xxx themselves are arbitrary reals, possibly negative or not equal to 111, so xxx need not be an indicator vector and Ax=bAx=bAx=b need not hold. The exact-cover property must therefore be extracted from support sizes alone: every element is covered by some column in the support, the support has at most m/3m/3m/3 columns of three elements each, and a counting argument forces the chosen sets to be pairwise disjoint. Reading off a cover from the values of xxx (for instance, taking the jjj with xj=1x_j=1xj​=1) does not work.

Formalization scope

  • Vectors live in EuclideanSpace ℝ (Fin m) and EuclideanSpace ℝ (Fin n), so ‖·‖ is the paper's ∥⋅∥2\|\cdot\|_2∥⋅∥2​. Using the sup norm of Fin m → ℝ would give a different statement.
  • The tolerance is exactly ε=12\varepsilon=\frac12ε=21​, as printed.
  • The collection is indexed, C : Fin n → Finset (Fin m): repeated sets are allowed and are distinct indices; an exact cover is a set of indices, and on the SAS side one nonzero entry is counted per index, so both sides treat duplicates consistently.
  • "m/3m/3m/3 or fewer" is written 3∥x∥0≤m3\|x\|_0\le m3∥x∥0​≤m, never with natural-number division. With this form the equivalence holds for every mmm (both sides are false when 3∤m3\nmid m3∤m), which absorbs the paper's "without loss of generality mmm is a multiple of 3"; no divisibility hypothesis is assumed. For m=0m=0m=0 both sides are true.
  • The hypothesis that every set has exactly three elements is essential for the converse (with m=9m=9m=9, O={s3,…,s9}O=\{s_3,\dots,s_9\}O={s3​,…,s9​}, c1={s1}∪Oc_1=\{s_1\}\cup Oc1​={s1​}∪O, c2={s2}∪Oc_2=\{s_2\}\cup Oc2​={s2​}∪O, c3=Oc_3=Oc3​=O, the vector x=(1,1,−1)x=(1,1,-1)x=(1,1,−1) solves Ax=bAx=bAx=b with 3∥x∥0=m3\|x\|_0=m3∥x∥0​=m, yet CCC has no exact cover since c1c_1c1​ and c2c_2c2​ must both be chosen) and is kept as hC.
  • Not formalized: the infinite-precision RAM machine model, polynomial-time many-one reductions, polynomial-time computability of the transformation (evident: an m×nm\times nm×n 0/1 matrix), and the NP-completeness of X3C (cited by the paper from Garey–Johnson). The goal is therefore the correctness of the transformation, not a statement titled "SAS is NP-hard". A statement that only records the forward direction, or that fixes xxx to be a 0/1 vector on the SAS side, would trivialize the converse and is not the target.
  • Tools a solver will need are in Mathlib: coordinate bounds for the Euclidean norm (PiLp.norm_apply_le), Finset.card_biUnion_le, and Finset.card_biUnion for disjoint unions. Contributions of a reusable exact-cover API, or of a polynomial-time reduction framework that could later wrap this equivalence into an NP-hardness theorem, are welcome.

Selected references

  • B. K. Natarajan, Sparse Approximate Solutions to Linear Systems, SIAM Journal on Computing 24(2):227–234, 1995. https://doi.org/10.1137/s0097539792240406
  • M. R. Garey and D. S. Johnson, Computers and Intractability: A Guide to the Theory of NP-Completeness, W. H. Freeman, 1979 (X3C: problem [SP2], p. 221; minimum weight solution to linear equations: [MP5], p. 246).
  • F. P. Preparata and M. I. Shamos, Computational Geometry: An Introduction, Springer, 1985 (the real RAM model). https://doi.org/10.1007/978-1-4612-1098-6
6 thms3 active usersReviewed
🏆Completed
Operations ResearchOptimization·Captain: mikedeng1

Scenario Reduction Algorithms in Stochastic Programming III: The Minimal Reduction Distance of a Regular Ternary Scenario TreeResearch Paper

Motivation

Multistage stochastic programs are solved on a finite scenario tree: a discrete probability distribution whose support points are paths of a random process. Realistic trees have far too many scenarios for the resulting optimization problem, so practitioners reduce the tree, keeping nnn of its NNN scenarios and redistributing the probability of the deleted ones. The reduction should keep the reduced distribution as close as possible to the original one in a probability metric that controls the optimal value of the stochastic program (Dupačová, Gröwe-Kuska, Römisch, Math. Program. 95 (2003)).

Choosing the best nnn scenarios is a set-covering problem and NP-hard, and the algorithms used in practice (backward reduction, fast forward selection) are heuristics without error guarantees. Heitsch and Römisch (2003) therefore derived test instances with an exactly known optimum: regular binary and ternary scenario trees, for which the minimal reduction distance has a closed form once nnn is not too small. This mission formalizes the ternary case, Proposition 3.2 of that paper. The binary case (Proposition 3.1) is a separate mission of the same series.

Setting

Fix a depth K∈NK \in \mathbb{N}K∈N and branch widths δ1,…,δK≥0\delta^1, \dots, \delta^K \ge 0δ1,…,δK≥0, with δ0=0\delta^0 = 0δ0=0. A regular ternary scenario tree has N=3KN = 3^KN=3K scenarios, one for each index tuple (i1,…,iK)∈{1,2,3}K(i_1, \dots, i_K) \in \{1, 2, 3\}^K(i1​,…,iK​)∈{1,2,3}K, where iki_kik​ is the successor chosen at level kkk. Choosing successor iki_kik​ adds the increment δikk=(ik−2) δk∈{−δk,0,δk}\delta^k_{i_k} = (i_k - 2)\,\delta^k \in \{-\delta^k, 0, \delta^k\}δik​k​=(ik​−2)δk∈{−δk,0,δk}, and scenario iii is the vector ωi=(ωi0,…,ωiK)∈RK+1\omega_i = (\omega_i^0, \dots, \omega_i^K) \in \mathbb{R}^{K+1}ωi​=(ωi0​,…,ωiK​)∈RK+1 with

ωik=∑j=0kδijj,k=0,…,K(eq. (19)).\omega_i^k = \sum_{j=0}^{k} \delta^j_{i_j}, \qquad k = 0, \dots, K \quad \text{(eq. (19))}.ωik​=j=0∑k​δij​j​,k=0,…,K(eq. (19)).

All scenarios have probability pi=1/Np_i = 1/Npi​=1/N. The distance between scenarios is the maximum norm c(ωi,ωj)=∥ωi−ωj∥∞=max⁡0≤k≤K∣ωik−ωjk∣c(\omega_i, \omega_j) = \|\omega_i - \omega_j\|_\infty = \max_{0 \le k \le K} |\omega_i^k - \omega_j^k|c(ωi​,ωj​)=∥ωi​−ωj​∥∞​=max0≤k≤K​∣ωik​−ωjk​∣.

Deleting the scenarios of an index set JJJ and moving each deleted scenario's probability to a nearest kept scenario costs the reduction distance

DJ=∑i∈Jpimin⁡j∉J∥ωi−ωj∥∞(eq. (8)),D_J = \sum_{i \in J} p_i \min_{j \notin J} \|\omega_i - \omega_j\|_\infty \quad \text{(eq. (8))},DJ​=i∈J∑​pi​j∈/Jmin​∥ωi​−ωj​∥∞​(eq. (8)),

which by Theorem 2.1 of the paper is the optimal transport-type distance between the original distribution and the best distribution supported on the kept scenarios. The minimal reduction distance to nnn scenarios is Dnmin=min⁡{DJ:#J=N−n}D^{min}_n = \min\{D_J : \#J = N - n\}Dnmin​=min{DJ​:#J=N−n}.

Formalization targets

Goal: Proposition 3.2 (7/9-solution)

Let K≥3K \ge 3K≥3 and let k0∈arg⁡min⁡1≤k≤Kδkk_0 \in \arg\min_{1 \le k \le K} \delta^kk0​∈argmin1≤k≤K​δk with k0≤K−2k_0 \le K - 2k0​≤K−2 and max⁡{δk0+1,δk0+2}≤2δk0\max\{\delta^{k_0+1}, \delta^{k_0+2}\} \le 2\delta^{k_0}max{δk0​+1,δk0​+2}≤2δk0​. Then any two distinct scenarios are at distance at least δk0\delta^{k_0}δk0​; there is a set of 79N\tfrac79 N97​N scenarios each paired with a scenario outside it at distance exactly δk0\delta^{k_0}δk0​; and for each n∈Nn \in \mathbb{N}n∈N with 29N≤n<N\tfrac29 N \le n < N92​N≤n<N,

Dnmin=min⁡{DJ:#J=N−n}=N−nN δk0(eq. (21)),D^{min}_n = \min\{D_J : \#J = N - n\} = \frac{N - n}{N}\,\delta^{k_0} \quad \text{(eq. (21))},Dnmin​=min{DJ​:#J=N−n}=NN−n​δk0​(eq. (21)),

with the minimum attained.

Milestones

  1. Distinct scenarios satisfy ∥ωi−ωj∥∞≥δk0\|\omega_i - \omega_j\|_\infty \ge \delta^{k_0}∥ωi​−ωj​∥∞​≥δk0​.
  2. Every JJJ with #J=N−n\#J = N - n#J=N−n has DJ≥N−nNδk0D_J \ge \frac{N-n}{N}\delta^{k_0}DJ​≥NN−n​δk0​.
  3. The index set I∗∗I_{**}I∗∗​ of the proof has #I∗∗=29N\#I_{**} = \tfrac29 N#I∗∗​=92​N, and its complement J∗∗J_{**}J∗∗​ has 79N\tfrac79 N97​N elements.
  4. Every j∈J∗∗j \in J_{**}j∈J∗∗​ has a partner i∈I∗∗i \in I_{**}i∈I∗∗​ with ∥ωi−ωj∥∞=δk0\|\omega_i - \omega_j\|_\infty = \delta^{k_0}∥ωi​−ωj​∥∞​=δk0​.
  5. Example 4.2: for K=6K = 6K=6 and (δ1,…,δ6)=(0.7,0.9,1.2,1.5,2.6,3.3)(\delta^1, \dots, \delta^6) = (0.7, 0.9, 1.2, 1.5, 2.6, 3.3)(δ1,…,δ6)=(0.7,0.9,1.2,1.5,2.6,3.3), Dnmin=0.7 N−nND^{min}_n = 0.7\,\frac{N-n}{N}Dnmin​=0.7NN−n​ for 162≤n<729162 \le n < 729162≤n<729.

Significance

The result gives an exact optimal value for an NP-hard reduction problem on an infinite family of instances. Heitsch and Römisch use it in their numerical section to measure how far the heuristics' reduced trees are from optimal (Examples 4.1 and 4.2 are the binary and ternary test trees of that study). A closed form of this kind is also the only way to certify that a heuristic is exactly optimal on some instances rather than only competitive with other heuristics.

The proposition is proved in the paper, but the published proof of its central step is one sentence: "Similarly as in Proposition 3.1 it can be shown that there exists an index i∈I∗∗i \in I_{**}i∈I∗∗​ for each j∈J∗∗j \in J_{**}j∈J∗∗​ …". A formal proof supplies that case analysis, which is absent from the literature. The formalization also settles two points the printed statement leaves loose (see Formalization scope): the count of pairs at distance δk0\delta^{k_0}δk0​, and the definition of I∗∗I_{**}I∗∗​ when some widths vanish. No machine-checked version of this result or of the reduction distance DJD_JDJ​ is known to exist.

Difficulty

The lower bound is routine: two distinct scenarios first differ at some level lll, where their coordinates differ by δl\delta^lδl or 2δl2\delta^l2δl. The substance is attainment: one must exhibit, for every n≥29Nn \ge \tfrac29 Nn≥92​N, a kept set of size nnn whose every deleted scenario lies at distance exactly δk0\delta^{k_0}δk0​ from some kept one. The obvious candidate, keeping the scenarios that take the middle branch at level k0k_0k0​, has every other scenario at distance exactly δk0\delta^{k_0}δk0​ from a kept one, but it keeps 13N\tfrac13 N31​N scenarios and so covers only n≥13Nn \ge \tfrac13 Nn≥31​N. Going down to 29N\tfrac29 N92​N kept scenarios forces a deleted scenario and its partner to differ at more than one level, and since coordinates are running sums the differences at levels k0+1k_0+1k0​+1 and k0+2k_0+2k0​+2 accumulate on top of the one at level k0k_0k0​. The paper's proof of this step is not written out, and it depends on the widths of the two levels below k0k_0k0​: the hypothesis max⁡{δk0+1,δk0+2}≤2δk0\max\{\delta^{k_0+1}, \delta^{k_0+2}\} \le 2\delta^{k_0}max{δk0​+1,δk0​+2}≤2δk0​ is essential, and the result is false without it (for K=3K = 3K=3 and (δ1,δ2,δ3)=(1,3,3)(\delta^1, \delta^2, \delta^3) = (1, 3, 3)(δ1,δ2,δ3)=(1,3,3) one has D6min=31/27D^{min}_6 = 31/27D6min​=31/27, not 7/97/97/9).

Formalization scope

  • A scenario is an index tuple σ:Fin K→Fin 3\sigma : \mathrm{Fin}\,K \to \mathrm{Fin}\,3σ:FinK→Fin3; σ(r)\sigma(r)σ(r) is the successor at paper level r+1r + 1r+1, with Fin 3\mathrm{Fin}\,3Fin3 values 0,1,20, 1, 20,1,2 standing for the paper's i=1,2,3i = 1, 2, 3i=1,2,3. The widths are δ:N→R\delta : \mathbb{N} \to \mathbb{R}δ:N→R, of which only δ(1),…,δ(K)\delta(1), \dots, \delta(K)δ(1),…,δ(K) are used; the standing assumption δk∈R+\delta^k \in \mathbb{R}_+δk∈R+​ (p. 196) is the hypothesis δ(k)≥0\delta(k) \ge 0δ(k)≥0 for 1≤k≤K1 \le k \le K1≤k≤K. Scenarios live in Fin(K+1)→R\mathrm{Fin}(K+1) \to \mathbb{R}Fin(K+1)→R, whose Mathlib norm is the maximum norm. Probabilities are uniform, 1/3K1/3^K1/3K.
  • DJD_JDJ​ is defined for a general finite index set, probabilities and cost, with the inner minimum a Finset.inf' over the complement of JJJ; the complement must be nonempty, so no default value arises. DnminD^{min}_nDnmin​ is stated as IsLeast of the set of all values DJD_JDJ​ with #J=N−n\#J = N - n#J=N−n: the goal asserts both the lower bound for every JJJ and attainment by some JJJ. A formalization that exhibits a single JJJ with DJ=N−nNδk0D_J = \frac{N-n}{N}\delta^{k_0}DJ​=NN−n​δk0​, or states an infimum without attainment, or drops any hypothesis on k0k_0k0​, is a different (and in the last case false) statement.
  • 29N≤n\tfrac29 N \le n92​N≤n is written 2⋅3K≤9n2 \cdot 3^K \le 9n2⋅3K≤9n, and 79N\tfrac79 N97​N as 7⋅3K−27 \cdot 3^{K-2}7⋅3K−2.
  • Pairs. As printed, "there are 79N\tfrac79 N97​N distinct pairs of scenarios such that the distance between the members of each pair is exactly δk0\delta^{k_0}δk0​" is false as an exact count (for K=3K = 3K=3 and δ=(1,1,1)\delta = (1,1,1)δ=(1,1,1) there are 130 such pairs, not 21). The goal states what the proof constructs: a set J∗∗J_{**}J∗∗​ of 79N\tfrac79 N97​N scenarios, each paired with a scenario outside J∗∗J_{**}J∗∗​ at distance exactly δk0\delta^{k_0}δk0​.
  • I∗∗I_{**}I∗∗​. The paper defines I∗∗I_{**}I∗∗​ by testing whether the increments δikk\delta^k_{i_k}δik​k​ vanish. When one of δk0,δk0+1,δk0+2\delta^{k_0}, \delta^{k_0+1}, \delta^{k_0+2}δk0​,δk0​+1,δk0​+2 is 000 this no longer identifies the middle branch and the count 29N\tfrac29 N92​N fails, although the proposition remains true. The formalization defines I∗∗I_{**}I∗∗​ by branch indices (middle branch versus outer branches), which agrees with the paper whenever these three widths are positive. No positivity hypothesis is added to the goal.
  • Welcome contributions: a reusable library for regular scenario trees (first differing level, distance of paths), and the case analysis of milestone 4. The binary mission of this series needs the same lower-bound argument with the constant 2δk02\delta^{k_0}2δk0​.

Selected references

  • H. Heitsch, W. Römisch, Scenario Reduction Algorithms in Stochastic Programming, Computational Optimization and Applications 24 (2003), 187–206. https://doi.org/10.1023/A:1021805924152
  • J. Dupačová, N. Gröwe-Kuska, W. Römisch, Scenario reduction in stochastic programming: An approach using probability metrics, Mathematical Programming 95 (2003), 493–511. https://doi.org/10.1007/s10107-002-0331-0
9 thms3 active usersReviewed
🏆Completed
Operations ResearchOptimization·Captain: mikedeng1

Scenario Reduction Algorithms in Stochastic Programming II: The Minimal Reduction Distance of a Regular Binary Scenario TreeResearch Paper

Why exact reduction distances matter

Multistage stochastic programs are solved on a finite scenario tree, a discrete probability measure whose atoms are paths of a stochastic process. The size of the deterministic equivalent grows with the number of scenarios, so practitioners replace the original measure P=∑i=1NpiδωiP=\sum_{i=1}^N p_i\delta_{\omega_i}P=∑i=1N​pi​δωi​​ by a measure supported on n<Nn<Nn<N of its scenarios. Stability theory for stochastic programs (Dupačová, Gröwe-Kuska and Römisch, Math. Program. 95 (2003), doi:10.1007/s10107-002-0331-0) bounds the change of the optimal value by a probability metric between the two measures, which leads to the optimal scenario reduction problem: choose which N−nN-nN−n scenarios to delete so that this distance is smallest.

That problem is a set-covering problem and is NP-hard, and the algorithms that Heitsch and Römisch study in the same paper (backward reduction, fast forward selection) are heuristics without error guarantees. To test them one needs original measures whose optimal reduction distance is known exactly. Section 3 of Heitsch and Römisch, Scenario Reduction Algorithms in Stochastic Programming, Comput. Optim. Appl. 24 (2003) (doi:10.1023/A:1021805924152) supplies such instances: regular binary and ternary scenario trees, for which the minimal distance to any reduced tree with at least a fixed fraction of the scenarios is an explicit formula. This mission formalizes the binary case, Proposition 3.1.

Setting

Fix a horizon K∈NK\in\mathbb NK∈N and level parameters δ1,…,δK≥0\delta^1,\dots,\delta^K\ge0δ1,…,δK≥0, with δ0=0\delta^0=0δ0=0. A regular binary scenario tree has N=2KN=2^KN=2K scenarios. A scenario is determined by a branch ik∈{1,2}i_k\in\{1,2\}ik​∈{1,2} at every level k=1,…,Kk=1,\dots,Kk=1,…,K, and is the vector ωi=(ωi0,…,ωiK)∈RK+1\omega_i=(\omega_i^0,\dots,\omega_i^K)\in\mathbb R^{K+1}ωi​=(ωi0​,…,ωiK​)∈RK+1 with

ωik=∑j=0kδijj,δijj=(2ij−3) δj∈{−δj,+δj}.(19)\omega_i^k=\sum_{j=0}^k\delta^j_{i_j},\qquad \delta^j_{i_j}=(2i_j-3)\,\delta^j\in\{-\delta^j,+\delta^j\}.\tag{19}ωik​=j=0∑k​δij​j​,δij​j​=(2ij​−3)δj∈{−δj,+δj}.(19)

All scenarios start at the root ωi0=0\omega_i^0=0ωi0​=0 and carry probability pi=1/Np_i=1/Npi​=1/N. Scenarios are compared in the maximum norm ∥ω−ω~∥∞=max⁡k=0,…,K∣ωk−ω~k∣\|\omega-\tilde\omega\|_\infty=\max_{k=0,\dots,K}|\omega^k-\tilde\omega^k|∥ω−ω~∥∞​=maxk=0,…,K​∣ωk−ω~k∣.

Deleting the scenarios with indices in J⊂{1,…,N}J\subset\{1,\dots,N\}J⊂{1,…,N} and moving each deleted scenario's probability to a nearest kept scenario costs the reduction cost

DJ=∑i∈Jpimin⁡j∉J∥ωi−ωj∥∞,(8)D_J=\sum_{i\in J}p_i\min_{j\notin J}\|\omega_i-\omega_j\|_\infty,\tag{8}DJ​=i∈J∑​pi​j∈/Jmin​∥ωi​−ωj​∥∞​,(8)

which by Theorem 2.1 of the paper is the minimal Kantorovich-type distance between PPP and a measure supported on the kept scenarios. The minimal reduction distance for nnn kept scenarios is Dnmin=min⁡{DJ:#J=N−n}D^{min}_n=\min\{D_J:\#J=N-n\}Dnmin​=min{DJ​:#J=N−n}.

In the Lean development, scenarios are indexed by σ : Fin K → Fin 2 (Fin-index rrr is tree level r+1r+1r+1, value 000 is the branch −δ-\delta−δ, value 111 is +δ+\delta+δ), lev σ k is the branch at level kkk, scenario δ σ : Fin (K+1) → ℝ is ωσ\omega_\sigmaωσ​, and redCost δ J hJ is DJD_JDJ​.

Formalization targets

Goal: Proposition 3.1 (3/4-solution)

Let K≥3K\ge3K≥3, k0∈arg⁡min⁡1≤k≤Kδkk_0\in\arg\min_{1\le k\le K}\delta^kk0​∈argmin1≤k≤K​δk, k0≤K−2k_0\le K-2k0​≤K−2 and max⁡{δk0+1,δk0+2}≤2δk0\max\{\delta^{k_0+1},\delta^{k_0+2}\}\le2\delta^{k_0}max{δk0​+1,δk0​+2}≤2δk0​. Then any two distinct scenarios are at distance at least 2δk02\delta^{k_0}2δk0​; there is a set J∗J_*J∗​ of 34N\frac34N43​N scenarios each of which has a partner outside J∗J_*J∗​ at distance exactly 2δk02\delta^{k_0}2δk0​; and for every n∈Nn\in\mathbb Nn∈N with N4≤n<N\frac N4\le n<N4N​≤n<N

Dnmin=min⁡{DJ:#J=N−n}=N−nN 2δk0.(20)D^{min}_n=\min\{D_J:\#J=N-n\}=\frac{N-n}{N}\,2\delta^{k_0}.\tag{20}Dnmin​=min{DJ​:#J=N−n}=NN−n​2δk0​.(20)

Milestones

  1. Two scenarios that first differ at level lll are at distance ≥2δl≥2δk0\ge2\delta^l\ge2\delta^{k_0}≥2δl≥2δk0​.
  2. DJ≥N−nN2δk0D_J\ge\frac{N-n}{N}2\delta^{k_0}DJ​≥NN−n​2δk0​ for every JJJ with #J=N−n\#J=N-n#J=N−n.
  3. The index set I∗I_*I∗​ (branch at k0k_0k0​ opposite to the common branch at k0+1,k0+2k_0+1,k_0+2k0​+1,k0​+2) has #I∗=N/4\#I_*=N/4#I∗​=N/4, so #J∗=34N\#J_*=\frac34N#J∗​=43​N.
  4. Every j∈J∗j\in J_*j∈J∗​ has a partner i∈I∗i\in I_*i∈I∗​ with ∥ωi−ωj∥∞=2δk0\|\omega_i-\omega_j\|_\infty=2\delta^{k_0}∥ωi​−ωj​∥∞​=2δk0​.
  5. Example 4.1: for K=10K=10K=10 and the paper's parameters, Proposition 3.1 applies with k0=1k_0=1k0​=1 and Dnmin=N−nND^{min}_n=\frac{N-n}{N}Dnmin​=NN−n​ for 256≤n<1024256\le n<1024256≤n<1024.

Significance

The result. Proposition 3.1 gives the exact optimum of an NP-hard combinatorial problem on an explicit, parametrized family of instances of every size N=2KN=2^KN=2K. Section 4 of the paper uses it (Example 4.1, N=1024N=1024N=1024) as ground truth for the relative accuracy of backward reduction and fast forward selection. Without it, the quality of a heuristic reduction on a large tree could only be compared with other heuristics or with lower bounds.

The formalization. The proposition is proved in the paper; to our knowledge no machine-checked version exists. A formal proof certifies the benchmark values, and the statement also corrects the printed text in two places. First, "there are 34N\frac34N43​N distinct pairs … at distance exactly 2δk02\delta^{k_0}2δk0​" is false as an exact count (for K=3K=3K=3, δ=(1,1,1)\delta=(1,1,1)δ=(1,1,1) there are twenty such pairs, not six), so the goal states "at least", in the form the proof exhibits. Second, the paper's sign-based definition of I∗I_*I∗​ degenerates when some δk=0\delta^k=0δk=0, although the proposition still holds; the mission defines I∗I_*I∗​ by branch indices.

Difficulty

The lower bound is a direct computation. The content is the matching upper bound: a set JJJ of the prescribed size for which every deleted scenario has a kept scenario at the minimal possible distance. A natural first attempt pairs scenarios that differ only at level k0k_0k0​. That handles only half of the scenarios with a single partner each, and it cannot reach 34N\frac34N43​N deleted scenarios. Once scenarios differ at more than one level, their maximum-norm distance is a maximum of several partial sums, and keeping all of them at most 2δk02\delta^{k_0}2δk0​ is exactly where the hypothesis max⁡{δk0+1,δk0+2}≤2δk0\max\{\delta^{k_0+1},\delta^{k_0+2}\}\le2\delta^{k_0}max{δk0​+1,δk0​+2}≤2δk0​ enters. Without it, eq. (20) fails: for K=3K=3K=3, δ=(1,3,3)\delta=(1,3,3)δ=(1,3,3) and n=2n=2n=2 the true minimum is 52\frac5225​, not 32\frac3223​. The passage from n=N/4n=N/4n=N/4 to general n≥N/4n\ge N/4n≥N/4 also needs care: the deleted set must shrink while each remaining deleted scenario keeps its partner among the kept ones.

Formalization scope

  • The index type is Fin K → Fin 2, which has exactly 2K2^K2K elements. The paper's (K+1)(K+1)(K+1)-tuple has a level-0 entry with no choice, so it is dropped, and the vector ω\omegaω keeps its K+1K+1K+1 coordinates with ω0=0\omega^0=0ω0=0.
  • The parameters are δ : ℕ → ℝ, with δk≥0\delta^k\ge0δk≥0 and the arg min stated for k=1,…,Kk=1,\dots,Kk=1,…,K only. δk>0\delta^k>0δk>0 is not assumed, because the paper allows δk∈R+\delta^k\in\mathbb R_+δk∈R+​ and the proposition holds with zeros.
  • The cost is Mathlib's norm on Fin (K+1) → ℝ, which is the maximum norm, and pi=1/2Kp_i=1/2^Kpi​=1/2K is written out.
  • DJD_JDJ​ requires a nonempty set of kept scenarios, and its inner minimum is a finite Finset.inf'.
  • DnminD^{min}_nDnmin​ is stated with IsLeast over the set of attained values DJD_JDJ​, #J=N−n\#J=N-n#J=N−n, so both the lower bound and attainment are part of the goal. A proof of DJ≤N−nN2δk0D_{J}\le\frac{N-n}{N}2\delta^{k_0}DJ​≤NN−n​2δk0​ for a single exhibited JJJ, or a real infimum without attainment, does not prove the goal.
  • "N4≤n\frac N4\le n4N​≤n" is written 2K≤4n2^K\le4n2K≤4n, and 34N\frac34N43​N is 3⋅2K−23\cdot2^{K-2}3⋅2K−2.
  • The pairs claim is "at least 34N\frac34N43​N pairs", expressed as a set J∗J_*J∗​ of that size with a partner outside J∗J_*J∗​ for every member.
  • All hypotheses on k0k_0k0​ appear in the goal; dropping any of them makes (20) false.

Useful infrastructure: sup-norm lemmas for Fin n → ℝ (pi_norm_le_iff_of_nonneg, norm_le_pi_norm), Finset.inf' lemmas, and counting functions Fin K → Fin 2 with prescribed values (Fintype.card_fun, Fintype.card_pi). The tree and reduction-cost definitions are shared in spirit with the ternary-tree mission of this series (Proposition 3.2), and a proof whose structure transfers to d=3d=3d=3 is welcome. Contributions of proofs of the milestones individually, in any order, are welcome.

Selected references

  • H. Heitsch, W. Römisch, Scenario Reduction Algorithms in Stochastic Programming, Computational Optimization and Applications 24 (2003), 187–206. doi:10.1023/A:1021805924152
  • J. Dupačová, N. Gröwe-Kuska, W. Römisch, Scenario reduction in stochastic programming: An approach using probability metrics, Mathematical Programming 95 (2003), 493–511. doi:10.1007/s10107-002-0331-0
9 thms3 active usersReviewed
🏆Completed
Graph TheoryNumber TheoryTheoretical Computer Science·Captain: mikedeng1

Fast Algorithms for Finding Nearest Common Ancestors II: Nearest Common Ancestors in a Complete Binary Tree by Symmetric-Order ArithmeticResearch Paper

Motivation

The nearest common ancestor (nca) problem asks, for a fixed rooted tree and a sequence of vertex pairs (v,w)(v, w)(v,w), for the deepest vertex that is an ancestor of both. It is a basic step in suffix-tree string algorithms and is equivalent to range-minimum queries (Bender, Farach-Colton, 2000). Harel and Tarjan, Fast Algorithms for Finding Nearest Common Ancestors, SIAM J. Comput. 13 (1984) 338–355, gave the first algorithm answering each query on a static tree in constant time on a random-access machine after linear preprocessing.

Their construction reduces the general problem to the case of a complete binary tree, where §3 of the paper shows that nca queries can be answered "by direct calculation" on vertex numbers: multiplication, division, powers of two, the base-two logarithm and bitwise exclusive or. The later simplification of Schieber and Vishkin (1988) is built on the same in-order numbering of a complete binary tree. This mission formalizes that arithmetic core.

Timeline, as reviewed in the paper's §1 (pp. 338–340):

  • 1976: Aho, Hopcroft and Ullman (SIAM J. Comput. 5) give an O(n+mα(m+n,n))O(n + m\alpha(m+n, n))O(n+mα(m+n,n))-time off-line algorithm on a pointer machine, and for static trees a random-access algorithm with O(nlog⁡log⁡n)O(n \log\log n)O(nloglogn) preprocessing and O(log⁡log⁡n)O(\log\log n)O(loglogn) time per query.
  • 1976: van Leeuwen (unpublished report) gives an O(n+mlog⁡log⁡n)O(n + m \log\log n)O(n+mloglogn)-time algorithm for linking roots and static trees that runs on a pointer machine in O(n)O(n)O(n) space.
  • 1980: Harel (Proc. 21st FOCS) gives a preliminary version of the paper's results.
  • 1984: Harel and Tarjan prove that pointer machines need Ω(log⁡log⁡n)\Omega(\log\log n)Ω(loglogn) time per query on static trees (Theorem 1), and give the O(n)O(n)O(n)-preprocessing, O(1)O(1)O(1)-query random-access algorithm whose base case is the subject of this mission.

Setting

Fix d≥0d \ge 0d≥0 and let TTT be the complete binary tree of depth ddd. A vertex is identified with the path from the root to it, a word of at most ddd left or right turns; the root is the empty word and TTT has n=2d+1−1n = 2^{d+1} - 1n=2d+1−1 vertices. Following the paper's Appendix (pp. 354–355):

  • www is an ancestor of vvv (vvv a descendant of www) if the word www is a prefix of the word vvv; every vertex is its own ancestor. vvv and www are unrelated if neither is an ancestor of the other.
  • The depth of vvv is its distance to the root; its height h(v)h(v)h(v) is the length of the longest path from a leaf to vvv, which in TTT is d−depth⁡(v)d - \operatorname{depth}(v)d−depth(v).
  • nca⁡(v,w)\operatorname{nca}(v, w)nca(v,w) is the vertex of greatest depth that is an ancestor of both: the longest common prefix.

The vertices of TTT are numbered from 111 to nnn in symmetric order (in-order): at every vertex, first the left subtree, then the vertex, then the right subtree. sym(v)\mathrm{sym}(v)sym(v) is the number of vvv and sym−1(i)\mathrm{sym}^{-1}(i)sym−1(i) the vertex numbered iii. For d=4d = 4d=4 (Fig. 1 of the paper) the root is 161616, its children 888 and 242424, and the leaves 1,3,5,…,311, 3, 5, \dots, 311,3,5,…,31. i⊕ji \oplus ji⊕j denotes bitwise exclusive or and lg⁡\lglg the base-two logarithm.

Two procedures of §3 use only numbers, heights and ddd:

  • the nca depth algorithm: return d−h(v)d - h(v)d−h(v) if sym(w)∈[sym(v)−2h(v)+1,sym(v)+2h(v)−1]\mathrm{sym}(w) \in [\mathrm{sym}(v) - 2^{h(v)} + 1, \mathrm{sym}(v) + 2^{h(v)} - 1]sym(w)∈[sym(v)−2h(v)+1,sym(v)+2h(v)−1]; else d−h(w)d - h(w)d−h(w) if the same holds with v,wv, wv,w exchanged; else d−⌊lg⁡(sym(v)⊕sym(w))⌋d - \lfloor \lg(\mathrm{sym}(v) \oplus \mathrm{sym}(w)) \rfloord−⌊lg(sym(v)⊕sym(w))⌋;
  • the depth algorithm: given vvv and a depth d2≤depth⁡(v)d_2 \le \operatorname{depth}(v)d2​≤depth(v), with h=d−d2h = d - d_2h=d−d2​, return sym−1(2h+1⌊sym(v)/2h+1⌋+2h)\mathrm{sym}^{-1}\bigl(2^{h+1}\lfloor \mathrm{sym}(v)/2^{h+1}\rfloor + 2^h\bigr)sym−1(2h+1⌊sym(v)/2h+1⌋+2h).

Formalization targets

Goal: the nca algorithm is correct

The algorithm to compute nca⁡(v,w)\operatorname{nca}(v,w)nca(v,w) (p. 342) runs the nca depth algorithm to obtain d0d_0d0​ and then the depth algorithm on (v,d0)(v, d_0)(v,d0​). The goal states that it returns the nearest common ancestor: for all vertices v,wv, wv,w of TTT, with d0d_0d0​ the output of the nca depth algorithm and h=d−d0h = d - d_0h=d−d0​,

sym(nca⁡(v,w))=2h+1⌊sym(v)2h+1⌋+2h.\mathrm{sym}(\operatorname{nca}(v,w)) = 2^{h+1}\left\lfloor \frac{\mathrm{sym}(v)}{2^{h+1}} \right\rfloor + 2^h .sym(nca(v,w))=2h+1⌊2h+1sym(v)​⌋+2h.

Milestones

In the order the paper uses them:

  1. Numbers at height hhh (p. 341): the vertices of height hhh are numbered 2h,3⋅2h,5⋅2h,…2^h, 3\cdot 2^h, 5\cdot 2^h, \dots2h,3⋅2h,5⋅2h,… from left to right.
  2. Lemma 1: h(v)h(v)h(v) is the largest hhh with 2h∣sym(v)2^h \mid \mathrm{sym}(v)2h∣sym(v).
  3. Lemma 2: the descendants of vvv are the vertices numbered in [sym(v)−2h(v)+1,sym(v)+2h(v)−1][\mathrm{sym}(v) - 2^{h(v)} + 1, \mathrm{sym}(v) + 2^{h(v)} - 1][sym(v)−2h(v)+1,sym(v)+2h(v)−1].
  4. Lemma 3: for a height h≥h(v)h \ge h(v)h≥h(v), the height-hhh ancestor of vvv has number 2h+1⌊sym(v)/2h+1⌋+2h2^{h+1}\lfloor \mathrm{sym}(v)/2^{h+1}\rfloor + 2^h2h+1⌊sym(v)/2h+1⌋+2h.
  5. Lemma 4: for unrelated v,wv, wv,w,
h(nca⁡(v,w))=⌊lg⁡(sym(v)⊕sym(w))⌋.h(\operatorname{nca}(v,w)) = \lfloor \lg(\mathrm{sym}(v) \oplus \mathrm{sym}(w)) \rfloor .h(nca(v,w))=⌊lg(sym(v)⊕sym(w))⌋.
  1. The nca depth algorithm returns depth⁡(nca⁡(v,w))\operatorname{depth}(\operatorname{nca}(v,w))depth(nca(v,w)).
  2. The depth algorithm returns the number of the depth-d2d_2d2​ ancestor of vvv.

Two supporting statements pin the definitions to the paper: sym\mathrm{sym}sym is a bijection onto {1,…,2d+1−1}\{1, \dots, 2^{d+1} - 1\}{1,…,2d+1−1}, and the longest common prefix is the deepest common ancestor.

Significance

The constant-time nca computation on complete binary trees is the base case of the whole paper: §§4–5 embed an arbitrary tree into a moderately sized complete binary tree through a compressed tree and a balanced binary tree, and every query ends with the arithmetic of §3. The same idea, that in-order numbers encode ancestry in their low-order bits, underlies the Schieber–Vishkin algorithm. Lemma 1 identifies the height with the 2-adic valuation of the number, and Lemma 4 identifies the nca height with the position of the highest differing bit.

The results are proved in the paper, with the proofs left as "easy to verify". No machine-checked version of this numbering or of these four lemmas is known to exist in Mathlib or on this platform. A formal development supplies proofs of the four lemmas and the two algorithms, and a reusable library connecting in-order ranks of a complete binary tree to binary arithmetic (Nat.log, bitwise xor, 2-adic valuation).

Difficulty

The numbering is defined by a traversal order, while the lemmas speak about divisibility, floor division and exclusive or. The work lies in connecting the rank of a vertex in symmetric order to its closed form (2j+1)⋅2h(v)(2j+1)\cdot 2^{h(v)}(2j+1)⋅2h(v), where jjj is its left-to-right position. That counting argument sums the sizes of the subtrees that precede vvv and is where most of the effort goes. Lemma 4 then needs the observation that two unrelated numbers agree in all bits above the height of their nca and differ in the bit at that height. This is a statement about Nat.testBit of the exclusive or, and it fails for related vertices. The algorithm statements add a case analysis whose first two cases overlap when v=wv = wv=w.

Formalization scope

  • A vertex of the tree of depth ddd is a List Bool of length at most ddd (false = left). Ancestry is the prefix relation, nca⁡\operatorname{nca}nca the longest common prefix, depth the length, and height d−lengthd - \text{length}d−length. None of these structural notions uses the numbering.
  • sym(v)\mathrm{sym}(v)sym(v) is the number of vertices whose in-order sort key is lexicographically at most that of vvv. The key is the path with left ↦0\mapsto 0↦0, right ↦2\mapsto 2↦2, followed by 111. The numbering is not defined by the closed form or by a recursion on numbers: a definition of that kind would make the height-hhh numbering and Lemma 1 immediate and move the content of the mission into an uncheckable definition.
  • ⌊lg⁡x⌋\lfloor \lg x \rfloor⌊lgx⌋ is Nat.log 2 x, which agrees for x≥1x \ge 1x≥1. ⊕\oplus⊕ is ^^^ on N\mathbb NN, and floor division is / on N\mathbb NN.
  • Interval tests a∈[b−c+1,b+c−1]a \in [b - c + 1, b + c - 1]a∈[b−c+1,b+c−1] are written additively as b+1≤a+cb + 1 \le a + cb+1≤a+c and a+1≤b+ca + 1 \le b + ca+1≤b+c. The subtractions d−h(v)d - h(v)d−h(v) and d−d2d - d_2d−d2​ never truncate for heights and depths of vertices.
  • Lemma 3 states explicitly that h≤dh \le dh≤d ("hhh is a height") and that the ancestor exists. The depth algorithm assumes d2≤depth⁡(v)d_2 \le \operatorname{depth}(v)d2​≤depth(v), as printed.
  • sym−1\mathrm{sym}^{-1}sym−1 is not defined as a function. The goal and the depth algorithm state that a vertex has the computed number if and only if it is the nearest common ancestor (respectively the ancestor at depth d2d_2d2​), which says that sym−1\mathrm{sym}^{-1}sym−1 of that number is that vertex.
  • The O(1)O(1)O(1) time bounds are not formalized, since the random-access machine model is out of scope.

Proofs of any milestone are welcome.

Selected references

  • D. Harel and R. E. Tarjan, Fast Algorithms for Finding Nearest Common Ancestors, SIAM J. Comput. 13(2) (1984), 338–355. https://doi.org/10.1137/0213024
  • A. V. Aho, J. E. Hopcroft and J. D. Ullman, On Finding Lowest Common Ancestors in Trees, SIAM J. Comput. 5(1) (1976), 115–132. https://doi.org/10.1137/0205011
  • B. Schieber and U. Vishkin, On Finding Lowest Common Ancestors: Simplification and Parallelization, SIAM J. Comput. 17(6) (1988), 1253–1262. https://doi.org/10.1137/0217079
  • M. A. Bender and M. Farach-Colton, The LCA Problem Revisited, LATIN 2000, LNCS 1776, 88–94. https://doi.org/10.1007/10719839_9
11 thms3 active usersReviewed
🏆Completed
Complexity TheoryTheoretical Computer Science·Captain: mikedeng1

Fast Algorithms for Finding Nearest Common Ancestors I: A Lower Bound for Pointer MachinesResearch Paper

Motivation

The nearest common ancestor problem asks, for a rooted tree and two of its vertices xxx and yyy, for the deepest vertex that is an ancestor of both, written nca⁡(x,y)\operatorname{nca}(x,y)nca(x,y). It appears as a subroutine in string algorithms (suffix trees), in graph algorithms (path queries, dominators) and in the analysis of set-union structures. Aho, Hopcroft and Ullman (On finding lowest common ancestors in trees, SIAM J. Comput. 5, 1976) posed it in several versions, differing in how much the tree changes while the queries are answered.

Harel and Tarjan (Fast Algorithms for Finding Nearest Common Ancestors, SIAM J. Comput. 13, 1984) study how the answer depends on the machine model. On a random-access machine, where addresses can be computed arithmetically, they preprocess a static tree in linear time and then answer each query in constant time. On a pointer machine, where memory can only be traversed by following pointers, their §2 shows that no representation of the tree allows constant-time queries: Ω(log⁡log⁡n)\Omega(\log\log n)Ω(loglogn) steps are needed in the worst case. This mission formalizes that lower bound.

Timeline.

  • 1976: Aho, Hopcroft and Ullman give an O(log⁡log⁡n)O(\log\log n)O(loglogn)-per-query random-access algorithm for static trees.
  • 1976: van Leeuwen (Finding lowest common ancestors in less than logarithmic time, unpublished report, reference [14] of Harel–Tarjan) gives an O(n+mlog⁡log⁡n)O(n + m\log\log n)O(n+mloglogn) algorithm for static trees that runs on a pointer machine.
  • 1984: Harel and Tarjan prove Theorem 1, the matching Ω(log⁡log⁡n)\Omega(\log\log n)Ω(loglogn) lower bound for pointer machines, and the O(1)O(1)O(1)-per-query random-access algorithm.

Setting

A pointer machine stores its data as a collection of nodes. Each node has a fixed number of fields, and a pointer field holds either a node or nil. The machine can follow a pointer from a node it holds, but it cannot compute an address. Following Harel and Tarjan (p. 340), a static tree is represented by a list structure: each tree vertex vvv is represented by a single node rep(v)\mathrm{rep}(v)rep(v), distinct vertices by distinct nodes, and the structure may contain further nodes that represent no vertex. Each node has two pointer fields; the paper reduces any fixed number of pointers to two "without loss of generality". To answer a query on xxx and yyy, the machine is given pointers to rep(x)\mathrm{rep}(x)rep(x) and rep(y)\mathrm{rep}(y)rep(y) and must return a pointer to rep(nca⁡(x,y))\mathrm{rep}(\operatorname{nca}(x,y))rep(nca(x,y)).

The node bbb is accessible from aaa in jjj steps or less if it can be reached from aaa by following at most jjj pointers. Write accj(a)\mathrm{acc}_j(a)accj​(a) for the set of such nodes. A run of ttt steps from input nodes aaa and bbb is a sequence n1,…,ntn_1,\dots,n_tn1​,…,nt​ in which each nsn_sns​ is the content of a pointer field of a node among a,b,n1,…,ns−1a, b, n_1, \dots, n_{s-1}a,b,n1​,…,ns−1​. A query with answer ccc is answered in kkk steps if some run of at most kkk steps holds ccc.

The tree is the complete binary tree TTT of height hhh, with n=2hn = 2^hn=2h leaves. Its vertices are the words w∈{0,1}≤hw \in \{0,1\}^{\le h}w∈{0,1}≤h (the root-to-vertex path, 000 = left), the ancestors of vvv are its prefixes, the depth of www is ∣w∣|w|∣w∣ and its height is h−∣w∣h - |w|h−∣w∣. Then nca⁡(x,y)\operatorname{nca}(x,y)nca(x,y) is the longest common prefix of xxx and yyy. Logarithms are binary: lg⁡=log⁡2\lg = \log_2lg=log2​.

Formalization targets

Goal: Theorem 1 in the explicit form of its proof

For every hhh, every node type, every list structure with two pointers per node and every injective representation rep\mathrm{rep}rep of the complete binary tree with n=2hn = 2^hn=2h leaves: if every nca query on two leaves is answered in kkk steps, then

k>lg⁡lg⁡n−2.k > \lg\lg n - 2 .k>lglgn−2.

This is the last display of the proof (p. 341), which is what the paper's Ω(log⁡log⁡n)\Omega(\log\log n)Ω(loglogn) means. The representation is arbitrary and is quantified before the query bound, so the bound holds for every representation.

Milestones: the claims of the proof

  1. A query answered in kkk steps reaches only nodes in acck(rep(x))∪acck(rep(y))\mathrm{acc}_k(\mathrm{rep}(x)) \cup \mathrm{acc}_k(\mathrm{rep}(y))acck​(rep(x))∪acck​(rep(y)).
  2. ∣accj(a)∣≤2j+1−1|\mathrm{acc}_j(a)| \le 2^{j+1} - 1∣accj​(a)∣≤2j+1−1 for every node aaa.
  3. With AxA_xAx​ the set of vertices whose nodes are accessible from rep(x)\mathrm{rep}(x)rep(x) in kkk steps or less: for a nonleaf www with children u,vu, vu,v, either w∈Axw \in A_xw∈Ax​ for every leaf xxx below uuu, or w∈Ayw \in A_yw∈Ay​ for every leaf yyy below vvv.
  4. A vertex of height i≥1i \ge 1i≥1 lies in AxA_xAx​ for at least 2i−12^{i-1}2i−1 leaves xxx.
∑x∈L∣Ax∣≥n2lg⁡n,\sum_{x \in L} |A_x| \ge \frac{n}{2}\lg n,x∈L∑​∣Ax​∣≥2n​lgn,

where LLL is the set of leaves.

Significance

The result. Theorem 1 shows that van Leeuwen's pointer-machine algorithm for static trees is optimal up to a constant factor, and that the constant-time queries of the paper's §§3–5 depend on address arithmetic. It is an early nontrivial lower bound for pointer machines on a natural problem; the paper compares it with Tarjan's lower bound for disjoint-set union on a pointer machine (J. Comput. System Sci. 18, 1979).

Formalizing it. The theorem is proved in the paper; as far as could be determined no machine-checked version exists, and Mathlib has no pointer-machine model. The mission produces an explicit, reusable definition of pointer-machine runs and accessibility together with a complete proof of the explicit bound. A formal model of this kind is the precondition for stating any other pointer-machine lower bound.

Difficulty

The statement must hold for every representation, including structures with many auxiliary nodes and arbitrary pointers between tree nodes. Arguing about one natural representation, such as parent pointers, where a leaf is far from its ancestors, says nothing about other representations: a structure with shortcut pointers or auxiliary nodes may bring some ancestors close to some leaves, and the bound must survive every such choice. In the formal setting the counting also has to handle overlaps: nodes reachable from several leaves, nodes that represent no vertex, and pointer cycles.

Formalization scope

  • Model. Nodes form an arbitrary type N, not necessarily finite. ptr : N → Fin 2 → Option N gives the two pointer fields (none = nil), and rep : Vertex h → N is required to be injective. acc ptr j a is defined recursively. Run ptr a b t held is an inductive predicate for runs of ttt steps, AnsweredIn asks for some run of at most kkk steps holding the answer, and AnswersLeafQueriesIn ptr rep k requires this for every pair of leaves.
  • Conventions.
    • Two pointer fields per node, as the paper's "without loss of generality" reduction allows; the reduction itself is not formalized.
    • Only queries on two leaves are assumed answerable. This is weaker than all queries, so the theorem is at least as strong as the paper's.
    • Time is counted as pointer-following steps. Mutation of the structure during a query and non-pointer fields are not modelled: neither lets the machine hold a node it has not reached by following pointers. The clause "the algorithm remembers nothing between queries" is built into the static structure.
    • Vertex h is {s : List Bool // s.length ≤ h}, nca is the longest common prefix, and a separate theorem identifies it with the Appendix's deepest common ancestor. n=2hn = 2^hn=2h counts leaves, not vertices.
    • lg⁡\lglg is Real.logb 2. For h=0h = 0h=0 Lean's log⁡20=0\log_2 0 = 0log2​0=0 gives the true statement k>−2k > -2k>−2; for h≥1h \ge 1h≥1, lg⁡lg⁡n=log⁡2h\lg\lg n = \log_2 hlglgn=log2​h.
    • Cardinalities in the milestones are Set.encard in N∪{∞}\mathbb N \cup \{\infty\}N∪{∞}, so finiteness is part of each claim. Divisions are cleared: h 2h≤2∑x∣Ax∣h\,2^h \le 2\sum_x |A_x|h2h≤2∑x​∣Ax​∣.
  • Ruling out trivial formalizations. The hypothesis AnswersLeafQueriesIn is satisfiable: the parent-pointer representation answers every leaf query in hhh steps. If rep were not injective, a constant rep would answer every query in zero steps, so injectivity is kept in the goal. The milestones do not need it and do not assume it.
  • Infrastructure. The goal needs finite-set counting over the leaves of the complete binary tree and a double count over heights. The run and accessibility definitions are reusable for other pointer-machine arguments. Proofs of the milestones, and of the ℕ form h<2k+2h < 2^{k+2}h<2k+2 that the goal reduces to, are welcome.

Selected references

  • D. Harel, R. E. Tarjan, Fast Algorithms for Finding Nearest Common Ancestors, SIAM J. Comput. 13(2):338–355, 1984. https://doi.org/10.1137/0213024
  • A. V. Aho, J. E. Hopcroft, J. D. Ullman, On finding lowest common ancestors in trees, SIAM J. Comput. 5(1):115–132, 1976. https://doi.org/10.1137/0205011
  • A. Schönhage, Storage modification machines, SIAM J. Comput. 9(3):490–508, 1980. https://doi.org/10.1137/0209036
  • R. E. Tarjan, A class of algorithms which require nonlinear time to maintain disjoint sets, J. Comput. System Sci. 18(2):110–127, 1979. https://doi.org/10.1016/0022-0000(79)90042-4
8 thms3 active usersReviewed
🏆Completed
Linear OptimizationOperations ResearchOptimization·Captain: mikedeng1

Validation of Subgradient Optimization II: A Unique Optimal Assignment Makes the Dual Optimal Set Full-DimensionalResearch Paper

Why the assignment dual matters

The subgradient method maximizes a concave, piecewise-linear function w(π)=min⁡k{ck+π⋅vk}w(\pi)=\min_k\{c_k+\pi\cdot v_k\}w(π)=mink​{ck​+π⋅vk​} by moving along a subgradient vkv_kvk​ of an active piece with a prescribed step. Held, Wolfe and Crowder's 1974 paper Validation of subgradient optimization tested the method on three families of Lagrangean duals from combinatorial optimization — the assignment problem, a relaxation of the travelling salesman problem in the style of Held and Karp, and multicommodity flows — and gave the first systematic account of when the method works in practice.

On randomly generated assignment problems of order n≤30n\le 30n≤30 the authors observed that the method usually did not merely converge: it stopped, after finitely many steps, at an iterate whose subgradient was exactly zero. Their explanation is a structural fact about the assignment dual, Theorem 3.1 of the paper: when the optimal assignment is unique — the typical case for random integer costs — the set of optimal dual prices has full dimension nnn, so a sequence of steps of decreasing length can land inside it. This mission formalizes that theorem and the steps of its proof.

Setting

There are nnn men and nnn jobs, and a real n×nn\times nn×n cost matrix A=(air)A=(a_{ir})A=(air​): aira_{ir}air​ is the cost for which man iii does job rrr. A one-to-one assignment is a permutation σ\sigmaσ of {1,…,n}\{1,\dots,n\}{1,…,n}, where σ(r)\sigma(r)σ(r) is the man doing job rrr; its cost is ∑raσ(r) r\sum_r a_{\sigma(r)\,r}∑r​aσ(r)r​. The assignment problem (3.1) asks for a permutation of minimal cost; the assignment is unique if exactly one permutation attains that minimum.

The linear relaxation of (3.1), over doubly stochastic matrices x=(xir)x=(x_{ir})x=(xir​), has the dual linear program (3.2), max⁡{∑iπi+∑rρr:πi+ρr≤air}\max\{\sum_i\pi_i+\sum_r\rho_r : \pi_i+\rho_r\le a_{ir}\}max{∑i​πi​+∑r​ρr​:πi​+ρr​≤air​}. For fixed prices π∈Rn\pi\in\mathbb R^nπ∈Rn on the men the best ρ\rhoρ is ρr=min⁡s[asr−πs]\rho_r=\min_s[a_{sr}-\pi_s]ρr​=mins​[asr​−πs​], which leaves the dual function (3.3)

w(π)=∑i=1nπi+∑r=1nmin⁡s [asr−πs],w(\pi)=\sum_{i=1}^n\pi_i+\sum_{r=1}^n\min_s\,[a_{sr}-\pi_s],w(π)=i=1∑n​πi​+r=1∑n​smin​[asr​−πs​],

the inner minimum being over the men sss for each job rrr. The optimal set is Ω={π:w(π′)≤w(π) for all π′}\Omega=\{\pi : w(\pi')\le w(\pi)\ \text{for all }\pi'\}Ω={π:w(π′)≤w(π) for all π′}.

To put www in the form min⁡k{ck+π⋅vk}\min_k\{c_k+\pi\cdot v_k\}mink​{ck​+π⋅vk​} the paper uses assignments in a weaker sense: arbitrary functions A:{1,…,n}→{1,…,n}A:\{1,\dots,n\}\to\{1,\dots,n\}A:{1,…,n}→{1,…,n}, nnn^nnn of them, with cost cA=∑raA(r) rc_A=\sum_r a_{A(r)\,r}cA​=∑r​aA(r)r​ and vector (vA)i=1−#{r:A(r)=i}(v_A)_i=1-\#\{r:A(r)=i\}(vA​)i​=1−#{r:A(r)=i} (3.4). The subgradient step raises the price of a man assigned no job and lowers the price of a man assigned several; vA=0v_A=0vA​=0 exactly when AAA is a permutation.

In the Lean development these are assignCost, assignVec, IsOptimalAssignment, w and optSet in the namespace HeldWolfeCrowder.Assignment.

Formalization targets

Goal: Theorem 3.1 (p. 70)

If the assignment problem has a unique optimal permutation, then

dim⁡aff⁡ Ω=n.\dim\operatorname{aff}\,\Omega=n .dimaffΩ=n.

The hypothesis is uniqueness among permutations; the conclusion is the dimension of the affine hull of the optimal set.

Milestones, in the order the proof uses them

  1. Eq. (3.4): w(π)=min⁡A{cA+∑iπi(vA)i}w(\pi)=\min_A\{c_A+\sum_i\pi_i(v_A)_i\}w(π)=minA​{cA​+∑i​πi​(vA​)i​} over all nnn^nnn assignments AAA.
  2. §3, Eqs. (3.1)–(3.3): www attains its maximum, and max⁡w\max wmaxw equals the cost of an optimal permutation.
  3. Eq. (3.5): if σ\sigmaσ is the unique optimal permutation, some maximizer πˉ\bar\piπˉ of www has, for every job rrr, the minimum min⁡s[asr−πˉs]\min_s[a_{sr}-\bar\pi_s]mins​[asr​−πˉs​] attained only at s=σ(r)s=\sigma(r)s=σ(r).
  4. Eq. (3.6): for an optimal permutation σ\sigmaσ, the set Π={π:air−πi>aσ(r) r−πσ(r) for all r, i≠σ(r)}\Pi=\{\pi : a_{ir}-\pi_i>a_{\sigma(r)\,r}-\pi_{\sigma(r)}\ \text{for all } r,\ i\ne\sigma(r)\}Π={π:air​−πi​>aσ(r)r​−πσ(r)​ for all r, i=σ(r)} is convex and open, v=0v=0v=0 on it, and Π⊆Ω\Pi\subseteq\OmegaΠ⊆Ω.

Significance

The theorem turns an empirical observation into a statement about the problem: finite termination of the subgradient method on assignment problems is a property of the dual, not luck. Since www is unchanged by adding the same constant to every price, Ω\OmegaΩ always contains a line; Theorem 3.1 says that, under uniqueness, it is as large as it can be. The paper (p. 70) cites the argument of its Section 2 that, with a full-dimensional optimal set, termination of the method is "nearly certain".

The result is proved in the paper; none of it is known to be machine-checked. What the formalization adds is a checked link between three classical ingredients: the integrality of the assignment polytope (Birkhoff–von Neumann, which Mathlib has as doublyStochastic_eq_convexHull_permMatrix), linear-programming duality, and strict complementary slackness, which neither Mathlib nor the platform has in the form needed. The piecewise-linear representation (3.4) is reusable wherever the assignment dual appears as a Lagrangean subproblem.

Difficulty

The inclusion Π⊆Ω\Pi\subseteq\OmegaΠ⊆Ω is elementary; the substance is that Π\PiΠ is nonempty. The obvious candidate — any optimal dual solution — fails: an optimal π\piπ may leave ties asr−πs=aσ(r) r−πσ(r)a_{sr}-\pi_s=a_{\sigma(r)\,r}-\pi_{\sigma(r)}asr​−πs​=aσ(r)r​−πσ(r)​ for some s≠σ(r)s\ne\sigma(r)s=σ(r), so it sits on the boundary of Ω\OmegaΩ and shows nothing about dimension. What is needed is an optimal price vector with all these inequalities strict at once, and uniqueness of the optimal permutation is a statement about the primal side only; transferring it to the dual side goes through the linear relaxation (3.1), whose uniqueness is not the hypothesis, and through a strict complementarity property that is not available in Mathlib or on the platform.

Formalization scope

Men and jobs are both Fin n; the costs are a : Matrix (Fin n) (Fin n) ℝ with a i r the cost of man i on job r; prices are π : Fin n → ℝ (no inner product or norm is needed, so no EuclideanSpace). The inner minimum of (3.3) is Finset.univ.inf' over the men, well defined for every n. One-to-one assignments are Equiv.Perm (Fin n) with σ r the man doing job r, so the orientation of the matrix matches (3.3); arbitrary assignments are functions Fin n → Fin n. "Of dimension nnn" is Module.finrank ℝ (vectorSpan ℝ (optSet a)) = n. The page prints the index condition of (3.6) as "i≠ri\ne ri=r"; the formalization uses i≠σ(r)i\ne\sigma(r)i=σ(r), which is what the argument requires. The case n=0n=0n=0 is allowed and trivial.

A statement asserting only that Ω\OmegaΩ is nonempty, or that it has dimension at least one, is not this theorem: both hold for every cost matrix, the second because Ω\OmegaΩ is invariant under adding a constant to all prices. The goal requires the full value nnn, and its hypothesis is uniqueness of the optimal permutation, not of the optimal linear-programming solution.

A complete development needs: the assignment linear program and its integrality (Mathlib's Birkhoff–von Neumann theorem), weak and strong duality between (3.1) and (3.2) or directly max⁡w=min⁡σcσ\max w=\min_\sigma c_\sigmamaxw=minσ​cσ​, and a strict complementarity statement for this primal–dual pair; the last two are reusable beyond this mission. Contributions of any of these, and of alternative arguments for (3.5) that avoid strict complementary slackness, are welcome.

Selected references

  • M. Held, P. Wolfe, H. P. Crowder, Validation of subgradient optimization, Mathematical Programming 6 (1974) 62–88. https://doi.org/10.1007/BF01580223
  • M. Held, R. M. Karp, The traveling-salesman problem and minimum spanning trees: Part II, Mathematical Programming 1 (1971) 6–25. https://doi.org/10.1007/BF01584070
  • H. W. Kuhn, The Hungarian method for the assignment problem, Naval Research Logistics Quarterly 2 (1955) 83–97. https://doi.org/10.1002/nav.3800020109
  • A. J. Goldman, A. W. Tucker, Theory of linear programming, in H. W. Kuhn, A. W. Tucker (eds.), Linear Inequalities and Related Systems, Annals of Mathematics Studies 38, Princeton University Press, 1956, 53–97.
  • Mathlib, Mathlib/Analysis/Convex/Birkhoff.lean (Birkhoff–von Neumann theorem, doublyStochastic_eq_convexHull_permMatrix). https://github.com/leanprover-community/mathlib4/blob/master/Mathlib/Analysis/Convex/Birkhoff.lean
6 thms3 active usersReviewed
Complexity TheoryOperations ResearchOptimization+1·Captain: mikedeng1

A Threshold of ln n for Approximating Set Cover II: The Inapproximability of Max k-CoverResearch Paper

Motivation

Max kkk-cover is the basic coverage problem of combinatorial optimization. The input is a collection of subsets of a finite ground set and a number kkk; the task is to choose kkk subsets that together cover as many points as possible. It models facility and sensor placement, the selection of a small committee or feature set representing a population, and budgeted versions of set cover. It is also the prototype of maximizing a monotone submodular function under a cardinality constraint.

The greedy algorithm covers at least a 1−1/e≈0.6321-1/e\approx 0.6321−1/e≈0.632 fraction of the optimum. This bound goes back to Hochbaum and Pathria and, for general submodular functions, to Nemhauser, Wolsey and Fisher (1978). For two decades it was not known whether a polynomial-time algorithm could do better. Uriel Feige answered the question in A Threshold of ln n for Approximating Set Cover (J. ACM 45(4), 1998, pp. 634–652, doi:10.1145/285055.285059), Section 5. His Theorem 5.3 (p. 648) states: "For any ϵ>0\epsilon > 0ϵ>0, max kkk-cover cannot be approximated in polynomial time within a ratio of (1−1/e+ϵ)(1 - 1/e + \epsilon)(1−1/e+ϵ), unless P=NPP = NPP=NP." Together with the greedy bound, it makes 1−1/e1-1/e1−1/e the exact approximation threshold of max kkk-cover.

Timeline:

  • 1978: Nemhauser, Wolsey and Fisher prove the greedy 1−1/e1-1/e1−1/e bound for monotone submodular maximization.
  • 1992: Arora, Lund, Motwani, Sudan and Szegedy prove the PCP theorem. With Papadimitriou–Yannakakis (1991) it gives Theorem 2.1.1 of the paper: MAX 3SAT-B has a constant gap unless P = NP.
  • 1994: Lund and Yannakakis introduce partition-system reductions from multi-prover proof systems to set cover.
  • 1995: Raz proves the parallel repetition theorem (Theorem 2.2.2 of the paper).
  • 1998: Feige proves the ln n threshold for set cover (the subject of mission I of this series) and the 1−1/e1-1/e1−1/e threshold for max kkk-cover.

Setting

An instance consists of nnn points {0,…,n−1}\{0,\dots,n-1\}{0,…,n−1}, a list of subsets S1,…,SsS_1,\dots,S_sS1​,…,Ss​ of the points, and a number kkk. Its value opt\mathrm{opt}opt is the largest number of points covered by at most kkk of the sets. Instances are written over a three-letter alphabet:

  • nnn in unary;
  • each set as its characteristic bit-vector;
  • kkk in unary.

Following p. 648, a polynomial-time algorithm approximates max kkk-cover within a ratio δ\deltaδ if on every input it outputs a number vvv with

δ⋅opt≤v≤opt.\delta\cdot\mathrm{opt}\le v\le\mathrm{opt}.δ⋅opt≤v≤opt.

The algorithm need not name the sets. This is the non-constructive notion of approximation.

The proof is a reduction from the MAX 3SAT-5 problem. A 3CNF-5 formula has exactly three literals per clause, over three distinct variables, and every variable occurs in exactly five clauses. The reduction goes through a kkk-prover proof system for such a formula φ\varphiφ with MMM clauses:

  • The verifier picks ℓ\ellℓ clauses at random, and a distinguished variable in each; there are R=(3M)ℓR=(3M)^\ellR=(3M)ℓ random strings rrr.
  • Each prover PiP_iPi​ is attached to a code word of length ℓ\ellℓ and weight ℓ/2\ell/2ℓ/2; distinct words are at Hamming distance at least ℓ/3\ell/3ℓ/3.
  • On coordinate jjj, prover PiP_iPi​ receives the clause if its bit is 1, and the distinguished variable if its bit is 0.
  • Answers are satisfying assignments of the received clauses and bits for the received variables.
  • Two provers are consistent if they assign the same values to the distinguished variables. The verifier weakly accepts if some pair of distinct provers is consistent, and strongly accepts if every pair is.

The max k′k'k′-cover instance of §5 attaches to every random string rrr a copy BrB_rBr​ of the explicit partition system. Its points are the vectors in {0,…,k−1}L\{0,\dots,k-1\}^L{0,…,k−1}L with L=2ℓL=2^\ellL=2ℓ, so m=kLm=k^Lm=kL. Its LLL partitions are labelled by the ℓ\ellℓ-bit strings, and each splits the points by the value of one coordinate. There are N=mRN=mRN=mR points in all. For each prover iii, question qqq and answer aaa, the set S(q,a,i)S_{(q,a,i)}S(q,a,i)​ collects, for every rrr on which PiP_iPi​ receives qqq, the iiith part of the partition of BrB_rBr​ labelled by the values that aaa gives to the distinguished variables of rrr. The budget is k′=kQk'=kQk′=kQ, where QQQ is the number of questions a single prover can receive.

Formalization targets

Goal: Theorem 5.3

∀ε>0:max k-cover is approximable within 1−1e+ε ⟹ P=NP,\forall\varepsilon>0:\quad \text{max } k\text{-cover is approximable within } 1-\tfrac1e+\varepsilon \ \Longrightarrow\ \mathrm{P}=\mathrm{NP},∀ε>0:max k-cover is approximable within 1−e1​+ε ⟹ P=NP,

conditional on the two cited results below. The ratio is left free (any ε>0\varepsilon>0ε>0), so the goal records the shape of the threshold and not a particular constant.

Milestones

  • Proposition 2.1.2 (p. 640): for some ε>0\varepsilon>0ε>0 it is NP-hard to distinguish satisfiable 3CNF-5 formulas from those in which at most a (1−ε)(1-\varepsilon)(1−ε)-fraction of the clauses can be satisfied simultaneously.
  • Lemma 2.3.1 (p. 643): a satisfiable φ\varphiφ admits a strategy that always strongly accepts; on a far-from-satisfiable φ\varphiφ the weak acceptance probability is at most k2 2−cℓk^2\,2^{-c\ell}k22−cℓ.
  • Coverage of the explicit partition system (p. 649): jjj subsets from pairwise different partitions cover exactly (1−(1−1/k)j)m(1-(1-1/k)^j)m(1−(1−1/k)j)m points.
  • Proposition 5.4 (p. 649): if at most kQkQkQ sets cover a (1−1/e+ε)(1-1/e+\varepsilon)(1−1/e+ε)-fraction of the points, then at least an ε/3\varepsilon/3ε/3-fraction of the random strings are good. Here rrr is good if wr≤3k/εw_r\le3k/\varepsilonwr​≤3k/ε sets meet BrB_rBr​ and two of them from different provers lie in the same partition.
  • Decoding (p. 649): such a covering yields a strategy that weakly accepts with probability at least (ε/3)(ε/3k)2(\varepsilon/3)(\varepsilon/3k)^2(ε/3)(ε/3k)2.
  • Gap (p. 649): a satisfiable formula gives a cover of all NNN points by kQkQkQ sets. If at most a (1−ε′)(1-\varepsilon')(1−ε′)-fraction of the clauses are satisfiable, kQkQkQ sets cover at most (1−1/e+g(k))N(1-1/e+g(k))N(1−1/e+g(k))N points, where g(k)→0g(k)\to0g(k)→0, for all large ℓ\ellℓ.
  • Proposition 5.1 (p. 647): every greedy run covers at least (1−1/e) opt(1-1/e)\,\mathrm{opt}(1−1/e)opt points.

Significance

The result closes the approximability of max kkk-cover: the greedy algorithm cannot be beaten by any constant unless P = NP. Consequences:

  • Submodular maximization. Coverage functions are monotone submodular, so the bound transfers to monotone submodular maximization under a cardinality constraint, whenever the function is given in a form that encodes a coverage instance.
  • Other problems. Hardness results for facility location, budgeted allocation, and welfare maximization with coverage valuations reduce from it.
  • The reduction itself. The ℓ\ellℓ-fold kkk-prover system combined with a partition system that is exactly countable is the template for later 1−1/e1-1/e1−1/e hardness proofs.

Status: the theorem has been proved since 1998. It has not been formalized; neither the reduction nor the underlying proof systems exist in Mathlib or on this platform. This mission produces:

  • a machine-checked reduction from MAX 3SAT-5 to max kkk-cover;
  • an exact counting lemma for product partition systems;
  • the averaging and concavity argument of Proposition 5.4;
  • a formal statement of the greedy bound for coverage.

The cited PCP-based gap (Theorem 2.1.1) and parallel repetition (Theorem 2.2.2) remain hypotheses. They are separate, much larger formalization projects.

Difficulty

The obvious argument uses the soundness of the proof system directly: a large cover should force consistent answers. It fails because a cover may spend many sets on a few random strings and cover them completely, while covering the rest partially without any two sets from the same partition. What saves the argument is exact counting. For sets from pairwise different partitions, coverage is exactly h(j)=(1−(1−1/k)j)mh(j)=(1-(1-1/k)^j)mh(j)=(1−(1−1/k)j)m, a concave function of the number jjj of sets used. Since the sets meet a random string kkk times on average, Jensen's inequality caps the total coverage of such "unstructured" strings at about (1−(1−1/k)k)(1-(1-1/k)^k)(1−(1−1/k)k), which tends to 1−1/e1-1/e1−1/e. A further obstacle is that the reduction must run in polynomial time. The paper therefore takes ℓ\ellℓ and kkk constant (unlike the set-cover reduction, where ℓ=Θ(log⁡log⁡n)\ell=\Theta(\log\log n)ℓ=Θ(loglogn)), and the soundness bound k22−cℓk^2 2^{-c\ell}k22−cℓ must beat (ε/3)(ε/3k)2(\varepsilon/3)(\varepsilon/3k)^2(ε/3)(ε/3k)2 at a constant ℓ\ellℓ. The quantifier order (kkk large first, then ℓ\ellℓ large) is part of the difficulty.

A second obstacle is the machine model. The goal is a statement about polynomial-time Turing machines, so the reduction and the decision procedure built from a hypothetical approximation algorithm must be compiled into Cook's one-tape machines.

Formalization scope

  • Machine model. CookPvsNP_defs (a published platform definition): one-tape Turing machines, P\mathrm{P}P, NP\mathrm{NP}NP, polynomial-time computable functions, CNF formulas and their encoding. "P = NP" is P Bool = NP Bool, the form in which CookPvsNP.P_ne_NP states the open problem.
  • Cited results as hypotheses. Theorem 2.1.1 enters as Thm211. Raz's theorem enters as RazRepetition, its consequence stated on p. 642: the ℓ\ellℓ-fold clause–variable game on a far-from-satisfiable 3CNF-5 formula has acceptance probability at most 2−cℓ2^{-c\ell}2−cℓ. This is weaker than Raz's general theorem, so the conditional statement is stronger. No hypothesis about max kkk-cover is assumed.
  • Approximation. The value form above, with no size threshold. For ε>1/e\varepsilon>1/eε>1/e the ratio exceeds one and the hypothesis is unsatisfiable on any instance with opt>0\mathrm{opt}>0opt>0; those values are vacuous, as in the paper.
  • opt\mathrm{opt}opt. Taken over at most kkk sets. This agrees with the paper's "exactly kkk" whenever k≤sk\le sk≤s.
  • Probability and counting. Probabilities are uniform counts over the (3M)ℓ(3M)^\ell(3M)ℓ random strings. Fractions in lower-bound statements are written as counts compared with multiples of RRR.
  • Canonical answers. The type of answers is restricted to satisfying assignments of the received clauses, following the paper's "without loss of generality" (p. 643). All indices are 0-based.
  • Partition system. The §4 construction is defined for any partition system with ℓ\ellℓ-bit partition labels and instantiated with the explicit product system. Its L=2ℓL=2^\ellL=2ℓ coordinates are the ℓ\ellℓ-bit strings themselves.
  • Not formalized. The running time of the greedy algorithm, and the constructive variant (Proposition 5.2), which belongs to the set-cover mission.

A trivializing formalization is ruled out: every cited input is a named, satisfiable proposition about 3CNF formulas or the two-prover game, never about max kkk-cover, and the approximation hypothesis is satisfiable for ratios up to 111.

Needed infrastructure, reusable beyond this mission:

  • composition and simulation lemmas for Cook's machines;
  • the uniformity of the verifier's questions on 3CNF-5 formulas;
  • concavity of j↦1−(1−1/k)jj\mapsto 1-(1-1/k)^jj↦1−(1−1/k)j;
  • (1−1/k)k→1/e(1-1/k)^k\to 1/e(1−1/k)k→1/e bounds.

Contributions to any of these, or to either cited theorem, are welcome.

Selected references

  • U. Feige, A threshold of ln n for approximating set cover, J. ACM 45(4) (1998) 634–652. https://doi.org/10.1145/285055.285059
  • R. Raz, A parallel repetition theorem, SIAM J. Comput. 27(3) (1998) 763–803 (STOC 1995). https://doi.org/10.1137/S0097539795280895
  • S. Arora, C. Lund, R. Motwani, M. Sudan, M. Szegedy, Proof verification and the hardness of approximation problems, J. ACM 45(3) (1998) 501–555. https://doi.org/10.1145/278298.278306
  • C. Papadimitriou, M. Yannakakis, Optimization, approximation, and complexity classes, J. Comput. System Sci. 43(3) (1991) 425–440. https://doi.org/10.1016/0022-0000(91)90023-X
  • C. Lund, M. Yannakakis, On the hardness of approximating minimization problems, J. ACM 41(5) (1994) 960–981. https://doi.org/10.1145/185675.306789
  • G. L. Nemhauser, L. A. Wolsey, M. L. Fisher, An analysis of approximations for maximizing submodular set functions—I, Math. Programming 14 (1978) 265–294. https://doi.org/10.1007/BF01588971
  • S. Cook, The P versus NP problem, Clay Mathematics Institute. https://www.claymath.org/wp-content/uploads/2022/06/pvsnp.pdf
13 thms3 active usersReviewed
Complexity TheoryOperations ResearchTheoretical Computer Science·Captain: mikedeng1

A Threshold of ln n for Approximating Set Cover I: The ln n Inapproximability of Set CoverResearch Paper

Motivation

Set cover is the problem of covering a finite ground set with as few members of a given family of subsets as possible. It models facility location, crew scheduling, test-suite minimization and many other selection problems in operations research, and it is one of the canonical NP-hard problems. The greedy algorithm, which repeatedly picks the subset covering the most uncovered points, finds a cover at most about ln⁡n\ln nlnn times larger than the optimum on an instance with nnn points (Johnson 1974; Lovász 1975; Chvátal 1979). Whether any efficient algorithm does substantially better was open for two decades.

Timeline of the lower bounds:

  • 1992. The PCP theorem (Arora, Lund, Motwani, Sudan, Szegedy) implies that set cover cannot be approximated within some constant 1+ε1+\varepsilon1+ε unless P = NP.
  • 1994. Lund and Yannakakis showed that set cover cannot be approximated within 14log⁡2n\tfrac14\log_2 n41​log2​n unless NP⊆TIME(nO(polylog n))\mathrm{NP}\subseteq\mathrm{TIME}(n^{O(\mathrm{polylog}\, n)})NP⊆TIME(nO(polylogn)), and within 12log⁡2n≈0.72ln⁡n\tfrac12\log_2 n\approx 0.72\ln n21​log2​n≈0.72lnn under a randomized assumption.
  • 1998. Feige showed that for every ε>0\varepsilon>0ε>0, set cover cannot be approximated within (1−ε)ln⁡n(1-\varepsilon)\ln n(1−ε)lnn unless NP⊆TIME(nO(log⁡log⁡n))\mathrm{NP}\subseteq\mathrm{TIME}(n^{O(\log\log n)})NP⊆TIME(nO(loglogn)) (J. ACM 45(4), 634–652). This matches the greedy bound up to lower-order terms.
  • 2014. Dinur and Steurer replaced the assumption by P ≠ NP (STOC 2014).

This mission formalizes Feige's theorem, the result that fixed ln⁡n\ln nlnn as the threshold.

Setting

An instance consists of nnn points {0,…,n−1}\{0,\dots,n-1\}{0,…,n−1} and a list of subsets S1,…,SsS_1,\dots,S_sS1​,…,Ss​. A cover is a set of indices whose subsets together contain every point. The instance is coverable if every point lies in some SiS_iSi​. It is written as a string: nnn in unary, then each subset as its characteristic vector.

A deterministic polynomial-time algorithm approximates set cover within ρ(n)\rho(n)ρ(n) if, for some threshold n0n_0n0​ and every coverable instance with n≥n0n \ge n_0n≥n0​ points, the value vvv it outputs satisfies OPT≤v≤ρ(n)⋅OPT\mathrm{OPT}\le v\le\rho(n)\cdot\mathrm{OPT}OPT≤v≤ρ(n)⋅OPT, where OPT\mathrm{OPT}OPT is the size of a smallest cover.

TIME(nO(log⁡log⁡n))\mathrm{TIME}(n^{O(\log\log n)})TIME(nO(loglogn)) is the class of languages that a deterministic one-tape Turing machine decides within ∣w∣c(log⁡2log⁡2∣w∣+1)+c|w|^{c(\log_2\log_2|w|+1)}+c∣w∣c(log2​log2​∣w∣+1)+c steps, for some constant ccc. Machines, P\mathrm{P}P and NP\mathrm{NP}NP are those of the published definition CookPvsNP_defs.

The proof passes through three objects, each defined in the mission:

  1. 3CNF-5 formulas: CNF formulas in which every clause has three literals on distinct variables and every variable occurs in exactly five clauses.
  2. The kkk-prover proof system of §2.3. A verifier picks ℓ\ellℓ random clauses and a distinguished variable in each. Each prover, according to its code word, receives some of these clauses and the distinguished variables of the others. Under the weak acceptance predicate, some two provers give consistent answers on the distinguished variables. Under the strong acceptance predicate, all provers do.
  3. Partition systems B(m,L,k,d)B(m,L,k,d)B(m,L,k,d) (Definition 3.1). These are LLL partitions of mmm points, each into kkk parts, such that covering the points with parts taken from pairwise different partitions needs at least ddd parts.

Formalization targets

Goal: Theorem 4.4

∃ ε>0: set cover is approximable within (1−ε)ln⁡n ⟹ NP⊆TIME(nO(log⁡log⁡n)).\exists\,\varepsilon>0:\ \text{set cover is approximable within }(1-\varepsilon)\ln n\ \Longrightarrow\ \mathrm{NP}\subseteq\mathrm{TIME}\big(n^{O(\log\log n)}\big).∃ε>0: set cover is approximable within (1−ε)lnn ⟹ NP⊆TIME(nO(loglogn)).

The statement fixes no constant beyond ε\varepsilonε. The parameters kkk, ℓ\ellℓ and mmm of the reduction are choices made inside the proof. The goal carries three cited results as hypotheses: Theorem 2.1.1 (MAX 3SAT-B gap), the consequence of Raz's parallel repetition theorem for the clause–variable game, and the Naor–Schulman–Srinivasan construction of partition systems.

Milestones, in the order the proof uses them

  1. Proposition 2.1.2: MAX 3SAT-5 is gap NP-hard.
  2. Proposition 2.2.1: the one-round clause–variable game has value 1−ε/31-\varepsilon/31−ε/3.
  3. Lemma 2.3.1: the kkk-prover system is complete with strong acceptance and has soundness k22−cℓk^2 2^{-c\ell}k22−cℓ for weak acceptance.
  4. Lemma 3.2: partition systems with d=(1−2/k)kln⁡md=(1-2/k)k\ln md=(1−2/k)klnm exist.
  5. Propositions 4.2 and 4.3: a cover with (1−δ)kQln⁡m(1-\delta)kQ\ln m(1−δ)kQlnm subsets yields a prover strategy that is weakly accepted with probability at least 2δ/(kln⁡m)22\delta/(k\ln m)^22δ/(klnm)2.
  6. Lemma 4.1: the gap between kQkQkQ and (1−2f(k))kQln⁡m(1-2f(k))kQ\ln m(1−2f(k))kQlnm.

Significance

The result. Combined with the greedy algorithm, Theorem 4.4 shows that ln⁡n\ln nlnn is the approximation threshold of set cover under a mild complexity assumption. Set cover reduces approximation-preservingly to many covering problems, so the threshold transfers to them. Examples are dominating set, several facility-location and group Steiner problems, and hitting-set formulations used in scheduling and testing. The kkk-prover system with two acceptance predicates and the partition-system gadget became standard tools for later hardness-of-approximation proofs.

Formalizing it. The theorem is proved and has been strengthened (Dinur–Steurer 2014), but no machine-checked proof of any Ω(log⁡n)\Omega(\log n)Ω(logn) inapproximability of set cover is known. This mission contributes:

  • a Lean model of multi-prover proof systems with uniform-count probabilities;
  • partition systems and their probabilistic existence proof;
  • a gap-preserving reduction whose running time is analysed on Turing machines, not merely asserted.

Difficulty

  • The ratio comes from two gaps at once. One is a gap in acceptance probability. The other is a gap between strong and weak acceptance. A reduction from a two-prover system, as in Lund–Yannakakis, loses a constant factor because a cheating cover can use two parts of the same partition. Feige's analysis must turn every small cover into a strategy under which some pair of provers is consistent (Proposition 4.3), and this averaging argument has to lose only a factor (kln⁡m)2(k\ln m)^2(klnm)2.
  • Parameters interlock. ℓ=Θ(log⁡log⁡n)\ell=\Theta(\log\log n)ℓ=Θ(loglogn) must make k22−cℓk^2 2^{-c\ell}k22−cℓ smaller than 2δ/(kln⁡m)22\delta/(k\ln m)^22δ/(klnm)2 while keeping the instance of size nO(log⁡log⁡n)n^{O(\log\log n)}nO(loglogn). The time bound must hold for a one-tape machine, including the deterministic partition-system construction.
  • Encoding. The reduction must be computed by an explicit machine on string encodings. Showing that a "clearly polynomial" construction meets the time bound on such a machine is substantial work.

Formalization scope

  • Cited results as hypotheses. Theorem 2.1.1, Raz's theorem and the Naor et al. construction are not proved in the mission; each is a named proposition (Thm211, RazRepetition, NaorPartitionSystems) and a hypothesis of the goal.
    • RazRepetition is only the consequence of Raz's theorem that the paper uses (p. 642): a 2−cℓ2^{-c\ell}2−cℓ error bound for the repeated clause–variable game on 3CNF-5 formulas far from satisfiable.
    • NaorPartitionSystems relaxes "time linear in mmm" to polynomial time and renders "LLL polynomial in ddd" as L≤⌊log⁡2m⌋aL\le\lfloor\log_2 m\rfloor^aL≤⌊log2​m⌋a. Both relaxations weaken the hypothesis.
  • Approximation in value form. The algorithm outputs a number vvv with OPT≤v≤ρ(n)OPT\mathrm{OPT}\le v\le\rho(n)\mathrm{OPT}OPT≤v≤ρ(n)OPT, and only on coverable instances with n≥n0n\ge n_0n≥n0​. Any algorithm that outputs a cover yields such a value, so this hypothesis is weaker than the paper's. The guard n≥n0n\ge n_0n≥n0​ is needed because (1−ε)ln⁡n<1(1-\varepsilon)\ln n<1(1−ε)lnn<1 for small nnn.
  • Machine model. The machines are Cook's deterministic one-tape machines. Multi-tape simulation costs a quadratic factor, which the class absorbs.
  • Probabilities are uniform counts over the (5n)ℓ(5n)^\ell(5n)ℓ random strings. Strategies are deterministic. Answers are canonical (satisfying on clause coordinates), as the paper assumes without loss of generality.
  • Not formalized. Randomized classes (ZTIME) are not defined here, so the following are omitted: the last sentence of Lemma 3.2, Proposition 6.1, and the randomized variants.
  • Ruling out a trivial formalization. The gap notion requires far-from-satisfiable formulas to have at least one clause. Otherwise the empty formula would be both a yes-instance and a no-instance, and Theorem 2.1.1 would hold trivially.
  • Infrastructure and reuse. The shared layer can serve other PCP-based hardness proofs: 3CNF-5 formulas, the kkk-prover system, partition systems, and the gap-NP-hardness notion. Welcome contributions include:
    • time bounds for list and table manipulations on one-tape machines;
    • a Hadamard-code construction satisfying the weight and distance conditions;
    • the union-bound and averaging lemmas behind Lemma 2.3.1 and Proposition 4.2.

Selected references

  • U. Feige, A threshold of ln n for approximating set cover, J. ACM 45(4), 634–652, 1998. https://doi.org/10.1145/285055.285059
  • C. Lund, M. Yannakakis, On the hardness of approximating minimization problems, J. ACM 41(5), 960–981, 1994. https://doi.org/10.1145/185675.306789
  • R. Raz, A parallel repetition theorem, SIAM J. Comput. 27(3), 763–803, 1998 (STOC 1995). https://doi.org/10.1137/S0097539795280895
  • M. Naor, L. J. Schulman, A. Srinivasan, Splitters and near-optimal derandomization, FOCS 1995, 182–191. https://doi.org/10.1109/SFCS.1995.492475
  • S. Arora, C. Lund, R. Motwani, M. Sudan, M. Szegedy, Proof verification and the hardness of approximation problems, J. ACM 45(3), 501–555, 1998. https://doi.org/10.1145/278298.278306
  • C. Papadimitriou, M. Yannakakis, Optimization, approximation, and complexity classes, J. Comput. Syst. Sci. 43(3), 425–440, 1991. https://doi.org/10.1016/0022-0000(91)90023-X
  • V. Chvátal, A greedy heuristic for the set-covering problem, Math. Oper. Res. 4(3), 233–235, 1979. https://doi.org/10.1287/moor.4.3.233
  • I. Dinur, D. Steurer, Analytical approach to parallel repetition, STOC 2014, 624–633. https://doi.org/10.1145/2591796.2591884
15 thms3 active usersReviewed
🏆Completed
Linear OptimizationOperations ResearchOptimization·Captain: mikedeng1

Proximity Results and Faster Algorithms for Integer Programming Using the Steinitz Lemma: ℓ1-Proximity of Integer and LP OptimaResearch Paper

Motivation

Integer programs are routinely solved by first solving their linear programming (LP) relaxation and then searching for an integer optimum near the fractional one. How near an integer optimum must be is the subject of proximity theorems. They bound the search region of branch-and-bound and of dynamic programming, and they turn a fractional optimum into a starting point for exact algorithms.

The classical bound is due to Cook, Gerards, Schrijver and Tardos (Math. Programming 34, 1986): for an integer program in inequality form max⁡{cTx:Ax≤b, x∈Zn}\max\{c^Tx : Ax\le b,\ x\in\mathbb Z^n\}max{cTx:Ax≤b, x∈Zn} that is feasible and bounded, every optimal LP solution x∗x^*x∗ has an optimal integer solution z∗z^*z∗ with ∥x∗−z∗∥∞≤n⋅δ\|x^*-z^*\|_\infty\le n\cdot\delta∥x∗−z∗∥∞​≤n⋅δ, where δ\deltaδ is the largest absolute value of a subdeterminant of AAA. For programs in standard form Ax=bAx=bAx=b with mmm rows this gives, via the Hadamard bound, ∥z∗−x∗∥1≤n2⋅mm/2Δm\|z^*-x^*\|_1\le n^2\cdot m^{m/2}\Delta^m∥z∗−x∗∥1​≤n2⋅mm/2Δm, which grows with the number of variables nnn.

Eisenbrand and Weismantel (ACM Trans. Algorithms 16(1), Article 5, 2019; conference version SODA 2018) removed the dependence on nnn altogether, using the Steinitz lemma on rearranging vectors so that all partial sums stay short. Their bound depends only on mmm and on the largest absolute value Δ\DeltaΔ of an entry of AAA, and it is the basis of their faster algorithms for integer programs with few constraints.

Setting

Fix natural numbers mmm (rows) and nnn (variables). The data are a matrix A∈Zm×nA\in\mathbb Z^{m\times n}A∈Zm×n, a right-hand side b∈Zmb\in\mathbb Z^mb∈Zm, an objective c∈Znc\in\mathbb Z^nc∈Zn and upper bounds u∈Nnu\in\mathbb N^nu∈Nn. A natural number Δ\DeltaΔ bounds the entries: ∣aij∣≤Δ|a_{ij}|\le\Delta∣aij​∣≤Δ for all i,ji,ji,j. The integer program (10) is

max⁡{cTx:Ax=b, 0≤x≤u, x∈Zn},\max\{c^Tx : Ax=b,\ 0\le x\le u,\ x\in\mathbb Z^n\},max{cTx:Ax=b, 0≤x≤u, x∈Zn},

and its LP relaxation is the same problem over x∈Rnx\in\mathbb R^nx∈Rn. Its feasible region P={x∈Rn:Ax=b, 0≤x≤u}P=\{x\in\mathbb R^n: Ax=b,\ 0\le x\le u\}P={x∈Rn:Ax=b, 0≤x≤u} is a polytope, lpPolytope A b u. An optimal vertex solution is an optimal solution of the LP relaxation (IsLPOptimal) that is an extreme point of PPP. An optimal integer solution is IsIPOptimal. Both are maxima.

Distances are measured in the ℓ1\ell_1ℓ1​-norm ∥z−x∥1=∑i∣zi−xi∣\|z-x\|_1=\sum_i|z_i-x_i|∥z−x∥1​=∑i​∣zi​−xi​∣.

A vector y∈Zny\in\mathbb Z^ny∈Zn is a cycle of z∗−x∗z^*-x^*z∗−x∗ (Eq. (14)) if Ay=0Ay=0Ay=0 and, for every iii, ∣yi∣≤∣(z∗−x∗)i∣|y_i|\le|(z^*-x^*)_i|∣yi​∣≤∣(z∗−x∗)i​∣ and yi(z∗−x∗)i≥0y_i(z^*-x^*)_i\ge0yi​(z∗−x∗)i​≥0: an integer kernel vector that is sign-compatible with z∗−x∗z^*-x^*z∗−x∗ and dominated by it (IsCycle).

The Steinitz lemma (Theorem 1.1) concerns vectors x1,…,xnx_1,\dots,x_nx1​,…,xn​ in an mmm-dimensional normed space with ∑ixi=0\sum_i x_i=0∑i​xi​=0 and ∥xi∥≤1\|x_i\|\le1∥xi​∥≤1. It asserts a permutation π\piπ with ∥∑j≤kxπ(j)∥≤c(m)\|\sum_{j\le k}x_{\pi(j)}\|\le c(m)∥∑j≤k​xπ(j)​∥≤c(m) for all kkk, and the paper uses Sevast'anov's constant c(m)=mc(m)=mc(m)=m.

Formalization targets

Goal: Theorem 3.3 (p. 5:8)

If (10) has an integer feasible point and x∗x^*x∗ is an optimal vertex solution of its LP relaxation, then there is an optimal solution z∗z^*z∗ of (10) with

∥z∗−x∗∥1 ≤ m⋅(2mΔ+1)m.\|z^*-x^*\|_1\ \le\ m\cdot(2m\Delta+1)^m .∥z∗−x∗∥1​ ≤ m⋅(2mΔ+1)m.

The constant is the paper's. The goal holds for all mmm, nnn, bbb, ccc and uuu; only mmm and Δ\DeltaΔ enter the bound.

Milestones, in the order the proof uses them

  1. Lemma 3.1 (p. 5:8): for an LP optimum x∗x^*x∗, an integer optimum z∗z^*z∗ and a cycle yyy of z∗−x∗z^*-x^*z∗−x∗, the vector z∗−yz^*-yz∗−y is integer feasible, x∗+yx^*+yx∗+y is LP feasible, and cTy≤0c^Ty\le0cTy≤0.
  2. Lemma 3.2 (p. 5:8): if z∗z^*z∗ minimizes ∥z∗−x∗∥1\|z^*-x^*\|_1∥z∗−x∗∥1​ among the optimal integer solutions, then z∗−x∗z^*-x^*z∗−x∗ has no nonzero cycle.
  3. Theorem 1.1 with c(m)=mc(m)=mc(m)=m (p. 5:4): the Steinitz lemma in any mmm-dimensional real normed space.
  4. Proof of Theorem 3.3 (pp. 5:8–5:9): round a vertex x∗x^*x∗ towards an integer vector and write {x∗}\{x^*\}{x∗} for the remainder. Then ∥−A{x∗}∥∞≤Δm\|-A\{x^*\}\|_\infty\le\Delta m∥−A{x∗}∥∞​≤Δm and −A{x∗}=w1+⋯+wm-A\{x^*\}=w_1+\dots+w_m−A{x∗}=w1​+⋯+wm​ with integer wjw_jwj​, ∥wj∥∞≤Δ\|w_j\|_\infty\le\Delta∥wj​∥∞​≤Δ.
  5. Proof of Theorem 3.3, Eq. (20) (p. 5:9): a sequence of integer vectors of ℓ∞\ell_\inftyℓ∞​-norm at most mΔm\DeltamΔ in which no value repeats m+1m+1m+1 times has length at most m(2mΔ+1)mm(2m\Delta+1)^mm(2mΔ+1)m.
  6. Eq. (21) (p. 5:9), a consequence: cT(x∗−z∗)≤∥c∥∞⋅m(2mΔ+1)mc^T(x^*-z^*)\le\|c\|_\infty\cdot m(2m\Delta+1)^mcT(x∗−z∗)≤∥c∥∞​⋅m(2mΔ+1)m for every optimal integer solution z∗z^*z∗.

Significance

The bound is independent of the number of variables. Combined with the paper's dynamic program, it gives the paper's running-time results for integer programs with upper bounds: an optimal LP vertex is computed, and the integer optimum is searched for within an ℓ1\ell_1ℓ1​-ball of radius m(2mΔ+1)mm(2m\Delta+1)^mm(2mΔ+1)m around it. Eq. (21) bounds the absolute integrality gap by the same quantity, scaled by ∥c∥∞\|c\|_\infty∥c∥∞​. The Steinitz lemma with constant mmm is a general tool in discrepancy theory and in scheduling algorithms.

All of these results have published proofs. No machine-checked proof of Theorem 3.3 or of the Steinitz lemma is known to this mission, and Mathlib has no Steinitz lemma. The mission asks for complete Lean proofs of the milestones and of the goal. A proof of the Steinitz lemma with constant mmm for arbitrary norms is reusable well beyond integer programming.

Difficulty

Lemmas 3.1 and 3.2 and the counting step are elementary. The substance lies in two places. The first is the Steinitz lemma with the linear constant mmm for an arbitrary norm: the bound must hold uniformly in the number nnn of vectors, and the constant must be exactly mmm, because the goal's constant (2mΔ+1)m(2m\Delta+1)^m(2mΔ+1)m counts integer points of ℓ∞\ell_\inftyℓ∞​-norm at most mΔm\DeltamΔ. The second is the passage from a vertex to at most mmm fractional coordinates. The paper argues this in one sentence ("x∗x^*x∗ has at most mmm positive entries"), which is not literally true for (10) with upper bounds: coordinates at their upper bound ui>0u_i>0ui​>0 are positive. The correct fact concerns coordinates strictly between 000 and uiu_iui​, and it has to be derived from the extreme-point property of PPP.

Formalization scope

  • All declarations live in the namespace IPProximity.Eisenbrand. The data are integral: A : Matrix (Fin m) (Fin n) ℤ, b : Fin m → ℤ, c : Fin n → ℤ, u : Fin n → ℕ (entries ui=0u_i=0ui​=0 allowed), Δ : ℕ. They are cast to ℝ once, inside the LP definitions. m=0m=0m=0 and n=0n=0n=0 are allowed.
  • "Vertex" is Mathlib's Set.extremePoints ℝ (lpPolytope A b u). It is not defined through bases or by counting fractional coordinates.
  • The ℓ1\ell_1ℓ1​-distance is the explicit sum ∑ i, |(z i : ℝ) - x i|. Mathlib's norm on Fin n → ℝ is the sup norm, and it is used only where the paper has ∥⋅∥∞\|\cdot\|_\infty∥⋅∥∞​ (the ∥c∥∞\|c\|_\infty∥c∥∞​ of Eq. (21)).
  • The goal adds one hypothesis the paper leaves implicit: (10) has an integer feasible point. The paper's proof begins with "Let z∗z^*z∗ be an optimal integer solution"; without this hypothesis the conclusion is false.
  • Eq. (14) is formalized literally, so y=0y=0y=0 is a cycle, and Lemma 3.2 is stated for nonzero cycles, which is what its proof establishes. Dropping the vertex hypothesis would make the goal false, so the goal keeps it. The constant is exactly m(2mΔ+1)mm(2m\Delta+1)^mm(2mΔ+1)m, with no hidden existential constant.
  • The Steinitz milestone is stated for any finite-dimensional real normed space of dimension mmm with the explicit constant mmm. The goal needs only the ℓ∞\ell_\inftyℓ∞​ case on Rm\mathbb R^mRm.
  • Out of scope: the dynamic program and the running-time theorems of Sections 2 and 4, and the refinement ∥z∗−x∗∥1≤2Δ\|z^*-x^*\|_1\le2\Delta∥z∗−x∗∥1​≤2Δ for m=1m=1m=1.

Contributions welcome: proofs of any milestone, in particular the Steinitz lemma, and a proof of the goal from the milestones.

Selected references

  • F. Eisenbrand, R. Weismantel, Proximity Results and Faster Algorithms for Integer Programming Using the Steinitz Lemma, ACM Transactions on Algorithms 16(1), Article 5, 2019. https://doi.org/10.1145/3340322
  • W. Cook, A. M. H. Gerards, A. Schrijver, É. Tardos, Sensitivity theorems in integer linear programming, Mathematical Programming 34, 251–264, 1986. https://doi.org/10.1007/BF01582230
  • E. Steinitz, Bedingt konvergente Reihen und konvexe Systeme, Journal für die reine und angewandte Mathematik 143, 128–176, 1913. https://doi.org/10.1515/crll.1913.143.128
  • S. Sevast'janov, Approximate solution of some problems of scheduling theory (in Russian), Metody Diskretnogo Analiza 32, 66–75, 1978 (reference [31] of the paper).
  • V. S. Grinberg, S. V. Sevast'yanov, Value of the Steinitz constant, Functional Analysis and Its Applications 14(2), 125–126, 1980 (reference [16] of the paper).
12 thms3 active usersReviewed
🏆Completed
Graph TheoryOperations ResearchOptimization·Captain: mikedeng1

Theoretical Improvements in Algorithmic Efficiency for Network Flow Problems 2: The Augmentation Bound for Maximum-Augmentation PathsResearch Paper

Motivation

The maximum flow problem asks how much of a commodity can be sent from a source to a sink through a network whose arcs have capacities. It underlies bipartite matching, transportation, scheduling and many reductions in combinatorial optimization. The classical method for it, the labeling method of Ford and Fulkerson (Flows in Networks, 1962), repeatedly finds an augmenting path and pushes flow along it. With integer capacities it terminates, but the number of augmentations can be as large as the maximum flow value itself, and Edmonds and Karp exhibit a four-node network on which this happens (p. 250). With irrational capacities the method need not terminate at all.

Edmonds and Karp, Theoretical Improvements in Algorithmic Efficiency for Network Flow Problems, J. ACM 19(2):248–264, 1972 (doi:10.1145/321694.321699), showed that two simple rules for choosing the augmenting path repair this. The first, augmenting along a path with fewest arcs, is the subject of mission 1 of this series. This mission covers the second (§1.3): augment along a path that gives the largest possible augmentation. For integer capacities the number of augmentations then grows only logarithmically in the maximum flow value.

Setting

A network NNN has a finite set VVV of nodes, a source sss and a sink t≠st \neq st=s, and a set of arcs, ordered pairs (u,v)(u,v)(u,v) with u≠vu \neq vu=v, at most one from each node to another. One arc is the return arc (t,s)(t,s)(t,s); the other arcs form the set AAA, and each (u,v)∈A(u,v) \in A(u,v)∈A has a capacity c(u,v)>0c(u,v) > 0c(u,v)>0. A flow is a nonnegative function fff on the arcs of NNN with f(u,v)≤c(u,v)f(u,v) \le c(u,v)f(u,v)≤c(u,v) on AAA and flow conservation at every node, sss and ttt included. Its value is f(t,s)f(t,s)f(t,s), the flow returned along the return arc; a maximum flow has the largest value among all flows, and f∗(t,s)f^*(t,s)f∗(t,s) denotes that value.

The residual network NfN^fNf has an arc (u,v)(u,v)(u,v) whenever (u,v)∈A(u,v) \in A(u,v)∈A and c(u,v)−f(u,v)>0c(u,v) - f(u,v) > 0c(u,v)−f(u,v)>0, or (v,u)∈A(v,u) \in A(v,u)∈A and f(v,u)>0f(v,u) > 0f(v,u)>0. An augmenting path is a directed path s=u1,…,up=ts = u_1, \dots, u_p = ts=u1​,…,up​=t of distinct nodes in NfN^fNf. Each of its arcs (u,v)(u,v)(u,v) has a residual amount e(u,v)e(u,v)e(u,v), equal to c(u,v)−f(u,v)c(u,v) - f(u,v)c(u,v)−f(u,v), f(v,u)f(v,u)f(v,u), or c(u,v)−f(u,v)+f(v,u)c(u,v) - f(u,v) + f(v,u)c(u,v)−f(u,v)+f(v,u) according to which of (u,v)(u,v)(u,v), (v,u)(v,u)(v,u) lie in AAA, and the path's augmentation is ε=min⁡e(ui,ui+1)\varepsilon = \min e(u_i, u_{i+1})ε=mine(ui​,ui+1​). Augmenting increases f(t,s)f(t,s)f(t,s) by ε\varepsilonε and changes the flow on the arcs of the path accordingly, with the paper's own rule when both (u,v)(u,v)(u,v) and (v,u)(v,u)(v,u) are arcs. The labeling method produces flows f0,f1,…f^0, f^1, \dotsf0,f1,… by augmenting along a path relative to fkf^kfk as long as one exists.

The rule studied here chooses, at every step, an augmenting path whose ε\varepsilonε is at least that of every other augmenting path relative to the current flow. The bound involves an integer M>1M > 1M>1 such that every partition of the nodes into X∋sX \ni sX∋s and Xˉ∋t\bar X \ni tXˉ∋t has at most MMM arcs of NNN with one end on each side.

Formalization targets

Goal: Theorem 2 (p. 253)

For a network with integer capacities, MMM as above, and a run f0,…,fKf^0, \dots, f^Kf0,…,fK of the labeling method with maximum augmentations started from an integer-valued flow,

K  ≤  1+log⁡M/(M−1)f∗(t,s),K \;\le\; 1 + \log_{M/(M-1)} f^*(t,s),K≤1+logM/(M−1)​f∗(t,s),

and if no augmenting path relative to fKf^KfK exists, then fKf^KfK is a maximum flow.

Milestones

The milestone list follows the paper's argument:

  1. augmentation produces a flow of value f(t,s)+εf(t,s) + \varepsilonf(t,s)+ε (§1.1, p. 249);
  2. a flow is maximum if and only if it has no augmenting path (§1.1, pp. 249–250);
  3. with integer capacities, ε\varepsilonε is a positive integer and the flows of the method stay integer-valued (§1.1, p. 250);
  4. the cut inequality c(X,Xˉ)≥f(X,Xˉ)−f(Xˉ,X)=f(t,s)c(X,\bar X) \ge f(X,\bar X) - f(\bar X,X) = f(t,s)c(X,Xˉ)≥f(X,Xˉ)−f(Xˉ,X)=f(t,s) (p. 254);
  5. f∗(t,s)−fk(t,s)≤εkMf^*(t,s) - f^k(t,s) \le \varepsilon^k Mf∗(t,s)−fk(t,s)≤εkM, where εk=fk+1(t,s)−fk(t,s)\varepsilon^k = f^{k+1}(t,s) - f^k(t,s)εk=fk+1(t,s)−fk(t,s) (p. 254);
  6. f∗(t,s)−fk+1(t,s)≤[f∗(t,s)−fk(t,s)](1−M−1)f^*(t,s) - f^{k+1}(t,s) \le [f^*(t,s) - f^k(t,s)](1 - M^{-1})f∗(t,s)−fk+1(t,s)≤[f∗(t,s)−fk(t,s)](1−M−1) (p. 254);
  7. f∗(t,s)−fk(t,s)≤f∗(t,s)(1−M−1)kf^*(t,s) - f^k(t,s) \le f^*(t,s)(1 - M^{-1})^kf∗(t,s)−fk(t,s)≤f∗(t,s)(1−M−1)k (p. 254).

Significance

Theorem 2 was among the first bounds showing that a maximum flow algorithm can be made polynomial in the size of the numbers rather than in their values: since M≤n2/2M \le n^2/2M≤n2/2 and f∗(t,s)f^*(t,s)f∗(t,s) is at most n2n^2n2 times the average capacity, the bound is O(n2log⁡(n2cˉ))O(n^2 \log(n^2 \bar c))O(n2log(n2cˉ)) in terms of the number of nodes nnn and the average capacity cˉ\bar ccˉ (p. 254). The largest-augmentation rule, often called the fattest-path or maximum-capacity augmenting path rule, is a standard textbook variant, and its geometric-decrease argument is the model for later capacity-scaling methods, including the scaling algorithm for the Hitchcock problem in §2 of the same paper (mission 3 of this series).

The theorem has been proved since 1972 and appears in standard texts. As far as a platform search shows (2026-09-26), no machine-checked proof of it exists on Prove2Me. The platform does contain LinearOptimization.max_flow_min_cut and LinearOptimization.max_flow_ford_fulkerson_integer_termination, which state max-flow min-cut and termination of the generic method in a different network model (parallel arcs, extended nonnegative capacities, no return arc); they give no count of augmentations and are related work only. This mission would contribute a formal proof of the counting bound together with the general labeling-method facts (milestones 1–3), which mission 1 needs as well.

Difficulty

The obvious argument, that each augmentation raises the value by at least 1, gives only the bound f∗(t,s)f^*(t,s)f∗(t,s), and on the four-node example of p. 250 that bound is attained by an arbitrary choice of paths. The logarithmic bound needs a lower bound on the size of the largest augmentation in terms of the remaining gap f∗(t,s)−fk(t,s)f^*(t,s) - f^k(t,s)f∗(t,s)−fk(t,s). The largest augmentation is defined by comparison with all augmenting paths relative to the current flow, while the gap is a global quantity of the network, and neither integrality nor the maximum-augmentation rule alone controls it. Milestone 2's converse, that a non-maximum flow always admits an augmenting path, is itself the max-flow min-cut theorem in this model, and the formal proof has to establish it for the paper's return-arc model rather than import it from a different one.

Formalization scope

  • Nodes form a finite type V with decidable equality. A : Finset (V × V) contains no loops and not (t,s)(t,s)(t,s). Capacities are real, c : V → V → ℝ, positive on A. Integrality is the hypothesis IntegralCaps N, and for the initial flow IsIntegralOn N (f 0) (integer values on the arcs of NNN, the return arc included).
  • Flows are functions V → V → ℝ constrained only on the arcs of NNN. A maximum flow is the predicate IsMaxFlow, comparing f(t,s)f(t,s)f(t,s) with every flow, not a supremum. The goal takes a maximum flow g as a hypothesis and sets f∗(t,s)=g(t,s)f^*(t,s) = g(t,s)f∗(t,s)=g(t,s); every network has one.
  • Augmenting paths are duplicate-free node lists whose consecutive pairs are arcs of NfN^fNf. The page prints Case (b) of the definition of εi\varepsilon_iεi​ with the same hypothesis as Case (c); the corrected Case (b), (u,v)∉A(u,v) \notin A(u,v)∈/A and (v,u)∈A(v,u) \in A(v,u)∈A, is used, as the definition of NfN^fNf (p. 251) and the list for e(u,v)e(u,v)e(u,v) (p. 253) confirm.
  • A run is IsMaxAugRun N K f P. Its initial flow is arbitrary except for integrality, and each later flow is the augmentation of the previous one along a path of maximum ε\varepsilonε among all augmenting paths.
  • The crossing bound CrossArcsBounded N M counts the arcs of NNN, return arc included, with one end on each side of every sss–ttt partition. This is the literal reading of p. 253.
  • Explicit constants. The bound is exactly 1+log⁡M/(M−1)f∗(t,s)1 + \log_{M/(M-1)} f^*(t,s)1+logM/(M−1)​f∗(t,s), written (K : ℝ) ≤ 1 + Real.logb ((M : ℝ) / ((M : ℝ) - 1)) (g N.t N.s) with M>1M > 1M>1 a natural number. When f∗(t,s)=0f^*(t,s) = 0f∗(t,s)=0, Real.logb gives 000 and the bound reads K≤1K \le 1K≤1. The contraction factor is 1 - (M : ℝ)⁻¹.
  • A statement that bounds only runs of an unsatisfiable step predicate, drops the integrality of f0f^0f0 or of the capacities (the bound is false without them), or compares ε\varepsilonε only among paths of some restricted class does not formalize Theorem 2. A sorry-free check exhibits a four-node network with integer capacities and a valid maximum-augmentation step.
  • Reusable beyond this mission: the return-arc network model, the augmentation step with the paper's opposite-arc rule, the integrality lemma, and the cut inequality. Proofs of any milestone are welcome, as are proofs of the converse in milestone 2 that could later be shared with mission 1.

Selected references

  • J. Edmonds, R. M. Karp, Theoretical Improvements in Algorithmic Efficiency for Network Flow Problems, Journal of the ACM 19(2):248–264, 1972. https://doi.org/10.1145/321694.321699
  • L. R. Ford, D. R. Fulkerson, Flows in Networks, RAND report R-375-PR, 1962; Princeton University Press, 1962. https://www.rand.org/pubs/reports/R375.html
11 thms3 active usersReviewed
PreviousPage 3 of 11Next

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