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

Result: Proves in Lean 4 that every tree (n ≥ 3, odd or even) with at most four degree-two vertices is antimagic, and every odd-order tree (n ≥ 1) with at most four degree-two vertices is edge-graceful. The previous pure-count bounds were ≤ 1 degree-two vertex for antimagic trees of all orders (Kaplan–Lev–Roditty), ≤ 2 for odd-order edge-graceful trees (Meng 2026), and exactly 3 for odd order (Zeng 2026). 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. 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.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-12-03
DOI
https://doi.org/10.5281/zenodo.24765089
Primary Topic
Graph Labeling and Dimension Problems
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

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

Ali Uyar
Zenodo (CERN European Organization for Nuclear Research)
Graph Labeling and Dimension Problems
preprint

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

Ali Uyar
preprint en

Abstract

Result: Proves in Lean 4 that every tree (n ≥ 3, odd or even) with at most four degree-two vertices is antimagic, and every odd-order tree (n ≥ 1) with at most four degree-two vertices is edge-graceful. The previous pure-count bounds were ≤ 1 degree-two vertex for antimagic trees of all orders (Kaplan–Lev–Roditty), ≤ 2 for odd-order edge-graceful trees (Meng 2026), and exactly 3 for odd order (Zeng 2026). 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. 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.

Zenodo (CERN European Organization for Nuclear Research)
Graph Labeling and Dimension Problems
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon