\documentclass[11pt]{article} \usepackage[a4paper,margin=28mm]{geometry} \usepackage{amsmath,amssymb,amsthm} \usepackage[hidelinks]{hyperref} \newtheorem{theorem}{Theorem} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{corollary}[theorem]{Corollary} \title{Polynomial thresholds for graceful leaf extensions of arbitrary trees} \author{Akram Younso}\date{Working preprint, 25 November 2026} \newcommand{\proofmodule}[2]{\href{https://github.com/Aky-lab/graceful-leaf-threshold-preprint/blob/v1.2/lean/Next/#1.lean}{#2}} \begin{document} \maketitle \begin{abstract} Let $H$ be any tree on $n$ vertices, and attach new leaves at its vertices in any prescribed numbers. The resulting tree is graceful whenever its final edge count is at least $3{,}955{,}201 n^7$. No graceful labeling of $H$ is assumed, and no positive lower bound is required at an individual attachment site. The proof uses the parities of the same prescribed leaf counts to control two competing constructions. For a tree with $h$ internal vertices the resulting sufficient edge bound is $3{,}955{,}201h^7$. The construction lemmas and the uniform estimate are formalized in Lean. \end{abstract} \section{The threshold theorem} A tree with $N$ edges is \emph{graceful} if it admits a bijection from its vertices to $\{0,\ldots,N\}$ whose edge differences are exactly $1,\ldots,N$. For a finite tree $H$ and a vector $\mathbf a\in\mathbb Z_{\ge0}^{V(H)}$, let $H(\mathbf a)$ be obtained by adding $a_v$ new leaves at each $v\in V(H)$. These are the only new vertices; the construction must realize the entire prescribed target. \begin{theorem}\label{poly} Let $H$ be a tree on $n\ge1$ vertices. Every prescribed leaf extension $H(\mathbf a)$ with final edge count \[ N=n-1+\sum_{v\in V(H)}a_v\ \ge\ 3{,}955{,}201n^7 \] is graceful. \end{theorem} The hypothesis uses the number of vertices before attachment and the number of edges after attachment. It allows all new leaves at a single vertex. In particular, a counterexample with $N$ edges must have more than $(N/3{,}955{,}201)^{1/7}$ internal vertices (Corollary~\ref{internalorder}). The general Graceful Tree Conjecture remains open. Superdock proved eventual gracefulness with all new leaves at a single prescribed vertex \cite[Corollary 5.10]{S}. Iterating such a result lets later thresholds depend on earlier leaf counts; it does not give the uniform bound above. Lapierre and McGuinness \cite[Theorem 1.2 and Corollary 1.3]{LM} give constructions from bipartite gracefully labeled cores with conditions on the attachment demands. Here no graceful source labeling or bipartition-demand hypothesis is imposed. We use the classical pair-transfer identity, together with a modular construction controlling several attachment ranks and a two-interval allocation for all secondary sites. \subsection{Proof strategy and notation} Call an injective nonnegative rooted labeling \emph{consistent} if its root is labeled zero and its positive vertex labels, as a multiset, are exactly its edge differences. We call labels \emph{ranks}. Scaling preserves consistency. If a consistent tree has ranks in $[0,N]$, an unused positive rank may be used for a new root leaf: its label and its edge difference coincide. Thus the task is to meet all nonroot demands before filling the complement at zero. Two elementary operations preserve this equality of multisets. At a parent of rank $p$, new children of ranks $x,p-x$, with $04W$ and $B\le N-P0),\qquad R=200S^3 . \] Here is how the two estimates arise. At each vertex follow a child of largest subtree size. Moving into any other child's subtree at least halves the size, so a root path takes at most $h\le\log_2 S$ such steps. Work first with rational ranks, using reflected sibling pairs and triples along the selected paths. Free integer choices avoid earlier ranks and their relevant doubles and halves. The \proofmodule{SparseChoiceScale}{choice scale} is $D=512S(9+3\lceil\log_2 S\rceil)$. The construction maintains the range $[D/100,2DS^3]$ for positive ranks. Their ratio is at most $200S^3$. In the \proofmodule{SparseHeavySeed}{denominator estimate}, at most two bits per level are needed, so multiplication by $2^{2(h+1)}\le4S^2$ gives integer ranks. Multiplying the upper end of the range by $4S^2$ gives exactly $A(S)$ as an upper bound. For a prepared core of order at least two, dilate the seed by $K=\lfloor N/M\rfloor$. Since $N\ge M+R(2(S-1)+2L+1)$, we have $KM>N-M$ and hence $Kp\ge2(S-1)+2L+1$ for each positive rank. At a site of scaled rank $Kp$, distinct candidate pairs are disjoint. Each occupied positive rank invalidates at most one candidate there. If the site still needs $2b$ leaves, at most $S-1+L-2b$ ranks have been occupied by the seed and earlier secondary allocations. There are at least $S-1+L$ candidates, so one can select $b$ intact pairs. Each pair exchanges its labels as differences; assigning all remaining slots to the root completes the labeling. A singleton prepared core gives a star directly. \section{The uniform estimate} \begin{proof}[Proof of Theorem~\ref{poly}] By Lemma~\ref{routes} it suffices to show $A(S)+P(S,L)\le3{,}955{,}201n^7$. The correlation between $S$ and $T$ matters: an additional odd site enlarges the prepared core but also reduces the two-site reserve. For $n\ge6$ write $B=2n-1$ and $C=3636n-2564$. Then $S\le B$. Put \[ U=\max(1,q-1)^2(1236n+1200q-1200o-2564). \] We have $L\le(q-1)U$ by the formula for $T$ when $q\ge2$, and $2(S-1)+1\le U$ since $o(N/3{,}955{,}201)^{1/7}. \] For each fixed $h$, all nongraceful trees with at most $h$ internal vertices can therefore be listed by a finite computation. \end{corollary} \begin{proof} Trees of order at most two are graceful. In any larger tree the internal vertices induce a nonempty subtree, and all other vertices are leaves adjacent to it. Apply Theorem~\ref{poly} to that core. For bounded $h$ only finitely many trees remain below the displayed edge bound. \end{proof} \end{samepage} \section*{Checking the formal proof} Clone the \href{https://github.com/Aky-lab/graceful-leaf-threshold-preprint/tree/v1.2}{tagged public source} and enter its \texttt{lean/} directory. With Elan installed, run \texttt{lake exe cache get} followed by \texttt{lake build}. The manifest pins Mathlib and the toolchain file selects Lean 4.30.0. The default target compiles the \proofmodule{TreeEncodingPolynomialParityPacket}{graph-level theorems} for the prescribed extension and for the internal-vertex bound. It checks their axiom dependencies against propositional extensionality, classical choice, and quotient soundness. \section*{AI contributions} ChatGPT research agents developed the labeling constructions and quantitative bounds. Dot produced the Lean formalizations. Codex helped write and revise the manuscript, checked the correspondence between the stated results and the formal theorems, and ran the clean build and computational checks. The \href{https://github.com/Aky-lab/graceful-leaf-threshold-preprint/releases/tag/v1.2}{v1.2 release} contains the proof sources, build transcript, and declaration audit. \small\begin{thebibliography}{9} \bibitem{LM} L. Lapierre and S. McGuinness, Constructing trees with graceful labelings using caterpillars, \emph{J. Combin. Math. Combin. Comput.} \textbf{94} (2015), 313--321. \bibitem{S} M. Superdock, The Graceful Tree Conjecture: a class of graceful diameter-6 trees, \href{https://arxiv.org/abs/1403.1564}{arXiv:1403.1564} (2014). \end{thebibliography} \end{document}