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 · 159 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

Open106Completed159All265
🏆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
🏆Completed
Dynamic ProgrammingGraph TheoryOperations Research·Captain: mikedeng1

The Steiner Problem in Graphs: Algorithm A Computes the Length of the Steiner TreeResearch Paper

Motivation

The Steiner problem in graphs asks for the cheapest way to connect a prescribed set of nodes of a network, where intermediate nodes may be used freely. It is the network version of the classical Euclidean Steiner tree problem surveyed by Gilbert and Pollak (SIAM J. Appl. Math. 16, 1968), and it arises wherever a few sites must be joined through an existing network at minimum total cost: communication and pipeline layout, VLSI routing, and phylogenetics. With two terminals it is the shortest-path problem; with all nodes as terminals it is the minimum spanning tree problem; in between it is NP-hard.

Dreyfus and Wagner (Networks 1(3):195–207, 1971) gave the first exact algorithm whose running time is exponential only in the number kkk of terminals and polynomial in the number nnn of nodes. The paper states it, as Algorithm A, together with its proof of correctness and an exact count of its elementary operations.

Timeline. 1968: Gilbert and Pollak survey Steiner minimal trees. 1971: Dreyfus and Wagner, a dynamic program over subsets of terminals running in time proportional to n3/2+n2(2k−1−k−1)+n(3k−1−2k+3)/2n^3/2 + n^2(2^{k-1}-k-1) + n(3^{k-1}-2^k+3)/2n3/2+n2(2k−1−k−1)+n(3k−1−2k+3)/2. 1987: Erickson, Monma and Veinott give the same subset recursion for general network flow problems. 2007: Björklund, Husfeldt, Kaski and Koivisto (STOC 2007) improve the exponential dependence on kkk for small integer weights. The Dreyfus–Wagner recursion remains the standard exact method and the basis of the fixed-parameter tractability of the problem in kkk.

Setting

A graph G=(N,A)G = (N, A)G=(N,A) has a finite set NNN of nodes and a set AAA of undirected arcs, each arc aaa having a positive length ∣a∣|a|∣a∣; GGG is connected. For a set S⊆AS \subseteq AS⊆A of arcs, ∣S∣=∑s∈S∣s∣|S| = \sum_{s \in S} |s|∣S∣=∑s∈S​∣s∣. A set SSS connects a node set XXX if all members of XXX are joined by paths composed only of arcs in SSS.

Given Y⊆NY \subseteq NY⊆N, a Steiner path (or Steiner tree) connecting YYY is a set S⊆AS \subseteq AS⊆A that connects YYY with ∣S∣|S|∣S∣ minimum. Its length is the Steiner length St⁡(Y)\operatorname{St}(Y)St(Y). For nodes i,ji, ji,j, D(i,j)D(i,j)D(i,j) is the length of a shortest path from iii to jjj; D(i,j)=St⁡({i,j})D(i,j) = \operatorname{St}(\{i,j\})D(i,j)=St({i,j}).

Algorithm A fixes a linear order of NNN (so that each nonempty set DDD has a first element D[1]D[1]D[1]), picks q∈Yq \in Yq∈Y, sets C=Y−{q}C = Y - \{q\}C=Y−{q}, and fills a table S[D,I]S[D, I]S[D,I] for nonempty D⊊CD \subsetneq CD⊊C and I∈NI \in NI∈N:

S[{t},I]=D(t,I),S[D,I]=min⁡J∈N(D(I,J)+min⁡D[1]∈E⊊D(S[E,J]+S[D−E,J])),S[\{t\}, I] = D(t, I), \qquad S[D, I] = \min_{J \in N}\Big(D(I,J) + \min_{D[1] \in E \subsetneq D}\big(S[E,J] + S[D-E,J]\big)\Big),S[{t},I]=D(t,I),S[D,I]=J∈Nmin​(D(I,J)+D[1]∈E⊊Dmin​(S[E,J]+S[D−E,J])),

and returns

v=min⁡J∈N(D(q,J)+min⁡C[1]∈E⊊C(S[E,J]+S[C−E,J])).v = \min_{J \in N}\Big(D(q,J) + \min_{C[1] \in E \subsetneq C}\big(S[E,J] + S[C-E,J]\big)\Big).v=J∈Nmin​(D(q,J)+C[1]∈E⊊Cmin​(S[E,J]+S[C−E,J])).

A minimum over an empty set is +∞+\infty+∞. In the Lean development these objects are steinerLength, pathDist, tableA and algorithmA in the namespace DreyfusWagner.Steiner.

Formalization targets

Goal: Algorithm A is exact

For every finite connected graph with positive arc lengths, every linear order on its nodes, every YYY with ∥Y∥≥3\|Y\| \ge 3∥Y∥≥3 and every q∈Yq \in Yq∈Y,

v=St⁡(Y).v = \operatorname{St}(Y).v=St(Y).

This is the caption of Algorithm A ("Computes the length of the Steiner tree connecting YYY", p. 203). The statement is an equality, not a bound.

Milestones

In the order the proof uses them:

  1. A Steiner path is a tree (§1, p. 197): a minimum connecting arc set contains no cycle.
  2. The two-node case (Appendix A, p. 205): St⁡({i,j})=D(i,j)\operatorname{St}(\{i,j\}) = D(i,j)St({i,j})=D(i,j).
  3. Theorem 1 (Appendix A, p. 206): for a Steiner tree SSS, a node xxx on it, and a set CCC of arcs of SSS at xxx, the arcs of SSS connecting xxx to the terminals reached through CCC form a Steiner tree for those terminals together with xxx.
  4. Optimal Decomposition Theorem (Appendix A, p. 206): if ∥Y∥≥3\|Y\| \ge 3∥Y∥≥3 and q∈Yq \in Yq∈Y, a Steiner tree for YYY splits into three disjoint Steiner paths, for {p,q}\{p,q\}{p,q}, {p}∪D\{p\} \cup D{p}∪D and {p}∪(Y−D−{q})\{p\} \cup (Y - D - \{q\}){p}∪(Y−D−{q}), where p∈Np \in Np∈N and ∅≠D⊊Y−{q}\emptyset \ne D \subsetneq Y - \{q\}∅=D⊊Y−{q}.
  5. The recurrence (§2, pp. 199–200): for ∥D∥≥2\|D\| \ge 2∥D∥≥2 and any node mmm,
St⁡({m}∪D)=min⁡k∈N(D(m,k)+min⁡∅≠E⊊D(St⁡({k}∪E)+St⁡({k}∪(D−E)))).\operatorname{St}(\{m\} \cup D) = \min_{k \in N}\Big(D(m,k) + \min_{\emptyset \ne E \subsetneq D}\big(\operatorname{St}(\{k\} \cup E) + \operatorname{St}(\{k\} \cup (D - E))\big)\Big).St({m}∪D)=k∈Nmin​(D(m,k)+∅=E⊊Dmin​(St({k}∪E)+St({k}∪(D−E)))).
  1. The table invariant (§2, p. 200): S[D,I]=St⁡({I}∪D)S[D, I] = \operatorname{St}(\{I\} \cup D)S[D,I]=St({I}∪D) for every nonempty DDD and every III.

Two companion items accompany the goal: the numerical illustration of §3 (seven nodes, St⁡(Y)=5\operatorname{St}(Y) = 5St(Y)=5, Algorithm A returns 555), and the exact count of elementary statements of §5, n2(2k−1−k−1)+n(3k−1−2k+3)/2n^2(2^{k-1}-k-1) + n(3^{k-1}-2^k+3)/2n2(2k−1−k−1)+n(3k−1−2k+3)/2.

Significance

The result turns the Steiner problem with few terminals into a polynomial computation in the size of the network: for fixed kkk the running time is O(n3)O(n^3)O(n3) including all-pairs shortest paths. It is the reference exact algorithm against which heuristics and approximation algorithms for Steiner trees are evaluated, a standard example of dynamic programming over subsets, and the origin of the fixed-parameter tractability of the Steiner tree problem parameterized by the number of terminals. The subset recurrence reappears in group Steiner, prize-collecting and directed Steiner variants.

The paper's proof is complete and the result is classical; it has not, to our knowledge, been machine-checked. This mission produces a checked account of the exactness of the recursion: the structural facts about minimum connecting arc sets (acyclicity, optimality of branches, the three-way decomposition) and the passage from these to the algorithm's table. These facts about weighted graphs, minimum connecting arc sets and shortest paths are reusable well beyond this paper.

Difficulty

The upper bound v≥St⁡(Y)v \ge \operatorname{St}(Y)v≥St(Y) is routine: each term of each minimum is the length of some connecting arc set, so no term can beat the optimum. The content is the reverse inequality, which needs the Optimal Decomposition Theorem: one must show that some optimal tree actually splits at a single node ppp into a shortest path to qqq and two optimal subtrees whose terminal sets partition Y−{q}Y - \{q\}Y−{q} into two nonempty parts. The naive choice p=qp = qp=q fails when qqq is a leaf, and the choice of the first branching node fails when the path from qqq meets another terminal first; the paper handles these as separate cases. A second difficulty is the passage from arc sets to trees: minimum connecting sets are forests only because lengths are positive, and "the arcs of SSS involved in connecting" a set of terminals must be identified with a subtree. Finally the table recursion must be matched with the recurrence, including the restriction D[1]∈ED[1] \in ED[1]∈E that enumerates each splitting once.

Formalization scope

Nodes are a finite type V with a LinearOrder (the paper's "(ordered) set"; the goal holds for every order). The graph is a SimpleGraph V with decidable adjacency, arcs are unordered pairs Sym2 V, and lengths are ℓ : Sym2 V → ℝ. Every theorem assumes the paper's standing hypotheses of p. 195: all arcs of GGG have positive length (∀ e ∈ G.edgeSet, 0 < ℓ e) and GGG is connected. The paper allows several arcs between the same two nodes; the simple-graph model keeps one, which does not change any Steiner length since an optimal set uses only the shortest of parallel arcs. Connecting means reachability in the graph formed by the arcs of SSS. Steiner lengths, D(i,j)D(i,j)D(i,j) and all minima of the algorithm take values in WithTop ℝ, where ⊤ is +∞+\infty+∞, ⊤ + x = ⊤ and an empty minimum is ⊤; no real-valued infimum with a junk value is used. D(i,j)D(i,j)D(i,j) is a minimum over paths of GGG.

The goal assumes ∥Y∥≥3\|Y\| \ge 3∥Y∥≥3, the paper's own hypothesis (Appendix A, p. 205). For ∥Y∥=2\|Y\| = 2∥Y∥=2 Algorithm A as printed returns +∞+\infty+∞ because line (18) admits no set EEE; the two-node case is covered by milestone 2. The algorithm is defined from D(i,j)D(i,j)D(i,j), addition and minima only: a formalization in which tableA or algorithmA refers to Steiner lengths, or in which the goal only asserts v≥St⁡(Y)v \ge \operatorname{St}(Y)v≥St(Y), would be trivial and is ruled out. The loop order of lines (4)–(14) is replaced by recursion on ∥D∥\|D\|∥D∥, which the paper states is immaterial (p. 203).

Useful infrastructure: sums of lengths along walks and paths, reachability in edge-subgraphs, acyclicity of minimum connecting sets, and splitting a tree at a node. Contributions of these as reusable lemmas are welcome, as are proofs of individual milestones in any order. Tree reconstruction (§2, p. 200) and the empirical running times (p. 205) are out of scope.

Selected references

  • S. E. Dreyfus, R. A. Wagner, The Steiner Problem in Graphs, Networks 1(3):195–207, 1971. https://doi.org/10.1002/net.3230010302
  • E. N. Gilbert, H. O. Pollak, Steiner Minimal Trees, SIAM Journal on Applied Mathematics 16(1):1–29, 1968. https://doi.org/10.1137/0116001
  • R. W. Floyd, Algorithm 97: Shortest Path, Communications of the ACM 5(6):345, 1962. https://doi.org/10.1145/367766.368168
  • R. E. Erickson, C. L. Monma, A. F. Veinott Jr., Send-and-Split Method for Minimum-Concave-Cost Network Flows, Mathematics of Operations Research 12(4):634–664, 1987. https://doi.org/10.1287/moor.12.4.634
  • A. Björklund, T. Husfeldt, P. Kaski, M. Koivisto, Fourier Meets Möbius: Fast Subset Convolution, STOC 2007, 67–74. https://doi.org/10.1145/1250790.1250801
10 thms3 active usersReviewed
🏆Completed
Operations ResearchOptimizationProbability+1·Captain: mikedeng1

Maximizing Non-Monotone Submodular Functions II: A Nonadaptive Algorithm Achieves 1/3 of the OptimumResearch Paper

Motivation

Maximizing a submodular set function without constraints contains Max Cut, Max Directed Cut, maximum facility location and several graph and hypergraph cut problems as special cases, and it appears in operations research wherever a value exhibits diminishing returns but is not monotone (profit that combines coverage with a cost, for example). These problems are NP-hard, so the question is which fraction of the optimum an efficient algorithm can guarantee when the function is accessible only through a value 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 approximation algorithms for maximizing a general nonnegative submodular function. The simplest of them returns a uniformly random set and achieves 1/41/41/4 of the optimum; this mission is about the next one, a nonadaptive algorithm: it decides all of its oracle queries before seeing any answer, then computes a set from the answers. Such an algorithm can be run in one round of parallel queries. The paper shows that this restricted access already beats 1/41/41/4 and reaches 1/31/31/3.

Timeline. For Max Directed Cut, a random cut achieves 1/41/41/4. Feige, Mirrokni and Vondrák (FOCS 2007; journal version 2011) proved 1/41/41/4 for a random set and 1/31/31/3 nonadaptively for general nonnegative submodular functions, 1/31/31/3 and 2/52/52/5 by adaptive local search, and that 1/21/21/2 requires exponentially many queries. Buchbinder, Feldman, Naor and Schwartz (FOCS 2012, SIAM J. Comput. 2015) later reached the optimal 1/21/21/2 with a randomized double-greedy algorithm.

Setting

Let XXX be a finite ground set with n=∣X∣≥1n = |X| \ge 1n=∣X∣≥1 elements. A function f:2X→Rf : 2^X \to \mathbb{R}f:2X→R is submodular (Definition 1.1) if

f(S∪T)+f(S∩T)≤f(S)+f(T)for all S,T⊆X.f(S \cup T) + f(S \cap T) \le f(S) + f(T) \qquad \text{for all } S, T \subseteq X .f(S∪T)+f(S∩T)≤f(S)+f(T)for all S,T⊆X.

Throughout, fff is nonnegative, the paper's standing assumption, and OPT=max⁡S⊆Xf(S)OPT = \max_{S \subseteq X} f(S)OPT=maxS⊆X​f(S).

For p∈[0,1]p \in [0,1]p∈[0,1], X(p)X(p)X(p) denotes the random subset of XXX containing each element independently with probability ppp; R=X(1/2)R = X(1/2)R=X(1/2) is a uniformly random subset. For a set A⊆XA \subseteq XA⊆X, A(p)A(p)A(p) is the analogous random subset of AAA. The averaged marginal value of an element (Definition 2.4) is

ω(x)=E[f(R∪{x})−f(R∖{x})],R=X(1/2).\omega(x) = \mathbf{E}\big[f(R \cup \{x\}) - f(R \setminus \{x\})\big], \qquad R = X(1/2).ω(x)=E[f(R∪{x})−f(R∖{x})],R=X(1/2).

Algorithm NA (p. 1139):

  1. by random sampling, compute estimates ω~(x)\tilde\omega(x)ω~(x) with ∣ω~(x)−ω(x)∣<OPT/n2|\tilde\omega(x) - \omega(x)| < OPT/n^2∣ω~(x)−ω(x)∣<OPT/n2 for all xxx, with high probability;
  2. independently, sample R=X(1/2)R = X(1/2)R=X(1/2);
  3. with probability 8/98/98/9 return RRR;
  4. with probability 1/91/91/9 return A={x∈X:ω~(x)>0}A = \{x \in X : \tilde\omega(x) > 0\}A={x∈X:ω~(x)>0}.

Given the estimates, the expected value NA returns is 89 E[f(X(1/2))]+19f(A)\tfrac89\,\mathbf{E}[f(X(1/2))] + \tfrac19 f(A)98​E[f(X(1/2))]+91​f(A).

Formalization targets

Goal: Theorem 2.6 in the explicit form of its proof

For every nonnegative submodular fff and every estimate ω~\tilde\omegaω~ with ∣ω~(x)−ω(x)∣<OPT/n2|\tilde\omega(x) - \omega(x)| < OPT/n^2∣ω~(x)−ω(x)∣<OPT/n2 for all xxx,

89 E[f(X(1/2))]+19 f({x:ω~(x)>0}) ≥ (13−49n) OPT.\frac89\,\mathbf{E}[f(X(1/2))] + \frac19\, f\big(\{x : \tilde\omega(x) > 0\}\big) \ \ge\ \Big(\frac13 - \frac{4}{9n}\Big)\, OPT .98​E[f(X(1/2))]+91​f({x:ω~(x)>0}) ≥ (31​−9n4​)OPT.

The printed theorem says "at least (1/3−o(1)) OPT(1/3 - o(1))\,OPT(1/3−o(1))OPT"; the term 4/(9n)4/(9n)4/(9n) is what the proof establishes (p. 1140, last display).

Milestones

  1. 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) for submodular ggg.
  2. Lemma 2.3: E[f(A(p)∪B(q))]≥(1−p)(1−q)f(∅)+p(1−q)f(A)+(1−p)qf(B)+pqf(A∪B)\mathbf{E}[f(A(p) \cup B(q))] \ge (1-p)(1-q) f(\emptyset) + p(1-q) f(A) + (1-p)q f(B) + pq f(A \cup B)E[f(A(p)∪B(q))]≥(1−p)(1−q)f(∅)+p(1−q)f(A)+(1−p)qf(B)+pqf(A∪B) for independently sampled, possibly overlapping A,BA, BA,B.
  3. For B=X∖AB = X \setminus AB=X∖A and any CCC: f(A)+f(B∩C)+f(B∪C)≥f(C)f(A) + f(B \cap C) + f(B \cup C) \ge f(C)f(A)+f(B∩C)+f(B∪C)≥f(C).
  4. If ω≤OPT/n2\omega \le OPT/n^2ω≤OPT/n2 on BBB: E[f(R∪(B∩C))]≤E[f(R)]+OPT/(2n)\mathbf{E}[f(R \cup (B \cap C))] \le \mathbf{E}[f(R)] + OPT/(2n)E[f(R∪(B∩C))]≤E[f(R)]+OPT/(2n).
  5. E[f(R∪(B∩C))]≥14f(B∩C)+14f(C)\mathbf{E}[f(R \cup (B \cap C))] \ge \tfrac14 f(B \cap C) + \tfrac14 f(C)E[f(R∪(B∩C))]≥41​f(B∩C)+41​f(C).
  6. If ω≥−OPT/n2\omega \ge -OPT/n^2ω≥−OPT/n2 on AAA and B=X∖AB = X \setminus AB=X∖A: E[f(R)]≥E[f(R∩(B∪C))]−OPT/(2n)\mathbf{E}[f(R)] \ge \mathbf{E}[f(R \cap (B \cup C))] - OPT/(2n)E[f(R)]≥E[f(R∩(B∪C))]−OPT/(2n).
  7. E[f(R∩(B∪C))]≥14f(C)+14f(B∪C)\mathbf{E}[f(R \cap (B \cup C))] \ge \tfrac14 f(C) + \tfrac14 f(B \cup C)E[f(R∩(B∪C))]≥41​f(C)+41​f(B∪C).

Milestones 3–7 are the displayed steps of the proof of Theorem 2.6, stated for arbitrary sets where the page's argument does not use the optimality of CCC.

Significance

The theorem shows that nonadaptive access, a fixed batch of polynomially many value queries followed by a computation, suffices for a 1/31/31/3-approximation of unconstrained nonnegative submodular maximization, strictly better than the 1/41/41/4 of any algorithm that must return one of its queried sets (the paper shows 1/41/41/4 is optimal in that class, §4.2). The quantity ω\omegaω generalizes the in-degree/out-degree test for Max Directed Cut to arbitrary submodular functions, and Lemmas 2.2 and 2.3 are general sampling inequalities for submodular functions that the paper reuses for its adaptive smooth local search.

Formalizing it produces machine-checked versions of Lemmas 2.2 and 2.3 as statements about exact finite averages, a reusable expectation operator on product-distributed random subsets, and a checked version of the 1/31/31/3 argument with its explicit error term. The result is proved in the paper; to our knowledge none of it has been formalized in a proof assistant.

Difficulty

The two regimes the proof separates, "AAA is already good" and "one of f(B∩C)f(B \cap C)f(B∩C), f(B∪C)f(B \cup C)f(B∪C) is large", must be tied to the value of a uniformly random set, whereas the elements of AAA and BBB are chosen from estimated averages, not from the optimal set CCC. The natural attempt, comparing f(R)f(R)f(R) with f(C)f(C)f(C) element by element, fails because fff is not monotone: adding elements of CCC to RRR can decrease the value. The accuracy OPT/n2OPT/n^2OPT/n2 of the estimates must also be propagated through a sum over up to nnn elements, which is where the error term 4/(9n)4/(9n)4/(9n) comes from. The sampling lemmas require handling expectations over pairs of independent random subsets of possibly overlapping sets.

Formalization scope

  • The ground set is a Fintype X with DecidableEq, assumed Nonempty, so n=∣X∣≥1n = |X| \ge 1n=∣X∣≥1 and the divisions by nnn and n2n^2n2 are genuine; sets are Finset X; fff is real valued with nonnegativity ∀S, 0≤f(S)\forall S,\ 0 \le f(S)∀S, 0≤f(S) as an explicit hypothesis. Lemmas 2.2 and 2.3 are stated for real fff with no sign condition, as printed.
  • OPTOPTOPT is Finset.univ.sup' _ f, the true maximum over all subsets.
  • Every expectation over an independently sampled random set is the exact finite sum F(x)=∑Sf(S)∏i∈Sxi∏i∉S(1−xi)F(x) = \sum_{S} f(S)\prod_{i \in S} x_i \prod_{i \notin S}(1 - x_i)F(x)=∑S​f(S)∏i∈S​xi​∏i∈/S​(1−xi​); X(1/2)X(1/2)X(1/2) is x≡1/2x \equiv 1/2x≡1/2. Expectations over two independent samples (Lemma 2.3) are the corresponding iterated sums. Sampling probabilities carry the hypotheses 0≤p,q≤10 \le p, q \le 10≤p,q≤1.
  • The goal quantifies over every estimate ω~\tilde\omegaω~ satisfying the printed accuracy ∣ω~(x)−ω(x)∣<OPT/n2|\tilde\omega(x) - \omega(x)| < OPT/n^2∣ω~(x)−ω(x)∣<OPT/n2 (strict), with A={x:ω~(x)>0}A = \{x : \tilde\omega(x) > 0\}A={x:ω~(x)>0} (strict). The "with high probability" of NA's first step is this hypothesis; the sampling estimate that makes it likely (Lemma 2.5, a Chernoff-bound argument) is not part of the goal. When OPT=0OPT = 0OPT=0 the hypothesis is unsatisfiable, but then f≡0f \equiv 0f≡0 and nothing is lost.
  • The left-hand side is exactly the mixture 89 E[f(X(1/2))]+19f(A)\tfrac89\,\mathbf{E}[f(X(1/2))] + \tfrac19 f(A)98​E[f(X(1/2))]+91​f(A). A statement with the maximum of the two terms, with exact values ω~=ω\tilde\omega = \omegaω~=ω, or with the o(1)o(1)o(1) replaced by an existential constant or a limit, is a different (and weaker or stronger) theorem and does not close this mission.
  • Printed slip corrected: in the second display on p. 1140, the "===" before −∣A∖C∣ OPT/(2n2)-|A \setminus C|\,OPT/(2n^2)−∣A∖C∣OPT/(2n2) should be "≥\ge≥"; milestone 6 states the inequality.

Welcome contributions: proofs of Lemmas 2.2 and 2.3 (reusable for mission IV of this series), the identity E[f(R∪{x})−f(R)]=12ω(x)\mathbf{E}[f(R \cup \{x\}) - f(R)] = \tfrac12\omega(x)E[f(R∪{x})−f(R)]=21​ω(x), and general lemmas about the operator FFF (splitting a uniform random set along a partition).

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. 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
Graph TheoryOperations ResearchOptimization·Captain: mikedeng1

Shortest Connection Networks And Some Generalizations: Construction Principles P1 and P2 Yield a Shortest Spanning Subtree of Every Connected Labelled GraphResearch Paper

Motivation

Connecting a set of terminals by a network of direct links of least total length is one of the oldest problems of combinatorial optimization. R. C. Prim's 1957 paper in the Bell System Technical Journal (DOI) was motivated by the rate structure for Bell System leased-line services, in which the charge for connecting a set of terminals depends on the length of a shortest network connecting them. The paper states two local construction principles, P1 and P2, and shows that any sequence of their applications produces a shortest network, first for points in the plane and then for arbitrary connected labelled graphs with arbitrary real edge lengths. The paper's §V specialization of the principles, growing a single fragment, is what is now called Prim's algorithm, and its §IV statement is the form of the minimum spanning tree theorem used throughout network design, clustering and approximation algorithms.

Timeline. O. Borůvka (1926) solved the problem for an electrical network in Moravia; V. Jarník (1930) gave the single-fragment procedure; J. B. Kruskal (1956, Proc. AMS 7, 48–50) proved that adding globally shortest links avoiding cycles yields a shortest spanning tree; Prim (1957) gave the more permissive principles P1 and P2, which contain both the Jarník procedure and Kruskal's rule as special orders of application; E. W. Dijkstra (1959) rediscovered the single-fragment procedure.

Setting

Let VVV be a finite set of NNN terminals and GGG a simple graph on VVV, the labelled graph whose edges are the possible links. Each edge eee carries a real length w(e)w(e)w(e); lengths may be negative, zero, or tie. For a finite set FFF of links, H(F)H(F)H(F) denotes the graph on VVV whose edges are the links of FFF.

  • A spanning subtree of GGG is a set FFF of edges of GGG such that H(F)H(F)H(F) is a tree on VVV. Its length is ℓw(F)=∑e∈Fw(e)\ell_w(F) = \sum_{e \in F} w(e)ℓw​(F)=∑e∈F​w(e).
  • A shortest spanning subtree (SSS) is a spanning subtree of least length among all spanning subtrees of GGG. Prim's dictionary is "shortest connection network (SCN) ↔ shortest spanning subtree (SSS)". L(G,w)L(G,w)L(G,w) denotes that least length.
  • Given the links FFF made so far, the connected components of H(F)H(F)H(F) are the isolated terminals (one terminal) and isolated fragments (two or more terminals).
  • Principle 1: any isolated terminal ttt can be connected to a nearest neighbor, a GGG-neighbor nnn with w({t,n})≤w({t,m})w(\{t,n\}) \le w(\{t,m\})w({t,n})≤w({t,m}) for all GGG-neighbors mmm of ttt.
  • Principle 2: any isolated fragment CCC can be connected to a nearest neighbor n∉Cn \notin Cn∈/C by a shortest available link {u,n}\{u,n\}{u,n}, u∈Cu \in Cu∈C; equivalently {u,n}\{u,n\}{u,n} is a shortest edge of GGG with one end in CCC and the other outside.
  • A construction is a sequence of links e0,e1,…e_0, e_1, \dotse0​,e1​,…, each an application of P1 or P2 with respect to the links before it. It is complete when it has N−1N-1N−1 links.

Only edges of GGG are possible links; in Prim's distance table a missing edge has length ∞\infty∞.

Formalization targets

Goal (§IV, p. 1396)

For every finite connected graph GGG and every www,

(∃ a complete construction) ∧ (∀ complete constructions e0,…,eN−2: {e0,…,eN−2} is a SSS of G).\Bigl(\exists\ \text{a complete construction}\Bigr) \ \wedge\ \Bigl(\forall\ \text{complete constructions } e_0,\dots,e_{N-2}:\ \{e_0,\dots,e_{N-2}\} \text{ is a SSS of } G\Bigr).(∃ a complete construction) ∧ (∀ complete constructions e0​,…,eN−2​: {e0​,…,eN−2​} is a SSS of G).

This is the sentence "P1 and P2 will provide a SSS for any connected labelled graph with any set of real edge lengths." It fixes nothing about the order of applications, the component chosen, or the tie-breaking.

Milestones

  1. Counting (§II, p. 1392): after any construction with kkk links, H(F)H(F)H(F) is acyclic with N−kN-kN−k components; a complete construction is a spanning subtree; a construction with fewer than N−1N-1N−1 links can be extended.
  2. Necessary Condition 1 (p. 1392): every terminal of a SSS is linked in it to at least one nearest neighbor.
  3. Necessary Condition 2 (p. 1392): every fragment SSS of a SSS, ∅≠S≠V\emptyset \ne S \ne V∅=S=V, is linked in it to a nearest neighbor by a shortest available link.
  4. Distinct lengths (§III, p. 1393): if the edge lengths are pairwise distinct, every link of every construction belongs to every SSS.
  5. Continuity (§III, p. 1394): w↦L(G,w)w \mapsto L(G,w)w↦L(G,w) is continuous.

Significance

The goal is the correctness theorem of a whole family of greedy minimum spanning tree procedures at once: Jarník–Prim (one growing fragment), Kruskal (globally shortest link first) and Borůvka-style interleavings all produce sequences of P1/P2 applications. Because lengths are arbitrary reals, it also covers maximum spanning trees by a sign change (p. 1397) and graphs that are not complete.

The result is classical and fully proved in the literature. What this mission adds is a machine-checked statement in exactly Prim's generality. Mathlib has spanning trees of connected graphs (SimpleGraph.Connected.exists_isTree_le) and the edge count of trees, but no minimum spanning tree theory. Existing Prove2Me items on minimum spanning trees are either restricted to complete graphs with distance matrices or state a cut property in existence form at a single vertex; none states Prim's principles or his necessary conditions.

Difficulty

The obvious argument, "each link P1 or P2 adds belongs to the shortest network", uses a unique shortest network, and that fails with ties: when two links tie, a P1/P2 link need not lie in a given SSS. Prim's own treatment of ties (§III) is an informal perturbation argument; the formal statement must hold for every tie-breaking choice made during a construction, not only for a generic perturbed instance. Negative lengths remove the easy reading "shortest connected spanning subgraph": the minimum must range over trees only. The statements also involve the component structure of H(F)H(F)H(F) as it changes during a construction, and tree paths in an arbitrary, not necessarily complete, graph.

Formalization scope

Namespace ShortestConnection.Principles, Mathlib SimpleGraph. Conventions:

  • VVV is a Fintype with decidable equality; GGG is a SimpleGraph V (at most one link per pair, no loops, which is Prim's setting). Lengths are w : Sym2 V → ℝ; only values on edges of GGG matter.
  • Link sets are Finset (Sym2 V); linkGraph F is SimpleGraph.fromEdgeSet F. A spanning subtree requires ↑F ⊆ G.edgeSet and (linkGraph F).IsTree.
  • An isolated fragment is a whole connected component of linkGraph F; the P2 condition is a single inequality against every GGG-edge leaving it, which is equivalent to "nearest neighbor and shortest link" in Prim's sense.
  • A construction is a List (Sym2 V) checked entrywise against l.take i; complete means length Fintype.card V - 1 (natural subtraction, used only for nonempty VVV).
  • LLL is sInf of the lengths of spanning subtrees; continuity is in the product topology.

Implicit hypotheses made explicit: GGG connected (hence V≠∅V \ne \emptysetV=∅) wherever an SSS or a complete construction is involved; at least two terminals for Necessary Condition 1; SSS nonempty and S≠VS \ne VS=V for Necessary Condition 2; pairwise distinct edge lengths only in milestone 4, as in the paper's temporary assumption.

The goal's existence clause rules out a vacuous formalization in which no complete construction exists; the step predicates are defined from lengths and components only, never through shortest spanning subtrees, and they are not restricted to one growing fragment or to the globally shortest link.

Needed infrastructure: tree exchange (adding an edge to a spanning tree creates one cycle; removing any other cycle edge yields a spanning tree), component counts under edge addition, and minima of finitely many continuous functions. The exchange and counting lemmas are reusable for any matroid-greedy or spanning-tree mission. Contributions of intermediate lemmas, and proofs of the milestones in any order, are welcome.

Selected references

  • R. C. Prim, Shortest Connection Networks And Some Generalizations, Bell System Technical Journal 36 (1957), 1389–1401. https://doi.org/10.1002/j.1538-7305.1957.tb01515.x
  • J. B. Kruskal, On the shortest spanning subtree of a graph and the traveling salesman problem, Proceedings of the AMS 7 (1956), 48–50. https://doi.org/10.1090/S0002-9939-1956-0078686-7
  • V. Jarník, O jistém problému minimálním, Práce Moravské Přírodovědecké Společnosti 6 (1930), 57–63.
  • O. Borůvka, O jistém problému minimálním, Práce Moravské Přírodovědecké Společnosti 3 (1926), 37–58.
  • R. L. Graham, P. Hell, On the history of the minimum spanning tree problem, Annals of the History of Computing 7 (1985), 43–57. https://doi.org/10.1109/MAHC.1985.10011
10 thms3 active usersReviewed
Operations ResearchOptimizationTheoretical Computer Science·Captain: mikedeng1

Worst-Case Performance Bounds for Simple One-Dimensional Packing Algorithms 4: First-Fit Decreasing Uses at Most 71/60 L* + 5 Bins When No Item Exceeds 1/2Research Paper

Motivation

Bin packing asks how to place a list of items with sizes in (0,1](0,1](0,1] into as few unit-capacity bins as possible. It models the cutting of stock material, the packing of files onto tracks of a disc and the assignment of jobs to machines with a common deadline. Deciding the optimum is NP-hard, so in practice simple rules are used, and the question is how far they can stray from the optimum in the worst case.

Johnson, Demers, Ullman, Garey and Graham (SIAM J. Comput. 3(4), 1974) gave the first sharp worst-case bounds for the four classical rules. For First-Fit Decreasing (FFD), the rule that sorts the items into nonincreasing order and then places each into the first bin with room, they announced the bound FFD(L)≤119L∗+4FFD(L)\le\frac{11}{9}L^*+4FFD(L)≤911​L∗+4, whose full proof in Johnson's thesis exceeds 75 pages. To show the method, Section 4 of the paper proves a simpler bound in detail: when no item exceeds 1/21/21/2, FFD uses at most 7160L∗+5\frac{71}{60}L^*+56071​L∗+5 bins. That result is the subject of this mission.

Timeline:

  • 1973: D. S. Johnson's MIT thesis, Near-optimal bin packing algorithms, contains the complete proofs of the 11/911/911/9 and 71/6071/6071/60 bounds.
  • 1974: Johnson, Demers, Ullman, Garey and Graham publish the 71/6071/6071/60 bound for lists in (0,1/2](0,1/2](0,1/2] (Theorem 4.1) with a proof that is complete except for parts of two lemmas, and show by example that 71/6071/6071/60 cannot be lowered.
  • 1985: B. S. Baker gives a shorter proof of the 11/911/911/9 bound for FFD (J. Algorithms 6, 1985).
  • 2007: G. Dósa determines the tight additive constant 6/96/96/9 in the 11/911/911/9 bound (ESCAPE 2007, LNCS 4614).

Setting

A list is a finite sequence L=(a1,…,an)L=(a_1,\dots,a_n)L=(a1​,…,an​) of real numbers in (0,1](0,1](0,1]; values may repeat. A bin has capacity 111; its level is the sum of the numbers in it. The optimum L∗L^*L∗ is the least number of bins into which the elements of LLL can be placed with no bin level exceeding 111.

First-Fit places a1,a2,…a_1,a_2,\dotsa1​,a2​,… in order into bins B1,B2,…B_1,B_2,\dotsB1​,B2​,…, each initially at level 000: aia_iai​ goes into the bin of least index whose level β\betaβ satisfies β≤1−ai\beta\le 1-a_iβ≤1−ai​. First-Fit Decreasing first arranges LLL into nonincreasing order and then runs First-Fit. FFD(L)FFD(L)FFD(L) is the number of bins it uses.

The proof uses a weight WWW on finite sets of elements. For an integer k≥1k\ge1k≥1, xxx is a kkk-piece if x∈(1k+1,1k]x\in(\frac1{k+1},\frac1k]x∈(k+11​,k1​], and a kkk-bin is a bin whose largest element is a kkk-piece. Set w1(x)=⌊1/x⌋−1w_1(x)=\lfloor 1/x\rfloor^{-1}w1​(x)=⌊1/x⌋−1. A pair (x,y)(x,y)(x,y) obeys relation kkk if xxx is a kkk-piece and kx+y≤1kx+y\le1kx+y≤1; then w2(x,y)=w1(x)+k−1kw1(y)w_2(x,y)=w_1(x)+\frac{k-1}{k}w_1(y)w2​(x,y)=w1​(x)+kk−1​w1​(y), and otherwise w2(x,y)=w1(x)+w1(y)w_2(x,y)=w_1(x)+w_1(y)w2​(x,y)=w1​(x)+w1​(y). For a partition π\piπ of XXX into one- and two-element sets, with each pair ordered (earlier, later) in the nonincreasing order,

w12(π)=∑{x}∈πw1(x)+∑(x,y)∈πw2(x,y),W(X)=min⁡πw12(π).w_{12}(\pi)=\sum_{\{x\}\in\pi}w_1(x)+\sum_{(x,y)\in\pi}w_2(x,y),\qquad W(X)=\min_\pi w_{12}(\pi).w12​(π)={x}∈π∑​w1​(x)+(x,y)∈π∑​w2​(x,y),W(X)=πmin​w12​(π).

BASIC is the set of elements of LLL that are kkk-pieces lying in a kkk-bin of the FFD packing of LLL, for some kkk; SURPLUS is the rest of LLL.

Formalization targets

Goal: Theorem 4.1

for every list L⊆(0,12]:FFD(L)≤7160L∗+5.\text{for every list } L\subseteq(0,\tfrac12]:\qquad FFD(L)\le\frac{71}{60}L^*+5 .for every list L⊆(0,21​]:FFD(L)≤6071​L∗+5.

The constants are those printed in the paper. The multiplicative constant 71/6071/6071/60 is best possible.

Milestones

  1. Lemma 3.3 (FFD part): if FFD(L)>rL∗+dFFD(L)>rL^*+dFFD(L)>rL∗+d with r,d≥1r,d\ge1r,d≥1, the list L′L'L′ of the elements of LLL exceeding (r−1)/r(r-1)/r(r−1)/r also has FFD(L′)>rL′∗+dFFD(L')>rL'^*+dFFD(L′)>rL′∗+d.
  2. Claim 4.2.1: for N≥4N\ge4N≥4 and L⊆(1N,12]L\subseteq(\frac1N,\frac12]L⊆(N1​,21​], ∑x∈BASICw1(x)≥FFD(L)−∑j=2N−1j−1j\sum_{x\in\mathrm{BASIC}}w_1(x)\ge FFD(L)-\sum_{j=2}^{N-1}\frac{j-1}{j}∑x∈BASIC​w1​(x)≥FFD(L)−∑j=2N−1​jj−1​.
  3. Claim 4.2.2: for N≥4N\ge4N≥4, L⊆(1N,12]L\subseteq(\frac1N,\frac12]L⊆(N1​,21​] and every partition π\piπ of LLL into one- and two-element sets, w12(π)≥w1(BASIC)−∑j=3N−11jw_{12}(\pi)\ge w_1(\mathrm{BASIC})-\sum_{j=3}^{N-1}\frac1jw12​(π)≥w1​(BASIC)−∑j=3N−1​j1​.
  4. Lemma 4.2: for N≥4N\ge4N≥4 and L⊆(1N,12]L\subseteq(\frac1N,\frac12]L⊆(N1​,21​], W(L)≥FFD(L)−N+2W(L)\ge FFD(L)-N+2W(L)≥FFD(L)−N+2.
  5. Subadditivity: W(X1∪⋯∪Xk)≤∑iW(Xi)W(X_1\cup\dots\cup X_k)\le\sum_i W(X_i)W(X1​∪⋯∪Xk​)≤∑i​W(Xi​).
  6. Lemma 4.3: if X⊆(17,12]X\subseteq(\frac17,\frac12]X⊆(71​,21​] and ∑x∈Xx≤1\sum_{x\in X}x\le1∑x∈X​x≤1, then W(X)≤7160W(X)\le\frac{71}{60}W(X)≤6071​.

A companion item states the Remark after Theorem 4.1: for every N≥1N\ge1N≥1 there is a list with all elements below 1/31/31/3, L∗=60NL^*=60NL∗=60N and FFD(L)=71NFFD(L)=71NFFD(L)=71N.

Significance

Theorem 4.1 shows the weighting-function method in its simplest nontrivial form: a weight whose total is within a constant of the algorithm's bin count, and which no feasible bin can exceed by more than the target ratio. The same method, with more elaborate weights, gives the 11/911/911/9 bound for FFD, and it is the model for later worst-case analyses of packing heuristics. The Remark shows that 71/6071/6071/60 is exact for items in (0,1/2](0,1/2](0,1/2], and the Corollary on p. 322 extends the analysis to the asymptotic ratio RFFDαR^\alpha_{FFD}RFFDα​ when items are bounded by α∈(8/29,1/2]\alpha\in(8/29,1/2]α∈(8/29,1/2].

The source proof is partial. The billing argument behind Claim 4.2.2 is given only when two auxiliary conditions (G1) and (G2) hold ("The more intricate argument here omitted", p. 321), and Lemma 4.3 is checked in four of about seventy-four cases ("leaving the remaining 70-odd, more or less routine, cases to the ambitious reader", p. 321). Complete details are in Johnson's thesis. The theorem itself is established. A formalization therefore gives the first complete, checked proof in a single place. The finite case analysis of Lemma 4.3 is well suited to machine checking. No machine-checked proof of any FFD bound is known to exist.

Difficulty

The obvious weight w1w_1w1​ alone fails. Claim 4.2.1 shows that w1(BASIC)w_1(\mathrm{BASIC})w1​(BASIC) covers the FFD bins, but many sets XXX of elements with sum at most 111 have w1(X)>71/60w_1(X)>71/60w1​(X)>71/60, for example two 222-pieces, a 555-piece and a 666-piece. The pair discounts of w2w_2w2​ repair Lemma 4.3, but they must then be paid for in Lemma 4.2, for every partition. That is Claim 4.2.2: a charge from each discounted pair to distinct SURPLUS elements that are no larger. The charge is straightforward only when no member of a pair obeying relation kkk lies in a bin of type k′<kk'<kk′<k. In general a pair's larger element may already have been charged by a smaller relation, and the paper omits the argument that handles this. Lemma 4.3 is elementary but has many cases, each determined by the piece types in XXX and the relations they obey.

Formalization scope

A list is L : List ℝ with IsList L (0<a≤10<a\le10<a≤1 for each element) in every statement. L∗L^*L∗ is optBins L, the least bbb such that some map from positions to Fin b has every bin sum at most 111. The First-Fit run keeps the nonempty bins as a List (List ℝ), and opens a new bin at the end exactly when no existing bin fits, which is the paper's "least jjj". The fit test is β+a≤1\beta+a\le1β+a≤1. FFD is First-Fit on sortDesc L, the mergeSort into nonincreasing order; ties do not affect the bin count. Indices are 000-based.

W(X)W(X)W(X) sorts XXX into nonincreasing order and minimises w12w_{12}w12​ over the involutions of its positions: fixed points are singletons, and a pair i<σ(i)i<\sigma(i)i<σ(i) is oriented (larger, smaller). The minimum is over a finite nonempty set, so it is attained. BASIC is a set of positions of sortDesc L, and each position's bin is its bin in the final FFD packing. In w2w_2w2​, k=⌊1/x⌋k=\lfloor1/x\rfloork=⌊1/x⌋ is the piece type of the first element. Sums ∑j=2N−1\sum_{j=2}^{N-1}∑j=2N−1​ are over Finset.Icc 2 (N - 1) with N≥4N\ge4N≥4.

The goal's range is (0,1/2](0,1/2](0,1/2]. The restriction to (1/7,1/2](1/7,1/2](1/7,1/2] belongs only to the proof, through Lemma 3.3. Stating the goal for (1/7,1/2](1/7,1/2](1/7,1/2], weakening 71/6071/6071/60 or 555, or making WWW an unattained infimum would each change the theorem. Only the FFD half of Lemma 3.3 is stated. Claim 4.2.1 is stated with Lemma 4.2's standing hypothesis N≥4N\ge4N≥4. The Remark's printed range 0<ε≤5/870<\varepsilon\le5/870<ε≤5/87 is a misprint: its FFD packing needs ε<1/174\varepsilon<1/174ε<1/174, and the companion item states only the existence claim.

Infrastructure needed: a usable API for the First-Fit run (the invariants of the fold, bin levels, the order of bins), a lemma that FFD bins receive items in nonincreasing order, and a decision procedure for Lemma 4.3's case analysis over piece types. The model file and the weight file are reusable for the 11/911/911/9 bound (mission 3 of this series) and for the bounded-α\alphaα corollaries. Contributions of proofs of Lemma 4.3 by computer-checked case enumeration, and of the missing general case of Claim 4.2.2, are especially welcome.

Selected references

  • D. S. Johnson, A. Demers, J. D. Ullman, M. R. Garey, R. L. Graham, Worst-Case Performance Bounds for Simple One-Dimensional Packing Algorithms, SIAM J. Comput. 3(4):299–325, 1974. https://doi.org/10.1137/0203025
  • D. S. Johnson, Near-Optimal Bin Packing Algorithms, Ph.D. thesis, Massachusetts Institute of Technology, 1973 (reference [8] of the paper).
  • B. S. Baker, A new proof for the first-fit decreasing bin-packing algorithm, J. Algorithms 6, 1985.
  • G. Dósa, The tight bound of first fit decreasing bin-packing algorithm is FFD(I) ≤ 11/9 OPT(I) + 6/9, ESCAPE 2007, Lecture Notes in Computer Science 4614, 2007.
9 thms3 active usersReviewed
🏆Completed
Operations ResearchOptimizationProbability+1·Captain: mikedeng1

Maximizing Non-Monotone Submodular Functions I: A Uniformly Random Set Achieves 1/4 of the Optimum, and 1/2 for Symmetric FunctionsResearch Paper

Motivation

Many combinatorial optimization problems ask for a subset of a finite ground set that maximizes a set function with diminishing returns: Max Cut and Max Directed Cut in graphs, facility location, maximum entropy sampling, and welfare problems in combinatorial auctions all fit this pattern. The common abstraction is the maximization of a submodular function, the discrete analogue of a concave function. Unlike the monotone case, where the objective only grows as elements are added, the non-monotone problem has no constraint at all and is still NP-hard, since Max Cut is a special case.

For Max Cut and Max Directed Cut, the simplest algorithm there is, putting every vertex on a side by an independent fair coin, already cuts half, respectively a quarter, of the optimum in expectation. Feige, Mirrokni and Vondrák (SIAM J. Comput. 40(4), 2011; extended abstract at FOCS 2007) showed that this is not a feature of cut functions: the same random choice achieves the same factors for every nonnegative submodular function, and for every symmetric one. This mission formalizes that result, Theorem 2.1 of the paper, together with the two sampling lemmas on which it rests. The paper's other results (a nonadaptive 1/3-approximation, deterministic and smoothed local search, and query lower bounds) are the subjects of companion missions in the same series.

Setting

Let XXX be a finite set with n=∣X∣n = |X|n=∣X∣ elements. A set function assigns a real number f(S)f(S)f(S) to every subset S⊆XS \subseteq XS⊆X. It is submodular if

f(S∪T)+f(S∩T)≤f(S)+f(T)for all S,T⊆X,f(S \cup T) + f(S \cap T) \le f(S) + f(T) \qquad \text{for all } S, T \subseteq X,f(S∪T)+f(S∩T)≤f(S)+f(T)for all S,T⊆X,

equivalently if the marginal value f(B∪{x})−f(B)f(B \cup \{x\}) - f(B)f(B∪{x})−f(B) of an element xxx does not increase as the set BBB grows. It is symmetric if f(X∖S)=f(S)f(X \setminus S) = f(S)f(X∖S)=f(S) for every S⊆XS \subseteq XS⊆X; the cut function of an undirected graph is the standard example. The optimum is

OPT=max⁡S⊆Xf(S).OPT = \max_{S \subseteq X} f(S).OPT=S⊆Xmax​f(S).

For p∈[0,1]p \in [0,1]p∈[0,1], X(p)X(p)X(p) denotes the random subset of XXX containing each element independently with probability ppp; similarly A(p)A(p)A(p) is the random subset of a fixed A⊆XA \subseteq XA⊆X. The Random Set Algorithm (RS) returns R=X(1/2)R = X(1/2)R=X(1/2), a uniformly random subset of XXX, without querying fff. Its expected value is the average of fff over all subsets,

E[f(R)]=F(12,…,12)=12n∑S⊆Xf(S),\mathbf{E}[f(R)] = F(\tfrac12, \dots, \tfrac12) = \frac{1}{2^n} \sum_{S \subseteq X} f(S),E[f(R)]=F(21​,…,21​)=2n1​S⊆X∑​f(S),

where F(x)=∑S⊆Xf(S)∏i∈Sxi∏i∉S(1−xi)F(x) = \sum_{S \subseteq X} f(S) \prod_{i \in S} x_i \prod_{i \notin S} (1 - x_i)F(x)=∑S⊆X​f(S)∏i∈S​xi​∏i∈/S​(1−xi​) is the multilinear extension of fff, the expectation of fff on a random set that includes element iii independently with probability xix_ixi​.

Formalization targets

Goal: Theorem 2.1

For every nonnegative submodular f:2X→R+f : 2^X \to \mathbb{R}_+f:2X→R+​,

E[f(X(1/2))]≥14 OPT,\mathbf{E}[f(X(1/2))] \ge \tfrac14\, OPT,E[f(X(1/2))]≥41​OPT,

and if fff is in addition symmetric,

E[f(X(1/2))]≥12 OPT.\mathbf{E}[f(X(1/2))] \ge \tfrac12\, OPT.E[f(X(1/2))]≥21​OPT.

Both parts form the goal, stated as one theorem. The constants 14\tfrac1441​ and 12\tfrac1221​ are exact, not asymptotic, and they are tight: the directed cut of a single arc attains 14\tfrac1441​, and the cut of a single edge attains 12\tfrac1221​.

Milestones

  1. Lemma 2.2. For submodular g:2X→Rg : 2^X \to \mathbb{R}g:2X→R, A⊆XA \subseteq XA⊆X and p∈[0,1]p \in [0,1]p∈[0,1],
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).
  1. Lemma 2.3. For submodular f:2X→Rf : 2^X \to \mathbb{R}f:2X→R, sets A,B⊆XA, B \subseteq XA,B⊆X that need not be disjoint, independent samples A(p)A(p)A(p), B(q)B(q)B(q), and p,q∈[0,1]p, q \in [0,1]p,q∈[0,1],
E[f(A(p)∪B(q))]≥(1−p)(1−q)f(∅)+p(1−q)f(A)+(1−p)qf(B)+pqf(A∪B).\mathbf{E}[f(A(p) \cup B(q))] \ge (1-p)(1-q) f(\emptyset) + p(1-q) f(A) + (1-p)q f(B) + pq f(A \cup B).E[f(A(p)∪B(q))]≥(1−p)(1−q)f(∅)+p(1−q)f(A)+(1−p)qf(B)+pqf(A∪B).
  1. The display in the proof of Theorem 2.1. For submodular f:2X→Rf : 2^X \to \mathbb{R}f:2X→R and every S⊆XS \subseteq XS⊆X, with Sˉ=X∖S\bar S = X \setminus SSˉ=X∖S,
E[f(X(1/2))]≥14f(∅)+14f(S)+14f(Sˉ)+14f(X).\mathbf{E}[f(X(1/2))] \ge \tfrac14 f(\emptyset) + \tfrac14 f(S) + \tfrac14 f(\bar S) + \tfrac14 f(X).E[f(X(1/2))]≥41​f(∅)+41​f(S)+41​f(Sˉ)+41​f(X).

The milestones need no sign on the function; nonnegativity enters only in the goal.

Significance

The result. Theorem 2.1 gives an algorithm that makes no query at all and is still a constant-factor approximation for unconstrained non-monotone submodular maximization. It sets the baseline that every later algorithm for the problem is measured against: the paper's own nonadaptive 13\tfrac1331​-algorithm and its local search algorithms with factors 13\tfrac1331​ and 25\tfrac2552​, followed by later work culminating in the tight 12\tfrac1221​-approximation of Buchbinder, Feldman, Naor and Schwartz (FOCS 2012). The paper also shows that 14\tfrac1441​ is optimal among nonadaptive algorithms required to return one of the queried sets, and that 12\tfrac1221​ is optimal for symmetric functions among all algorithms using polynomially many value queries, so both factors of Theorem 2.1 have a precise place in the complexity landscape. Lemma 2.3, the probabilistic inequality behind it, is reused in the analyses of the nonadaptive algorithm and of smooth local search.

Formalizing it. The result is proved, with a short proof. What this mission adds is a machine-checked version of the random-set guarantee and of the two sampling lemmas, stated for arbitrary finite ground sets and, for the lemmas, for real-valued submodular functions without a sign. To our knowledge none of these statements has a machine-checked proof; Mathlib has no theory of submodular set functions or of their multilinear extension.

Difficulty

The goal itself is a two-line consequence of the third milestone. The work sits in the lemmas and in one change of viewpoint.

Lemma 2.2 is not a pointwise statement: the random set A(p)A(p)A(p) can be any subset of AAA, and ggg can be smaller on it than both g(∅)g(\emptyset)g(∅) and g(A)g(A)g(A). The inequality holds only in expectation, and only because submodularity controls the marginal value of each element uniformly across the sets it can be added to. Lemma 2.3 needs a conditioning argument over two independent samples; the sets AAA and BBB may overlap, and on A∩BA \cap BA∩B the union A(p)∪B(q)A(p) \cup B(q)A(p)∪B(q) contains an element with probability 1−(1−p)(1−q)1 - (1-p)(1-q)1−(1−p)(1−q), so it is not the product distribution with probability ppp on AAA and qqq on BBB. Finally, the third milestone requires identifying the uniform random subset X(1/2)X(1/2)X(1/2) with the union of independent half-samples of SSS and of its complement, as a statement about finite sums.

The obvious attempt at the goal, comparing f(R)f(R)f(R) with f(S∗)f(S^*)f(S∗) for an optimal S∗S^*S∗ set by set, fails: fff is not monotone, so a random set that contains most of S∗S^*S∗ may still have small value, and a random set can pick up elements that hurt.

Formalization scope

The ground set is a Lean type X with [Fintype X] [DecidableEq X]; subsets are Finset X and set functions are f : Finset X → ℝ. Submodularity is the lattice inequality of Definition 1.1, not the decreasing-marginals property. Nonnegativity, the paper's standing assumption f:2X→R+f : 2^X \to \mathbb{R}_+f:2X→R+​, is the hypothesis ∀ S, 0 ≤ f S; it appears only in the goal. Symmetry is ∀ S, f Sᶜ = f S for all subsets, not only for an optimal one. OPTOPTOPT is Finset.univ.sup' Finset.univ_nonempty f, a maximum over the always nonempty family of all subsets, so it is attained. The ground set may be empty; the goal holds there too and no nonemptiness is assumed.

Expectations are written as exact finite sums, not as integrals. E[f(X(1/2))]\mathbf{E}[f(X(1/2))]E[f(X(1/2))] is the multilinear extension F f (fun _ => 1/2). E[g(A(p))]\mathbf{E}[g(A(p))]E[g(A(p))] is ∑T⊆Ap∣T∣(1−p)∣A∖T∣g(T)\sum_{T \subseteq A} p^{|T|}(1-p)^{|A \setminus T|} g(T)∑T⊆A​p∣T∣(1−p)∣A∖T∣g(T), and E[f(A(p)∪B(q))]\mathbf{E}[f(A(p) \cup B(q))]E[f(A(p)∪B(q))] is the double sum over independent samples S⊆AS \subseteq AS⊆A, T⊆BT \subseteq BT⊆B with the product of the two weights. The ranges 0≤p≤10 \le p \le 10≤p≤1 and 0≤q≤10 \le q \le 10≤q≤1, implied in the paper by the word "probability", are explicit hypotheses; Lemma 2.2 is false without them.

Trivializing formalizations are excluded: the weights are exactly those of the uniform distribution on all 2n2^n2n subsets, OPTOPTOPT is the true maximum rather than the value at one fixed set, and fff is required to be both nonnegative and submodular.

Reusable infrastructure produced by a complete development: the multilinear extension of a set function and its expression as an expectation, product-weight identities for independent sampling of subsets (including the decomposition of X(1/2)X(1/2)X(1/2) along a set and its complement), and Lemmas 2.2 and 2.3, which the companion missions on the nonadaptive algorithm and on smooth local search also need. Proofs of any milestone are welcome independently.

Selected references

  • U. Feige, V. S. Mirrokni, J. Vondrák, Maximizing Non-Monotone Submodular Functions, SIAM Journal on Computing 40(4):1133–1153, 2011. https://doi.org/10.1137/090779346
  • U. Feige, V. S. Mirrokni, J. Vondrák, Maximizing non-monotone submodular functions, Proceedings of the 48th IEEE Symposium on Foundations of Computer Science (FOCS), 2007, pp. 461–471. https://doi.org/10.1109/FOCS.2007.29
  • N. Buchbinder, M. Feldman, J. Naor, R. Schwartz, A Tight Linear Time (1/2)-Approximation for Unconstrained Submodular Maximization, SIAM Journal on Computing 44(5):1384–1402, 2015 (FOCS 2012). https://doi.org/10.1137/130929205
  • G. L. Nemhauser, L. A. Wolsey, M. L. Fisher, An analysis of approximations for maximizing submodular set functions — I, Mathematical Programming 14:265–294, 1978. https://doi.org/10.1007/BF01588971
8 thms3 active usersReviewed
🏆Completed
Operations ResearchOptimizationTheoretical Computer Science·Captain: mikedeng1

Approximation Techniques for Average Completion Time Scheduling IV: List Scheduling from an Optimal One-Machine Schedule Is a 2-Approximation for In-TreesResearch Paper

Motivation

Minimizing the sum of weighted completion times of jobs on identical parallel machines is one of the basic objectives of machine scheduling: it measures the average time a job spends in the system, weighted by its importance. When the jobs are subject to precedence constraints (a job may start only after certain other jobs have finished), the problem is strongly NP-hard already in very restricted cases, and the question becomes how close to optimal a polynomial-time algorithm can guarantee to be.

Chekuri, Motwani, Natarajan and Stein, Approximation Techniques for Average Completion Time Scheduling (SIAM J. Comput. 31(1), 2001, doi:10.1137/S0097539797327180), develop a general way to turn a good schedule for a single machine into a good schedule for mmm machines. For arbitrary precedence constraints their conversion (Delay List, §4.1–4.3) loses a factor (1+β)ρ+(1+1/β)(1+\beta)\rho+(1+1/\beta)(1+β)ρ+(1+1/β) over a ρ\rhoρ-approximate one-machine schedule, which is 444 when the one-machine schedule is optimal. In §4.4 they show that for in-tree precedence without release dates, the plain list-scheduling rule of Graham, fed with an optimal one-machine schedule, already achieves ratio 222. In-trees are the precedence structures of assembly processes: every job feeds into at most one later job.

Timeline of the relevant results:

  • 1966–1969: Graham introduces list scheduling on parallel machines and analyzes it for makespan (Graham 1969).
  • 1972: Horn gives a polynomial-time optimal one-machine algorithm for weighted completion time under treelike precedence (Horn 1972).
  • 1977: Adolphson gives O(nlog⁡n)O(n\log n)O(nlogn) one-machine algorithms for tree and series-parallel precedence (Adolphson 1977, the paper's reference [1]).
  • 2001: Chekuri, Motwani, Natarajan and Stein prove the ratio-222 bound for in-trees on mmm machines (Theorem 4.17).

Setting

There are nnn jobs J0,…,Jn−1J_0,\dots,J_{n-1}J0​,…,Jn−1​ and m≥1m\ge 1m≥1 identical machines. Job JjJ_jJj​ has a processing time pj>0p_j>0pj​>0 and a weight wj>0w_j>0wj​>0; every job is available at time 000 (there are no release dates).

The precedence constraints form an in-tree (more generally, an in-forest): every job jjj has at most one immediate successor succ⁡(j)\operatorname{succ}(j)succ(j), and following successors never returns to the start. Write i≺ji\prec ji≺j if jjj is reached from iii by following successors one or more times.

A feasible schedule SmS^mSm on mmm machines gives each job a start time Sj≥0S_j\ge 0Sj​≥0 and a machine; a job runs without interruption for pjp_jpj​ time units; two jobs on the same machine do not overlap; and i≺ji\prec ji≺j implies that jjj starts no earlier than iii completes. The completion time is Cjm=Sj+pjC^m_j=S_j+p_jCjm​=Sj​+pj​ and the value of the schedule is ∑jwjCjm\sum_j w_jC^m_j∑j​wj​Cjm​.

The critical-path length κj\kappa_jκj​ (Definition 4.1 with no release dates) is κj=pj\kappa_j=p_jκj​=pj​ if jjj has no predecessors and κj=pj+max⁡i≺jκi\kappa_j=p_j+\max_{i\prec j}\kappa_iκj​=pj​+maxi≺j​κi​ otherwise.

A list is an ordering π\piπ of the jobs that obeys the precedence constraints. It defines the one-machine schedule S1S^1S1 that runs the jobs in list order without idle time; its completion times are Cj1C^1_jCj1​, the total processing time of the jobs up to and including jjj in the list. An optimal one-machine schedule is a list minimizing C1=∑jwjCj1C^1=\sum_j w_jC^1_jC1=∑j​wj​Cj1​.

List scheduling (Graham's rule, footnote 3 of the paper) on mmm machines with list π\piπ: whenever a machine is free, start on it the first job of the list that is ready, i.e. whose predecessors have all completed.

Formalization targets

Goal: Theorem 4.17

Let π\piπ be an optimal one-machine schedule and GGG the list schedule on mmm machines with list π\piπ. Then for every feasible mmm-machine schedule NNN,

∑jwjCjG ≤ 2∑jwjCjN.\sum_j w_jC^G_j\ \le\ 2\sum_j w_jC^N_j .j∑​wj​CjG​ ≤ 2j∑​wj​CjN​.

Milestones

Lemma 4.16 (any precedence-respecting list π\piπ, with its idle-free one-machine schedule S1S^1S1): for every job iii,

CiG ≤ κi+Ci1m.C^G_i\ \le\ \kappa_i+\frac{C^1_i}{m}.CiG​ ≤ κi​+mCi1​​.

Lemma 4.10: COPTm≥COPT1/mC^m_{\mathrm{OPT}}\ge C^1_{\mathrm{OPT}}/mCOPTm​≥COPT1​/m, i.e. ∑jwjCj1/m≤∑jwjCjN\sum_j w_jC^1_j/m\le\sum_j w_jC^N_j∑j​wj​Cj1​/m≤∑j​wj​CjN​ for an optimal list and every feasible NNN.

Lemma 4.11: COPTm≥∑iwiκi=COPT∞C^m_{\mathrm{OPT}}\ge\sum_i w_i\kappa_i=C^\infty_{\mathrm{OPT}}COPTm​≥∑i​wi​κi​=COPT∞​, i.e. ∑iwiκi≤∑iwiCiN\sum_i w_i\kappa_i\le\sum_i w_iC^N_i∑i​wi​κi​≤∑i​wi​CiN​ for every feasible NNN on any number of machines, and the value ∑iwiκi\sum_i w_i\kappa_i∑i​wi​κi​ is attained by a feasible schedule on nnn machines.

Significance

The result. Theorem 4.17 gives a simple, fast algorithm with a guaranteed factor 222 for a strongly NP-hard problem, halving the factor 444 that the general Delay List conversion gives for the same class. The per-job bound of Lemma 4.16 is stronger than the aggregate statement: every single job completes within its critical-path length plus a 1/m1/m1/m share of its one-machine completion time, so the same bound applies to other objectives built from completion times.

Formalizing it. The paper's proof is complete and short, but it argues about events at a time ttt (jobs that finish exactly at ttt, jobs that become ready at ttt, machines freed at ttt) and runs an induction over jobs ordered by start time with an invariant about idle time. A machine-checked version fixes what "list scheduling" means precisely, pins down the counting argument that uses the in-tree structure, and yields reusable definitions of nonpreemptive parallel-machine schedules, critical paths and list schedules. To the knowledge of this mission, none of these results has a machine-checked proof.

Difficulty

List scheduling may start a job that is late in the list before an earlier one, because the earlier job is not yet ready; so the one-machine order is not preserved and the obvious comparison with S1S^1S1 fails. Idle machines are the other obstacle: a machine can stay idle while a job waits for its predecessors, and a per-job bound of the form κi+Ci1/m\kappa_i+C^1_i/mκi​+Ci1​/m holds only if such idle time can be accounted for by JiJ_iJi​'s own chain of predecessors. For general precedence constraints, and for out-trees (every job has at most one immediate predecessor), the paper's accounting breaks down, and the paper states the per-job bound only for in-trees; the in-tree structure is essential to the argument. Events with several jobs finishing at the same instant, and ties in start times, have to be handled without loss.

Formalization scope

  • Jobs are Fin n, machines Fin m, times real numbers. Processing times and weights are strictly positive. There are no release dates: start times are nonnegative. The paper admits pj=0p_j=0pj​=0 only in lower-bound instances elsewhere; the bounds here assume pj>0p_j>0pj​>0.
  • In-trees are encoded by an immediate-successor map succ : Fin n → Option (Fin n) with no cycles; this covers in-forests, the reading of "in-trees" in Theorem 4.17. The precedence relation is its transitive closure.
  • κ\kappaκ is defined by well-founded recursion on the precedence order, exactly as Definition 4.1 with r≡0r\equiv 0r≡0.
  • One-machine schedules are represented by their precedence-respecting order and are idle-free; with no release dates and positive processing times idle time only delays jobs, so optimality among orders is optimality among one-machine schedules. The optimal one-machine schedule is a hypothesis of the goal; the paper's O(nlog⁡n)O(n\log n)O(nlogn) algorithm for computing it (reference [1]) is not formalized, and the running-time claim of Theorem 4.17 is not stated. A separate item asserts that an optimal order exists.
  • List scheduling is specified by two properties that determine Graham's rule up to machine labels: no machine is idle while a ready job waits, and among jobs ready at a start time the earlier one in the list starts first. A separate item asserts that such a schedule exists for every precedence-respecting list, so the goal is not vacuous.
  • Optima are never formed as infima: the approximation ratio is stated against every feasible schedule. A statement of the form "there is an algorithm with ratio 2" would be trivial (an optimal schedule exists) and is ruled out: the goal is about the paper's algorithm.
  • The equality ∑iwiκi=COPT∞\sum_i w_i\kappa_i=C^\infty_{\mathrm{OPT}}∑i​wi​κi​=COPT∞​ in Lemma 4.11 is stated as attainment on nnn machines (as many machines as jobs), which together with the lower bound on every number of machines is the optimum with unboundedly many machines.

Welcome contributions: proofs of the two existence items (Graham's list schedule by event-driven construction; an optimal order over the finite set of linear extensions), of Lemmas 4.10 and 4.11, and of Lemma 4.16. The schedule and list-scheduling definitions are reusable for other parallel-machine results with precedence constraints.

Selected references

  • C. Chekuri, R. Motwani, B. Natarajan, C. Stein, Approximation Techniques for Average Completion Time Scheduling, SIAM J. Comput. 31(1):146–166, 2001. https://doi.org/10.1137/S0097539797327180
  • R. L. Graham, Bounds on multiprocessing timing anomalies, SIAM J. Appl. Math. 17(2):416–429, 1969. https://doi.org/10.1137/0117039
  • W. A. Horn, Single-machine job sequencing with treelike precedence ordering and linear delay penalties, SIAM J. Appl. Math. 23(2):189–202, 1972. https://doi.org/10.1137/0123021
  • D. L. Adolphson, Single machine job sequencing with precedence constraints, SIAM J. Comput. 6(1):40–54, 1977. https://doi.org/10.1137/0206002
6 thms3 active usersReviewed
Operations ResearchOptimizationTheoretical Computer Science·Captain: mikedeng1

Approximation Techniques for Average Completion Time Scheduling III: From One Machine to Many with Delay ListResearch Paper

Motivation

Minimizing the sum of weighted completion times ∑jwjCj\sum_j w_jC_j∑j​wj​Cj​ is one of the standard objectives of machine scheduling: it measures the average time a job spends in the system, weighted by its importance. With release dates or precedence constraints the problem is NP-hard already on one machine, and on mmm identical parallel machines it is harder still, so the literature of the 1990s concentrated on approximation algorithms. Many of these, including LP-based ones, are naturally designed for a single machine, where an order of the jobs determines the schedule.

Chekuri, Motwani, Natarajan and Stein (SIAM J. Comput. 31(1), 2001) gave a generic way to move from one machine to many. Their §4 describes an algorithm, Delay List, that takes any one-machine schedule as a priority list and produces an mmm-machine schedule, and proves that a ρ\rhoρ-approximate one-machine schedule yields a ((1+β)ρ+1+1/β)\bigl((1+\beta)\rho+1+1/\beta\bigr)((1+β)ρ+1+1/β)-approximate mmm-machine schedule for every β>0\beta>0β>0. The guarantee holds with release dates and arbitrary precedence constraints simultaneously, which at the time gave the best bounds known for several special cases, for example a factor 4 for series-parallel precedence without release dates.

Setting

An instance has nnn jobs J0,…,Jn−1J_0,\dots,J_{n-1}J0​,…,Jn−1​. Job JjJ_jJj​ has processing time pj>0p_j>0pj​>0, release date rj≥0r_j\ge 0rj​≥0 and weight wj>0w_j>0wj​>0. Precedence constraints form a strict partial order ≺\prec≺: i≺ji\prec ji≺j means that JjJ_jJj​ may start only after JiJ_iJi​ completes.

A feasible nonpreemptive schedule on mmm machines assigns each job a start time SjS_jSj​ and a machine; each job runs uninterrupted for pjp_jpj​ time units on its machine, two jobs on one machine do not overlap, Sj≥rjS_j\ge r_jSj​≥rj​, and Si+pi≤SjS_i+p_i\le S_jSi​+pi​≤Sj​ whenever i≺ji\prec ji≺j. The completion time is Cj=Sj+pjC_j=S_j+p_jCj​=Sj​+pj​ and the value of the schedule is ∑jwjCj\sum_j w_jC_j∑j​wj​Cj​. A one-machine schedule is the case m=1m=1m=1.

The critical-path length κj\kappa_jκj​ (Definition 4.1) is pj+rjp_j+r_jpj​+rj​ for a job without predecessors and pj+max⁡{max⁡i≺jκi, rj}p_j+\max\{\max_{i\prec j}\kappa_i,\,r_j\}pj​+max{maxi≺j​κi​,rj​} otherwise; it is the earliest time JjJ_jJj​ could complete with unlimited machines.

A list is an ordering π\piπ of the jobs. Delay List with parameter β>0\beta>0β>0 processes time continuously. A job is ready once it is released and all its predecessors have completed; qjmq^m_jqjm​ is the time it becomes ready. The head is the first unscheduled job of the list. Idle machine-time is recorded as charged to jobs. Whenever a machine is idle:

  1. if the head is ready, it is started, and charged all uncharged idle time in (qjm,sjm)(q^m_j,s^m_j)(qjm​,sjm​);
  2. otherwise the first ready job JkJ_kJk​ of the list is started as soon as at least βpk\beta p_kβpk​ units of uncharged idle time have accumulated, and is charged βpk\beta p_kβpk​ of it;
  3. otherwise nothing happens.

For a job JiJ_iJi​, BiB_iBi​ is the set of jobs up to and including JiJ_iJi​ in the list, AiA_iAi​ the set after it, Oi⊆AiO_i\subseteq A_iOi​⊆Ai​ the set of jobs of AiA_iAi​ started before JiJ_iJi​, and p(A)=∑k∈Apkp(A)=\sum_{k\in A}p_kp(A)=∑k∈A​pk​. Definition 4.4 builds from the schedule a backward path Pi′P'_iPi′​ ending at JiJ_iJi​, whose length is κi′\kappa'_iκi′​.

Formalization targets

Goal: Theorem 4.13

Let S1S^1S1 be a feasible one-machine schedule of the instance with ∑jwjCj1≤ρ∑jwjCj′\sum_j w_jC^1_j\le\rho\sum_j w_jC'_j∑j​wj​Cj1​≤ρ∑j​wj​Cj′​ for every feasible one-machine schedule C′C'C′. Let m≥2m\ge 2m≥2 and β>0\beta>0β>0. Every Delay List schedule SmS^mSm built on the completion order of S1S^1S1 satisfies, for every feasible mmm-machine schedule NNN,

∑jwjCjm≤((1+β)ρ+1+1β)∑jwjCjN.\sum_j w_jC^m_j\le\Bigl((1+\beta)\rho+1+\frac1\beta\Bigr)\sum_j w_jC^N_j .j∑​wj​Cjm​≤((1+β)ρ+1+β1​)j∑​wj​CjN​.

Milestones, in the order the proof uses them

  • Fact 4.5: κi′≤κi\kappa'_i\le\kappa_iκi′​≤κi​.
  • Fact 4.6: the idle time charged to JiJ_iJi​ is at most βpi\beta p_iβpi​.
  • Lemma 4.7: no uncharged idle time remains in (qim,sim)(q^m_i,s^m_i)(qim​,sim​), and that idle time is charged only to jobs in BiB_iBi​.
  • Lemma 4.8: the idle time charged to AiA_iAi​ within (0,sim)(0,s^m_i)(0,sim​) is at most m(κi′−pi)m(\kappa'_i-p_i)m(κi′​−pi​), so p(Oi)≤m(κi′−pi)/β≤m(κi−pi)/βp(O_i)\le m(\kappa'_i-p_i)/\beta\le m(\kappa_i-p_i)/\betap(Oi​)≤m(κi′​−pi​)/β≤m(κi​−pi​)/β.
  • Theorem 4.9: Cim≤(1+β)p(Bi)/m+(1+1/β)κi′−pi/βC^m_i\le(1+\beta)p(B_i)/m+(1+1/\beta)\kappa'_i-p_i/\betaCim​≤(1+β)p(Bi​)/m+(1+1/β)κi′​−pi​/β for any list obeying precedence.
  • Lemma 4.10: COPTm≥COPT1/mC^m_{\mathrm{OPT}}\ge C^1_{\mathrm{OPT}}/mCOPTm​≥COPT1​/m.
  • Lemma 4.11: COPTm≥∑iwiκi=COPT∞C^m_{\mathrm{OPT}}\ge\sum_i w_i\kappa_i=C^\infty_{\mathrm{OPT}}COPTm​≥∑i​wi​κi​=COPT∞​.
  • Corollary 4.12: Cim≤(1+β)Ci1/m+(1+1/β)κiC^m_i\le(1+\beta)C^1_i/m+(1+1/\beta)\kappa_iCim​≤(1+β)Ci1​/m+(1+1/β)κi​ when the list is the completion order of S1S^1S1.

A further item states that a Delay List schedule exists for every instance and every list, so that the goal does not hold vacuously.

Significance

The result. Theorem 4.13 turns every one-machine approximation algorithm for weighted completion time with release dates and precedence into an mmm-machine algorithm at a bounded loss. With an optimal one-machine schedule and β=1\beta=1β=1 the factor is 444 (Corollary 4.14, for series-parallel orders), and the bounds are job-by-job (Theorem 4.9, Corollary 4.12), which the paper uses in Remark 4.15 to extend the method to other metrics and to one-machine schedules that ignore release dates. The same algorithm is the engine of the paper's 222\sqrt222​-approximation for parallel machines with release dates (§4.5).

Formalizing it. The theorem has been proved since 1997 (SODA) and 2001 (journal). There is no machine-checked version of it or of any of its lemmas, and the platform currently has no model of scheduling with release dates and precedence constraints. A formalization produces a precise specification of Delay List, whose informal description is given in discrete time and repaired in a remark; a checked proof of the charging argument; and reusable lower bounds (Lemmas 4.10 and 4.11) for any later work on parallel-machine scheduling with precedence.

Difficulty

The obvious attempt, list scheduling (start the first available job of the list whenever a machine is free), fails with non-identical processing times: a long job taken out of order can occupy a machine and delay a more valuable job that becomes ready shortly afterwards. Delay List allows out-of-order jobs only against accumulated idle time, and the analysis rests on a charging invariant. Stating it needs care about time (the paper's discrete-time exposition can over-charge by a time unit), about which idle time a charge consumes, and about many jobs being scheduled at one instant. The bound must hold simultaneously for release dates and arbitrary precedence constraints, where idle machines can be forced both by jobs that are not yet released and by chains of predecessors, and it must hold for every tie-breaking choice of the algorithm.

Formalization scope

Jobs are Fin n, machines Fin m, and times are real numbers. Processing times are positive, release dates nonnegative and weights positive, as in §1. Precedence is a strict partial order, the transitive closure of the paper's DAG; κ\kappaκ, readiness and feasibility are unchanged by taking the closure. The optimum is never a real infimum: "within a factor ρ\rhoρ of an optimal one-machine schedule" and "within a factor ccc of an optimal mmm-machine schedule" are inequalities against every feasible schedule of the same instance, with the same release dates and precedence constraints.

Delay List is formalized in the continuous-time version described in the proof of Fact 4.6, as a predicate on runs that records start times, machines, the order in which jobs are scheduled at equal times, and charge windows. A case-2 charge takes the most recent uncharged idle time, and idle time is charged by whole time slices. Every guarantee is claimed for every run satisfying the predicate. The ties in Definition 4.4 are broken arbitrarily, so statements involving κi′\kappa'_iκi′​ hold for every admissible path. Lemma 4.10 uses nonpreemptive one-machine schedules. Lemma 4.11's COPT∞C^\infty_{\mathrm{OPT}}COPT∞​ is modelled by nnn machines.

It would be trivializing to assume the conclusions of Fact 4.6 or Lemma 4.7 as properties of the run, or to measure ρ\rhoρ against a relaxation without release dates or precedence; both are ruled out. The algorithm's rules are the only hypotheses on the run.

Not stated: the running time of Delay List; the discrete-time algorithm; Corollary 4.14 (it needs a formal class of series-parallel orders and the external one-machine algorithm of Adolphson for them); Remark 4.15 (release-date-free one-machine schedules), whose hypotheses the paper does not pin down; and the extension to delays between jobs. Contributions of general infrastructure, such as idle-time accounting for step functions and lemmas about list schedules under precedence, are welcome and reusable beyond this mission.

Selected references

  • C. Chekuri, R. Motwani, B. Natarajan, C. Stein, Approximation Techniques for Average Completion Time Scheduling, SIAM Journal on Computing 31(1):146–166, 2001. https://doi.org/10.1137/S0097539797327180
  • R. L. Graham, Bounds for certain multiprocessing anomalies, Bell System Technical Journal 45:1563–1581, 1966. https://doi.org/10.1002/j.1538-7305.1966.tb01709.x
  • D. Adolphson, Single machine job sequencing with precedence constraints, SIAM Journal on Computing 6(1):40–54, 1977. https://doi.org/10.1137/0206002
12 thms3 active usersReviewed
Operations ResearchOptimizationTheoretical Computer Science·Captain: mikedeng1

Approximation Techniques for Average Completion Time Scheduling II: A 2.83-Approximation for Parallel Machines with Release DatesResearch Paper

Motivation

Minimizing the average completion time of jobs that arrive over time is a basic objective in machine scheduling. It measures how long a job spends in the system on average. With several identical machines, release dates and no preemption (written P∣rj∣∑CjP|r_j|\sum C_jP∣rj​∣∑Cj​), the problem is strongly NP-hard already on one machine. Research has therefore looked for approximation algorithms: polynomial-time rules whose total completion time is provably within a constant factor of every feasible schedule.

A common approach solves a relaxation that is easy to optimize and converts its solution into a feasible schedule. Chekuri, Motwani, Natarajan and Stein (SIAM J. Comput. 31(1), 2001) use a relaxation that needs neither linear programming nor dynamic programming: pretend that the mmm machines are one machine that is mmm times as fast, and allow preemption.

Timeline:

  • 1996, Chakrabarti, Phillips, Schulz, Shmoys, Stein and Wein (ICALP 1996, LNCS 1099, pp. 646–657): a (2.89+ϵ)(2.89+\epsilon)(2.89+ϵ)-approximation for P∣rj∣∑CjP|r_j|\sum C_jP∣rj​∣∑Cj​.
  • 2001, Chekuri, Motwani, Natarajan and Stein (SIAM J. Comput. 31(1), §3 and §4.5). §3 gives a simple (3−1/m)(3-1/m)(3−1/m)-approximation by list scheduling from the one-machine relaxation. §4.5 combines it with the Delay List conversion to obtain 22≈2.832\sqrt2\approx2.8322​≈2.83. This mission's goal is the §4.5 result.
  • 1999, Afrati, Bampis, Chekuri, Karger, Kenyon, Khanna, Milis, Queyranne, Skutella, Stein and Sviridenko (FOCS 1999, pp. 32–43): polynomial-time approximation schemes for P∣rj∣∑wjCjP|r_j|\sum w_jC_jP∣rj​∣∑wj​Cj​. These settle the approximability, but the algorithms are far more involved than the ones formalized here.

Setting

An instance has nnn jobs J0,…,Jn−1J_0,\dots,J_{n-1}J0​,…,Jn−1​ and m≥1m\ge1m≥1 identical machines. Job JjJ_jJj​ has a processing time pj>0p_j>0pj​>0 and a release date rj≥0r_j\ge0rj​≥0.

A feasible schedule gives each job a start time Sj≥rjS_j\ge r_jSj​≥rj​ and a machine. Job JjJ_jJj​ runs without interruption on its machine during [Sj,Sj+pj)[S_j,S_j+p_j)[Sj​,Sj​+pj​), and two jobs on the same machine never overlap. The completion times are Cj=Sj+pjC_j=S_j+p_jCj​=Sj​+pj​ and the objective is ∑jCj\sum_j C_j∑j​Cj​. Cj∗C^*_jCj∗​ denotes the completion times of an arbitrary feasible schedule, against which every bound is stated.

The one-machine relaxation I1I1I1 has the same jobs and a single machine. Job JjJ_jJj​ has processing time pj/mp_j/mpj​/m and release date rjr_jrj​ in I1I1I1, and may be preempted. A preemptive schedule P1P1P1 of I1I1I1 gives each job a processing rate ρj(t)≥0\rho_j(t)\ge0ρj​(t)≥0. The rates sum to at most 111 at each time, and no job is processed before its release date. Each job receives pj/mp_j/mpj​/m units in total. Its completion time CjP1C^{P1}_jCjP1​ is the first time by which all of it has been processed. P1P1P1 is optimal if ∑jCjP1\sum_j C^{P1}_j∑j​CjP1​ is minimal among all such schedules.

A list is an ordering π\piπ of the jobs, and the completion order of P1P1P1 lists the jobs by nondecreasing CjP1C^{P1}_jCjP1​. Two ways of turning a list into an mmm-machine schedule are compared.

  • Strict-order list scheduling gives the schedule NNN. The jobs start in the order of the list. Each job starts at the earliest time that is no earlier than its release date, no earlier than the previous job's start, and at which some machine is free.
  • Delay List with parameter β>0\beta>0β>0 gives the schedule DDD. When a machine is idle, Delay List starts the first unscheduled job of the list if it has been released. If that job has not been released, the first released job of the list may jump ahead, but only once at least βpj\beta p_jβpj​ units of idle time (machine × time) have accumulated that no earlier job has charged. The job then charges exactly that amount. A job started in list order charges all uncharged idle time since its release.

Formalization targets

Goal: Lemma 4.19

With P1P1P1 optimal, π\piπ its completion order, NNN the strict-order list schedule of π\piπ and DDD a Delay List schedule of π\piπ with β0=3−22\beta_0=\sqrt{3-2\sqrt2}β0​=3−22​​, every feasible schedule satisfies

min⁡(∑jCjN, ∑jCjD)≤22 ∑jCj∗.\min\Bigl(\sum_j C^N_j,\ \sum_j C^D_j\Bigr)\le 2\sqrt2\,\sum_j C^*_j .min(j∑​CjN​, j∑​CjD​)≤22​j∑​Cj∗​.

The printed lemma says 2.832.832.83. Its proof gives 22≈2.82842\sqrt2\approx2.828422​≈2.8284, which is stated here.

Milestones

In the order the proof uses them:

  1. (4.2): if ∑jpj>α∑jCj∗\sum_j p_j>\alpha\sum_j C^*_j∑j​pj​>α∑j​Cj∗​ then ∑jrj≤(1−α)∑jCj∗\sum_j r_j\le(1-\alpha)\sum_j C^*_j∑j​rj​≤(1−α)∑j​Cj∗​.
  2. Lemma 3.1: ∑jCjP1≤∑jCj∗\sum_j C^{P1}_j\le\sum_j C^*_j∑j​CjP1​≤∑j​Cj∗​ for P1P1P1 optimal.
  3. (3.3): ∑jCjN≤2∑jCjP1+(1−1/m)∑jpj\sum_j C^N_j\le 2\sum_j C^{P1}_j+(1-1/m)\sum_j p_j∑j​CjN​≤2∑j​CjP1​+(1−1/m)∑j​pj​ for any P1P1P1.
  4. Lemma 3.2: ∑jCjN≤(3−1/m)∑jCj∗\sum_j C^N_j\le(3-1/m)\sum_j C^*_j∑j​CjN​≤(3−1/m)∑j​Cj∗​.
  5. Theorem 4.9, specialised to no precedence constraints. With BiB_iBi​ the jobs at or before JiJ_iJi​ in the list,
CiD≤(1+β)p(Bi)m+(1+1β)(ri+pi)−piβ.C^D_i\le\frac{(1+\beta)p(B_i)}{m}+\Bigl(1+\frac1\beta\Bigr)(r_i+p_i)-\frac{p_i}{\beta}.CiD​≤m(1+β)p(Bi​)​+(1+β1​)(ri​+pi​)−βpi​​.
  1. Lemma 4.18: ∑jCjD≤(2+β)∑jCj∗+1β∑jrj\sum_j C^D_j\le(2+\beta)\sum_j C^*_j+\frac1\beta\sum_j r_j∑j​CjD​≤(2+β)∑j​Cj∗​+β1​∑j​rj​.
  2. The balanced bound: under (4.2)'s hypothesis, ∑jCjD≤(2+β+(1−α)/β)∑jCj∗\sum_j C^D_j\le(2+\beta+(1-\alpha)/\beta)\sum_j C^*_j∑j​CjD​≤(2+β+(1−α)/β)∑j​Cj∗​.
  3. The constants: at α=22−2\alpha=2\sqrt2-2α=22​−2 and β=3−22\beta=\sqrt{3-2\sqrt2}β=3−22​​, 2+α=2+β+(1−α)/β=222+\alpha=2+\beta+(1-\alpha)/\beta=2\sqrt22+α=2+β+(1−α)/β=22​.

Two existence statements accompany them. One says an optimal P1P1P1 exists. The other says a Delay List schedule exists for every list and every β>0\beta>0β>0.

Significance

The result gives a 222\sqrt222​-approximation for P∣rj∣∑CjP|r_j|\sum C_jP∣rj​∣∑Cj​ that is simple to state and runs in O(nlog⁡n)O(n\log n)O(nlogn) time. It improves the 2.89+ϵ2.89+\epsilon2.89+ϵ bound of Chakrabarti et al. Neither of its two algorithms achieves the ratio alone. It comes from an analysis in which each algorithm is good exactly when the other is bad. List scheduling is good when processing times are small relative to the optimum. Delay List is good when release dates are small. The inequality (4.2) connects the two cases.

The component results are reusable beyond this paper. The one-machine relaxation lower bound (Lemma 3.1) and the (3−1/m)(3-1/m)(3−1/m) bound for list scheduling from it (Lemma 3.2) apply to any conversion from a fast single machine. The per-job bound of Theorem 4.9 is the core of the Delay List technique. Its general form, with precedence constraints, drives the paper's results for precedence-constrained scheduling.

All results are proved in the paper. None of them has a machine-checked proof that this mission knows of. A formalization would check the Delay List charging argument, which the paper states only in discrete time and adapts to continuous time in one sentence. It would also produce reusable Lean definitions of parallel-machine schedules with release dates and of list scheduling.

Difficulty

The arithmetic of the goal is routine once the milestones are in place. The substance lies in two places.

The first is Lemma 3.1 together with the "standard makespan argument" behind (3.2). The one-machine relaxation must be related to the mmm-machine schedule, and to the list schedule, with care about release dates. In particular, in the list schedule every machine is busy between the last release among the first jjj jobs of the list and the start of the jjj-th job. Proving this needs the strict order.

The second, and harder, is Theorem 4.9. The obvious argument bounds the waiting time of job JiJ_iJi​ by the work of the jobs ahead of it, but Delay List lets later jobs jump ahead. The idle time before JiJ_iJi​ starts and the work of the jobs that jump ahead of it must both be controlled, and the paper's charging argument for this depends on where charged idle time lies on the time axis and on which jobs charged it. Making that bookkeeping precise for a continuous-time algorithm is the main formalization cost.

Formalization scope

Jobs are Fin n and machines Fin m with m≥1m\ge1m≥1. Times are real, processing times are positive and release dates nonnegative. There are no weights and no precedence constraints. "Optimal" is never an infimum. Every bound is stated against every feasible nonpreemptive schedule, and P1P1P1's optimality is the hypothesis that its total completion time is at most that of every preemptive schedule of I1I1I1.

Committed conventions:

  • Preemptive schedules of I1I1I1 are rate functions, so the machine of I1I1I1 may be shared. The paper's one-job-at-a-time schedules are a special case.
  • Lists are bijections Fin n ≃ Fin n. A list of P1P1P1 may break ties in completion time in any way, and every such list is covered.
  • NNN is the strict-order variant of list scheduling, which footnote 3 of the paper contrasts with the greedy variant used in §4. It is a recursive definition over list positions.
  • Delay List is the continuous-time algorithm, as adopted in the proof of Fact 4.6. It is a predicate on start times, machines, the scheduling order and charge windows. A job scheduled out of order takes its charge from the most recent uncharged idle time; the paper leaves this placement open. Theorem 4.9 and Lemma 4.18 assume m≥2m\ge2m≥2, the setting of §4.1. The goal assumes only m≥1m\ge1m≥1.
  • The printed Lemma 4.18 lacks a ∑j\sum_j∑j​ on the C∗C^*C∗ term. The summed form of its proof's last display is stated.

The statement cannot be made easy by the hypotheses. Two existence items show that an optimal P1P1P1 and a Delay List schedule always exist, so no statement is vacuous. The bound is against every feasible schedule, not against the relaxation's value.

Not stated: the O(nlog⁡n)O(n\log n)O(nlogn) running time, the on-line version of §3's algorithm, and Delay List with precedence constraints (Theorem 4.9 in general, which is the subject of mission III of this series). Contributions welcome: proofs of the milestones, and reusable lemmas on list scheduling with release dates.

Selected references

  • C. Chekuri, R. Motwani, B. Natarajan, C. Stein, Approximation Techniques for Average Completion Time Scheduling, SIAM J. Comput. 31(1):146–166, 2001. https://doi.org/10.1137/S0097539797327180
  • S. Chakrabarti, C. A. Phillips, A. S. Schulz, D. B. Shmoys, C. Stein, J. Wein, Improved scheduling algorithms for minsum criteria, in Proceedings of ICALP 1996, LNCS 1099, Springer, pp. 646–657 (reference [3] of the paper).
  • F. Afrati et al., Approximation schemes for minimizing average weighted completion time with release dates, in Proceedings of the 40th IEEE FOCS, 1999, pp. 32–43 (reference [2] of the paper).
11 thms3 active usersReviewed
Operations ResearchOptimizationProbability+1·Captain: mikedeng1

Approximation Techniques for Average Completion Time Scheduling I: Best-α on One Machine with Release DatesResearch Paper

Motivation

Minimizing the average completion time of jobs that arrive over time is one of the basic objectives of machine scheduling: it measures how long, on average, a job waits in the system. On a single machine with release dates and no preemption (written 1∣rj∣∑Cj1|r_j|\sum C_j1∣rj​∣∑Cj​), the problem is strongly NP-hard, so research has focused on approximation algorithms whose guarantees are stated against every feasible schedule.

The standard route runs through the preemptive relaxation. When jobs may be interrupted and resumed, the shortest-remaining-processing-time rule (SRPT) produces an optimal schedule, and its value is a lower bound for every nonpreemptive schedule. The question is how to turn that preemptive schedule into a nonpreemptive one without losing too much.

Timeline:

  • 1995, Phillips, Stein and Wein (WADS 1995, pp. 86–97): order the jobs by their SRPT completion times and schedule them nonpreemptively in that order. This gives a 2-approximation. Later 2-approximations are by Hoogeveen and Vestjens (IPCO 1996), Stougie (1995), and Goemans (SODA 1997). Hoogeveen and Vestjens also showed that deterministic on-line algorithms cannot beat 2.
  • 2001, Chekuri, Motwani, Natarajan and Stein (SIAM J. Comput. 31(1)): order by α\alphaα-points instead of completion times, choose α\alphaα at random, and take the best α\alphaα off-line. This gives the e/(e−1)≈1.58e/(e-1)\approx1.58e/(e−1)≈1.58 bound for Best-α\alphaα that is the goal of this mission, and an optimal randomized on-line algorithm.
  • 1999, Afrati et al. (FOCS 1999): a polynomial-time approximation scheme for 1∣rj∣∑wjCj1|r_j|\sum w_jC_j1∣rj​∣∑wj​Cj​. This settled the approximability of the problem, but the resulting algorithms are far from simple.

Setting

An instance has nnn jobs J0,…,Jn−1J_0,\dots,J_{n-1}J0​,…,Jn−1​. Job JjJ_jJj​ has a processing time pj>0p_j>0pj​>0, a release date rj≥0r_j\ge0rj​≥0, and, where the objective is weighted, a weight wj>0w_j>0wj​>0. There is one machine.

A nonpreemptive schedule assigns each job a start time Sj≥rjS_j\ge r_jSj​≥rj​ such that the intervals [Sj,Sj+pj)[S_j,S_j+p_j)[Sj​,Sj​+pj​) are pairwise disjoint. Its completion times are Cj=Sj+pjC_j=S_j+p_jCj​=Sj​+pj​.

A preemptive schedule PPP specifies, for each time ttt, which job runs at ttt, if any. Job JjJ_jJj​ runs only at times t≥max⁡(0,rj)t\ge\max(0,r_j)t≥max(0,rj​), receives exactly pjp_jpj​ units of processing in total, and finishes by some finite time. Its completion time CjPC^P_jCjP​ is the first time by which all of JjJ_jJj​ has been processed. For α∈(0,1]\alpha\in(0,1]α∈(0,1], its α\alphaα-point CjP(α)C^P_j(\alpha)CjP​(α) is the first time by which αpj\alpha p_jαpj​ units have been processed.

For a job JiJ_iJi​, TiT_iTi​ denotes the idle time of PPP before CiPC^P_iCiP​. xijx_{ij}xij​ denotes the fraction of JjJ_jJj​ processed before CiPC^P_iCiP​. The paper writes SiP(β)S^P_i(\beta)SiP​(β) for the set of jobs with xij=βx_{ij}=\betaxij​=β, and also for their total processing time.

One-machine list scheduling in a given order runs the jobs nonpreemptively in that order. Each job starts at the later of its release date and the completion of the previous job in the list. An α\alphaα-schedule is list scheduling in nondecreasing order of the α\alphaα-points CjP(α)C^P_j(\alpha)CjP​(α). CjαC^\alpha_jCjα​ denotes the completion times of an α\alphaα-schedule.

Random-α\alphaα draws α\alphaα from a distribution on (0,1](0,1](0,1] and outputs the α\alphaα-schedule. Best-α\alphaα outputs the α\alphaα-schedule of smallest total completion time min⁡α∑jCjα\min_\alpha\sum_j C^\alpha_jminα​∑j​Cjα​.

Formalization targets

Goal: Corollary 2.7

Let PPP be optimal among preemptive schedules for ∑jCj\sum_j C_j∑j​Cj​. Then there is α∈(0,1]\alpha\in(0,1]α∈(0,1] such that every α\alphaα-schedule derived from PPP satisfies

∑jCjα  ≤  ee−1∑jCjfor every feasible nonpreemptive schedule (Cj)j.\sum_j C^\alpha_j\;\le\;\frac{e}{e-1}\sum_j C_j\qquad\text{for every feasible nonpreemptive schedule } (C_j)_j .j∑​Cjα​≤e−1e​j∑​Cj​for every feasible nonpreemptive schedule (Cj​)j​.

Since Best-α\alphaα returns a schedule no worse than this α\alphaα-schedule, Best-α\alphaα is an e/(e−1)e/(e-1)e/(e−1)-approximation.

Milestones

  1. The calculus behind the constant. For f(α)=eα/(e−1)f(\alpha)=e^\alpha/(e-1)f(α)=eα/(e−1) and every β∈(0,1]\beta\in(0,1]β∈(0,1],
∫0β1+α−ββf(α) dα=1e−1.\int_0^\beta\frac{1+\alpha-\beta}{\beta}f(\alpha)\,d\alpha=\frac1{e-1}.∫0β​β1+α−β​f(α)dα=e−11​.
  1. Lemma 2.2: CiP=Ti+∑0<β≤1βSiP(β)C^P_i=T_i+\sum_{0<\beta\le1}\beta S^P_i(\beta)CiP​=Ti​+∑0<β≤1​βSiP​(β).
  2. Lemma 2.3: Ciα≤Ti+(1+α)∑β≥αSiP(β)+∑β<αβSiP(β)C^\alpha_i\le T_i+(1+\alpha)\sum_{\beta\ge\alpha}S^P_i(\beta)+\sum_{\beta<\alpha}\beta S^P_i(\beta)Ciα​≤Ti​+(1+α)∑β≥α​SiP​(β)+∑β<α​βSiP​(β).
  3. Lemma 2.5: if α\alphaα has density fff on (0,1](0,1](0,1], then E[Ciα]≤(1+δ)CiPE[C^\alpha_i]\le(1+\delta)C^P_iE[Ciα​]≤(1+δ)CiP​ with δ=max⁡0<β≤1∫0β1+α−ββf(α) dα\delta=\max_{0<\beta\le1}\int_0^\beta\frac{1+\alpha-\beta}{\beta}f(\alpha)\,d\alphaδ=max0<β≤1​∫0β​β1+α−β​f(α)dα.
  4. Theorem 2.6, for the weighted objective with PPP optimal among preemptive schedules: the expected approximation ratio of Random-α\alphaα is at most 222 for uniform α\alphaα, at most 1.81.81.8 for α=1\alpha=1α=1 w.p. 3/53/53/5 and α=1/2\alpha=1/2α=1/2 w.p. 2/52/52/5, and at most e/(e−1)e/(e-1)e/(e−1) for the density eα/(e−1)e^\alpha/(e-1)eα/(e−1).

Companion statements, not milestones:

  • the upper bound of Theorem 2.1, ∑jCjα≤(1+1/α)∑jCjP\sum_jC^\alpha_j\le(1+1/\alpha)\sum_jC^P_j∑j​Cjα​≤(1+1/α)∑j​CjP​;
  • the existence of an optimal preemptive schedule.

Significance

The e/(e−1)e/(e-1)e/(e−1) bound shows that conversion from the preemptive relaxation can beat the factor 2 of the natural ordering. It does so by exploiting that no single instance is bad for many values of α\alphaα at once. The α\alphaα-point technique was also used with LP relaxations, for example by Goemans (SODA 1997) and by Schulz and Skutella. The randomized version is an optimal randomized on-line algorithm for 1∣rj∣∑Cj1|r_j|\sum C_j1∣rj​∣∑Cj​. Lemma 2.3 is a statement about any preemptive schedule, so it applies wherever a good preemptive or fractional schedule is available.

All results of the mission are proved in the paper, except that the proof of Theorem 2.6, part 2 is omitted there. No machine-checked proof of them is known. A complete development would give a verified model of preemptive one-machine schedules, α\alphaα-points and list scheduling, together with the averaging argument over α\alphaα. These are reusable for the later results of the same paper and for the α\alphaα-point literature.

Difficulty

The obvious argument bounds each job's α\alphaα-schedule completion time directly against its preemptive completion time. That argument loses a factor 1+1/α1+1/\alpha1+1/α (Theorem 2.1), which is at least 2 for every fixed α\alphaα. The improvement needs Lemma 2.3. There the charge to each job depends on how much of it was done by CiPC^P_iCiP​ relative to α\alphaα, and the idle time TiT_iTi​ is not inflated at all. Proving Lemma 2.3 requires reasoning about a preemptive schedule as a measure on time, and about how moving pieces of jobs changes completion times. A proof that treats the preemptive schedule as a finite list of pieces must first show that nothing is lost by this discretization.

The averaging step needs the expectation over α\alphaα to be an honest integral. The map α↦Ciα\alpha\mapsto C^\alpha_iα↦Ciα​ must be shown integrable, which requires a fixed rule for ties between equal α\alphaα-points.

Formalization scope

  • Model. Jobs are Fin n, time is real, pj>0p_j>0pj​>0 and rj≥0r_j\ge0rj​≥0. The paper admits pj=0p_j=0pj​=0 only in its tightness instances.
    • A preemptive schedule is a function σ:R→\sigma:\mathbb R\toσ:R→ Option (Fin n) (none = idle). Each job's run set is measurable, lies in [max⁡(0,rj),∞)[\max(0,r_j),\infty)[max(0,rj​),∞), is bounded above, and has Lebesgue measure pjp_jpj​.
    • Completion times and α\alphaα-points are infima of nonempty sets that are bounded below.
    • TiT_iTi​ is the measure of the idle set in [0,CiP)[0,C^P_i)[0,CiP​).
    • The paper's sums over β\betaβ are sums over jobs, weighted by the fraction xijx_{ij}xij​.
  • List scheduling is strict: jobs never overtake the list order, and the machine is free from time 000.
    • Lemma 2.3, Theorem 2.1, Theorem 2.6.2 and the goal hold for every tie-break among equal α\alphaα-points.
    • The expectations (Lemma 2.5, Theorem 2.6.1 and 2.6.3) use the tie-break by job index. They assert integrability as part of the conclusion.
  • Optimality. "Approximation ratio ccc" is stated as an inequality against every feasible nonpreemptive schedule, never against an infimum.
    • The optimality of PPP among preemptive schedules is the paper's standing assumption for its upper bounds (p. 151). It appears as a hypothesis of Theorem 2.6 and of the goal.
    • The lemmas hold for arbitrary PPP and do not carry it.
    • An existence statement shows the hypothesis can be met.
  • Lemma 2.5's δ\deltaδ is replaced by any upper bound of the integrals over β∈(0,1]\beta\in(0,1]β∈(0,1]. This is equivalent, and it avoids assuming that the maximum is attained.
  • Not stated:
    • the running time O(n2)O(n^2)O(n2) of Best-α\alphaα and the optimality of SRPT;
    • the tightness parts of Theorem 2.1 and Corollary 2.4, and the lower bounds of Theorem 2.9, which use zero-length jobs;
    • the on-line Theorem 2.8, which needs a model of on-line algorithms.
  • Trivializing formalization ruled out. Dropping the optimality of PPP from the goal would turn it into a statement about arbitrary preemptive schedules, which is Lemma 2.5, not Corollary 2.7. Comparing against ∑jCjP\sum_jC^P_j∑j​CjP​ instead of every nonpreemptive schedule would likewise remove the content of the corollary.

Contributions are welcome at every level. The calculus milestone and Lemma 2.2 are good first targets.

Selected references

  • C. Chekuri, R. Motwani, B. Natarajan, C. Stein, Approximation Techniques for Average Completion Time Scheduling, SIAM J. Comput. 31(1):146–166, 2001. https://doi.org/10.1137/S0097539797327180
  • C. Phillips, C. Stein, J. Wein, Scheduling jobs that arrive over time, Proc. 4th Workshop on Algorithms and Data Structures (WADS), 1995, pp. 86–97 (reference [25] of the paper; no link verified).
  • J. A. Hoogeveen, A. P. A. Vestjens, Optimal on-line algorithms for single-machine scheduling, Proc. 5th IPCO, 1996, pp. 404–414 (reference [21]; no link verified).
  • M. X. Goemans, Improved approximation algorithms for scheduling with release dates, Proc. 8th ACM-SIAM SODA, 1997, pp. 591–598 (reference [12]; no link verified).
  • F. Afrati et al., Approximation schemes for minimizing average weighted completion time with release dates, Proc. 40th FOCS, 1999 (reference [2]; no link verified).
9 thms3 active usersReviewed
Operations ResearchOptimizationTheoretical Computer Science·Captain: mikedeng1

Local Search Heuristics for k-Median and Facility Location Problems IV: Local Search with Multi-Copy Moves for Capacitated Facility Location Has Locality Gap 4Research Paper

Motivation

Facility location asks where to open service points (warehouses, plants, servers) and how to connect customers to them so that the total opening cost plus the total connection cost is minimum. In the capacitated version each facility can serve only a limited number of customers, which is the situation in most applications: a warehouse has a floor area, a server a bandwidth. The problem is NP-hard, and the algorithms used in practice for it are often simple local search heuristics: start from a solution and repeatedly apply a small change that lowers the cost, until no such change exists.

The quality of such a heuristic is measured by its locality gap: the largest possible ratio between the cost of a solution that no allowed change can improve and the cost of an optimum solution. Arya, Garg, Khandekar, Meyerson, Munagala and Pandit (SIAM J. Comput. 33(3), 2004) gave locality-gap analyses for k-median, uncapacitated facility location, and the capacitated problem in which several copies of a facility may be opened. This mission formalizes their §5, the capacitated case.

Timeline (as surveyed on pp. 545–546 of the paper). For the variant 1-CFL, where at most one facility may be opened at each location, Korupolu, Plaxton and Rajaraman (1998) showed that local search with add, drop and swap moves has locality gap at most 8 when capacities are uniform; Chudak and Williamson (IPCO 1999) refined this to 6, and Pál, Tardos and Wexler gave a local search with gap 9 for nonuniform capacities. For ∞-CFL, the variant with copies studied here, the known algorithms were LP-based: a 3-approximation of Chudak and Shmoys (1999) for uniform capacities, a 4-approximation of Jain and Vazirani for nonuniform capacities, and a 2-approximation of Mahdian, Ye and Zhang. Arya et al. (2004) analysed local search for ∞-CFL with nonuniform capacities: with a new move that drops any set of open copies and opens several copies of one facility, the locality gap is at most 4 (Theorem 5.5), and scaling the facility costs gives 2+3+ϵ2 + \sqrt3 + \epsilon2+3​+ϵ (p. 561). The tight example for uncapacitated facility location (§4.3) also shows a locally optimum solution of cost 3 times the optimum, so the locality gap of the procedure lies between 3 and 4; its exact value was left open (§6).

Setting

An instance consists of a finite set CCC of clients, a set FFF of facilities and a distance ccc on C∪FC \cup FC∪F that is nonnegative, symmetric and satisfies the triangle inequality; cjic_{ji}cji​ is the cost of serving client jjj from facility iii. Every facility iii has an opening cost fi≥0f_i \ge 0fi​≥0 and an integer capacity ui>0u_i > 0ui​>0. Any number of copies of a facility may be opened; each copy of iii costs fif_ifi​ and serves at most uiu_iui​ clients.

A solution XXX opens a finite list of copies, copy sss being a copy of facility loc(s)\mathrm{loc}(s)loc(s), and assigns every client jjj to a copy σ(j)\sigma(j)σ(j) so that each copy sss serves at most uloc(s)u_{\mathrm{loc}(s)}uloc(s)​ clients. Write NX(s)N_X(s)NX​(s) for the set of clients served by copy sss and NX(T)N_X(T)NX​(T) for the clients served by a set TTT of copies. Its costs are

costf(X)=∑sfloc(s),costs(X)=∑j∈Ccj loc(σ(j)),cost(X)=costf(X)+costs(X).\mathrm{cost}_f(X) = \sum_s f_{\mathrm{loc}(s)}, \qquad \mathrm{cost}_s(X) = \sum_{j\in C} c_{j\,\mathrm{loc}(\sigma(j))}, \qquad \mathrm{cost}(X) = \mathrm{cost}_f(X) + \mathrm{cost}_s(X).costf​(X)=s∑​floc(s)​,costs​(X)=j∈C∑​cjloc(σ(j))​,cost(X)=costf​(X)+costs​(X).

The neighbourhood (9) of a solution whose multiset of open facilities is SSS consists of

  1. S+s′S + s'S+s′: one more copy of any facility s′s's′;
  2. S−T+l⋅{s′}S - T + l\cdot\{s'\}S−T+l⋅{s′}: close any set TTT of open copies and open l≥1l \ge 1l≥1 copies of a facility s′s's′, provided l us′≥∣NS(T)∣l\,u_{s'} \ge |N_S(T)|lus′​≥∣NS​(T)∣.

XXX is locally optimum if no neighbour, with any feasible assignment of the clients, has smaller cost.

Formalization targets

Goal: Theorem 5.5

For every instance with at least one client, every locally optimum solution XXX and every solution OOO,

cost(X)≤4 cost(O).\mathrm{cost}(X) \le 4\,\mathrm{cost}(O).cost(X)≤4cost(O).

Milestones

In the order the paper's proof uses them:

  1. Lemma 5.1 (service cost): costs(X)≤costf(O)+costs(O)\mathrm{cost}_s(X) \le \mathrm{cost}_f(O) + \mathrm{cost}_s(O)costs​(X)≤costf​(O)+costs​(O).
  2. Lemma 5.2: for every set UUU of copies of XXX and every facility s′s's′,
⌈∣NX(U)∣us′⌉fs′+∑s∈U∣NX(s)∣ css′≥∑s∈Ufs.\left\lceil \frac{|N_X(U)|}{u_{s'}}\right\rceil f_{s'} + \sum_{s\in U} |N_X(s)|\, c_{ss'} \ge \sum_{s\in U} f_s .⌈us′​∣NX​(U)∣​⌉fs′​+s∈U∑​∣NX​(s)∣css′​≥s∈U∑​fs​.
  1. Lemma 5.4: in the graph with arcs vs→wov_s \to w_ovs​→wo​ of length csoc_{so}cso​ and wo→sinkw_o \to \mathrm{sink}wo​→sink of length fo/uof_o/u_ofo​/uo​, ∣NX(s)∣|N_X(s)|∣NX​(s)∣ units can be routed from every vsv_svs​ at cost at most costs(X)+costs(O)+costf(O)\mathrm{cost}_s(X) + \mathrm{cost}_s(O) + \mathrm{cost}_f(O)costs​(X)+costs​(O)+costf​(O).
  2. Inequality (10): the shortest-path flow, with ToT_oTo​ the copies routed through wow_owo​, satisfies ∑o∑s∈To∣NX(s)∣(cso+fo/uo)≤costs(X)+costs(O)+costf(O)\sum_o\sum_{s\in T_o}|N_X(s)|(c_{so} + f_o/u_o) \le \mathrm{cost}_s(X) + \mathrm{cost}_s(O) + \mathrm{cost}_f(O)∑o​∑s∈To​​∣NX​(s)∣(cso​+fo​/uo​)≤costs​(X)+costs​(O)+costf​(O).
  3. Inequality (11): ∑ofo+∑o∑s∈To∣NX(s)∣(cso+fo/uo)≥costf(X)\sum_o f_o + \sum_o \sum_{s\in T_o} |N_X(s)|(c_{so} + f_o/u_o) \ge \mathrm{cost}_f(X)∑o​fo​+∑o​∑s∈To​​∣NX​(s)∣(cso​+fo​/uo​)≥costf​(X).
  4. Lemma 5.3 (facility cost): costf(X)≤3 costf(O)+2 costs(O)\mathrm{cost}_f(X) \le 3\,\mathrm{cost}_f(O) + 2\,\mathrm{cost}_s(O)costf​(X)≤3costf​(O)+2costs​(O).

A companion item states the scaled bound of p. 561: a local optimum for facility costs (3−1)f(\sqrt3 - 1) f(3​−1)f has cost at most (2+3) cost(O)(2 + \sqrt3)\,\mathrm{cost}(O)(2+3​)cost(O) in the original instance.

Significance

The result. Theorem 5.5 gives a constant locality gap for a local search procedure for capacitated facility location with copies and nonuniform capacities, a variant previously approached through LP-based algorithms; the drop-add move it analyses is the paper's new operation for this problem. The scaled bound 2+3≈3.7322 + \sqrt3 \approx 3.7322+3​≈3.732 gives an approximation algorithm once local search is run to approximate local optimality. The paper also shows (Figure 13, the procedure T-hunt) that the exponentially large neighbourhood can be searched with a knapsack oracle, so the analysis applies to an implementable algorithm.

Formalizing it. The result is proved in the paper; to our knowledge no machine-checked version exists. The mission produces a checked model of capacitated facility location with copies (solutions, costs, the multiset neighbourhood) and of the locality-gap argument. The per-copy model and the flow comparison of Lemma 5.4 are reusable for other capacitated location problems and for local search analyses that compare a local optimum with an optimum through a flow or a matching.

Difficulty

The obvious attempt imitates the uncapacitated analysis: close one copy of XXX and send its clients to a nearby copy of OOO. With capacities this fails, since that copy of OOO may be too small to absorb them, and single-copy moves do not certify a constant bound. With the drop-add move a single copy of OOO must be charged for a whole group of copies of XXX, and the groups must be chosen so that the charges add up to a constant times cost(O)\mathrm{cost}(O)cost(O); the rounding ⌈∣NX(T)∣/us′⌉\lceil |N_X(T)|/u_{s'}\rceil⌈∣NX​(T)∣/us′​⌉ of the number of new copies costs an additional costf(O)\mathrm{cost}_f(O)costf​(O) that has to be absorbed as well.

Formalization scope

  • Solutions. A solution is a structure CFLSol Cl Fa u: a number n of open copies, a map loc : Fin n → Fa giving the facility of each copy, and an assignment σ : Cl → Fin n with the capacity constraint for every copy. Copies are separate indices because NS(s)N_S(s)NS​(s) is per copy. Its multiset of facilities is the image multiset of loc.
  • Costs. A solution's cost is computed under its own assignment. The paper's cost of a multiset is the minimum over feasible assignments. Because every neighbour is compared with every feasible assignment, and OOO ranges over every assignment, the statements are equivalent to the paper's. The move with T={s}T = \{s\}T={s}, s′=loc(s)s' = \mathrm{loc}(s)s′=loc(s), l=1l = 1l=1 makes every reassignment of XXX's clients a neighbour, so a locally optimum XXX carries a minimum-cost assignment.
  • Neighbourhood. Local optimality ranges over the whole of (9): every s′s's′, every set TTT of copies (including ∅\emptyset∅ and all copies) and every l≥1l \ge 1l≥1 with lus′≥∣NX(T)∣l u_{s'} \ge |N_X(T)|lus′​≥∣NX​(T)∣. It is not restricted to what the search procedure T-hunt examines.
  • Standing assumptions. Distances are nonnegative, symmetric and satisfy the triangle inequality on C∪FC \cup FC∪F; d(x,x)=0d(x,x) = 0d(x,x)=0 is not assumed. Capacities are natural numbers with ui>0u_i > 0ui​>0; costs are real with fi≥0f_i \ge 0fi​≥0; every client has unit demand. Ratios fo/uof_o/u_ofo​/uo​ and the ceiling of Lemma 5.2 are computed in R\mathbb RR.
  • Added hypothesis. The goal, Lemmas 5.2 and 5.3 and the companion assume at least one client. Without clients a single idle copy of a facility with f=1f = 1f=1, u=1u = 1u=1 is locally optimum at cost 1 while the empty solution costs 0, so these statements fail. The paper's instances implicitly have clients.
  • No trivialization. OOO is any solution, not a fixed optimum, and the bounds are multiplied out (cost(X)≤4 cost(O)\mathrm{cost}(X) \le 4\,\mathrm{cost}(O)cost(X)≤4cost(O), never a ratio). The empty solution is excluded only by the presence of a client, not by a default cost.
  • Out of scope. The procedure T-hunt and the knapsack oracle, running time, the ϵ\epsilonϵ of approximate local optimality, and arbitrary demands.

Contributions are welcome at every level: proofs of the milestones, alternative proofs of Lemma 5.4 or (10) (for instance through a matching argument instead of flows), and general infrastructure for multiset neighbourhoods and assignment problems.

Selected references

  • V. Arya, N. Garg, R. Khandekar, A. Meyerson, K. Munagala, V. Pandit, Local Search Heuristics for k-Median and Facility Location Problems, SIAM J. Comput. 33(3):544–562, 2004. https://doi.org/10.1137/S0097539702416402
  • M. R. Korupolu, C. G. Plaxton, R. Rajaraman, Analysis of a Local Search Heuristic for Facility Location Problems, J. Algorithms 37(1):146–188, 2000. https://doi.org/10.1006/jagm.2000.1100
10 thms3 active usersReviewed
🏆Completed
Operations ResearchOptimizationTheoretical Computer Science·Captain: mikedeng1

Local Search Heuristics for k-Median and Facility Location Problems I: Single-Swap Local Search for k-Median Has Locality Gap 5Research Paper

Motivation

The k-median problem asks where to open kkk facilities so that the total distance from a set of clients to their nearest open facility is as small as possible. It is a basic model of facility location in operations research (placing depots, warehouses or servers) and of clustering with representative centres, and it is NP-hard, so the question of interest is how close a polynomial-time method can come to the optimum.

Local search is among the most widely used heuristics for it: start from any kkk facilities and repeatedly exchange one open facility for a closed one while the cost decreases. Arya, Garg, Khandekar, Meyerson, Munagala and Pandit (SIAM J. Comput. 33(3), 2004) gave the first constant-factor guarantee for this heuristic on metric instances: every local optimum of the single-swap local search costs at most five times any solution with kkk facilities. This mission formalizes that result.

Timeline of the relevant bounds:

  • Korupolu, Plaxton and Rajaraman (SODA 1998) analysed a local search for k-median that opens k(1+ϵ)k(1+\epsilon)k(1+ϵ) facilities and costs at most 3+5/ϵ3 + 5/\epsilon3+5/ϵ times the optimum with kkk facilities.
  • Charikar, Guha, Tardos and Shmoys (STOC 1999) gave the first constant-factor approximation for metric k-median, by LP rounding (6236\tfrac23632​).
  • Jain and Vazirani (J. ACM 2001) and Charikar and Guha (FOCS 1999) improved the constant with primal–dual methods to 6 and 4.
  • Arya et al. (STOC 2001; SIAM J. Comput. 2004) proved the locality gap 5 for single swaps and 3+2/p3 + 2/p3+2/p for swaps of ppp facilities at a time, with matching examples.

Setting

A metric instance consists of a finite set CCC of clients, a finite set FFF of facilities and a distance ddd on C∪FC \cup FC∪F that is nonnegative, symmetric and satisfies the triangle inequality. Write cji=d(j,i)c_{ji} = d(j,i)cji​=d(j,i) for the cost of serving client jjj by facility iii.

For a nonempty set S⊆FS \subseteq FS⊆F of open facilities every client is served by its nearest open facility, and the cost of SSS is

cost(S)=∑j∈Cmin⁡i∈Scji.\mathrm{cost}(S) = \sum_{j \in C} \min_{i \in S} c_{ji}.cost(S)=j∈C∑​i∈Smin​cji​.

The k-median problem asks for a set SSS of at most kkk facilities of minimum cost.

A swap ⟨s,s′⟩\langle s, s'\rangle⟨s,s′⟩ closes a facility s∈Ss \in Ss∈S and opens a facility s′∉Ss' \notin Ss′∈/S, giving S−s+s′=(S∖{s})∪{s′}S - s + s' = (S \setminus \{s\}) \cup \{s'\}S−s+s′=(S∖{s})∪{s′}. The neighbourhood of SSS is

B(S)={S−{s}+{s′}∣s∈S, s′∉S},\mathcal B(S) = \{ S - \{s\} + \{s'\} \mid s \in S,\ s' \notin S \},B(S)={S−{s}+{s′}∣s∈S, s′∈/S},

and SSS is locally optimum if cost(S)≤cost(S′)\mathrm{cost}(S) \le \mathrm{cost}(S')cost(S)≤cost(S′) for every S′∈B(S)S' \in \mathcal B(S)S′∈B(S). The local search starts from an arbitrary set of kkk facilities and applies improving swaps until none exists; swaps preserve the number of facilities, so it stops at a locally optimum set of exactly kkk facilities. The locality gap is the supremum, over instances, of the ratio between the cost of a worst local optimum and the optimal cost.

The analysis uses the following notation. For a solution AAA, let σA\sigma_AσA​ assign each client to a nearest facility of AAA, let Aj=cjσA(j)A_j = c_{j\sigma_A(j)}Aj​=cjσA​(j)​ be the service cost of client jjj, and let NA(a)N_A(a)NA​(a) be the set of clients served by a∈Aa \in Aa∈A. For two solutions SSS and OOO put Nso=NO(o)∩NS(s)N^o_s = N_O(o) \cap N_S(s)Nso​=NO​(o)∩NS​(s). A facility s∈Ss \in Ss∈S captures o∈Oo \in Oo∈O if ∣Nso∣>12∣NO(o)∣|N^o_s| > \tfrac12 |N_O(o)|∣Nso​∣>21​∣NO​(o)∣; sss is bad if it captures some o∈Oo \in Oo∈O and good otherwise.

Formalization targets

Goal: Theorem 3.2

For every metric instance, every kkk, every locally optimum set SSS of exactly kkk facilities and every nonempty set OOO of at most kkk facilities,

cost(S)≤5⋅cost(O).\mathrm{cost}(S) \le 5 \cdot \mathrm{cost}(O).cost(S)≤5⋅cost(O).

The comparison solution OOO is arbitrary, not an optimum; the statement is the locality gap bound in the form the proof gives.

Milestones, in the order the proof uses them

  1. A facility ooo is captured by at most one facility of SSS (remark after Definition 3.1).
  2. Property 3.1: for each ooo there is a bijection π\piπ of NO(o)N_O(o)NO​(o) with π(Nso)∩Nso=∅\pi(N^o_s) \cap N^o_s = \emptysetπ(Nso​)∩Nso​=∅ whenever sss does not capture ooo.
  3. When ∣S∣=∣O∣|S| = |O|∣S∣=∣O∣ there are ∣O∣|O|∣O∣ swaps ⟨s,o⟩\langle s, o\rangle⟨s,o⟩, one for each o∈Oo \in Oo∈O, such that no facility capturing two or more facilities of OOO is used, every good facility is used at most twice, and a used sss captures no o′≠oo' \ne oo′=o.
  4. Inequality (2): for a locally optimum SSS and such a swap ⟨s,o⟩\langle s, o\rangle⟨s,o⟩,
∑j∈NO(o)(Oj−Sj)+∑j∈NS(s)j∉NO(o)(Oj+Oπ(j)+Sπ(j)−Sj)≥0.\sum_{j \in N_O(o)} (O_j - S_j) + \sum_{\substack{j \in N_S(s)\\ j \notin N_O(o)}} \bigl(O_j + O_{\pi(j)} + S_{\pi(j)} - S_j\bigr) \ge 0.j∈NO​(o)∑​(Oj​−Sj​)+j∈NS​(s)j∈/NO​(o)​∑​(Oj​+Oπ(j)​+Sπ(j)​−Sj​)≥0.

Significance

Theorem 3.2 shows that the simplest exchange heuristic for k-median is a constant-factor approximation on every metric instance, and the paper states that the analysis is tight: its example of §3.5, given for swaps of two facilities, is said to generalize to swaps of p≥1p \ge 1p≥1 facilities, where the bound 3+2/p3 + 2/p3+2/p is 5 for p=1p = 1p=1. Combined with the standard device of accepting only swaps that improve the cost by a factor 1−ϵ/Q1 - \epsilon/Q1−ϵ/Q, it yields a polynomial-time 5/(1−ϵ)5/(1-\epsilon)5/(1−ϵ)-approximation (p. 548). The same capture-and-reassignment argument is reused for multi-swap k-median, for uncapacitated and capacitated facility location in the same paper, and in later work on k-means and on local search for clustering; its milestones (the capture graph and the mapping π\piπ) are the reusable part.

The result has been proved since 2001 and is textbook material (Williamson and Shmoys, The Design of Approximation Algorithms, 2011, Chapter 9). No machine-checked proof of it is known; Mathlib has no k-median problem and no locality-gap result for any clustering objective. The work remaining is to formalize the known proof.

Difficulty

The obvious argument adds up the inequalities cost(S−s+o)≥cost(S)\mathrm{cost}(S - s + o) \ge \mathrm{cost}(S)cost(S−s+o)≥cost(S) over a pairing of SSS with OOO, rerouting the clients of the closed facility sss to the nearest remaining facility. This fails when a single facility of SSS serves most clients of several facilities of OOO: closing it leaves those clients with no nearby open facility, and no bound in terms of cost(O)\mathrm{cost}(O)cost(O) follows. The analysis must choose which swaps to consider so that such facilities are never closed, and must reroute the displaced clients of the facilities it does close to a facility other than the closed one while paying only a constant multiple of their own service costs. Both choices must work for arbitrary ties in the nearest-facility assignments and when SSS and OOO share facilities.

Formalization scope

Namespace LocalSearchFL.KMedian. Clients and facilities are types Cl, Fa with Fintype and DecidableEq; the distance is a real-valued function on Cl ⊕ Fa with fields for nonnegativity, symmetry and the triangle inequality, and d(x,x)=0d(x,x) = 0d(x,x)=0 is not assumed. Solutions are Finset Fa. The cost is defined only for nonempty sets, from a nonemptiness proof, so no value is assigned to the empty solution; the goal takes SSS nonempty with S.card = k, which is the paper's k≥1k \ge 1k≥1. Local optimality quantifies over every swap ⟨s,s′⟩\langle s, s'\rangle⟨s,s′⟩ with s∈Ss \in Ss∈S and s′∉Ss' \notin Ss′∈/S, exactly the neighbourhood B(S)\mathcal B(S)B(S) of Theorem 3.2, and not only over the swaps with s′∈Os' \in Os′∈O that the proof uses. The inequality is stated multiplied out, cost(S)≤5⋅cost(O)\mathrm{cost}(S) \le 5 \cdot \mathrm{cost}(O)cost(S)≤5⋅cost(O), so it is meaningful when cost(O)=0\mathrm{cost}(O) = 0cost(O)=0.

The milestones quantify over nearest-facility assignments σS\sigma_SσS​, σO\sigma_OσO​ with arbitrary ties. Capture is stated in integers as ∣NO(o)∣<2∣Nso∣|N_O(o)| < 2|N^o_s|∣NO​(o)∣<2∣Nso​∣. The bijection π\piπ of NO(o)N_O(o)NO​(o) is a permutation of all clients fixing every client outside NO(o)N_O(o)NO​(o); in inequality (2) it is a single permutation preserving every NO(o)N_O(o)NO​(o). Milestones 1–3 are purely combinatorial and are stated for arbitrary assignments, which contains the paper's case.

A formalization in which local optimality ranges over the swaps ⟨s,o⟩\langle s, o\rangle⟨s,o⟩, o∈Oo \in Oo∈O, only, or in which ∣O∣=∣S∣|O| = |S|∣O∣=∣S∣ or OOO optimal is assumed, or in which the cost of the empty set is 000, is a different statement and is ruled out.

A complete development needs the finite-sum and Finset.inf' API of Mathlib, permutations (Equiv.Perm) and finite counting. The capture machinery and the mapping π\piπ are reusable for the multi-swap and facility location missions of this series. Proofs of individual milestones are welcome independently of the goal.

Selected references

  • V. Arya, N. Garg, R. Khandekar, A. Meyerson, K. Munagala, V. Pandit, Local Search Heuristics for k-Median and Facility Location Problems, SIAM J. Comput. 33(3):544–562, 2004. https://doi.org/10.1137/S0097539702416402
  • M. Charikar, S. Guha, É. Tardos, D. B. Shmoys, A Constant-Factor Approximation Algorithm for the k-Median Problem, J. Comput. System Sci. 65(1):129–149, 2002. https://doi.org/10.1006/jcss.2002.1882
  • K. Jain, V. V. Vazirani, Approximation Algorithms for Metric Facility Location and k-Median Problems Using the Primal-Dual Schema and Lagrangian Relaxation, J. ACM 48(2):274–296, 2001. https://doi.org/10.1145/375827.375845
  • M. R. Korupolu, C. G. Plaxton, R. Rajaraman, Analysis of a Local Search Heuristic for Facility Location Problems, J. Algorithms 37(1):146–188, 2000. https://doi.org/10.1006/jagm.2000.1100
  • D. P. Williamson, D. B. Shmoys, The Design of Approximation Algorithms, Cambridge University Press, 2011. https://doi.org/10.1017/CBO9780511921735
8 thms3 active usersReviewed
Number Theory·Captain: Lucas

Erdős Problem 30: Sidon sets in {1,…,N} have size √N + O(N^ε)Open Problem

Motivation

A set of integers is a Sidon set if all of its pairwise sums a+ba+ba+b (a≤ba\le ba≤b) are different. Sidon, in connection with Fourier analysis, asked how dense such sets can be, and the question became one of the standard problems of additive combinatorics. Let

h(N)=max⁡{∣A∣:A⊆{1,…,N}, A Sidon}.h(N)=\max\{|A| : A\subseteq\{1,\dots,N\},\ A \text{ Sidon}\}.h(N)=max{∣A∣:A⊆{1,…,N}, A Sidon}.

A counting argument shows h(N)≤(1+o(1))2Nh(N)\le (1+o(1))\sqrt{2N}h(N)≤(1+o(1))2N​, and the true order was settled early: h(N)∼Nh(N)\sim\sqrt Nh(N)∼N​. What remains open is the size of the error term h(N)−Nh(N)-\sqrt Nh(N)−N​. Erdős and Turán asked whether it is smaller than every power of NNN; Erdős offered $1000 for this problem (Erdős Problem #30), and it is also Problem 31 on Green's list of open problems and problem C9 in Guy's Unsolved Problems in Number Theory.

Timeline.

  • 1938 — Singer constructs, for every prime power qqq, a set of q+1q+1q+1 residues modulo q2+q+1q^2+q+1q2+q+1 with all differences distinct. Combined with the density of primes this gives h(N)≥(1−o(1))Nh(N)\ge(1-o(1))\sqrt Nh(N)≥(1−o(1))N​ (Singer 1938).
  • 1941 — Erdős and Turán prove h(N)≤N1/2+O(N1/4)h(N)\le N^{1/2}+O(N^{1/4})h(N)≤N1/2+O(N1/4) (Erdős–Turán 1941).
  • 1969 — Lindström gives an alternative proof with the explicit bound h(N)≤N1/2+N1/4+1h(N)\le N^{1/2}+N^{1/4}+1h(N)≤N1/2+N1/4+1 (Lindström 1969).
  • 2021 — Balogh, Füredi and Roy lower the constant: h(N)≤N1/2+0.998N1/4h(N)\le N^{1/2}+0.998N^{1/4}h(N)≤N1/2+0.998N1/4 for large NNN (arXiv:2103.15850).
  • 2022 — O'Bryant: h(N)≤N1/2+0.99703N1/4h(N)\le N^{1/2}+0.99703N^{1/4}h(N)≤N1/2+0.99703N1/4 for large NNN (arXiv:2207.07800).
  • 2023 — Carter, Hunter and O'Bryant: h(N)≤N1/2+0.98183N1/4+O(1)h(N)\le N^{1/2}+0.98183N^{1/4}+O(1)h(N)≤N1/2+0.98183N1/4+O(1), with substantial computer assistance (arXiv:2310.20032).

No upper bound with an error exponent below 1/41/41/4 is known, and no lower bound of the form h(N)≥N−O(Nε)h(N)\ge\sqrt N-O(N^{\varepsilon})h(N)≥N​−O(Nε) for every ε>0\varepsilon>0ε>0 is known either.

Setting

A set AAA in an additive commutative monoid is Sidon if for all i1,j1,i2,j2∈Ai_1,j_1,i_2,j_2\in Ai1​,j1​,i2​,j2​∈A,

i1+i2=j1+j2 ⟹ (i1=j1∧i2=j2) ∨ (i1=j2∧i2=j1).i_1+i_2=j_1+j_2\ \Longrightarrow\ (i_1=j_1\wedge i_2=j_2)\ \vee\ (i_1=j_2\wedge i_2=j_1).i1​+i2​=j1​+j2​ ⟹ (i1​=j1​∧i2​=j2​) ∨ (i1​=j2​∧i2​=j1​).

For a finite set XXX, maxSidon⁡(X)\operatorname{maxSidon}(X)maxSidon(X) is the largest size of a Sidon subset of XXX (the empty set is Sidon, so this is well defined), and

h(N)=maxSidon⁡({1,2,…,N}),h(0)=0.h(N)=\operatorname{maxSidon}(\{1,2,\dots,N\}),\qquad h(0)=0.h(N)=maxSidon({1,2,…,N}),h(0)=0.

The first values are h(1),…,h(15)=1,2,2,3,3,3,4,4,4,4,4,5,5,5,5h(1),\dots,h(15)=1,2,2,3,3,3,4,4,4,4,4,5,5,5,5h(1),…,h(15)=1,2,2,3,3,3,4,4,4,4,4,5,5,5,5 (OEIS A143824).

Formalization targets

Goal (Erdős Problem #30)

∀ε>0:h(N)−N=O ⁣(Nε)(N→∞).\forall\varepsilon>0:\qquad h(N)-\sqrt N = O\!\left(N^{\varepsilon}\right)\quad(N\to\infty).∀ε>0:h(N)−N​=O(Nε)(N→∞).

This is a two-sided statement: it asks both for an upper bound h(N)≤N+CεNεh(N)\le\sqrt N+C_\varepsilon N^\varepsilonh(N)≤N​+Cε​Nε and for a matching lower bound h(N)≥N−CεNεh(N)\ge\sqrt N-C_\varepsilon N^\varepsilonh(N)≥N​−Cε​Nε for large NNN. Erdős asked it as a yes/no question; the goal fixes the conjectured answer yes, so a disproof on the platform settles the question negatively.

Milestones (known results, weakest to strongest)

  1. Singer's construction: h(q2+q+1)≥q+1h(q^2+q+1)\ge q+1h(q2+q+1)≥q+1 for every prime power qqq.
  2. Singer's lower bound: h(N)≥(1−ε)Nh(N)\ge(1-\varepsilon)\sqrt Nh(N)≥(1−ε)N​ for every ε>0\varepsilon>0ε>0 and all large NNN.
  3. Erdős–Turán / Lindström: h(N)≤N+N1/4+1h(N)\le\sqrt N+N^{1/4}+1h(N)≤N​+N1/4+1 for all NNN.
  4. Balogh–Füredi–Roy: h(N)≤N+0.998N1/4h(N)\le\sqrt N+0.998N^{1/4}h(N)≤N​+0.998N1/4 for all large NNN.
  5. O'Bryant: h(N)≤N+0.99703N1/4h(N)\le\sqrt N+0.99703N^{1/4}h(N)≤N​+0.99703N1/4 for all large NNN.
  6. Carter–Hunter–O'Bryant: h(N)≤N+0.98183N1/4+Ch(N)\le\sqrt N+0.98183N^{1/4}+Ch(N)≤N​+0.98183N1/4+C for an absolute constant CCC.

Significance

The result itself. An affirmative answer would pin h(N)h(N)h(N) down to N\sqrt NN​ up to a sub-polynomial error, in both directions; Erdős even speculated that h(N)=N+O(1)h(N)=\sqrt N+O(1)h(N)=N​+O(1) might hold, while remarking that this is perhaps too optimistic. A negative answer would show that the Singer-type constructions or the counting upper bounds are off by a power of NNN. Either answer would be the first change in the exponent of the error term since 1941.

Formalizing it. The goal is open. All milestones are published theorems. The platform already contains weaker related results in other formalizations (for example the order-of-magnitude bounds cN≤max⁡∣A∣≤2N+1c\sqrt N\le \max|A|\le\sqrt{2N}+1cN​≤max∣A∣≤2N​+1 for Sidon subsets of an initial segment, and the Erdős–Turán construction); the sharp bounds listed as milestones are not stated there for this hhh. The upper bounds of Balogh–Füredi–Roy and O'Bryant are elementary but delicate optimizations, and the Carter–Hunter–O'Bryant bound relies on a large computation, so formalizing it is a substantial verification task in its own right.

Difficulty

For the upper bound, every known argument counts differences a−a′a-a'a−a′ in short windows and loses at the scale N1/4N^{1/4}N1/4; improvements since 1941 only change the constant in front of N1/4N^{1/4}N1/4. For the lower bound, the constructions (Singer, Bose, Ruzsa) produce Sidon sets of size about p\sqrt pp​ in a modulus ppp of size about NNN, and the loss comes from the gap between NNN and the nearest admissible modulus; bringing it below NεN^\varepsilonNε requires either new constructions or information about primes in very short intervals that is far beyond current knowledge.

Formalization scope

Sidon sets are formalized for sets in an arbitrary additive commutative monoid, with the definition, the decidability instance and maxSidon⁡\operatorname{maxSidon}maxSidon transcribed from the formal-conjectures library (definitions IsSidon, Finset.maxSidonSubsetCard, and Erdos30.h in FormalConjectures/ErdosProblems/30.lean), placed in the namespace Erdos30. The value h(N)h(N)h(N) is a natural number cast to R\mathbb RR; ⋅\sqrt{\cdot}⋅​ is the real square root and NεN^{\varepsilon}Nε, N1/4N^{1/4}N1/4 are real powers of N≥0N\ge 0N≥0. The goal's O(⋅)O(\cdot)O(⋅) is Mathlib's Asymptotics.IsBigO along atTop on N\mathbb NN. The goal is not trivialized by any junk value: hhh is a genuine finite maximum, and the O(⋅)O(\cdot)O(⋅) statement concerns all large NNN.

Useful infrastructure: basic lemmas on Sidon sets (hereditary under subsets, translation invariance, distinct differences), finite projective geometry or Bose's construction for the lower bounds, and prime gaps (Bertrand's postulate suffices for h(N)≥cNh(N)\ge c\sqrt Nh(N)≥cN​ with c<1c<1c<1; a prime number theorem in short intervals is needed for 1−o(1)1-o(1)1−o(1)). Contributions of reusable Sidon-set lemmas are welcome.

Selected references

  • J. Singer, A theorem in finite projective geometry and some applications to number theory, Trans. Amer. Math. Soc. 43 (1938), 377–385. https://doi.org/10.1090/S0002-9947-1938-1501951-4
  • P. Erdős and P. Turán, On a problem of Sidon in additive number theory, and on some related problems, J. London Math. Soc. 16 (1941), 212–215. https://doi.org/10.1112/jlms/s1-16.4.212
  • B. Lindström, An inequality for B2B_2B2​-sequences, J. Combin. Theory 6 (1969), 211–212. https://doi.org/10.1016/S0021-9800(69)80124-9
  • J. Balogh, Z. Füredi and S. Roy, An upper bound on the size of Sidon sets, Amer. Math. Monthly (2023). https://arxiv.org/abs/2103.15850
  • K. O'Bryant, On the size of finite Sidon sets (2022). https://arxiv.org/abs/2207.07800
  • D. Carter, Z. Hunter and K. O'Bryant, On the diameter of finite Sidon sets (2023). https://arxiv.org/abs/2310.20032
  • K. O'Bryant, A complete annotated bibliography of work related to Sidon sequences, Electron. J. Combin. DS11 (2004). https://arxiv.org/abs/math/0407117
  • T. F. Bloom, Erdős Problem #30, https://www.erdosproblems.com/30
  • Google DeepMind, formal-conjectures, FormalConjectures/ErdosProblems/30.lean. https://github.com/google-deepmind/formal-conjectures
8 thms3 active usersReviewed
Number Theory·Captain: Lucas

Erdős Problem 3: arithmetic progressions in sets with divergent reciprocal sumOpen Problem

Motivation

Which sets of positive integers are forced to contain long arithmetic progressions? Van der Waerden (1927) showed that in any finite colouring of N\mathbb NN some colour class does; Erdős and Turán (1936) asked for a density version, which became Szemerédi's theorem. Erdős then proposed the strongest natural size condition: divergence of the reciprocal sum. Erdős Problem #3 (erdosproblems.com/3) asks whether every A⊆NA\subseteq\mathbb NA⊆N with ∑n∈A1/n=∞\sum_{n\in A}1/n=\infty∑n∈A​1/n=∞ contains arbitrarily long arithmetic progressions. Erdős attached one of his largest prizes to it. The primes are the motivating example: ∑p1/p=∞\sum_p 1/p=\infty∑p​1/p=∞, so a positive answer would contain the Green–Tao theorem.

Timeline.

  • 1936 — Erdős and Turán conjecture that sets of positive density contain arbitrarily long progressions.
  • 1953 — Roth proves the case k=3k=3k=3 of the density conjecture by Fourier analysis.
  • 1975 — Szemerédi proves the density conjecture for all kkk.
  • 2001 — Gowers gives the first quantitative bounds for all kkk: rk(N)≪N/(log⁡log⁡N)ckr_k(N)\ll N/(\log\log N)^{c_k}rk​(N)≪N/(loglogN)ck​.
  • 2008 — Green and Tao prove that the primes contain arbitrarily long progressions.
  • 2020 — Bloom and Sisask prove r3(N)≪N/(log⁡N)1+cr_3(N)\ll N/(\log N)^{1+c}r3​(N)≪N/(logN)1+c, which settles the case k=3k=3k=3 of Erdős Problem #3.
  • 2023 — Kelley and Meka prove r3(N)≤Nexp⁡(−c(log⁡N)1/12)r_3(N)\le N\exp(-c(\log N)^{1/12})r3​(N)≤Nexp(−c(logN)1/12).
  • 2024 — Leng, Sah and Sawhney prove rk(N)≤Nexp⁡(−(log⁡log⁡N)ck)r_k(N)\le N\exp(-(\log\log N)^{c_k})rk​(N)≤Nexp(−(loglogN)ck​) for every k≥5k\ge5k≥5.

The problem is open for every k≥4k\ge4k≥4.

Setting

A set S⊆NS\subseteq\mathbb NS⊆N is an arithmetic progression of length kkk if ∣S∣=k|S|=k∣S∣=k and S={a,a+d,…,a+(k−1)d}S=\{a,a+d,\dots,a+(k-1)d\}S={a,a+d,…,a+(k−1)d} for some a,d∈Na,d\in\mathbb Na,d∈N (for k≥2k\ge2k≥2 the size condition forces d>0d>0d>0). For k,N∈Nk,N\in\mathbb Nk,N∈N, rk(N)r_k(N)rk​(N) denotes the largest size of a subset of {1,…,N}\{1,\dots,N\}{1,…,N} containing no arithmetic progression of length kkk. A set AAA has divergent reciprocal sum if ∑n∈A1/n=∞\sum_{n\in A}1/n=\infty∑n∈A​1/n=∞.

Formalization targets

Goal (Erdős Problem #3)

For every A⊆NA\subseteq\mathbb NA⊆N,

∑n∈A1n=∞ ⟹ A contains arithmetic progressions of arbitrarily large length.\sum_{n\in A}\frac1n=\infty\ \Longrightarrow\ A\ \text{contains arithmetic progressions of arbitrarily large length}.n∈A∑​n1​=∞ ⟹ A contains arithmetic progressions of arbitrarily large length.

This is the formal-conjectures statement erdos_3 with its answer(sorry) instantiated to the conjectured answer yes. A disproof of the goal on the platform settles the problem negatively.

Milestones

  • Szemerédi's theorem for sets of positive upper density (the density case), and the existing platform statement rk(N)=o(N)r_k(N)=o(N)rk​(N)=o(N).
  • The Green–Tao theorem (the case A=A=A= primes).
  • The Bloom–Sisask bound on r3(N)r_3(N)r3​(N) and its corollary, the case k=3k=3k=3 of the goal; the Kelley–Meka bound (existing platform statement).
  • The Leng–Sah–Sawhney bound for k≥5k\ge5k≥5.
  • The partial-summation reduction: bounds rk(N)≤N/(log⁡N)1+ckr_k(N)\le N/(\log N)^{1+c_k}rk​(N)≤N/(logN)1+ck​ for all k≥3k\ge3k≥3 imply the goal.

Significance

A positive answer would be a common strengthening of Szemerédi's theorem and the Green–Tao theorem, obtained from a single size condition with no arithmetic structure. Through the reduction milestone, it is closely tied to the quantitative theory of rk(N)r_k(N)rk​(N): bounds of the shape N/(log⁡N)1+cN/(\log N)^{1+c}N/(logN)1+c for every kkk would suffice. Formalizing the milestones would also give reusable Lean statements of Szemerédi-type theorems in a common language.

Difficulty

Divergence of ∑1/n\sum 1/n∑1/n is a very weak condition: such sets can have density zero, and the natural approach through rk(N)r_k(N)rk​(N) requires bounds just past N/log⁡NN/\log NN/logN. For k=3k=3k=3 this barrier was only broken in 2020. For k≥4k\ge4k≥4 the best known bounds (Leng–Sah–Sawhney) save only a power of log⁡log⁡N\log\log NloglogN in the exponent, far from what is needed. The Green–Tao method uses pseudorandom majorants specific to the primes and does not apply to arbitrary sets.

Formalization scope

All statements import the published definition file Erdos142Basic, which reproduces the formal-conjectures definitions IsAPOfLengthWith, IsAPOfLength and the counting function r k N (over {1,…,N}\{1,\dots,N\}{1,…,N}). The reciprocal-sum hypothesis is ¬ Summable (fun a : A ↦ 1 / (a : ℝ)); the element 000, if present, contributes 1/0=01/0=01/0=0. "Arbitrarily long" is written as ∃ᶠ k in atTop, which is equivalent to "every length" because sub-progressions of progressions are progressions. Bounds stated in the literature with ≪\ll≪ are written without a multiplicative constant and with "for all sufficiently large NNN"; the constant can be absorbed into the exponent. Contributions formalizing partial summation over sets of naturals and the equivalence of the "frequently" and "for every kkk" forms are welcome.

Selected references

  • P. Erdős and P. Turán, On some sequences of integers, J. London Math. Soc. 11 (1936).
  • K. F. Roth, On certain sets of integers, J. London Math. Soc. 28 (1953).
  • E. Szemerédi, On sets of integers containing no k elements in arithmetic progression, Acta Arith. 27 (1975).
  • W. T. Gowers, A new proof of Szemerédi's theorem, Geom. Funct. Anal. 11 (2001).
  • B. Green and T. Tao, The primes contain arbitrarily long arithmetic progressions, Ann. of Math. 167 (2008).
  • T. F. Bloom and O. Sisask, Breaking the logarithmic barrier in Roth's theorem on arithmetic progressions, arXiv:2007.03528 (2020).
  • Z. Kelley and R. Meka, Strong bounds for 3-progressions, FOCS 2023, arXiv:2302.05537.
  • J. Leng, A. Sah and M. Sawhney, Improved bounds for Szemerédi's theorem, arXiv:2402.17995 (2024).
  • T. F. Bloom, Erdős Problem #3, https://www.erdosproblems.com/3
16 thms3 active usersReviewed
Number Theory·Captain: Lucas

Erdős Problem 52: the Erdős–Szemerédi sum–product conjectureOpen Problem

Motivation

Addition and multiplication interact in rigid ways: a finite set of numbers that is highly structured with respect to one operation (an arithmetic progression, say) tends to be unstructured with respect to the other (a geometric progression). The sum–product problem asks for the sharp quantitative form of this principle. It was posed by Erdős and Szemerédi in 1983 (Erdős Problem 52) and has since become a central question of additive combinatorics, with applications in incidence geometry, exponential sum estimates, expanders and randomness extraction.

Timeline.

  • 1983 — Erdős and Szemerédi show that max⁡(∣A+A∣,∣AA∣)≥c∣A∣1+δ\max(|A+A|,|AA|)\ge c|A|^{1+\delta}max(∣A+A∣,∣AA∣)≥c∣A∣1+δ for some absolute δ>0\delta>0δ>0 and every finite set of integers AAA, and conjecture exponent 2−ε2-\varepsilon2−ε.
  • 1997 — Nathanson obtains the explicit exponent 1+1311+\tfrac1{31}1+311​; Ford (1998) improves it to 1+1151+\tfrac1{15}1+151​.
  • 1997 — Elekes, using the Szemerédi–Trotter incidence theorem, proves ∣A+A∣ ∣AA∣≫∣A∣5/2|A+A|\,|AA|\gg|A|^{5/2}∣A+A∣∣AA∣≫∣A∣5/2 for finite sets of reals, hence exponent 5/45/45/4.
  • 2009 — Solymosi proves ∣A+A∣2∣AA∣≫∣A∣4/log⁡∣A∣|A+A|^2|AA|\gg |A|^4/\log|A|∣A+A∣2∣AA∣≫∣A∣4/log∣A∣ for finite sets of positive reals, hence exponent 4/34/34/3 up to a logarithmic factor.
  • 2015–2022 — Konyagin and Shkredov first break the 4/34/34/3 barrier (exponent 4/3+c4/3+c4/3+c for a small explicit c>0c>0c>0); after several improvements, Rudnev and Stevens reach 4/3+2/11674/3+2/11674/3+2/1167 up to logarithmic factors.

The conjecture itself remains open.

Setting

For a finite set A⊂ZA\subset\mathbb ZA⊂Z define the sumset and product set

A+A={a+b:a,b∈A},AA={ab:a,b∈A}.A+A=\{a+b : a,b\in A\},\qquad AA=\{ab : a,b\in A\}.A+A={a+b:a,b∈A},AA={ab:a,b∈A}.

For nonempty AAA both contain at least ∣A∣|A|∣A∣ elements and at most (∣A∣+12)\binom{|A|+1}{2}(2∣A∣+1​). The quantity of interest is max⁡(∣A+A∣,∣AA∣)\max(|A+A|,|AA|)max(∣A+A∣,∣AA∣) as a function of ∣A∣|A|∣A∣.

Formalization targets

Goal (Erdős–Szemerédi conjecture)

For every 0<ε<10<\varepsilon<10<ε<1 there is Cε>0C_\varepsilon>0Cε​>0 such that for every finite set A⊂ZA\subset\mathbb ZA⊂Z,

max⁡(∣A+A∣,∣AA∣) ≥ Cε ∣A∣2−ε.\max(|A+A|,|AA|)\ \ge\ C_\varepsilon\,|A|^{2-\varepsilon}.max(∣A+A∣,∣AA∣) ≥ Cε​∣A∣2−ε.

Known lower bounds (milestones, weakest to strongest)

∣A+A∣≥2∣A∣−1,max⁡(∣A+A∣,∣AA∣)≫∣A∣1+δ,≫∣A∣5/4,≫∣A∣4/3(log⁡∣A∣)1/3,≫ε∣A∣4/3+2/1167−ε.|A+A|\ge 2|A|-1,\qquad \max(|A+A|,|AA|)\gg|A|^{1+\delta},\qquad \gg|A|^{5/4},\qquad \gg\frac{|A|^{4/3}}{(\log|A|)^{1/3}},\qquad \gg_\varepsilon |A|^{4/3+2/1167-\varepsilon}.∣A+A∣≥2∣A∣−1,max(∣A+A∣,∣AA∣)≫∣A∣1+δ,≫∣A∣5/4,≫(log∣A∣)1/3∣A∣4/3​,≫ε​∣A∣4/3+2/1167−ε.

Sharpness

The ε\varepsilonε cannot be removed: there is no C>0C>0C>0 with max⁡(∣A+A∣,∣AA∣)≥C∣A∣2\max(|A+A|,|AA|)\ge C|A|^2max(∣A+A∣,∣AA∣)≥C∣A∣2 for all AAA (take A={1,…,n}A=\{1,\dots,n\}A={1,…,n}; the multiplication table ∣AA∣|AA|∣AA∣ is o(n2)o(n^2)o(n2) by Erdős).

Significance

A proof of the goal would settle the sharp form of the sum–product phenomenon over Z\mathbb ZZ. Sum–product estimates are an input to incidence bounds, to Bourgain–Katz–Tao-type results over finite fields, and to explicit constructions in theoretical computer science; improvements of the exponent over R\mathbb RR have come together with new incidence-geometric tools.

Formalization status: the milestones are published theorems (Erdős–Szemerédi, Elekes, Solymosi, Rudnev–Stevens, Erdős's multiplication table bound), but their proofs are not known to be formalized in Lean/Mathlib. The Szemerédi–Trotter theorem, multiplicative energy, and the Elekes and Solymosi arguments are reusable infrastructure. The goal itself is an open problem.

Difficulty

Incidence-geometric methods (Szemerédi–Trotter and its descendants) naturally produce exponents near 4/34/34/3, and passing beyond 4/34/34/3 has required intricate higher-energy arguments yielding only small gains. None of the existing approaches is known to reach exponents close to 222; even over Z\mathbb ZZ, where arithmetic structure is available, the best general bounds are the real-number ones.

Formalization scope

Sets are Finset ℤ; A+AA+AA+A and AAAAAA are Mathlib's pointwise sumset and product set (open scoped Pointwise), and cardinalities are cast to R\mathbb RR. Powers are real powers (Real.rpow). The empty set is allowed; the hypothesis ε<1\varepsilon<1ε<1 keeps every exponent positive, so the empty set contributes the trivial inequality 0≥00\ge 00≥0 rather than a junk value 00=10^0=100=1. The constant CCC may depend on ε\varepsilonε but not on AAA. The Solymosi milestone is stated for ∣A∣≥2|A|\ge2∣A∣≥2 so that log⁡∣A∣>0\log|A|>0log∣A∣>0.

The statements are for integer sets only; results proved over R\mathbb RR specialise to them. Contributions of general-purpose infrastructure (Szemerédi–Trotter over R\mathbb RR, multiplicative energy, bounds for the multiplication table) are welcome.

Selected references

  • P. Erdős, E. Szemerédi, On sums and products of integers, Studies in Pure Mathematics, Birkhäuser, 1983, 213–218.
  • M. B. Nathanson, On sums and products of integers, Proc. Amer. Math. Soc. 125 (1997), 9–16.
  • K. Ford, Sums and products from a finite set of real numbers, Ramanujan J. 2 (1998), 59–66.
  • G. Elekes, On the number of sums and products, Acta Arith. 81 (1997), 365–367.
  • J. Solymosi, Bounding multiplicative energy by the sumset, Adv. Math. 222 (2009), 402–408. https://arxiv.org/abs/0806.1040
  • S. V. Konyagin, I. D. Shkredov, On sum sets of sets having small product set, Proc. Steklov Inst. Math. 290 (2015), 288–299. https://arxiv.org/abs/1503.05771
  • M. Rudnev, S. Stevens, An update on the sum-product problem, Math. Proc. Cambridge Philos. Soc. 173 (2022), 411–430. https://arxiv.org/abs/2005.11145
  • Erdős Problem 52, https://www.erdosproblems.com/52
7 thms3 active usersReviewed
🏆Completed
Machine LearningProbability·Captain: naimengye

Understanding Machine Learning XXI: Covering NumbersTextbook

Motivation

Chapter 26 bounded the rate of uniform convergence by the Rademacher complexity; Chapter 27 of Shalev-Shwartz and Ben-David, Understanding Machine Learning: From Theory to Algorithms (doi:10.1017/CBO9781107298019), introduces a second, metric measure of the size of a set of vectors, its covering numbers N(r,A)N(r, A)N(r,A), the smallest number of Euclidean balls of radius rrr needed to cover AAA, and connects the two through Dudley's chaining. Covering numbers behave well under scaling and under coordinatewise Lipschitz maps (Lemmas 27.2–27.3), they are easily bounded for sets lying in a low-dimensional subspace (Example 27.1), and the chaining lemma turns a bound on log⁡N(r,A)\log N(r, A)logN(r,A) at all scales r=c2−kr = c2^{-k}r=c2−k into a bound on R(A)R(A)R(A) (Lemma 27.4), with the clean corollary R(A)≤6cm(α+2β)R(A) \le \frac{6c}{m}(\alpha + 2\beta)R(A)≤m6c​(α+2β) when log⁡N(c2−k,A)≤α+βk\sqrt{\log N(c2^{-k}, A)} \le \alpha + \beta klogN(c2−k,A)​≤α+βk (Lemma 27.5). The chapter's example recovers R(A)=O(cdlog⁡d/m)R(A) = O(c\sqrt{d\log d}/m)R(A)=O(cdlogd​/m) for sets in a ddd-dimensional subspace, the technique that the book says would sharpen the fundamental theorem's sample complexity from dlog⁡(d/ϵ)/ϵ2d\log(d/\epsilon)/\epsilon^2dlog(d/ϵ)/ϵ2 to d/ϵ2d/\epsilon^2d/ϵ2.

Setting

For A⊆RmA \subseteq \mathbb{R}^mA⊆Rm with the Euclidean metric, A′A'A′ is an rrr-cover of AAA if every a∈Aa \in Aa∈A is within distance rrr of some a′∈A′a' \in A'a′∈A′, and N(r,A)N(r, A)N(r,A) is the cardinality of the smallest rrr-cover (Definition 27.1). The Rademacher complexity R(A)=1mEσsup⁡a∈A⟨σ,a⟩R(A) = \frac1m\mathbb{E}_\sigma\sup_{a \in A}\langle\sigma, a\rangleR(A)=m1​Eσ​supa∈A​⟨σ,a⟩ is Mission XX's. Chaining is run at the scales c2−kc2^{-k}c2−k, k=1,…,Mk = 1, \dots, Mk=1,…,M, where ccc is a radius of a ball containing AAA, the book's c=min⁡aˉmax⁡a∈A∥a−aˉ∥c = \min_{\bar a}\max_{a \in A}\|a - \bar a\|c=minaˉ​maxa∈A​∥a−aˉ∥ being the smallest such radius.

Formalization targets

Goal: Lemma 27.4

For a nonempty A⊆RmA \subseteq \mathbb{R}^mA⊆Rm, m≥1m \ge 1m≥1, contained in the ball of radius ccc about some aˉ\bar aaˉ, and every integer M>0M > 0M>0,

R(A)≤c 2−Mm+6cm∑k=1M2−klog⁡N(c 2−k,A).R(A) \le \frac{c\,2^{-M}}{\sqrt m} + \frac{6c}{m}\sum_{k=1}^M 2^{-k}\sqrt{\log N(c\,2^{-k}, A)}.R(A)≤m​c2−M​+m6c​k=1∑M​2−klogN(c2−k,A)​.

Milestones

Example 27.1 (the grid rrr-cover of a set of norm at most ccc in a ddd-dimensional subspace, of size (2cd/r+1)d(2c\sqrt d/r + 1)^d(2cd​/r+1)d); Lemma 27.2 (scaling and translation); Lemma 27.3 (the contraction principle); Lemma 27.5 (the corollary of chaining). Further item: Example 27.2 (R(A)=O(cdlog⁡d/m)R(A) = O(c\sqrt{d\log d}/m)R(A)=O(cdlogd​/m) for sets in a ddd-dimensional subspace).

Significance

Chaining is the standard way to get sharp uniform convergence rates: a single-scale union bound (Massart's lemma at one resolution) loses a logarithmic factor, and summing Massart bounds over a geometric sequence of scales, applied to the increments between successive nearest cover points, recovers it. Lemma 27.4 is the discrete Dudley integral, and Lemma 27.5 is the form in which it is used: any polynomial-in-1/r1/r1/r covering number gives R(A)=O(clog⁡N/m)R(A) = O(c\sqrt{\log N}/m)R(A)=O(clogN​/m)-type bounds without the extra logarithm. On the platform these items complete the complexity toolbox begun in Mission XX and provide covering numbers as a reusable notion; the contraction and scaling lemmas mirror their Rademacher counterparts.

Difficulty

Lemmas 27.2 and 27.3 are immediate: the image of an rrr-cover under the affine map is an rcrcrc-cover, and under a coordinatewise ρ\rhoρ-Lipschitz map a ρr\rho rρr-cover, since ∥φ(a)−φ(a′)∥2=∑i(φi(ai)−φi(ai′))2≤ρ2∥a−a′∥2\|\varphi(a) - \varphi(a')\|^2 = \sum_i(\varphi_i(a_i) - \varphi_i(a'_i))^2 \le \rho^2\|a - a'\|^2∥φ(a)−φ(a′)∥2=∑i​(φi​(ai​)−φi​(ai′​))2≤ρ2∥a−a′∥2; formally they are manipulations of the infimum in N∪{∞}\mathbb{N} \cup \{\infty\}N∪{∞}. Example 27.1 needs an orthonormal basis of the subspace (Gram–Schmidt, or Mathlib's orthonormal bases of finite-dimensional inner product subspaces of Rm\mathbb{R}^mRm with the Euclidean structure) and the rounding of coordinates to a grid. Lemma 27.4 is the real work: after centering, take minimal c2−kc2^{-k}c2−k-covers BkB_kBk​, the near-maximizer a∗a^*a∗ of ⟨σ,a⟩\langle\sigma, a\rangle⟨σ,a⟩ (which depends on σ\sigmaσ), its nearest points b(k)∈Bkb^{(k)} \in B_kb(k)∈Bk​, the telescoping a∗=(a∗−b(M))+∑k(b(k)−b(k−1))a^* = (a^* - b^{(M)}) + \sum_k(b^{(k)} - b^{(k-1)})a∗=(a∗−b(M))+∑k​(b(k)−b(k−1)), the bound ∥b(k)−b(k−1)∥≤3c2−k\|b^{(k)} - b^{(k-1)}\| \le 3c2^{-k}∥b(k)−b(k−1)∥≤3c2−k, and Massart's lemma (Mission XX) on the sets B^k\hat B_kB^k​ of increments, of cardinality at most N(c2−k,A)2N(c2^{-k}, A)^2N(c2−k,A)2; a formal proof must handle the supremum not being attained (approximate maximizers) and the dependence of all choices on σ\sigmaσ inside the finite average. Lemma 27.5 lets M→∞M \to \inftyM→∞ using ∑k2−k=1\sum_k 2^{-k} = 1∑k​2−k=1 and ∑kk2−k=2\sum_k k2^{-k} = 2∑k​k2−k=2. Example 27.2 combines Example 27.1 at the scales c2−kc2^{-k}c2−k with Lemma 27.5, with the book's constant log⁡(2d)\log(2\sqrt d)log(2d​). The book's derivation uses the count without +1+1+1, so a proof needs the volumetric covering bound (1+2c/r)d(1 + 2c/r)^d(1+2c/r)d for d≥2d \ge 2d≥2 and a direct count for d=1d = 1d=1.

Formalization scope

Vectors are Fin m → ℝ with an explicit Euclidean norm, because Mathlib's norm on that type is the sup norm; covers are arbitrary finsets of Rm\mathbb{R}^mRm and N(r,A)N(r, A)N(r,A) is an infimum in N∪{∞}\mathbb{N} \cup \{\infty\}N∪{∞}, so no junk value arises when no finite cover exists, and the chaining statements read NNN through ENat.toNat for the bounded sets they concern, where it is finite. Subspaces are Mathlib Submodules with finrank = d. Two statements are given with the constants their proofs support, and the item texts say so. Example 27.1's grid has 2c/ϵ+12c/\epsilon + 12c/ϵ+1 points per coordinate, so the cover has size (2cd/r+1)d(2c\sqrt d/r + 1)^d(2cd​/r+1)d, not (2cd/r)d(2c\sqrt d/r)^d(2cd​/r)d, which is less than 111 for r>2cdr > 2c\sqrt dr>2cd​ and cannot bound a covering number of a nonempty set; Example 27.2 correspondingly has log⁡(4d)\log(4\sqrt d)log(4d​) in place of log⁡(2d)\log(2\sqrt d)log(2d​). Lemma 27.4 is stated for any enclosing radius ccc about any center, since the proof only uses that {aˉ}\{\bar a\}{aˉ} is a ccc-cover of AAA; the book's minimal radius is the special case, and this is the form Example 27.2 needs (with aˉ=0\bar a = 0aˉ=0 and c=max⁡∥a∥c = \max\|a\|c=max∥a∥). Lemma 27.5 keeps the book's α,β>0\alpha, \beta > 0α,β>0.

Not stated: nothing else is in the chapter beyond the bibliographic remarks.

Selected references

  • S. Shalev-Shwartz, S. Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press, 2014, Chapter 27. doi:10.1017/CBO9781107298019
  • R. M. Dudley, Universal Donsker classes and metric entropy, Annals of Probability 15(4), 1987. doi:10.1214/aop/1176991978
  • M. Anthony, P. L. Bartlett, Neural Network Learning: Theoretical Foundations, Cambridge University Press, 1999. doi:10.1017/CBO9780511624216
  • M. Talagrand, Upper and Lower Bounds for Stochastic Processes, Springer, 2014. doi:10.1007/978-3-642-54075-2
  • R. Vershynin, High-Dimensional Probability, Cambridge University Press, 2018. doi:10.1017/9781108231596
7 thms3 active usersReviewed
🏆Completed
Machine LearningOptimization·Captain: naimengye

Understanding Machine Learning XVII: ClusteringTextbook

Motivation

Clustering is the most widely used tool of exploratory data analysis and, at the same time, the least well defined: similar points should share a cluster and dissimilar points should not, but similarity is not transitive while cluster membership is, and without labels there is no ground truth against which to evaluate a proposed grouping. Chapter 22 of Shalev-Shwartz and Ben-David, Understanding Machine Learning: From Theory to Algorithms (doi:10.1017/CBO9781107298019), surveys the main paradigms, linkage-based algorithms, cost minimization with the k-means family, spectral relaxations of graph cuts, and the information bottleneck, and then returns to the question of what clustering is through Kleinberg's axioms. Its one theorem about that question is negative: no clustering function is simultaneously scale invariant, rich and consistent (Theorem 22.4). The mission formalizes this impossibility together with the chapter's positive facts: an iteration of the k-means algorithm never increases the k-means objective (Lemma 22.1), the RatioCut objective is the trace of a quadratic form of the graph Laplacian over cluster indicator vectors (Lemma 22.3), and the farthest-first traversal is a 2-approximation for the k-diam objective (Exercise 3).

Setting

A clustering of a finite set XXX is a partition C=(C1,…,Ck)C = (C_1, \dots, C_k)C=(C1​,…,Ck​). For X⊆RnX \subseteq \mathbb{R}^nX⊆Rn the k-means objective is G(C)=∑i∑x∈Ci∥x−μ(Ci)∥2G(C) = \sum_i\sum_{x \in C_i}\|x - \mu(C_i)\|^2G(C)=∑i​∑x∈Ci​​∥x−μ(Ci​)∥2 with μ(Ci)\mu(C_i)μ(Ci​) the centroid of CiC_iCi​, equivalently min⁡μ1,…,μk∑i∑x∈Ci∥x−μi∥2\min_{\mu_1, \dots, \mu_k}\sum_i\sum_{x \in C_i}\|x - \mu_i\|^2minμ1​,…,μk​​∑i​∑x∈Ci​​∥x−μi​∥2 (22.1); the k-means algorithm alternately reassigns each point to a nearest centroid and recomputes the centroids. For a similarity matrix W∈Rm×mW \in \mathbb{R}^{m \times m}W∈Rm×m, the degree matrix is D=diag⁡(∑jWi,j)D = \operatorname{diag}(\sum_j W_{i,j})D=diag(∑j​Wi,j​), the unnormalized graph Laplacian is L=D−WL = D - WL=D−W (Definition 22.2), and RatioCut⁡(C)=∑i1∣Ci∣∑r∈Ci,s∉CiWr,s\operatorname{RatioCut}(C) = \sum_i \frac1{|C_i|}\sum_{r \in C_i, s \notin C_i}W_{r,s}RatioCut(C)=∑i​∣Ci​∣1​∑r∈Ci​,s∈/Ci​​Wr,s​. Kleinberg's setting is a clustering function FFF that takes a dissimilarity ddd over XXX, symmetric, zero on the diagonal and positive off it, and returns a partition; the three axioms are Scale Invariance (F(αd)=F(d)F(\alpha d) = F(d)F(αd)=F(d)), Richness (every partition is some F(d)F(d)F(d)) and Consistency (shrinking within-cluster and expanding between-cluster dissimilarities leaves FFF unchanged). The k-diam objective is max⁡jdiam⁡(Cj)\max_j\operatorname{diam}(C_j)maxj​diam(Cj​), and the farthest-first traversal picks μ1\mu_1μ1​ arbitrarily and μj\mu_jμj​ maximizing min⁡i<jd(x,μi)\min_{i<j}d(x, \mu_i)mini<j​d(x,μi​), then clusters by nearest center.

Formalization targets

Goal: Theorem 22.4

For a finite domain XXX with at least two points, there is no function FFF from dissimilarities over XXX to partitions of XXX satisfying Scale Invariance, Richness and Consistency.

Milestones

Lemma 22.1 (a k-means iteration does not increase GGG); the Laplacian identity v⊤Lv=12∑r,sWr,s(vr−vs)2v^\top L v = \frac12\sum_{r,s}W_{r,s}(v_r - v_s)^2v⊤Lv=21​∑r,s​Wr,s​(vr​−vs​)2 from the proof of Lemma 22.3; Lemma 22.3 (H⊤H=IH^\top H = IH⊤H=I and RatioCut⁡(C)=trace⁡(H⊤LH)\operatorname{RatioCut}(C) = \operatorname{trace}(H^\top L H)RatioCut(C)=trace(H⊤LH) for Hi,j=∣Cj∣−1/21[i∈Cj]H_{i,j} = |C_j|^{-1/2}\mathbb{1}[i \in C_j]Hi,j​=∣Cj​∣−1/21[i∈Cj​]); Exercise 3 (farthest-first traversal is a 2-approximation for k-diam). Further item: the centroid minimizes ∑x∈C∥x−μ∥2\sum_{x \in C}\|x - \mu\|^2∑x∈C​∥x−μ∥2, the content of (22.1)–(22.3).

Significance

Kleinberg's theorem is the chapter's conceptual center: it says there is no ideal clustering function, only trade-offs, and the choice of a method must encode prior knowledge about the task, the unsupervised analogue of the No-Free-Lunch theorem. Its proof is short but delicate about what a dissimilarity is, and formalizing it fixes the exact hypotheses. Lemma 22.1 is the only guarantee the book offers for Lloyd's algorithm, and it is the reason the algorithm terminates on finite data. Lemma 22.3 is the bridge from a combinatorial cut objective to the spectrum of the Laplacian, the starting point of spectral clustering and of the PCA-type argument used in Chapter 23. The farthest-first result of Exercise 3 is Gonzalez's classical 2-approximation for k-center-type objectives, stated here for the diameter objective, and it is tight in the sense that no better constant is possible unless P = NP.

Difficulty

Theorem 22.4 follows the book: Richness gives d1d_1d1​ with all-singleton output and d2d_2d2​ with a different output; positivity lets one scale d2d_2d2​ above d1d_1d1​ pointwise, and Scale Invariance and Consistency then force two different values for F(αd2)F(\alpha d_2)F(αd2​). Formally the work is in building the scaled dissimilarity and in comparing Setoids. Lemma 22.1 is two inequalities: the nearest-centroid reassignment does not increase ∑i∑x∈Ci∥x−μi∥2\sum_i\sum_{x \in C_i}\|x - \mu_i\|^2∑i​∑x∈Ci​​∥x−μi​∥2 for the old centroids, because it minimizes it pointwise over assignments, and recomputing centroids does not increase it either, because the centroid minimizes the within-cluster sum of squares; the latter is the separate centroid item, a completing-the-square computation in an inner product space. The Laplacian identity is a finite double-sum manipulation that uses the symmetry of WWW; Lemma 22.3 applies it to the columns of HHH and computes H⊤HH^\top HH⊤H from the partition structure. Exercise 3 is the hint's argument: let rrr be the distance from the next farthest-first point μk+1\mu_{k+1}μk+1​ to the chosen centers; every point is within rrr of its center, so every cluster of the algorithm has diameter at most 2r2r2r, while the k+1k+1k+1 points μ1,…,μk+1\mu_1, \dots, \mu_{k+1}μ1​,…,μk+1​ are pairwise at distance at least rrr, so two of them share a cluster of any kkk-clustering, whose diameter is then at least rrr. When ∣X∣≤k|X| \le k∣X∣≤k the argument degenerates but the statement stays trivially true.

Formalization scope

Partitions are Fin k\mathrm{Fin}\ kFin k-indexed families of finsets covering each point of the data exactly once, and nearest-center assignments and farthest-first centers are predicates rather than functions, so every tie-breaking rule is covered. The k-means items live in Rn\mathbb{R}^nRn as EuclideanSpace; the centroid of an empty cluster is 000, which never enters any sum. The spectral items use Mathlib matrices over Fin m, Matrix.diagonal, Matrix.trace, the root-namespace dotProduct, and require WWW symmetric, which the identity needs and which every similarity matrix satisfies; Lemma 22.3 requires nonempty clusters, without which HHH has a zero column. Kleinberg's function is formalized on a fixed finite domain, as a map from Dissimilarity X to Setoid X, dissimilarities being positive on distinct points as in Kleinberg (2003): the book's model of p. 309 only asks for d≥0d \ge 0d≥0, but the scaling step of the proof of Theorem 22.4 requires positivity, and the theorem is stated for domains with at least two points, since the proof uses two partitions only. The k-diam theorem is stated without a maximum: every cluster of the algorithm has diameter at most twice the diameter of some cluster of the competitor, which is Gk-diam(C^)≤2Gk-diam(C∗)G_{k\text{-diam}}(\hat C) \le 2G_{k\text{-diam}}(C^*)Gk-diam​(C^)≤2Gk-diam​(C∗) without conventions for empty index sets, and Metric.diam gives 000 on sets of fewer than two points, the exercise's convention.

Not stated: the linkage-based algorithms and dendrograms of §22.1 (no theorem is stated about them), the k-medoids and k-median objectives, the spectral clustering algorithm itself, the information bottleneck of §22.4, Exercises 1, 2 and 4–6.

Selected references

  • S. Shalev-Shwartz, S. Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press, 2014, Chapter 22. doi:10.1017/CBO9781107298019
  • J. Kleinberg, An impossibility theorem for clustering, NIPS 2002.
  • S. P. Lloyd, Least squares quantization in PCM, IEEE Transactions on Information Theory 28(2), 1982. doi:10.1109/TIT.1982.1056489
  • U. von Luxburg, A tutorial on spectral clustering, Statistics and Computing 17, 2007. doi:10.1007/s11222-007-9033-z
  • T. F. Gonzalez, Clustering to minimize the maximum intercluster distance, Theoretical Computer Science 38, 1985. doi:10.1016/0304-3975(85)90224-5
  • M. Ackerman, S. Ben-David, Measures of clustering quality: a working set of axioms for clustering, NIPS 2008.
7 thms3 active usersReviewed
🏆Completed
Machine LearningProbabilityStatistics·Captain: naimengye

An Introduction to Computational Learning Theory V: Classification Noise and Statistical QueriesTextbook

Motivation

Chapter 5 of Kearns and Vazirani, An Introduction to Computational Learning Theory (MIT Press, 1994, doi:10.7551/mitpress/3897.001.0001), asks what happens to PAC learning when the labels are unreliable. In the classification noise model of Angluin and Laird, each label returned by the oracle is flipped independently with a fixed probability η<1/2\eta < 1/2η<1/2. The algorithms of Chapter 1 collapse at once: the elimination algorithm deletes a correct literal on the strength of a single mislabeled example, and the tightest-fit rectangle may not exist. The chapter's remedy is to learn from statistics: an algorithm that forms its hypothesis only from estimates of probabilities of simple events is insensitive to occasional wrong labels. Kearns's statistical query model makes this precise, replacing the example oracle by an oracle that returns the probability of any predicate of a labeled example to within a tolerance, and the main theorem (5.3) shows that every class learnable from statistical queries is PAC learnable in the presence of classification noise. The proof rests on a single identity, Equation (5.2), that expresses the true value of a statistical query in terms of three quantities that can each be estimated from noisy examples, and on the observation that a hypothesis's disagreement with the noisy label is an affine function of its true error, which lets the best of several candidate hypotheses be recognized without clean data.

Setting

The framework is that of Mission I. The noisy example law is that of (x,b)(x, b)(x,b) with x∼Dx \sim Dx∼D and b=c(x)b = c(x)b=c(x) flipped with probability η\etaη. A statistical query is a predicate χ\chiχ of a labeled example with value Pχ=Pr⁡x∼D[χ(x,c(x))=1]P_\chi = \Pr_{x \sim D}[\chi(x, c(x)) = 1]Pχ​=Prx∼D​[χ(x,c(x))=1]. The inputs split into X1X_1X1​, where the label matters to χ\chiχ, and X2X_2X2​, where it does not; p1=D(X1)p_1 = D(X_1)p1​=D(X1​) and D1D_1D1​ is DDD conditioned on X1X_1X1​. For conjunctions over {0,1}n\{0,1\}^n{0,1}n, p0(z)p_0(z)p0​(z) is the probability that a literal zzz is set to 000 and p01(z)p_{01}(z)p01​(z) the probability that it is 000 on a positive example; zzz is significant if p0(z)≥ϵ/8np_0(z) \ge \epsilon/8np0​(z)≥ϵ/8n and harmful if p01(z)≥ϵ/8np_{01}(z) \ge \epsilon/8np01​(z)≥ϵ/8n.

Formalization targets

Goal: Equation (5.2)

For 0≤η<1/20 \le \eta < 1/20≤η<1/2 and every statistical query χ\chiχ,

Pχ=p1⋅Pr⁡EXCNη(c,D1)[χ=1]−η1−2η+Pr⁡EXCNη(c,D)[χ=1∧x∈X2],P_\chi = p_1 \cdot \frac{\Pr_{EX^\eta_{CN}(c, D_1)}[\chi = 1] - \eta}{1 - 2\eta} + \Pr_{EX^\eta_{CN}(c, D)}[\chi = 1 \wedge x \in X_2],Pχ​=p1​⋅1−2ηPrEXCNη​(c,D1​)​[χ=1]−η​+EXCNη​(c,D)Pr​[χ=1∧x∈X2​],

the probabilities on the right being taken under the noisy oracle.

Milestones

The §5.2 analysis behind Theorem 5.2 (the conjunction of all significant, non-harmful literals has error at most ϵ/2\epsilon/2ϵ/2); the product estimate bound of p. 115 (AB−2τ′≤A^B^≤AB+3τ′AB - 2\tau' \le \hat A\hat B \le AB + 3\tau'AB−2τ′≤A^B^≤AB+3τ′); the identity of p. 117 (γh=η+(1−2η) error(h)\gamma_h = \eta + (1 - 2\eta)\,\mathrm{error}(h)γh​=η+(1−2η)error(h)).

Significance

Equation (5.2) is the entire mechanism of noise-tolerant learning in the statistical query model: the noisy oracle cannot be de-noised example by example, but the probability of any predicate can be recovered exactly from noisy probabilities, because on the inputs where the label matters the noise acts as a known affine contraction and on the others it acts not at all. Together with the p. 117 identity, which turns hypothesis selection into a comparison of noisy disagreement rates, and the Chernoff bounds of Mission IV, it yields Theorem 5.3 and hence noise-tolerant algorithms for every class the book has learned so far (conjunctions, decision lists, kkk-CNF). The §5.2 analysis is the first statistical-query algorithm and shows the pattern: a hypothesis defined by thresholds on a few probabilities, with enough slack between the thresholds that estimates suffice. None of this is machine-checked. The formalization fixes the noisy example law on the platform's sample framework and proves the exact identities on which the noise-tolerant simulation depends.

Difficulty

Equation (5.2) is a computation with the pushforward of a product measure: one must express the noisy law on X1X_1X1​ as a mixture of the clean law and its label-flipped image, solve the affine relation for the clean probability, and combine with the restriction to X2X_2X2​, where the flipped and unflipped labels give the same value of χ\chiχ; the degenerate case D(X1)=0D(X_1) = 0D(X1​)=0, in which the conditional measure is zero and the first term vanishes, must be handled separately. The p. 117 identity is the same computation without the split. The §5.2 analysis is two union bounds over the 2n2n2n literals after the observation that a literal of the target is never harmful and that a literal of the hypothesis is never insignificant. The product lemma is elementary arithmetic with a case split at A<τ′A < \tau'A<τ′.

Formalization scope

The noisy oracle is a measure on labeled examples obtained by mapping the product of DDD and a Bernoulli(η\etaη) coin; the conditional D1D_1D1​ is Mathlib's conditional measure; queries are arbitrary measurable predicates of a labeled example, with no tolerance or query-count bookkeeping. Theorem 5.3 itself, the definitions of efficient learnability from statistical queries (Definition 14) and of efficient noisy PAC learnability (Definition 13), Theorem 5.1, Theorem 5.2 as a statement about an algorithm with oracle access, and Corollary 5.4 are not stated: they quantify over query algorithms and their running times, for which this series has no model; the mission carries their exact probabilistic content. The error-propagation analysis of §5.4.2–5.4.3 with tolerance τ/27\tau/27τ/27 and the guessing resolution Δ\DeltaΔ is not stated beyond the product lemma, since the factor 1/(1−2η)1/(1-2\eta)1/(1−2η) is not in [0,1][0,1][0,1] and the book's constant does not account for it. Hypotheses: 0≤η<1/20 \le \eta < 1/20≤η<1/2 for the decomposition, 0≤η≤10 \le \eta \le 10≤η≤1 for the disagreement identity, ϵ>0\epsilon > 0ϵ>0 for the conjunction analysis, all reals in [0,1][0,1][0,1] for the product lemma.

Trivializing readings are excluded: the decomposition is an exact identity for every measurable query, and the conjunction bound is for the exact thresholds ϵ/8n\epsilon/8nϵ/8n with the union bound's ϵ/2\epsilon/2ϵ/2. Welcome contributions: the mixture representation of the noisy law, the restriction of a pushforward to X2X_2X2​, and the two union bounds.

Selected references

  • M. J. Kearns, U. V. Vazirani, An Introduction to Computational Learning Theory, MIT Press, 1994, Chapter 5. doi:10.7551/mitpress/3897.001.0001
  • D. Angluin, P. Laird, Learning from noisy examples, Machine Learning 2(4), 1988. doi:10.1007/BF00116829
  • M. Kearns, Efficient noise-tolerant learning from statistical queries, Journal of the ACM 45(6), 1998. doi:10.1145/293347.293351
  • M. Kearns, M. Li, Learning in the presence of malicious errors, SIAM Journal on Computing 22(4), 1993. doi:10.1137/0222052
7 thms3 active usersReviewed
🏆Completed
Machine LearningProbabilityStatistics·Captain: naimengye

An Introduction to Computational Learning Theory IV: Weak and Strong Learning, Boosting and Chernoff BoundsTextbook

Motivation

Chapter 4 of Kearns and Vazirani, An Introduction to Computational Learning Theory (MIT Press, 1994, doi:10.7551/mitpress/3897.001.0001), asks whether the PAC model's demand for arbitrarily small error and confidence is essential. A weak learning algorithm need only, with some fixed positive probability, output a hypothesis that beats random guessing by a fixed margin. Schapire's theorem, the chapter's main result, says that this apparently much weaker requirement is equivalent to the original one: any weak learner can be converted, by running it on carefully filtered distributions and combining its hypotheses by majority votes, into a strong learner. The construction is boosting, which became one of the most influential ideas in machine learning. The chapter proves the equivalence in two steps. Boosting the confidence is elementary: run the learner several times and validate. Boosting the accuracy is the substance: a modest procedure that combines three hypotheses, each with error at most β\betaβ on its own distribution, into a majority with error at most g(β)=3β2−2β3<βg(\beta) = 3\beta^2 - 2\beta^3 < \betag(β)=3β2−2β3<β, applied recursively until the error is driven below the target. The Chernoff bounds of the Appendix, the book's workhorse for estimating probabilities from samples, are what makes the validation steps rigorous.

Setting

The framework is that of Mission I. A class CCC is weakly learnable using HHH if for some advantage γ>0\gamma > 0γ>0, confidence δ0>0\delta_0 > 0δ0​>0 and sample size mmm, an algorithm outputs hypotheses in HHH that, for every target in CCC and every distribution, have error at most 1/2−γ1/2 - \gamma1/2−γ with probability at least δ0\delta_0δ0​; the algorithm's prediction L(S)(x)L(S)(x)L(S)(x) is a measurable function of the sample and the instance together, as it is for every algorithm. Given a hypothesis h1h_1h1​, the filtered distribution D2D_2D2​ gives weight 1/21/21/2 to the instances on which h1h_1h1​ errs and 1/21/21/2 to those on which it is correct, preserving relative weights within each part, and D3D_3D3​ is DDD conditioned on h1≠h2h_1 \ne h_2h1​=h2​; the modest procedure outputs majority(h1,h2,h3)\mathrm{majority}(h_1, h_2, h_3)majority(h1​,h2​,h3​). Ternary majority trees over HHH are the closure of HHH under the majority of three. For confidence boosting, kkk independent samples yield kkk hypotheses, and a fresh sample selects the one with the fewest mistakes. Bernoulli trials are mmm independent coin flips with success probability ppp.

Formalization targets

Goal: Theorem 4.9

If CCC is weakly PAC learnable using measurable hypotheses in HHH, then CCC is PAC learnable using the class of ternary majority trees with leaves from HHH: for all ϵ,δ∈(0,1/2)\epsilon, \delta \in (0, 1/2)ϵ,δ∈(0,1/2) some sample size and some algorithm outputting majority trees achieve error at most ϵ\epsilonϵ with probability at least 1−δ1 - \delta1−δ, for every target in CCC and every distribution.

Milestones

Theorem 9.2 (the additive and multiplicative Chernoff bounds); the two facts of §4.2 behind confidence boosting (independent runs all fail with probability at most (1−δ0)k(1 - \delta_0)^k(1−δ0​)k; the fewest-mistakes selection loses at most γ\gammaγ with probability at least 1−2ke−mγ2/21 - 2k e^{-m\gamma^2/2}1−2ke−mγ2/2); Lemma 4.1 (the modest procedure: error at most g(β)g(\beta)g(β)).

Significance

Theorem 4.9 is one of the landmark results of learning theory: it shows that the PAC model has no intermediate strength, that Occam learning, weak learning and strong learning coincide, and that the resources of a strong learner can be bounded polylogarithmically in 1/ϵ1/\epsilon1/ϵ in memory and hypothesis size. Its constructive proof is the first boosting algorithm, ancestor of AdaBoost and of gradient boosting. Lemma 4.1 is the analytic core, a clean inequality about three hypotheses and three distributions in which the filtered distribution is exactly calibrated so that h1h_1h1​ has no advantage on it. The Chernoff bounds are the concentration inequalities invoked throughout the book, and their formalization on the product law of Bernoulli trials makes every later "estimate to within γ\gammaγ with confidence 1−δ1 - \delta1−δ" step reusable. None of these is machine-checked in this form; the boosting theorem in the sample-complexity sense is, to our knowledge, not formalized anywhere.

Difficulty

Lemma 4.1 is a computation with conditional measures: writing errorD\mathrm{error}_DerrorD​ of the majority as the weight of the instances on which h1h_1h1​ and h2h_2h2​ both err plus β3\beta_3β3​ times the weight of their disagreement, mapping weights under D2D_2D2​ back to DDD by the factors 2(1−β1)2(1 - \beta_1)2(1−β1​) and 2β12\beta_12β1​ (Equation (4.1)), and maximizing the resulting polynomial in β1,β2,β3,γ1,γ2\beta_1, \beta_2, \beta_3, \gamma_1, \gamma_2β1​,β2​,β3​,γ1​,γ2​; the degenerate cases where a conditioning event is null must be handled separately. The Chernoff bounds require the exponential moment method on a finite product measure. The confidence-boosting facts are the product bound for independent blocks and Hoeffding plus a union bound. The goal is a genuine construction: from a large sample of DDD one must simulate the recursive algorithm Strong-Learn, whose calls to the weak learner on filtered distributions are served by rejection sampling from the remaining examples, bound the depth of the recursion by the growth of g−1g^{-1}g−1 iterates (Lemma 4.2), bound the number of examples consumed at each node (Lemmas 4.3–4.7) and allocate the confidence over all the places the simulation can fail; then package the result as a deterministic function of a sample of fixed size. An alternative route is available: weak learnability with a fixed sample size forces a finite VC dimension (a class shattering a large set defeats any fixed-size learner on the uniform distribution over it), after which Theorem 3.3 gives a consistent strong learner; but its hypotheses lie in CCC, not in the majority trees over HHH, so it does not prove the stated conclusion.

Formalization scope

The weak-learning hypothesis is the book's with constants γ,δ0\gamma, \delta_0γ,δ0​ in place of the inverse polynomials, which is what the definition says for a fixed class; hypotheses in HHH are required to be measurable, and the weak learner jointly measurable in the sample and the instance, because Strong-Learn runs it on distributions filtered through its own earlier outputs and the analysis integrates over the earlier samples (for an arbitrary function the combined failure event need not be measurable, and outer-measure bounds on separate runs do not combine); the conclusion is the book's hypothesis class, the majority trees over HHH, built as an inductive predicate. Filtered distributions use Mathlib's conditional measure, so that a null conditioning event yields the zero measure; Lemma 4.1 is stated for 0≤β≤1/20 \le \beta \le 1/20≤β≤1/2 and holds in those degenerate cases too. The confidence-boosting milestone states the two probabilistic facts rather than the composite algorithm, whose sample indexing across runs and validation is bookkeeping; the selection rule is any rule minimizing mistakes. Chernoff's bounds are stated with non-strict inequalities in the events, for 0≤p≤10 \le p \le 10≤p≤1 and 0<γ≤10 < \gamma \le 10<γ≤1. Running time, the recursion-depth and sample-size lemmas with unspecified constants (4.2–4.8), and Exercises 4.1–4.3 are not stated.

Trivializing readings are excluded: the weak-learning guarantee is uniform over all targets and distributions with an advantage strictly positive, the strong conclusion is for every ϵ,δ\epsilon, \deltaϵ,δ, and Lemma 4.1 requires all three error bounds on their respective distributions. Welcome contributions: Lemma 4.1 itself, the Hoeffding bound on the product law, and the rejection-sampling lemma that turns a sample of DDD into a sample of a filtered distribution.

Selected references

  • M. J. Kearns, U. V. Vazirani, An Introduction to Computational Learning Theory, MIT Press, 1994, Chapter 4 and Chapter 9. doi:10.7551/mitpress/3897.001.0001
  • R. E. Schapire, The strength of weak learnability, Machine Learning 5(2), 1990. doi:10.1007/BF00116037
  • Y. Freund, Boosting a weak learning algorithm by majority, Information and Computation 121(2), 1995. doi:10.1006/inco.1995.1136
  • W. Hoeffding, Probability inequalities for sums of bounded random variables, Journal of the American Statistical Association 58(301), 1963. doi:10.1080/01621459.1963.10500830
  • H. Chernoff, A measure of asymptotic efficiency for tests of a hypothesis based on the sum of observations, Annals of Mathematical Statistics 23(4), 1952. doi:10.1214/aoms/1177729330
7 thms3 active usersReviewed
🏆Completed
Operations Research·Captain: naimengye

Fundamentals of Supply Chain Theory VI: Pooling and FlexibilityTextbook

Pooling as a design principle

A firm that holds inventory in five warehouses needs more safety stock than one that holds the same inventory in one warehouse, because the demands of five regions do not all run high at once. Eppen (1979) made this precise for a multi-location newsvendor and gave it its name, the risk-pooling effect. Chapter 7 of Snyder and Shen's Fundamentals of Supply Chain Theory (2019) follows the same idea through three settings in which pooling happens without physical consolidation: two retailers who ship stock to each other after seeing demand (transshipments, after Tagaras 1989), and plants that can each make more than one product (process flexibility, after Jordan and Graves 1995). The chapter's capstone is the theorem of Simchi-Levi and Wei (2012) that, among designs in which every plant makes two products and every product is made at two plants, a single long chain through all of them is best. This mission formalizes the chapter's numbered results, with that theorem as its goal.

Setting

Risk pooling. NNN distribution centers face normally distributed per-period demands Di∼N(μi,σi2)D_i \sim N(\mu_i, \sigma_i^2)Di​∼N(μi​,σi2​) with correlation coefficients ρij\rho_{ij}ρij​, and each runs a base-stock policy with holding cost hhh and backorder cost ppp per unit per period, so its optimal expected cost is the optimal newsvendor cost optNvCost h p D, the infimum over base-stock levels SSS of E[h(S−D)++p(D−S)+]\mathbb{E}[h(S - D)^+ + p(D - S)^+]E[h(S−D)++p(D−S)+]. Merging the centers gives one facing the total demand, normal with mean ∑iμi\sum_i \mu_i∑i​μi​ and variance σ02=∑i∑jσiσjρij\sigma_0^2 = \sum_i \sum_j \sigma_i \sigma_j \rho_{ij}σ02​=∑i​∑j​σi​σj​ρij​ (pooledVariance).

Transshipments. Two retailers i,ji, ji,j with base-stock levels Si,SjS_i, S_jSi​,Sj​ face independent demands. After demand is observed, under complete pooling the retailer with a surplus sends the retailer with a shortage Yji=min⁡{Sj−Dj, Di−Si}Y_{ji} = \min\{S_j - D_j,\ D_i - S_i\}Yji​=min{Sj​−Dj​, Di​−Si​} units (transship), and nothing moves otherwise. The type-1 service level is the probability of no stockout, αi0=Pr⁡[Di≤Si]\alpha^0_i = \Pr[D_i \le S_i]αi0​=Pr[Di​≤Si​] without and αi=Pr⁡[Di−Si≤Yji]\alpha_i = \Pr[D_i - S_i \le Y_{ji}]αi​=Pr[Di​−Si​≤Yji​] with transshipments; the type-2 service level is the fill rate, one minus expected unmet demand over expected demand, βi0\beta^0_iβi0​ and βi\beta_iβi​ likewise.

Process flexibility. A flexibility design on nnn products and nnn plants is a set EEE of (product, plant) pairs, an edge (i,j)(i, j)(i,j) meaning plant jjj can make product iii. Given a demand realization ddd and a common plant capacity CCC, the performance P(d,E)P(d, E)P(d,E) (perf) is the maximum sales obtainable by assigning production along the edges of EEE without exceeding any capacity or demand, the linear program (7.22) to (7.26). A balanced system (BalancedSystem) has equal capacities and an exchangeable demand vector, one whose joint law is invariant under permutations of the products, and [E]=E[P(D,E)][E] = \mathbb{E}[P(D, E)][E]=E[P(D,E)] is the expected performance (expPerf). The named designs are the dedicated design Dn={(i,i)}D_n = \{(i, i)\}Dn​={(i,i)}, the long chain CnC_nCn​ in which plant jjj also makes product j+1j + 1j+1 (and plant nnn makes product 111), the open chain LkL_kLk​ obtained from CkC_kCk​ by deleting the edge (1,k)(1, k)(1,k), and LknL^n_kLkn​, the open chain on the first kkk pairs together with the dedicated edges of the rest. A 2-flexibility design (TwoFlex) is one in which every product has exactly two plants and every plant exactly two products; CnC_nCn​ is one, and so is any union of disjoint shorter chains.

Formalization targets

Goal: Theorem 7.9

For a balanced system of size n≥2n \ge 2n≥2 with exchangeable demand,

Cn∈arg⁡max⁡A∈F2[A],C_n \in \arg\max_{A \in \mathcal{F}_2} [A],Cn​∈argA∈F2​max​[A],

that is, CnC_nCn​ is a 2-flexibility design and [A]≤[Cn][A] \le [C_n][A]≤[Cn​] for every 2-flexibility design AAA. This is long_chain_optimal.

Supporting targets

The chapter's route to the goal: Lemma 7.5, supermodularity of sales in the flexible edges of the long chain for every realization, P(d,E)+P(d,E∖{α,β})≥P(d,E∖{α})+P(d,E∖{β})P(d, E) + P(d, E \setminus \{\alpha, \beta\}) \ge P(d, E \setminus \{\alpha\}) + P(d, E \setminus \{\beta\})P(d,E)+P(d,E∖{α,β})≥P(d,E∖{α})+P(d,E∖{β}) for E⊆CnE \subseteq C_nE⊆Cn​; Corollary 7.6, the same in expectation; Lemma 7.7, the increments [Lk+1n]−[Lkn][L^n_{k+1}] - [L^n_k][Lk+1n​]−[Lkn​] are nondecreasing in kkk, ending with [Cn]−[Lnn][C_n] - [L^n_n][Cn​]−[Lnn​]; and Lemma 7.8, [Cn]=n([Ln]−[Ln−1])[C_n] = n([L_n] - [L_{n-1}])[Cn​]=n([Ln​]−[Ln−1​]).

Risk pooling, Theorem 7.1: gC∗≤gD∗g^*_C \le g^*_DgC∗​≤gD∗​, the optimal cost of the merged center is at most the sum of the optimal costs of the separate ones, with the covariance inequality ∑i∑jσiσjρij≤∑iσi\sqrt{\sum_i\sum_j \sigma_i\sigma_j\rho_{ij}} \le \sum_i \sigma_i∑i​∑j​σi​σj​ρij​​≤∑i​σi​ as a separate lemma.

Transshipments, Theorems 7.2 to 7.4: αi=αi0+∣∂E[Yji]/∂Si∣\alpha_i = \alpha^0_i + |\partial\mathbb{E}[Y_{ji}]/\partial S_i|αi​=αi0​+∣∂E[Yji​]/∂Si​∣, βi=βi0+E[Yji]/E[Di]\beta_i = \beta^0_i + \mathbb{E}[Y_{ji}]/\mathbb{E}[D_i]βi​=βi0​+E[Yji​]/E[Di​], and all four post-transshipment service levels are nondecreasing in SiS_iSi​.

Significance

Theorem 7.9 is the analytical answer to a question that had been settled only by simulation: Jordan and Graves reported that one chain through all plants achieves nearly twice the sales benefit of three short chains with the same number of edges, and Simchi-Levi and Wei proved that no arrangement of the same edge budget does better. It is the justification for the chaining guideline used in automotive and semiconductor capacity planning, and Lemma 7.8, which expresses the long chain through open chains, is what makes the long chain's performance computable by a greedy pass. Theorem 7.1 is the quantitative basis for consolidation decisions and for postponement, since a generic product is pooled inventory. Theorems 7.2 to 7.4 quantify what transshipments buy in service, which is the argument for allowing them despite their cost.

None of these results has a machine-checked proof. The book proves Lemma 7.7, Lemma 7.8 and Theorem 7.9 in full given Lemma 7.5, which it cites to Simchi-Levi and Wei, and omits the proofs of Theorems 7.3 and 7.4 and the identity (7.30) behind Lemma 7.8. Formalizing Lemma 7.5 and (7.30) means formalizing the structure of maximum flows on a cycle, which is reusable for the later results of Simchi-Levi and Wei on the long chain's performance relative to full flexibility and for the multi-echelon flexibility models the chapter cites.

Difficulty

The obvious approach to Theorem 7.9 is to compare CnC_nCn​ with an arbitrary 2-flexibility design directly. Nothing in the definitions supports that: the two designs share no structure beyond their degree sequences. The book's argument instead routes everything through the long chain's own edges. Lemma 7.5 gives supermodularity only for subsets of CnC_nCn​, and the decomposition of an arbitrary 2-flexibility design into disjoint cycles, each a relabeled long chain on a subsystem, is what allows the comparison. A solver must therefore prove that a 2-regular bipartite graph is a disjoint union of even cycles, that exchangeability makes every relabeling of a cycle worth the same as CnjC_{n_j}Cnj​​ on its subsystem, and that the performance of a disjoint union is the sum of the performances of its parts.

Lemma 7.5 itself is where the combinatorics lives. It says that on the cycle CnC_nCn​ the maximum flow is supermodular in the flexible edges, and the proof in Simchi-Levi and Wei goes through the structure of augmenting paths on a cycle. The natural first idea, that supermodularity follows from some general property of maximum flows, is false: maximum flow is not supermodular in arbitrary edge sets, and the lemma is specific to subsets of a single cycle.

Lemma 7.7 is where exchangeability is used, and it is used in a way that is easy to state and tedious to formalize: removing the edge (2,1)(2, 1)(2,1) from Lk+1nL^n_{k+1}Lk+1n​ leaves a design that is LknL^n_kLkn​ only after the pair 111 is moved to the end, so the argument needs the invariance of [E][E][E] under relabeling the products and plants by a common permutation. The book notes that Lemma 7.7, unlike Lemma 7.5, is false realization by realization.

For the transshipment theorems, the book differentiates a density formula by Leibniz's rule. Under the weaker hypothesis stated here, laws without atoms and with finite means, the derivative of E[Yji]\mathbb{E}[Y_{ji}]E[Yji​] in SiS_iSi​ has to be obtained by dominated convergence from the pointwise derivative of a piecewise-linear function whose kinks lie on null sets.

Formalization scope

perf is a supremum over a set of reals, nonempty because y=0y = 0y=0 is feasible when d≥0d \ge 0d≥0 and C≥0C \ge 0C≥0, and bounded by ∑idi\sum_i d_i∑i​di​; the demand is nonnegative for every outcome and the capacity nonnegative in BalancedSystem, and Lemma 7.5 carries these as hypotheses. The supremum is attained, but the definition does not assert it. Expected performance is a Lebesgue integral; the demand is integrable by assumption and P(d,E)P(d, E)P(d,E) is 111-Lipschitz in ddd, so the integrand is integrable, and a solver must prove this measurability rather than assume it.

Exchangeability is the equality of the laws of (Dσ(i))i(D_{\sigma(i)})_i(Dσ(i)​)i​ and (Di)i(D_i)_i(Di​)i​ for every permutation σ\sigmaσ. Designs are finite sets of pairs of Fin n; the chains are defined with finRotate, so indices wrap modulo nnn and the closing edge of CnC_nCn​ is (1,n)(1, n)(1,n) in the book's numbering, which is the edge its proofs and Figure 7.3(c) use. Lemma 7.8 involves open chains on subsystems of sizes nnn and n−1n - 1n−1; these are designs on Fin k evaluated on the first kkk coordinates of the demand (subDemand, subPerf).

Theorem 7.1 states the optimal costs as infima of the newsvendor cost over all base-stock levels, on Mathlib's gaussianReal; a nonpositive pooled variance gives a degenerate law, for which the inequality still holds, so the statement is not trivialized by that convention. The transshipment theorems take the two demand laws as probability measures on R\mathbb{R}R with no atoms (Theorem 7.2) and finite, positive means; the quantity YjiY_{ji}Yji​ is defined for all outcomes and the service levels are probabilities and expectations under the product law.

The definition module is shared by all eleven items. Beyond the milestones, formalizing the identity (7.30) as its own lemma and the disjoint-union additivity of perf would be natural contributions.

Selected references

  • L. V. Snyder and Z.-J. M. Shen, Fundamentals of Supply Chain Theory, 2nd ed., Wiley, 2019, Chapter 7. https://doi.org/10.1002/9781119584445
  • G. D. Eppen, Effects of centralization on expected costs in a multi-location newsboy problem, Management Science 25(5), 1979. https://doi.org/10.1287/mnsc.25.5.498
  • G. Tagaras, Effects of pooling on the optimization and service levels of two-location inventory systems, IIE Transactions 21(3), 1989. https://doi.org/10.1080/07408178908966208
  • W. C. Jordan and S. C. Graves, Principles on the benefits of manufacturing process flexibility, Management Science 41(4), 1995. https://doi.org/10.1287/mnsc.41.4.577
  • D. Simchi-Levi and Y. Wei, Understanding the performance of the long chain and sparse designs in process flexibility, Operations Research 60(5), 2012. https://doi.org/10.1287/opre.1120.1082
10 thms3 active usersReviewed
PreviousPage 4 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