\documentclass{amsart} \usepackage[T1]{fontenc} \usepackage{lmodern,amsmath,amssymb,booktabs,tikz} \usepackage{needspace} \usepackage{upquote} \usepackage{xurl} \usepackage[hidelinks]{hyperref} \setlength{\emergencystretch}{1em} \newtheorem{theorem}{Theorem} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{proposition}[theorem]{Proposition} \newtheorem{corollary}[theorem]{Corollary} \theoremstyle{definition} \newtheorem{definition}[theorem]{Definition} \theoremstyle{remark} \newtheorem{remark}[theorem]{Remark} % The figure data use one binary word per row, starting at the top left. \newcount\gridcolumn \newcommand{\drawmarkrow}[1]{% \ifx#1\relax \let\nextgridbit\relax \else \ifnum#1=1 \fill (\the\gridcolumn,\gridrow) circle[radius=.26];\fi \advance\gridcolumn by 1 \let\nextgridbit\drawmarkrow \fi \nextgridbit } \newcommand{\drawmarkgrid}[2]{% \draw[gray!60] (-.5,-.5) rectangle (#1-.5,#1-.5); \foreach \rowbits [count=\gridrow from 0] in {#2}{% \gridcolumn=0 \expandafter\drawmarkrow\rowbits\relax }% } \title[Full-degree spanning trees on square grids] {The Full-Degree Spanning Tree Problem on Square Grids} \author{Michael Paciullo} \subjclass[2020]{Primary 05C05; Secondary 05C10, 05C35} \keywords{grid graph, full-degree vertex, spanning tree, computer-assisted proof} \hypersetup{pdfauthor={Michael Paciullo}, pdftitle={The Full-Degree Spanning Tree Problem on Square Grids}} \begin{document} \begin{abstract} We determine the maximum number of full-degree vertices in a spanning tree of the \(n\times n\) square grid for every positive \(n\), and give constructions attaining the maximum. The formula separates into three cases according to \(n\bmod 3\), with the optimum one below the rounded certificate bound when \(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. \end{abstract} \maketitle \section{Introduction} Let \(G_n\) be the graph on \(\{0,\ldots,n-1\}^2\) in which two vertices are adjacent if their coordinates differ by \(1\) in exactly one coordinate and agree in the other. A vertex \(v\) has \emph{full degree} in a spanning tree \(T\) of \(G_n\) if \(\deg_T(v)=\deg_{G_n}(v)\). In particular, a corner or boundary vertex can have full degree. Write \(P(n)\) for the largest number of such vertices. Bhatia, Khuller, Pless, and Sussmann studied the full-degree spanning tree problem on general graphs~\cite{bhatia2000}; it remains NP-hard on bipartite planar graphs~\cite{broersma2000}. Acquaviva's thesis, advised by Deepak Bal, gives exact formulas for grids with two or three rows and proves that the optimum on an \(m\times n\) grid is asymptotic to \(mn/3\) as both dimensions tend to infinity~\cite[Chapter~3]{acquaviva2023}. Acquaviva and Bal also studied random regular graphs~\cite{acquavivaBal2024}. \begin{theorem}\label{thm:square} For positive \(n=3k+s\), with \(s\in\{0,1,2\}\), the value of \(P(n)\) is given by \[ \begin{array}{@{}cll@{}} \toprule s & \text{Range} & P(n)\\ \midrule 0 & k\ge 1 & 3k^2+3k-2\\ 1 & k\ge 5 & 3k^2+5k+\left\lfloor(3k-13)/10\right\rfloor\\ 2 & k\ge 6 & 3k^2+7k-\left\lfloor(k-5)/7\right\rfloor -\mathbf{1}_{n\equiv35\pmod{42}}\\ \bottomrule \end{array} \] Here \(\mathbf{1}_{n\equiv35\pmod{42}}\) equals \(1\) on the indicated progression and \(0\) elsewhere. The remaining values are \[ \begin{array}{@{}c|rrrrrrrrrrr@{}} n & 1 & 2 & 4 & 5 & 7 & 8 & 10 & 11 & 13 & 14 & 17\\ P(n) & 1 & 2 & 8 & 11 & 22 & 27 & 42 & 49 & 68 & 77 & 110 . \end{array} \] \end{theorem} \needspace{6\baselineskip} Lucena and da Cunha tested exact optimization algorithms on rectangular grids~\cite[Section~4.1 and Supplementary Table~5]{lucena2024}. They certified \(P(10)=42\) and reported \(149\le P(20)\le155\), without certifying the latter optimum. Theorem~\ref{thm:square} gives \(P(20)=150\) and determines the exact value at every square size. For instance, at \(n=35\) the rounded upper bound for \(s=2\) gives \(440\), but the optimum is \(439\). The exceptional correction comes from the structure required for equality in the upper bound. Sections~\ref{sec:residue-zero}--\ref{sec:residue-two} prove the three parts of the theorem. Appendix~\ref{sec:reproducibility} locates the formal proof and the implementation of the constructions. \section{Forced forests and certificates}\label{sec:method} For \(F\subseteq V(G_n)\) let \[ E(F)=\{uv\in E(G_n):u\in F\ \text{or}\ v\in F\}. \] We call the vertices of \(F\) \emph{marked} and say that \(F\) is \emph{feasible} if \((V(G_n),E(F))\) is a forest. The following criterion is the square-grid specialization of the forest formulation of Bhatia et al.~\cite[Section~4.1 of the technical report]{bhatia2000}, also stated by da Cunha et al.~\cite[Proposition~1]{daCunha2015}. \begin{lemma}\label{lem:forced} A set \(F\) is feasible if and only if some spanning tree of \(G_n\) has full degree at every vertex of \(F\). In particular \(P(n)=\max\{|F|:F\text{ is feasible}\}\), and every subset of a feasible set is feasible. \end{lemma} \begin{proof} A tree having full degree at every vertex of \(F\) contains \(E(F)\). Conversely, if \(E(F)\) is acyclic, repeatedly join two of its components by a grid edge until there is one component. Such an edge exists at every step by connectivity of \(G_n\); adding it creates no cycle. The resulting tree contains \(E(F)\). The maximum identity follows in both directions, and deleting marks only removes forced edges. \end{proof} The last assertion allows an upper-bound proof to exclude a single cardinality: to show \(P(n)\le b\), it suffices to exclude a feasible set of size \(b+1\). A lower bound needs only a feasible set of the desired size. The completion step in the proof of Lemma~\ref{lem:forced} then gives an actual spanning tree. \begin{figure}[ht] \centering \begin{tikzpicture}[x=8mm,y=-8mm] \foreach \i in {0,1,2} \draw[gray!55,thin] (\i,0)--(\i,2) (0,\i)--(2,\i); \draw[very thick] (1,0)--(2,0)--(2,2)--(0,2)--(0,1) (1,2)--(1,1); \draw[dashed,thick] (0,0)--(1,0); \foreach \x in {0,1,2} \foreach \y in {0,1,2} \fill[black!60] (\x,\y) circle (1.2pt); \foreach \x/\y in {2/0,0/2,1/2,2/2} \fill (\x,\y) circle (2.7pt); \end{tikzpicture} \caption{Four marked vertices in \(G_3\). Thick solid edges are forced. The dashed edge joins the two components to give an optimal spanning tree.} \label{fig:forced} \end{figure} Here are two simple restrictions used to motivate the more detailed certificates. First, a unit square must have a side with both endpoints unmarked: otherwise all four of its sides are forced and form a cycle. In particular, opposite corners cannot both be marked. This pair is an edge in the conflict graph of Lucena and da Cunha~\cite[Section~2]{lucena2024}. Second, define the boundary weight \(b(F)=\sum_{v\in F}(4-\deg_{G_n}(v))\). For \(n\ge2\) this counts each marked noncorner boundary vertex once and each marked corner twice. For a nonempty feasible set \(F\), the induced graph \(G_n[F]\) is a subgraph of the forced forest. If it has \(r\) components, then \[ |E(F)|=4|F|-b(F)-|E(G_n[F])|=3|F|-b(F)+r. \] Since \(|E(F)|\le n^2-1\) and \(r\ge1\), we get \(3|F|\le n^2-2+b(F)\). This bound alone does not resolve the boundary contribution with the accuracy needed in Theorem~\ref{thm:square}. \subsection{How the finite certificates give uniform bounds} Da Cunha et al.~\cite{daCunha2015} and Lucena and da Cunha~\cite{lucena2024} use valid inequalities in exact algorithms for individual instances. Here we use counts of local configurations to obtain bounds that hold uniformly over infinite families of square sizes. For example, in each \(3\times3\) window look at its upper-left unit square. The number of windows where that square has a given four-bit pattern equals the sum of the counts of all nine-bit window patterns with that upper-left restriction. Both counts run over the same window origins. A square near the boundary may not be the upper-left square of any window, so one cannot substitute a count over all squares. The proof keeps separate position types to account for such boundary differences. \begin{lemma}[Certificate inequality]\label{lem:certificate} Suppose a class of feasible sets on side \(n\) gives nonnegative count vectors \(x\) with score \(c^\mathsf{T}x\). Let \(Ax\le b(n)\) and \(Hx=d(n)\) hold for all these vectors. If rational vectors \(y,z\) satisfy \[ y\ge0,\qquad A^\mathsf{T}y+H^\mathsf{T}z\ge c, \] then every set in the class has score at most \(y^\mathsf{T}b(n)+z^\mathsf{T}d(n)\). \end{lemma} \begin{proof} Multiply the coefficient inequality by \(x\), then use \(Ax\le b(n)\) with \(y\ge0\) and use \(Hx=d(n)\) with \(z\) unrestricted. \end{proof} A finite certificate can therefore be used at arbitrarily large \(n\) once two obligations are met: the types and incidences in the coefficient check cover the larger board, and the normalization counts and other right-hand sides have been evaluated at the larger size. The latter counts may be polynomial even though the optimum of the relaxation is unknown. The bounds below use fixed certificates with computed normalization counts; rounding is applied to the resulting bound on an integer score. \input{residue-zero-one} \input{residue-two} \section{Boundary contribution} The bulk term \(n^2/3\) is common to all three residue classes, but the linear term is not. In fact Theorem~\ref{thm:square} gives \[ \lim_{\substack{n\to\infty\\ n\equiv s\pmod 3}} \frac{P(n)-n^2/3}{n} = \begin{cases} 1 & s=0,\\ 11/10 & s=1,\\ 20/21 & s=2 . \end{cases} \] The one-vertex exception in the third class is invisible to this limit. Its proof required analyzing which physical forests could come within \(1/14\) of the rational upper bound, beyond what the upper bound itself can decide. \section*{Acknowledgments and AI disclosure} I thank Dong Kim for introducing me to the problem. Large language models substantially assisted the research, including development of the repository's code and formal proof. This manuscript was drafted with language models from the project's sources and proof notes. The verification appendix describes the checks on which the theorem relies. This paper is licensed under the \href{https://creativecommons.org/licenses/by/4.0/}{Creative Commons Attribution 4.0 International License (CC BY 4.0)}. \appendix \raggedbottom \input{reproducibility} \begin{thebibliography}{9} \bibitem{bhatia2000} R.~Bhatia, S.~Khuller, R.~Pless, and Y.~J.~Sussmann, \emph{The full-degree spanning tree problem}, Networks \textbf{36} (2000), no.~4, 203--209. \newblock \href{https://drum.lib.umd.edu/handle/1903/497}{Open technical report}. \bibitem{broersma2000} H.~Broersma, O.~Koppius, H.~Tuinstra, A.~Huck, T.~Kloks, D.~Kratsch, and H.~M\"uller, \emph{Degree-preserving trees}, Networks \textbf{35} (2000), no.~1, 26--39. \newblock \href{https://research.utwente.nl/en/publications/degree-preserving-trees/} {Publication record}. \bibitem{acquaviva2023} S.~Acquaviva, \emph{The Full Degree Spanning Tree Problem}, M.S. thesis, Montclair State University, 2023. \newblock \url{https://digitalcommons.montclair.edu/etd/1292}. \bibitem{acquavivaBal2024} S.~Acquaviva and D.~Bal, \emph{Full degree spanning trees in random regular graphs}, Discrete Appl.\ Math.\ \textbf{353} (2024), 85--93. \newblock \href{https://doi.org/10.1016/j.dam.2024.04.010}{DOI}. \bibitem{lucena2024} A.~Lucena and A.~S. da Cunha, \emph{Stable set reformulations for the degree preserving spanning tree problem}, European J.\ Oper.\ Res.\ \textbf{319} (2024), no.~1, 50--61. \newblock \href{https://doi.org/10.1016/j.ejor.2024.06.031}{DOI}; \href{https://ars.els-cdn.com/content/image/1-s2.0-S0377221724005113-mmc1.pdf} {Supplement}. \bibitem{daCunha2015} A.~S. da Cunha, L.~Simonetti, A.~Lucena, and B.~Gendron, \emph{Formulations and exact solution approaches for the degree preserving spanning tree problem}, Networks \textbf{65} (2015), no.~4, 329--343. \newblock \href{https://doi.org/10.1002/net.21590}{DOI}. \end{thebibliography} \end{document}