WorksMathematics
Greedy Uniformity on Trees: Exact Obstruction and Near-Uniform Spiders
Abstract
Choose a uniformly random ordering of the vertices of a finite tree and run the usual greedy maximal-independent-set algorithm. We compare the resulting law on maximal independent sets with the uniform law. We prove that exact uniformity occurs only for the one-vertex tree and the single edge. The proof is structural: a diameter endpoint exposes a pendant star, and the remaining one-pendant-leaf case is resolved by a strict injection between exact permutation fibres obtained by swapping the pendant leaf with its support vertex. Exact uniformity is therefore rigid, but it can be approached closely. For an explicit mixed-spider family we count the maximal independent sets and compute the exact probability of every output. With the total-variation bias is positive and satisfies [ b(T_{k,2^k-k})=O!\left(\frac{\sqrt{k}}{4^k}\right) =O!\left(\frac{\sqrt{\log n_k}}{n_k^2}\right), \qquad n_k=2^k+k+1. ] The theorem package has also been formalised in Lean and registered with Palomar. These records document machine-checked formal verification and the checked axiom boundary; they are not peer review or a certificate of novelty.
Introduction
A random ordering followed by a greedy scan is one of the simplest ways to construct a maximal independent set. Given a finite graph, scan the vertices in uniformly random order and accept a vertex exactly when none of its previously accepted neighbours has been accepted. The output is always a maximal independent set, but different maximal independent sets can have very different numbers of generating orders. The question studied here is when, for a tree, these permutation fibres happen to have equal size.
Write for the maximal independent sets of a finite nonempty tree , let be the law of the greedy output, and let be uniform on . Our first result gives a complete obstruction to exact equality.
Theorem 1.1 (Exact obstruction). For every finite nonempty tree ,
Equivalently, if
then if and only if or .
The obstruction is qualitative, so it is natural to ask whether nontrivial connected trees can nevertheless have very small bias. They can. Let be the tree with a centre , length-two arms , and further leaves adjacent directly to .
Theorem 1.2 (Mixed spiders). Let and , and put . The tree has maximal independent sets. Its unique centre-containing maximal independent set has greedy probability
and each particular non-centre maximal independent set containing exactly of the inner vertices has probability
with multiplicity .
For , under the tuning , set , let , and put . Then
Consequently, with ,
Thus exact flatness of the greedy terminal law is confined to the two trivial trees, while an explicit connected sequence approaches the flat law with the upper bound along its vertex counts. We do not prove an all- upper bound, a matching lower bound, an extremal characterization, or optimality of the mixed-spider family.
The stochastic process itself is classical, as are random-priority and random-sequential-adsorption viewpoints. A targeted literature audit described in § 3 found no checked source containing either theorem 1.1 or the formulas and tuning in theorem 1.2; because such searches cannot certify worldwide priority, we use the deliberately bounded assessment that the contribution-level results are plausibly new with bounded uncertainty.
Model and permutation fibres {#sec:2}
Let be a finite simple graph and let be an ordering of . Starting from the empty set, scan and accept if it has no accepted neighbour. Denote the output by . Every rejected vertex has an accepted neighbour at the moment it is scanned, so the final set is independent and dominates every vertex outside it; hence it is maximal independent.
For define its permutation fibre
Since all orders are equally likely,
Therefore is uniform on exactly when is constant over . We shall use a finite order certificate. Write when appears before in .
Lemma 2.1 (Order certificate). Let . Then if and only if every has a neighbour with .
We need check theorem fence incorrectly opened and closed? We used ::: theorem then content, closed after lemma? I see started theorem then no closing before heading! Need close after theorem ending. Also lemma syntax should kind lemma, #thm:2.1. Correct. theorem 1.2 contains displayed eqs and paragraphs, close before heading. final. Also xref section 3 printed lowercase "section 3", role noun exact likely § 3. Fine. Equation no labels. Ensure \operatorname{Bin} allowed. Use \mathcal F. Fix.
Proof. If the output is , every was rejected by a previously accepted neighbour, which necessarily belongs to .
Conversely, assume the stated condition and suppose that some vertex outside is accepted. Choose the earliest accepted such vertex . By hypothesis there is with . If had been rejected, it would have had an earlier accepted neighbour. Since is independent, that neighbour would lie outside , contradicting the choice of . Thus was accepted before , forcing to be rejected, a contradiction. Hence no outside vertex is accepted, and every vertex of is accepted because is independent.
For background and computation it is also useful to condition on the first scanned vertex. If and , then
with the empty-graph probability interpreted as . The recurrence is elementary: the first vertex must lie in , and after accepting only the relative order on remains relevant. We use (1) only as background and as a computational check, not in the shortest proof of theorem 1.1.
Related work and novelty boundary
Random-order greedy maximal independent sets have been studied in several forms. Krivelevich, Mészáros, Michaeli and Shikhelman study the same uniformly random vertex-order process and its equivalent continuous arrival-time formulation, with emphasis on output size, density and local limits [6]. Gazmuri’s random greedy deletion algorithm is another equivalent finite implementation; Dall’Asta, Pin and Ramezanpour discuss it in a statistical-mechanics treatment of maximal independent sets and explicitly distinguish a dynamical measure from a flat blocked-state ensemble [2, 5]. Blocking random sequential adsorption and parking models supply further background on greedy occupation processes on graphs and trees [3, 9, 10, 12].
For fixed deterministic graphs, the closest exact-uniformity source located in the final audit is Kryven, Versendaal and de Vries [7]. Their iterative maximal independent set process chooses uniformly from currently available vertices and is therefore equivalent in law, on a fixed finite graph, to restricting a uniformly random permutation as vertices are removed. Their Proposition 3.8 gives a sufficient structural condition—regular independent sets—under which the terminal maximal independent set is uniform. The checked version does not state the converse. Their stronger 2-uniformity condition and its classification therefore do not classify all graphs with exactly uniform greedy output. On connected trees their sufficient regular-independent-set hypothesis already forces ordinary vertex regularity, leaving only the trivial tree cases, but that one-way implication does not prove the necessity direction of theorem 1.1.
Other nearby results concern different observables. Contat obtains an exact distributional identity for the size of the greedy independent set on a uniform Cayley tree [1]. The RSA literature largely studies occupation probabilities and limiting densities rather than the complete terminal-set law. Gadouleau and Kutner study the same deterministic greedy MIS map from an ordering; in particular, their example displays unequal permutation fibres, but their main questions concern reachability and fixing orders rather than random-output equiprobability [4]. The maximal-independent-set counting inequality used below sits in standard counting territory; compare Sagan and Vatter’s -bound [11].
These sources make several boundaries important. We make no novelty claim for the greedy process, its random-priority representation, random sequential adsorption, the dynamic-versus-flat comparison, first-choice recurrences, elementary fibre counting, maximal-independent-set counting bounds, or diameter-end geometry. The contribution-level claims are the exact tree obstruction in theorem 1.1 and the exact mixed-spider formulas and tuned near-uniform sequence in theorem 1.2. The literature search was broad but not exhaustive, so throughout we retain the assessment plausibly new with bounded uncertainty rather than a priority claim.
The exact obstruction on trees
We first record a simple counting fact. Let , with .
Lemma 4.1. For every finite graph and vertex ,
Proof. Split according to whether is present. Maximal independent sets excluding are maximal in , so there are at most of them. Those containing , after deleting , are in bijection with .
It remains to show . For each , choose a maximal independent extension in . This map is injective: maximality of in forces
Thus and the claim follows.
The tree geometry is equally elementary.
Lemma 4.2 (Diameter-end structure). Let have diameter at least 3 and let be a diameter path. Put and . Every neighbour of other than is a leaf. Hence has leaf neighbours and exactly one nonleaf neighbour .
Proof. The endpoint is a leaf. If a neighbour of were nonleaf, the component beyond would contain a leaf with . The path from through would then have length at least , contradicting maximality of the diameter.
Let be the set of leaf neighbours of , with . Delete and let be the remaining component containing ; put . The maximal independent sets containing are precisely
so there are . The maximal independent sets excluding must contain every leaf in and are precisely
so there are .
Lemma 4.3 (Two or more pendant leaves). If , then the greedy law on is not uniform on .
Proof. If is greedily selected, it must precede every leaf in , since any earlier leaf is accepted immediately and blocks . Hence
When the nonleaf neighbour is present, the inequality is strict: among the orders in which is earliest in are orders beginning , but is then accepted first and blocks .
Under the uniform law on maximal independent sets,
Applying theorem 4.1 to gives and hence . Therefore, if exists and ,
If there is no nonleaf neighbour, is a star with centre . Its only maximal independent sets are and , so the uniform marginal of is , while the greedy marginal is .
The remaining case is a support vertex with exactly one pendant leaf. This is where we compare exact permutation fibres.
Lemma 4.4 (One pendant leaf). Assume the diameter is at least 3 and . Let be the unique leaf neighbour of , so locally and . Then the greedy law on is not uniform on .
Proof. Let
Fix any and set . Define
Both are maximal independent sets. Indeed, is maximal because is maximal in and dominates and . If dominates , then is maximal in , so is maximal in ; if does not dominate , then is independent and maximal in , so is maximal in .
Let be the transposition of the vertex labels and , applied entrywise to an order. It is a bijection on all vertex orders. We compare fibres using theorem 2.1.
Suppose first that dominates , so . For every , the swapped order lies in . To see this, note first that in the outside vertex can only be certified by its target neighbour among , so ; after swapping, , certifying the outside leaf for target . The outside vertex is certified in by some neighbour in because is not adjacent to ; that same witness remains earlier after the swap. Every other outside vertex lies in and is certified by a vertex of , all of which are fixed by . Thus
The inclusion is strict. Consider an order beginning , then listing all vertices of , then the remaining vertices. By theorem 2.1 it lies in . Its swapped order begins ; both and are then accepted, so it cannot have output , which excludes . Since is an involution,
Now suppose that does not dominate , so . The reverse inclusion holds:
Indeed, for an order in the fibre of , the outside leaf is certified only by , so after swapping the target vertex precedes and certifies the outside vertex . Every vertex in is certified by a fixed vertex of , while is now itself in the target. Again the inclusion is strict. An order beginning , then listing , the vertices of , and the remaining vertices belongs to ; after swapping it begins , so is accepted although . Hence
In either case two maximal independent sets have different fibre cardinalities, so their greedy probabilities differ.
Proof of theorem 1.1. For there is a single maximal independent set. For the first of the two vertices is accepted and blocks the other, so the two singleton maximal independent sets each have probability .
Now let . If has diameter 2, then it is a star with at least two leaves and theorem 4.3 applies. If the diameter is at least 3, use theorem 4.2. When the support vertex has at least two leaf neighbours, theorem 4.3 gives nonuniformity; when it has exactly one leaf neighbour, theorem 4.4 gives two maximal independent sets with unequal permutation-fibre sizes. Thus no tree on at least three vertices has uniform greedy terminal law.
Mixed spiders and exact output probabilities
Fix and . The mixed spider has centre , length-two arms for , and direct leaves adjacent to .
A maximal independent set containing is forced to contain every outer endpoint , and contains no or direct leaf. Thus there is exactly one centre-containing maximal independent set. If is absent, every direct leaf must be present and each arm contributes exactly one of . Hence there are non-centre maximal independent sets and
Put . Temporarily ignore . On each arm the earlier of and is selected, and the relative orders on the disjoint pairs are equiprobable. Thus any prescribed arm pattern has probability .
Fix a non-centre pattern containing exactly inner vertices . Conditional on the required pair orientations, reinserting destroys that pattern precisely when is selected. This happens exactly when precedes every direct leaf and, on each of the inner-selected arms, precedes the corresponding . Under the conditioning , this is equivalent to being first among the vertices consisting of , all direct leaves, and both endpoints of those arms. Therefore
It follows that each particular type- non-centre maximal independent set has probability
There are such patterns. Summing the complementary centre-selected contributions over all arm patterns gives
This proves the counting and exact-probability parts of theorem 1.2.
The tuned bias and its asymptotics
Now assume . Set , choose
and put . Since , the elementary inequality shows that . Let and . The uniform mass on each maximal independent set is . For a type- non-centre output, (2) becomes
and direct subtraction gives
Meanwhile, (3) is exactly
Since ,
The second identity follows by adding the zero term . Its right-hand side is positive because and is nonzero with positive probability.
Using the multiplicities to convert the non-centre sum to expectation under , (4) and (6) yield the exact identity
This is the exact expectation identity in the frozen theorem package.
For the upper bound, , so , while
Consequently
Finally, the vertex count is
For , , while . Substituting these comparisons into (8) gives
completing theorem 1.2.
Computational checks
Computation played a supporting role in theorem discovery and verification, but not in the all-tree proof. Exact rational arithmetic was used in two independent ways on small trees: direct enumeration of every vertex permutation, and the first-vertex recurrence (1). These methods agree on every nonisomorphic tree through seven vertices. A broader exact census generated all 436 nonisomorphic trees on one through eleven vertices (matching OEIS A000055 [8]); among them, exactly and have zero bias.
For the tuned mixed-spider family, some exact values are shown in Table 1. These are checks of the closed formulas, not inputs to their proof.
| 2 | 2 | 7 | |
| 3 | 5 | 12 | |
| 4 | 12 | 21 | |
| 6 | 58 | 71 | |
| 10 | 1014 | 1035 |
Table 1. Selected exact biases for .
A targeted check of the structural proof was also run on all 434 nonisomorphic trees of orders three through eleven. In the one-pendant-leaf branch, 1103 paired maximal-independent-set comparisons had the strict fibre-probability direction predicted by theorem 4.4. These finite checks are corroborative only; § 4 is the proof for arbitrary finite trees.
Lean formalisation and Palomar registration
The frozen A+B theorem package has been formalised in Lean. The Stage-5 verification baseline used Lean 4.34.1 and Mathlib commit
d13f23b723b8a846827a245b89c10fc7d3f11612.
The final Theorem A declarations are
GreedyUniformity.tree_greedyLawEqUniform_iff_isK1OrK2
GreedyUniformity.tree_bias_eq_zero_iff_isK1OrK2.
The mixed-spider package contains the maximal-independent-set count, the centre and non-centre probability formulas, the tuned exact bias identity and positivity theorem, and the two asymptotic Big-O statements stated above.
For Palomar packaging, Stage 6 migrated the project to Lean 4.35.0-rc3 and Mathlib commit
c55e6e786f49471c72fbddbec5415808896aec1e.
This was a compatibility migration and did not strengthen or alter the frozen theorem statements. The package was registered as
PALOMAR-2026-10-01-000003, version 1,
with trust level high. The immutable registered source commit is
1733c29a5165148d71a2f0bd1ed2dcd7c35309ce.
The public registry entry is
https://palomar-registry.org/entry.html?id=PALOMAR-2026-10-01-000003&version=1.
The project source is available at
https://github.com/jfairfaxball-348/Greedy-Uniformity-on-Trees.
All nine intended final theorem declarations—two for Theorem A and seven mixed-spider checkpoints—are included in the registered comparator surface. The permitted axiom reports for these declarations are exactly
[propext, Classical.choice, Quot.sound],
and there are no project-specific mathematical axioms in the final theorem package.
These records should be interpreted narrowly. Lean checks the formal derivations against the specified foundations and dependencies, and Palomar records/verifies the packaged formal statements under its tooling. Neither constitutes peer review, a literature-priority determination, or a certificate that no stronger theorem is known.
Limitations and open directions
The results leave a natural extremal problem. Define
Theorem 1.1 says only that for every , while Theorem 1.2 supplies a small-bias subsequence at the orders . We do not determine , identify its minimisers, give a matching lower bound, or extend the mixed-spider estimate to every . The small-order census in § 7 is not evidence for a general minimizer theorem.
It would also be interesting to classify exact uniformity beyond trees. Kryven–Versendaal–de Vries give a strong sufficient condition [7], but the general converse problem for the complete random-greedy terminal law is different. The permutation-fibre viewpoint used in theorem 4.4 suggests that local involutions and strict fibre embeddings may be useful in other sparse graph classes.
Acknowledgements
The author thanks the developers and maintainers of Lean 4 and Mathlib, and the developers of Palomar’s comparator and verification tooling. AI assistance via ChatGPT was used materially in research planning, literature-audit support, proof development, Lean formalisation, repository maintenance, and manuscript preparation; the author retains responsibility for the mathematical claims, citations, and final text.
References
- [1]Alice Contat. Surprising identities for the greedy independent set on Cayley trees. Journal of Applied Probability, 59(4):1042–1058, 2022. doi: 10.1017/jpr.2022.3. arXiv:2103.03800.DOI
- [2]Luca Dall’Asta, Paolo Pin, and Abolfazl Ramezanpour. Statistical mechanics of maximal independent sets. Physical Review E, 80, 2009. arXiv:0907.3309.DOI
- [3]H. G. Dehling, S. R. Fleurke, and C. Külske. Parking on a random tree. Journal of Statistical Physics, 133:151–157, 2008. arXiv:0711.4061.DOI
- [4]Maximilien Gadouleau and David C. Kutner. Generalising the maximum independent set algorithm via Boolean networks. Information and Computation, 303:105266, 2025. doi: 10.1016/j.ic.2025.105266.DOI
- [5]P. G. Gazmuri. Independent sets in random sparse graphs. Networks, 14:367–377, 1984.DOI
- [6]Michael Krivelevich, Tamás Mészáros, Peleg Michaeli, and Clara Shikhelman. Greedy maximal independent sets via local limits. Random Structures & Algorithms, 64(4):986–1015, 2024. doi: 10.1002/rsa.21200. arXiv:1907.07216.DOI
- [7]Ivan Kryven, Rik Versendaal, and Mike de Vries. Unified framework for asymptotically uniform iterative construction of generalised random graphs with local constraints. arXiv:2608.07239v1, 2026. Version 1, submitted August 7, 2026.arxiv.org/abs/2608.07239
- [8]OEIS Foundation Inc. A000055: Number of trees with n unlabeled nodes. The On-Line Encyclopedia of Integer Sequences, 2026. URL https://oeis.org/A000055. Database entry, accessed 2026.
- [9]M. D. Penrose and A. Sudbury. Exact and approximate results for deposition and annihilation processes on graphs. Annals of Applied Probability, 15:853–889, 2005.DOI
- [10]Nicholas Pippenger. Random sequential adsorption on graphs. SIAM Journal on Discrete Mathematics, 2(3):393–401, 1989. doi: 10.1137/0402034.DOI
- [11]Bruce E. Sagan and Vincent R. Vatter. Maximal and maximum independent sets in graphs with at most r cycles. Journal of Graph Theory, 53(4):283–314, 2006. doi: 10.1002/jgt.20186. arXiv:math/0505048.DOI
- [12]Aidan W. Sudbury. Random sequential adsorption on random trees. Journal of Statistical Physics, 136:51–58, 2009.DOI