The Full-Degree Spanning Tree Problem on Square Grids

Primarily AI-generated textHuman understanding: some partsmath.CO — Combinatorics

Contributed by Michael Paciullo ↗

Version 1 / Nov 29, 2026 / CC BY 4.0

Abstract

We determine the maximum number of full-degree vertices in a spanning tree of the n×nn\times n square grid for every positive nn, and give constructions attaining the maximum. The formula separates into three cases according to n mod 3n\bmod 3, with a one-vertex correction to the general upper bound when n≡35(mod42)n\equiv35\pmod{42}. The proof combines explicit forests, rational upper-bound certificates, and a separate exclusion of equality on the exceptional progression. The graph-theoretic result is formalized in Lean~4, with finite certificate checks evaluated natively.

Provenance statement

This paper was written by LLMs, specifically GPT 6.2 Sol Fast using Opencode, and the Lean code was written and devised by Claude Opus 4.7, GPT 5.5, GPT 5.6 Sol, GPT 6 Astra, and GPT 6.2 Astra using Opencode. Early exploratory work was written by hand in Julia and Python in 2022. In late 2025, LLM-written Rust was used as an optimized version of the earlier Julia and Python code for further exploratory work. This was the start of a largely autonomous workflow where I could check new spanning trees by hand for the lower bounds while using Lean for formalizing upper bounds. The lower bounds are self-evident by construction, it's a graph theory problem that asks "how many full-degree vertices are in a spanning tree", those terms are all defined and can be checked by eye, so if the graph can be constructed, then the lower bound is achieved. The upper bounds were devised by LLMs using Opencode as a harness and proven in Lean.

Tools used

OpenAI
ChatGPTVersion 5.5
OpenAI
ChatGPTVersion 5.6 Sol
OpenAI
ChatGPTVersion 6 Astra
OpenAI
ChatGPTVersion 6.2 Astra
Anthropic
Claude OpusVersion 4.7
Lean
Lean
Julia
Julia
Python Software Foundation
PythonVersion 3.14
Rust Foundation
Rust
Anomaly Innovations Inc.
Opencode

References

  1. R. Bhatia, S. Khuller, R. Pless, and Y. J. Sussmann, The full-degree spanning tree problem , Networks 36 (2000), no. 4, 203--209. Open technical report (https://drum.lib.umd.edu/handle/1903/497).link
  2. H. Broersma, O. Koppius, H. Tuinstra, A. Huck, T. Kloks, D. Kratsch, and H. Müller, Degree-preserving trees , Networks 35 (2000), no. 1, 26--39. Publication record (https://research.utwente.nl/en/publications/degree-preserving-trees/).link
  3. S. Acquaviva, The Full Degree Spanning Tree Problem , M.S. thesis, Montclair State University, 2023. https://digitalcommons.montclair.edu/etd/1292.link
  4. S. Acquaviva and D. Bal, Full degree spanning trees in random regular graphs , Discrete Appl.\ Math.\ 353 (2024), 85--93. DOI (https://doi.org/10.1016/j.dam.2024.04.010).DOI
  5. A. Lucena and A. S. da Cunha, Stable set reformulations for the degree preserving spanning tree problem , European J.\ Oper.\ Res.\ 319 (2024), no. 1, 50--61. DOI (https://doi.org/10.1016/j.ejor.2024.06.031); Supplement (https://ars.els-cdn.com/content/image/1-s2.0-S0377221724005113-mmc1.pdf).DOI
  6. A. S. da Cunha, L. Simonetti, A. Lucena, and B. Gendron, Formulations and exact solution approaches for the degree preserving spanning tree problem , Networks 65 (2015), no. 4, 329--343. DOI (https://doi.org/10.1002/net.21590).DOI

Version history

  1. v1 · 18 pagesSubmitted by Michael PaciulloInitial depositCurrentNov 29, 2026