Mathematics / Original Research / Graph Theory
The Tree Packing Conjecture Through Order Fourteen in Lean 4, with Order-Fifteen Coverage and All-Orders Paired Spider Families
Lean proofs of the conjecture for n = 13 and n = 14 (no earlier public verification found), with a kernel-checked re-proof of n ≤ 11 (Guichard–Massman, computer, 1990) and n = 12 (Kwaczyński's unrefereed 2026 computation); order-15 coverage of 6,379,260 shape pairs; paired-spider families of unbounded order; Lean formalizations of the classical paths-and-stars (Gyárfás–Lehel) and double-star (Hobbs) cases.
- Author
- Ali Uyar
- Scope
- Machine-checked in Lean 4
- Status
- Standalone result
Machine-checked in Lean 4 ✓
Abstract
The tree packing conjecture of Gyárfás (1976; Erdős Problem #743) asserts that any sequence of trees T₁, …, T_n with |V(T_k)| = k packs edge-disjointly into K_n. Guichard and Massman checked n ≤ 11 by computer (1990). In September 2026 Kwaczyński published an exhaustive computation for n = 12, which has not been refereed and was independently cross-checked only up to n = 9.
We prove in Lean 4.34.0, using only the standard library: (1) The conjecture for every 0 ≤ n ≤ 14 (tpc_order_le_14). The proof uses kernel-checked catalogue completeness and a shared table of 15,522 host states and 127,856 single-tree placements. (2) At n = 15, packing whenever the shapes of (T₁₅, T₁₃) form one of 6,379,260 certified pairs out of 10,071,041 (63.34%; the count comes from the generated table), with the other trees arbitrary. Also packing whenever T₁₅ and T₁₃ both have at most three leaves or both have diameter at most four. 3,691,781 pairs remain uncovered. (3) All-orders results: thirty families of paired spiders on orders (8+2s, 6+2s), each with one growing arm; arbitrary trees in the first fourteen slots followed by paths and diameter-≤3 trees; and re-proofs of the classical paths-and-stars and double-star cases. (4) Lean-checked examples where strict single-host Fishburn recursion fails at k = 7 and k = 8, plus C++ experiments that are not machine-checked.
Context
Exact small-order verification of the conjecture had stopped at n = 11 in the refereed literature and at n = 12 in public computation. This work reaches n = 14 with a proof that the Lean kernel checks, from definitions that state the conjecture at order n directly. The method lets the placement of each tree depend on the shape of the next same-parity tree. With that lookahead over a shared host table, the proof goes beyond where Fishburn's single-residual approach breaks down. The paired-spider construction shows that removing two trees at a time avoids a single-tree obstruction for some three-leaf trees of unbounded size.
Credits
Conjecture: A. Gyárfás (1976). Prior results re-proved or used: Gyárfás–Lehel (paths and stars), Hobbs (stars and double stars), Fishburn (n ≤ 9 and half-complete hosts H_k), Guichard–Massman (n ≤ 11, computer). Kwaczyński (n = 12, public computation, github.com/pawelkwaczynski/erdos743). The Lean proofs, search tools and first manuscript draft were produced with AI coding agents operated by the author: t3-code delegating to Codex, model gpt-6.2-astra, according to local agent logs. No Lean code was adapted from other projects.
Cite
@misc{uyar2026_gyarfas_lehel_tree_packing,
author = {Uyar, Ali},
title = {The Tree Packing Conjecture Through Order Fourteen in Lean 4, with Order-Fifteen Coverage and All-Orders Paired Spider Families},
year = {2026},
publisher = {Zenodo},
doi = {10.5281/zenodo.24765084},
url = {https://doi.org/10.5281/zenodo.24765084},
note = {Machine-checked in Lean 4. Code: https://github.com/aliuyar1234/verified-combinatorics/tree/main/42-gyarfas-lehel-tree-packing}
}