WorksMathematics
A counterexample to the very sparse greedy conjecture for random hitting sets
Abstract
Let be a random zero-one matrix with independent Bernoulli entries, whose rows are to be hit by a set of columns. Arpino, Dmitriev and Grometto proved that with high probability the linear programming (LP) relaxation, the fractional hitting set, is within a constant factor of the optimum when , and the greedy algorithm is within a constant factor of the optimum when with . They conjectured that in the very sparse regime the ratio of the greedy value to the LP value tends to one. We show that this fails. For , and , with the explicit constant , the greedy algorithm that breaks ties by the leftmost column, as in their analysis, uses at least times the LP value with probability at least for every ; these parameters satisfy their Assumption 2. The same holds with probability at least when ties are broken uniformly at random. So the ratio does not converge to one in probability. The obstruction is a path of three triples whose middle triple greedy takes first; exchanging it for its two ends saves half a column per path. The proofs are elementary counting arguments, checked in Lean from the definitions. This work has not yet been reviewed by experts. The proofs, the Lean formalization and the text were produced by AI models, working under the author's direction.
Introduction
Main results
Let be an matrix with entries in . Its rows are the sets to be hit and its columns the elements; write for the set of rows that column hits. The matrix is feasible if every row is hit by some column. The greedy algorithm keeps a set of uncovered rows, initially all of them. While , it chooses a column maximizing the gain , removes from , and counts the choice. We write for the count when ties are broken by the smallest column index. On a feasible matrix it stops with a set of columns hitting every row. The LP value is
Always on feasible matrices.
Arpino, Dmitriev and Grometto [1] study a random matrix whose entries are independent Bernoulli() variables, with and . Their Assumption 2 [1 p. 30:3] requires for some , and for some , for all large . Their Conjecture 12 [1 Section 6.2, p. 30:13], labeled “Very sparse”, reads: “For , .” Here is the output of their Algorithm 1 [1 p. 30:7], the greedy algorithm above, and is the LP value [1 equation (1.2)]. In the proof of their Theorem 10 [1 p. 30:11] ties are broken by “selecting the left-most column in the associated matrix”. The conjecture first appeared, as Conjecture 1 in Section 7.2, in the preprint [2] of May 9, 2023, and Dmitriev’s thesis restates it as open [6 Conjecture 6.1(1)].
Throughout, , and for an integer we take
Theorem 1. For every integer , with parameters (1),
For the second theorem, let be the number of choices of the greedy algorithm when, at each step and given everything before it, the column is chosen uniformly at random among the columns of maximum positive gain. Columns with equal sets count as different columns.
Theorem 2. For every integer , with parameters (1),
the probability being over the matrix and the choices together.
The proof in Section 4 gives the bound of Theorem 1; we state the weaker bound , which is the one in the Lean statement (Section 5).
Corollary 3. Let and . This sequence satisfies Assumption 2 of [1], , and , . Assign arbitrary real values to the ratios and on infeasible matrices. Then neither ratio converges to 1 in probability as .
Convergence in probability is implied by almost sure convergence and by convergence in mean, so the corollary refutes Conjecture 12 under each of these readings, for the leftmost rule that [1] use and for uniform tie-breaking. The constants are far from optimal; we made no attempt to improve them. We do not know whether the ratio tends to one for some other tie-breaking rule, or for the best of all greedy runs, along this sequence.
Prior work
Lovász [12] and Johnson [9] analyzed the greedy algorithm for covering. Lovász showed that “the ratio of optimal integral and fractional covers of a hypergraph does not exceed ” [12 p. 383], with the maximum degree, as recalled in [1 p. 30:2]. Slavík bounds the greedy value by times the optimum when elements are to be covered [15 Theorem 1] and shows that this is nearly tight [15 Theorem 2]. These are worst-case bounds. For the random model, Corollary 9(ii) of [1] states that if then for any and large, where and means equality up to multiplicative constants; their Theorem 10 states that under Assumption 2 with , for large. Since for large whenever , these results apply to the sequence of Corollary 3: greedy is within a constant factor of the LP value there with high probability. Theorems 1 and 2 show that the constant cannot tend to one.
Telelis and Zissimopoulos [16 Theorem 4, p. 174] show, for the same independent model with fixed , that a simple algorithm approximates random set cover “within a term of from the optimum almost everywhere”. Fernandez de la Vega, Paschos and Saad [8] study a greedy algorithm for hitting random -element subsets of an -element set, with fixed and in fixed proportion; their Theorem 1 [8 p. 131] states that its approximation ratio “ranges between 1.094 and 1.257” for and a range of values of the proportion. See also the later article of Blot, Fernandez de la Vega, Paschos and Saad [4]. Mézard and Tarzia [14 Sections V.C–V.D and Fig. 5] ran highest-degree greedy on random hypergraphs in which every variable lies in hyperedges and every hyperedge has variables, with 12288 variables and 8192 hyperedges, and report greedy covers of density , against for the minimal cover and ; on such regular instances the LP value is times the number of variables.
The isolated bad paths below are paths of three triples, consecutive triples sharing one row, in a sparse random hypergraph. Greedy matching on sparse random graphs, the setting of Karp and Sipser [10] and of Dyer, Frieze and Pittel [7], is related in spirit, but no matching limit theorem is used here.
We could not read four sources in full: the journal version of Slavík’s paper [15], whose abstract and references are those of the conference version cited above; pages 132–138 of [8]; Chebolu’s thesis [5], which [3 Section 1] describes as extending the analysis of the random greedy matching process [7] to sparse random hypergraphs; and a Zenodo deposit, Spectral gaps and algorithmic phase transitions in sparse hypergraphs (DOI 10.5281/zenodo.17834080), removed before it could be read, whose surviving abstract concerns coloring, satisfiability and community detection.
Method
On the event that every column hits at most three rows and every pair of rows is exactly the set of some column, greedy takes a family of disjoint triples and then pairs, so its count is determined by the number of triples it takes (Lemma 4). The obstruction is an isolated bad path: three triples , , on seven rows such that no other column with three rows meets these rows; the definition in Section 2 adds that each triple is the set of exactly one column and that the middle column has the smaller index. Leftmost greedy takes the middle triple, after which the two ends are useless to it; but the two ends cover six of the seven rows, and the row joins the pairs (Lemma 5). The paths are disjoint, so exchanging every such middle at once saves half a column per path, up to one rounding.
Counting expected occurrences (a first-moment count) gives order such paths in expectation (Lemma 6). Their number is at most on every matrix, so this lower bound on the expectation gives a fixed fraction of paths with fixed probability.
For uniform ties, the triples greedy takes have the law of a scan of the triples in a uniformly random order, which is leftmost greedy on a matrix with randomly permuted columns; the distribution of does not change under this permutation (§ 4).
The theorems and the corollary are proved in Lean 4 [11] with Mathlib [13], from definitions of the random matrix, the greedy algorithms and the LP value (§ 5).
Greedy on the good event
Let be the event that for every column and that for every two rows some column has . If , then implies that is feasible. Gains never increase as shrinks.
Lemma 4. Assume and , and break ties by any rule. Greedy first chooses columns of gain 3, whose sets are pairwise disjoint, then columns of gain 2 while at least two rows are uncovered, then at most one column of gain 1. Hence , with the number of choices.
Proof. Gains are at most 3 and do not increase. While two rows remain uncovered, the column with set has gain 2, so a choice of gain 1 happens only when one row remains. A column of gain 3 hits three uncovered rows, so its set is disjoint from those of earlier choices. If there are choices of gain 2 and of gain 1, then , so and .
An isolated bad path consists of seven distinct rows and three columns with sets , , such that each of these three sets is the set of exactly one column, the column of has a smaller index than those of and , and every other column with at least three rows avoids . Columns with at most two rows may meet these rows. Let be the number of columns that are the middle of an isolated bad path.
Lemma 5. Assume every column has at most three rows, and let be the number of gain-3 choices of leftmost greedy.
(a) Every middle column of an isolated bad path is a gain-3 choice of leftmost greedy, and every other gain-3 choice avoids the seven rows of that path.
(b) Isolated bad paths with distinct middles have disjoint row sets, and .
(c) If moreover holds and , then and .
Proof. (a) Let . Until greedy first chooses a column meeting , the middle column has gain 3, so greedy does not stop before such a step. At that step the chosen column has gain 3, the maximum possible, so it has three rows, meets , and by isolation is one of the three path columns. All three have gain 3 and the middle has the smallest index, so greedy chooses the middle. Afterwards the ends have gain at most 2, and every other column with three rows avoids .
(b) Let be a second middle, with ends . By (a), avoids . If met , isolation would make one of the columns of the first path, so ; but meets , which avoids . So and likewise avoid . Now replace each of the middles among the gain-3 choices by its two ends. The ends of one path are disjoint, different paths are disjoint, and the remaining gain-3 choices avoid every path by (a), so the resulting triples are pairwise disjoint and .
(c) Cover the rows outside these triples in pairs by columns with exactly those two rows, and a possible last row by any column hitting it. The middle-only rows are among them. This gives a cover with columns, and its indicator vector is feasible for the LP. With Lemma 4, .
Since one column per row gives , part (c) yields: if holds, , , and , then
Counting paths
Lemma 6. With parameters (1) and , .
Proof. Call an ordered 7-tuple of distinct rows occurring if , , are the sets of an isolated bad path. Each middle column is represented by exactly 8 occurring tuples: its ends are determined by isolation, and the representations are given by the choice of which end is and the orders of the two private rows of each end. Hence on every matrix. By Lemma 9 in the appendix, each of the tuples occurs with probability at least . By linearity, .
Lemma 7. On every matrix, . With parameters (1), , and for , .
Proof. Replace every column with at least four rows by an empty column in the same position. Every isolated bad path survives, since its three columns have three rows and an empty column meets nothing; so does not decrease, and Lemma 5(b) for the new matrix gives , in particular , which is all we use. The two probability bounds are union bounds, computed in Appendix A.
Proof of Theorem 1. Since by Lemma 7, we have pointwise. Taking expectations and using Lemma 6, , so . By Lemma 7, fails with probability at most for . So and hold together with probability at least . On this event is feasible, and (2) with , valid because , gives .
Uniform tie-breaking
For a permutation of the columns, let be the matrix with columns . The law of , the event , feasibility and are unchanged when is replaced by .
Lemma 8. Let be a family of 3-element sets indexed by a finite set of labels; different labels may carry the same set. Consider two processes: (X) repeatedly choose, uniformly at random, a label whose set is disjoint from the sets of all labels chosen so far, until none is left; (Y) list in a uniformly random order and accept each label whose set is disjoint from the sets of the labels already accepted. The sets of chosen and of accepted labels have the same law.
Proof. Induct on . In (Y), the first accepted label is the first in the order, uniform on , as in (X). Given that it is , the remaining order is uniform on , labels whose sets meet (other labels carrying included) are never accepted, and the order it induces on the set of labels whose sets are disjoint from is uniform. So both processes continue as the same processes on .
Proof of Theorem 2. Assume and . While some column has gain 3, the columns of maximum gain are the columns with three rows disjoint from all earlier choices, so the gain-3 phase of uniform greedy is process (X) with the columns with three rows as labels. Leftmost greedy on is process (Y) with the order given by , which is uniform when is. By Lemmas 4 and 8, for every predicate on integers, the conditional probability given that holds is the average of over all permutations . Take to be “”. Averaging over , using that the law of , and are invariant and substituting for ,
where the inequality is the proof of Theorem 1. Since implies feasibility, the theorem follows, with .
Proof of Corollary 3. For , and , so Assumption 2 holds with , , ; and . On the event of Theorem 1 the matrix is feasible, and , whatever values are assigned on infeasible matrices. Along this event has probability at least , so does not tend to 0. The same argument with Theorem 2 applies to .
Formal verification
All of the above is proved in Lean 4 [11] (version 4.19.0) with Mathlib [13], and the build checks that the main theorems use only the axioms propext, Classical.choice and Quot.sound. A matrix is a function giving the set of rows of each column. The probability of an event is the finite sum, over all matrices, of the product over columns of or . Greedy is a recursive function scanning columns by index; is the real infimum of the objective over the LP’s feasible set, the actual LP value rather than a bound. Uniform ties are a recursive kernel that averages over the columns of maximum positive gain at each step. Theorem 1 is
theorem GreedyLPHittingSet.leftmost_explicit : ∀ k ≥ Uniform.threshold,
(Uniform.c : R) / 4 ≤ matrixProb k (k^10) (parameterP k)
(fun A => feasible A ∧ (1 + (Uniform.epsilon : R)) * L A ≤ (G A : R))
where the build also checks that Uniform.threshold is , Uniform.c is , Uniform.epsilon is and parameterP k is . The other statements are:
Theorem 2:
ADG.Uniform.uniform_probability_endpoint, the same statement with the joint probability of matrix and uniform choices and the bound .Corollary 3, leftmost ties:
ADG.full_frozen_endpoint; uniform ties:ADG.Uniform.full_uniform_endpoint. Each states Assumption 2 of [1] as printed, the identities and , , and, for every assignment of values on infeasible matrices, the failure of convergence in probability to one.
Nothing beyond these definitions and the Lean kernel is assumed; the comparison of the definitions with [1] is the one made in § 1. Appendix B lists the modules.
To reproduce, run lake exe cache get and lake build in the Lean folder accompanying this paper; with the Mathlib cache this takes a few minutes.
Probability estimates
Write for the probability that a column has set ; these masses sum to 1. Under (1), .
Lemma 9. For and a fixed tuple of seven distinct rows, .
Proof. Let be the mass of each of the three path sets, and the total mass of the sets with and ; this includes the three path sets. The three path columns occupy three distinct positions with the middle first, choices, and these events are disjoint because each path set occurs exactly once. So
A set counted in contains one of the seven rows and two others, so and . Bernoulli’s inequality gives and , and since . Hence the probability is at least .
Large columns. A column with at least four rows contains one of the four-sets, each with probability , so .
Missing pairs. A column has set exactly with probability . Its absence from all columns has probability . The binomial term is at most , so , using . Over at most pairs, the probability is at most .
Threshold. For we have , since , and , since .
The Lean modules
Endpoint and SourceEndpoint contain the definitions and statements; LP the basic facts on , among them that is at most the size of any cover; PathDefinitions the definition of isolated bad paths and of ; Probability, PathProbability and QuantitativeProbability the finite probability calculations; Greedy Lemma 4; GreedyPaths, DeterministicExchange and DeterministicGap Lemma 5 and (2); PathCounting and ExpectationConstruction Lemma 6; BadMiddleBound and ExpectationTail Lemma 7 and the tail bound; FullConstruction, SourceTransport and SourceConsequence Theorem 1 and Corollary 3. For uniform ties, UniformEndpoint defines the kernel and statements; UniformKernel shows that the kernel gives probability laws; ConflictCoupling and PermutationScan prove Lemma 8 for an arbitrary directed conflict relation; UniformPhase, OrderedPhase and UniformCount identify the gain-3 phases; UniformInvariance, UniformTransport and UniformGoodLaw give the permutation invariance; UniformConstruction proves Theorem 2. Statement restates the theorems with their definitions unfolded, Examples checks small matrices (a single path, where greedy and the exchange both use three columns, and two paths, where greedy uses six and the exchange five), and Axioms fails the build if a main theorem uses another axiom.
References
- [1]G. Arpino, D. Dmitriev and N. Grometto, Greedy heuristics and linear relaxations for the random hitting set problem, in: Approximation, Randomization, and Combinatorial Optimization (APPROX/RANDOM 2024), LIPIcs 317, Paper 30, 2024. doi:10.4230/LIPIcs.APPROX/RANDOM.2024.30.DOI
- [2]G. Arpino, D. Dmitriev and N. Grometto, Greedy heuristics and linear relaxations for the random hitting set problem, arXiv:2305.05565v1, 2023.arxiv.org/abs/2305.05565
- [3]D. Bal and P. Bennett, The matching process and independent process in random regular graphs and hypergraphs, Electron. J. Combin. 30(1) (2023), P1.11. doi:10.37236/10698.DOI
- [4]J. Blot, W. Fernandez de la Vega, V. Th. Paschos and R. Saad, Average case analysis of greedy algorithms for optimisation problems on set systems, Theoret. Comput. Sci. 147 (1995), 267–298. doi:10.1016/0304-3975(95)00242-O.DOI
- [5]P. Chebolu, Topics in random graphs, PhD thesis, Carnegie Mellon University, 2008.
- [6]D. Dmitriev, High-dimensional optimization problems in average-case and worst-case settings, PhD thesis, ETH Zürich, 2025. doi:10.3929/ethz-b-000743377.DOI
- [7]M. Dyer, A. Frieze and B. Pittel, The average performance of the greedy matching algorithm, Ann. Appl. Probab. 3 (1993), 526–552. doi:10.1214/aoap/1177005436.DOI
- [8]W. Fernandez de la Vega, V. Th. Paschos and R. Saad, Average case analysis of a greedy algorithm for the minimum hitting set problem, in: LATIN ’92, Lecture Notes in Comput. Sci. 583, Springer, 1992, 130–138. doi:10.1007/BFb0023824.
- [9]D. S. Johnson, Approximation algorithms for combinatorial problems, J. Comput. System Sci. 9 (1974), 256–278. doi:10.1016/S0022-0000(74)80044-9.DOI
- [10]R. M. Karp and M. Sipser, Maximum matching in sparse random graphs, in: 22nd Annual Symposium on Foundations of Computer Science (1981), 364–375. doi:10.1109/SFCS.1981.21.DOI
- [11]L. de Moura and S. Ullrich, The Lean 4 theorem prover and programming language, in: Automated Deduction – CADE 28, Lecture Notes in Comput. Sci. 12699, Springer, 2021, 625–635. doi:10.1007/978-3-030-79876-5_37.DOI
- [12]L. Lovász, On the ratio of optimal integral and fractional covers, Discrete Math. 13 (1975), 383–390. doi:10.1016/0012-365X(75)90058-8.DOI
- [13]The mathlib Community, The Lean mathematical library, in: Proceedings of the 9th ACM SIGPLAN International Conference on Certified Programs and Proofs (CPP 2020), 367–381. doi:10.1145/3372885.3373824.DOI
- [14]M. Mézard and M. Tarzia, Statistical mechanics of the hitting set problem, Phys. Rev. E 76 (2007), 041124. doi:10.1103/PhysRevE.76.041124; arXiv:0707.0189v2.DOI
- [15]P. Slavík, A tight analysis of the greedy algorithm for set cover, in: Proceedings of the 28th Annual ACM Symposium on Theory of Computing (STOC 1996), 435–441. doi:10.1145/237814.237991. Journal version: J. Algorithms 25 (1997), 237–254, doi:10.1006/jagm.1997.0887.DOI
- [16]O. A. Tellelis and V. Zissimopoulos, Absolute o(log m) error in approximating random set covering: an average case analysis, Inform. Process. Lett. 94 (2005), 171–177. doi:10.1016/j.ipl.2005.02.009.