Graphs with the Most Spanning Trees for a Given Number of Edges: Structural Results with a Lean 4 Formalisation
Graphs with the Most Spanning Trees for a Given Number of Edges: Structural Results with a Lean 4 Formalisation (full paper, version 2.0.1 of this record; versions 1.x are the preliminary note). Let T(m) be the largest number of spanning trees of a loopless multigraph with m edges, the number of vertices being free; R. Kenyon asked in 1996 which graphs attain it. The paper gives partial structural answers, with written proofs and a Lean 4 formalisation (Mathlib; standard axioms only, no sorry; every module rebuilt from scratch by a separate session): every graph attaining T(m) has maximum degree at most 5, and a vertex of degree at least 6 forces fewer than ((3+√33)/9)·T(m) spanning trees; three parallel edges, or two adjacent vertices of degree 2, force 8τ ≤ 7T(m), with a sharp constant; for m ≥ 6 every double edge of a maximiser joins two vertices of degree 4; T(m) is attained by a simple graph if and only if m ∉ {2, 4}; and an exact formula holds along edge-relocation sequences in Ka,b. For a vertex v of degree 5 in a connected graph, with no bridge at v and no redirection of an edge at v increasing the number of spanning trees (both hold in every maximiser), a vertex split followed by an edge redirection increases it whenever 9n < 4m + 5, and in any case 3n ≤ 2m. A simple maximiser with the least ∑deg2 among simple maximisers can have a vertex of degree 5 only if 4m + 5 < 9n < 5m + 5 (formalised with 9n ≤ 5m + 5), and it then has minimum degree at least 3. Computations (not formalised): C. Marín's published data for m ≤ 22 (doi:10.5281/zenodo.24561280) show that every maximiser with 5 ≤ m ≤ 22 has maximum degree at most 4 and that for 8 ≤ m ≤ 22 every maximiser is simple; our independent computation confirms the values of T(m) and these facts. Graphs with a degree-5 vertex that no single move improves exist for 17 ≤ m ≤ 25, but all known ones improve within two moves. Whether every m has a maximiser of maximum degree at most 4 remains open; it is the general-graph counterpart of a question of A. Stoimenow (2007) for planar graphs. Attribution and status. The standard rules “no bridge, no cut vertex” and “multiplicity at most 2” are proved in C. Marín's note (Lemmas 6 and 10) for use in his search; the computed values and extremal graphs for m ≤ 22 are his, certified there for m ≤ 18 without nauty, so for those values the two computations share no code. The work was done with substantial AI assistance (GPT, OpenAI; Claude, Anthropic) under the author's direction; an independent AI review of the paper was carried out, but no human expert has refereed it. No priority claim is made. Corrections are welcome. Changes in version 2.0.1 (at the suggestion of C. Marín, who checked every citation of his work): wording of the attribution of the three basic rules, a description of his AI-assisted reproduction of the earlier Lean package, and a remark on the independence of his certificates. The mathematics is unchanged. Version 2.0.0: doi:10.5281/zenodo.24564049. Files: the paper (PDF) and an archive with its LaTeX source and the Lean 4 package (sources, check scripts, replay reports). Preliminary note: version 1.1.1, doi:10.5281/zenodo.24563483.
Authors
- Filip Majchrzak (ORCID: https://orcid.org/0009-0007-3475-8900)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-26
- DOI
- https://doi.org/10.5281/zenodo.24561843
- Citations
- 1
- Primary Topic
- Graph theory and applications
- Type
- preprint