Mathematics / Original Research / Graph Theory

Every Tree with at Most Four Degree-Two Vertices Is Antimagic, and Edge-Graceful in Odd Order: A Machine-Checked Proof in Lean 4

Proves the case deg₂(T) ≤ 4 of the Hartsfield–Ringel antimagic conjecture for trees (all orders n ≥ 3) and of Lee's edge-graceful tree conjecture (odd orders), with Lean 4 proofs checked by a local build. Both conjectures remain open in general.

Author
Ali Uyar
DOI
10.5281/zenodo.24765090
Scope
Machine-checked in Lean 4
Status
Standalone result
Original theorem
Lee (1989): every tree of odd order is edge-graceful. Hartsfield–Ringel (1990): every connected graph other than K₂ is antimagic. Proved here only for trees with at most four degree-two vertices.
Source
github.com/aliuyar1234/verified-combinatorics/tree/main/04-antimagic-trees

Machine-checked in Lean 4 ✓

Abstract

Hartsfield and Ringel (1990) conjectured that every connected graph other than K₂ is antimagic, and Lee (1989) conjectured that every tree of odd order is edge-graceful. For trees, Kaplan, Lev, and Roditty (2009) proved antimagicness when there is at most one vertex of degree two; Liang, Wong, and Zhu (2014) repaired a gap in that argument and extended it, e.g. to trees whose degree-two vertices induce a path. In 2026 Meng proved that odd-order trees with at most two degree-two vertices are edge-graceful, and Zeng posted a proof for odd-order trees with exactly three.

We prove both conjectures for all trees with at most four degree-two vertices: every odd-order tree (n ≥ 1) with deg₂(T) ≤ 4 is edge-graceful, and every tree (n ≥ 3, odd or even) with deg₂(T) ≤ 4 is antimagic. The proof builds on the zero-sum block partitions of Kaplan–Lev–Roditty and Meng's Langford-sequence packings. It combines expanding parametric Langford templates (maximum zero-sum triple packings for all odd q ≥ 57 and initial cores 2 ≤ e ≤ 9), a classification of the 126 normalized four-site branching-root profiles, kernel-checked modular cores for all 10,893 normalized configurations of odd order 11 ≤ n ≤ 55, and a branch-attached leaf reduction with fixed-maximum reflection for even orders, alongside two structural obstructions to simpler strategies. The Lean 4.34.0 development (no Mathlib; 128 files) proves both statements against fixed target propositions.

Context

Degree-two vertices are the obstruction to bottom-up zero-sum tree labelings. For a pure bound on their number, with no condition on where they sit, the all-order antimagic threshold had stood at deg₂ ≤ 1 (other results cover special placements, e.g. degree-two vertices inducing a path). This work raises the count to four for both the odd-order edge-graceful and the all-order antimagic statements.

Credits

Conjectures: N. Hartsfield and G. Ringel (1990); S.-M. Lee (1989). At most one degree-two vertex: G. Kaplan, A. Lev and Y. Roditty (2009), gap fixed and extended by Y.-C. Liang, T.-L. Wong and X. Zhu (2014). At most two (odd order): L. Meng (arXiv:2608.23881); exactly three (odd order): Z. Zeng (SSRN, doi:10.2139/ssrn.7387319); the Lean proofs of these cases are formalizations. The method builds on Kaplan–Lev–Roditty's zero-sum partitions and Meng's Langford packings. PackingCertificates.lean is generated from the packing witnesses in the ancillary files of Meng's preprint, and UniformPacking.lean compiles Meng's branch plans; no other third-party Lean code was adapted. The Lean development, certificate generators and searches were produced with AI coding agents operated by the author; the agent and model were not recorded.

Cite

@misc{uyar2026_antimagic_edge_graceful_trees,
  author    = {Uyar, Ali},
  title     = {Every Tree with at Most Four Degree-Two Vertices Is Antimagic, and Edge-Graceful in Odd Order: A Machine-Checked Proof in Lean 4},
  year      = {2026},
  publisher = {Zenodo},
  doi       = {10.5281/zenodo.24765090},
  url       = {https://doi.org/10.5281/zenodo.24765090},
  note      = {Machine-checked in Lean 4. Code: https://github.com/aliuyar1234/verified-combinatorics/tree/main/04-antimagic-trees}
}