\documentclass[11pt]{article} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{amsmath,amssymb,amsthm,mathtools,booktabs} \usepackage[margin=1in]{geometry} \usepackage[colorlinks=true,urlcolor=blue,citecolor=blue]{hyperref} \hypersetup{pdftitle={Hankel determinants and the length of finite Pierce expansions},pdfauthor={Jason Davies}} \newtheorem{theorem}{Theorem}[section] \newtheorem{lemma}[theorem]{Lemma} \newtheorem{proposition}[theorem]{Proposition} \newtheorem{corollary}[theorem]{Corollary} \theoremstyle{definition} \newtheorem{definition}[theorem]{Definition} \theoremstyle{remark} \newtheorem{remark}[theorem]{Remark} % Lean identifiers, breakable after dots and underscores. \newcommand{\lean}[1]{\nolinkurl{#1}} \makeatletter\g@addto@macro\UrlBreaks{\do\_}\makeatother \emergencystretch=2em \title{Hankel determinants and the length of finite Pierce expansions} \author{Jason Davies\thanks{\href{mailto:jason@jasondavies.com}{\nolinkurl{jason@jasondavies.com}}}} \date{October 27, 2026} \begin{document} \maketitle \begin{abstract} For integers $a>b>0$, let $P(a,b)$ be the number of steps the iteration $x\mapsto a\bmod x$ takes to reach $0$ from $b$; it is the length of the Pierce expansion of $b/a$. We prove \[ P(a,b)\ll_\varepsilon a^{\beta_*+\varepsilon},\qquad \beta_*=\frac{41301-3\sqrt{82849}}{137480}=0.2941336553\ldots, \] improving the exponent $1/3-2/177$ of Chase and Pandey. The tail of an orbit carries a sequence of positive integers, the Hankel determinants of a natural moment sequence, and these are small where the drops of the orbit are small. Grouping orbit states by such integers places the quotient differences of each group on curves of bounded degree, whose integer points we count with the uniform bounds of Castryck, Cluckers, Dittmann and Nguyen. The resulting exponent approaches $5/17$ when these curves have large degree relative to the logarithmic size of the box. We raise the degree by adjoining further integer invariants, by an effective Hilbert irreducibility sieve, and by an exact identity for the direction of the curvature vector, and come within $1.61\cdot10^{-5}$ of $5/17$. We also give an elementary proof of the exponent $3/10+\varepsilon$ and a bound for orbits whose quotient increments rarely rise. All results are formalised in Lean~4 with Mathlib. Shallit's conjectured $O((\log a)^2)$ bound remains open. \end{abstract} \noindent\textbf{AI transparency statement.} This paper was produced entirely by artificial intelligence, including the discovery of the main results, their formalisation in Lean, and the writing of the manuscript. The human author initiated the research and directed the AI systems, but did not write the text. Details are given at the end of the paper. \section{Introduction}\label{sec:intro} Let $a>b>0$ be integers; we call $a$ the \emph{dividend}. Put $b_0=b$ and $b_{i+1}=a\bmod b_i$ while $b_i>0$. The sequence decreases until it reaches $0$; if $b_n=0$ we write $P(a,b)=n$. For example, $P(35,22)=7$, from $22,13,9,8,3,2,1,0$. This is the length of the Pierce expansion of $b/a$~\cite{Pierce,Shallit86}, since \[ \frac ba=\frac1{q_0}-\frac1{q_0q_1}+\frac1{q_0q_1q_2}-\cdots, \qquad q_i=\lfloor a/b_i\rfloor. \] Shallit~\cite{OPG} asked whether \begin{equation}\label{eq:conj} P(a,b)=O\bigl((\log a)^2\bigr). \end{equation} Shallit~\cite{Shallit86} proved $P(a,b)\ll a^{1/2}$ by ``Archimedean'' arguments. Erd\H{o}s and Shallit~\cite{ES} combined these with a divisor argument to obtain $P(a,b)\ll_\varepsilon a^{1/3+\varepsilon}$, and showed that $\max_bP(a,b)/\log a$ does not tend to $0$. Chase and Pandey~\cite{CP} improved the upper exponent to $1/3-2/177$, using exponential sum estimates, and proved $\max_bP(a,b)\gg\log a/\log\log a$ for all large $a$. Baraskar and Vukusic~\cite{BV} study the related sets of iterated remainders at fixed iteration depth. Shallit's talk pages~\cite{ShallitTalks} report a bound $n^{3/10}$, described as ``LLM, unpublished so far''. We have not seen that argument; our elementary bound below has the same exponent up to $\varepsilon$, and we make no claim about how the arguments are related. Our main result is the following uniform bound. \begin{theorem}\label{thm:polar} For every $\varepsilon>0$ there is $C_\varepsilon>0$, independent of $a,b$, such that \[ P(a,b)\le C_\varepsilon a^{\beta_*+\varepsilon}\qquad(00$, $P(a,b)\ll_\varepsilon a^{\alpha_*+\varepsilon}$ uniformly for $00$, $P(a,b)\ll_\varepsilon a^{\gamma_*+\varepsilon}$ uniformly for $00$, $P(a,b)\ll_\varepsilon a^{3/10+\varepsilon}$ uniformly for $0b>0$ are integers, $b_0=b$, $b_{i+1}=a\bmod b_i$, and $P=P(a,b)$, so that $a>b_0>b_1>\dots>b_{P-1}>0=b_P$. Write $q_i=\lfloor a/b_i\rfloor$, so \[ a=q_ib_i+b_{i+1},\qquad 0\le b_{i+1}0$; such factors include the divisor losses below. We write $F\asymp G$ when both $F\ll G$ and $G\ll F$ hold. Absolute constants play no role in the exponents, and we do not track them: implied constants are absolute unless their dependence is indicated, and a letter $c$ or $C$ with a descriptive subscript denotes a suitable absolute constant introduced where it is needed. Explicit values of all constants are recorded in the Lean development; a few of them are sharper than the ones derived here. \begin{lemma}[Quotients increase]\label{lem:quot} If $b_{i+1}>0$ then $q_{i+1}\ge q_i+1$. \end{lemma} \begin{proof} Since $b_{i+1}x_1>\dots>x_{T-1}$. \begin{lemma}[Quotients in a window]\label{lem:fourAq} If $00$ (and $w\ge0$). Write \[ q=\left\lfloor \frac ax\right\rfloor,\quad u=\left\lfloor \frac ay\right\rfloor-q,\quad v=\left\lfloor \frac az\right\rfloor-\left\lfloor \frac ay\right\rfloor,\qquad d=x-y,\quad e=y-z,\quad f=z-w . \] In the notation of the introduction, $q=q_i$, $u=k_i$, $v=k_{i+1}$ and $d,e,f=d_i,d_{i+1},d_{i+2}$; the short letters keep the identities below readable. By Lemma~\ref{lem:quot}, $u,v\ge1$, and clearly $d,e,f\ge1$. The division equations read \begin{equation}\label{eq:div} xq+y=a,\qquad y(q+u)+z=a,\qquad z(q+u+v)+w=a . \end{equation} \begin{definition} The \emph{curvature} of the block is $D=dv-eu$. \end{definition} \begin{lemma}[Curvature identity]\label{lem:curv} \[ D\,z=df+ude+(u-1)e^2 . \] In particular $D\ge1$. \end{lemma} \begin{proof} Subtracting the first two equations of~\eqref{eq:div} gives $uy=qd+e$, hence $uz=uy-ue=qd+(1-u)e$. Subtracting the last two gives $vz=(q+u)e+f$. Therefore \[ (dv-eu)z=d\bigl((q+u)e+f\bigr)-e\bigl(qd+(1-u)e\bigr)=df+ude+(u-1)e^2 . \] The right-hand side is at least $df\ge1$, and $z>0$, so $D>0$. \end{proof} \begin{lemma}[Size of the parameters]\label{lem:size} We have \[ u\,yx\le a(d+e),\qquad v\,zy\le a(e+f),\qquad D\,z\le (u+1)(d+e+f)^2 . \] \end{lemma} \begin{proof} From $uy=qd+e$ we get $uyx=(qx)d+ex\le ad+ae$, since $qx\le a$ and $xx_1>\dots>x_5\ge0$ of the sequence $(b_i)$ with $x_4>0$. Write $q=\lfloor a/x_0\rfloor$ and let $k_0,\dots,k_3$ be the next four quotient increments, so that \[ \lfloor a/x_j\rfloor=q+k_0+\dots+k_{j-1}\qquad(0\le j\le4). \] By Lemma~\ref{lem:quot}, $k_0,\dots,k_3\ge1$. Let $f_j=x_j-x_{j+1}\ge1$ be the drops, and let \[ D=f_0k_1-f_1k_0,\qquad E=f_1k_2-f_2k_1,\qquad F=f_2k_3-f_3k_2 \] be the curvatures of the blocks starting at $x_0$, $x_1$ and $x_2$. Write $\mathcal E_j$ for the division equation $x_jq_j+x_{j+1}-a=0$, where $q_j=\lfloor a/x_j\rfloor$. Define polynomials \begin{align*} \sigma(y_1,y_2,y_3)&=y_1^2y_2+(y_1-1)y_2^2+y_1y_3,\\ \omega(y_1,y_2,y_3,y_4)&=\bigl(y_1^2+(y_1-1)y_2\bigr)y_4+y_3\bigl(y_1^3+y_1y_2(2y_1-1)+(y_1-1)y_2^2\bigr)\\ &\qquad+y_3^2\bigl((y_1-1)(y_1+y_2)+1\bigr), \end{align*} and put \[ L=(k_1k_2+k_2^2+k_3)\,D-\bigl(k_0^2+(k_0-1)k_1\bigr)E-k_2\,(k_2f_0-k_0f_2). \] \begin{lemma}[The six-term identity]\label{lem:six} \begin{enumerate} \item $\sigma(k_1,k_2,k_3)\,D-\sigma(k_0,k_1,k_2)\,E=k_1L$. \item $q\,k_2L=\omega(k_0,k_1,k_2,k_3)\,E+\sigma(k_0,k_1,k_2)\,F$. \end{enumerate} \end{lemma} \begin{proof} Part~(1) is a polynomial identity in the drops and increments. Modulo $k_1$ we have $\sigma(k_1,k_2,k_3)\equiv-k_2^2$ and $\sigma(k_0,k_1,k_2)\equiv k_0k_2$, and $k_2D+k_0E=k_1(k_2f_0-k_0f_2)$; so the left side is divisible by $k_1$, and expanding the quotient gives $L$. Part~(2) holds modulo the division equations: $qk_2L-\omega E-\sigma(k_0,k_1,k_2)F=k_2(c_0\mathcal E_0-c_1\mathcal E_1+c_2\mathcal E_2-c_3\mathcal E_3)$, where \begin{align*} c_0&=k_1^2k_2+k_1k_2^2+k_1k_3-k_2^2,\\ c_1&=k_0^2k_2+2k_0k_1k_2+k_0k_2^2+k_0k_3+k_1^2k_2+k_1k_2^2-k_1k_2+k_1k_3-k_2^2,\\ c_2&=k_0^2k_1+k_0^2k_2+k_0k_1^2+2k_0k_1k_2+k_0k_2^2+k_0k_2+k_0k_3-k_1^2-k_1k_2,\\ c_3&=k_0^2k_1+k_0k_1^2+k_0k_2-k_1^2. \end{align*} This is an identity of polynomials in $a$, $q$, the $x_j$ and the increments. \end{proof} \begin{corollary}\label{cor:six} Suppose $k_0,\dots,k_3\le K$. Then $E,F\ge1$, $L\ge1$, and \[ q\le 9K^3E+3K^3F . \] \end{corollary} \begin{proof} Lemma~\ref{lem:curv}, applied to the blocks starting at $x_1$ and $x_2$, gives $E,F\ge1$. Clearly $\omega>0$ and $\sigma\ge0$, so by Lemma~\ref{lem:six}(2) $qk_2L>0$. Since $q\ge1$ (as $x_00$ they form a window run in $[A,2A)$ with $A=2^k$. Inserting $\Delta\ll_\eta a^\eta$ with $\eta=5\varepsilon/2$ into Corollary~\ref{cor:window} yields $T_k\ll_\varepsilon a^{3/10+\varepsilon/2}$; the windows with $T_k<10$ satisfy the same estimate. There are $O(\log a)\ll_\varepsilon a^{\varepsilon/2}$ windows, so summing proves the theorem. \end{proof} \section{The Hankel hierarchy}\label{sec:hankel} From now on we write $N=P(a,b)$, freeing the letter $P$ for polynomials, so that $b_0>\dots>b_{N-1}>0=b_N$, and $k_i=q_{i+1}-q_i$. The division equation gives $b_i/a=(1-b_{i+1}/a)/q_i$, and iterating it expresses $b_i/a$ as the alternating Pierce series in the tail quotients $q_i,q_{i+1},\dots$. The construction below rewrites this series as a Stieltjes transform, \[ \frac{b_i}a=\int\frac{d\mu_i(x)}{q_i+x}, \] of a probability measure $\mu_i$ on the nodes $q_{i+j}-q_i$ (Lemma~\ref{lem:moments}(2)). The measure $\nu_i=\mu_i/(q_i+x)$ then has total mass $b_i/a$, and the Hankel determinants of its moments are the integer invariants we need. Put $p_i(j)=q_{i+j}-q_i$ for $0\le jb_1>\dots>b_{N-1}>0$ is the positive part of the orbit, $N=P(a,b)$, and $q_i=\lfloor a/b_i\rfloor$. \subsection{Heuristics} The exponent $3/10$ of Theorem~\ref{thm:main} comes from a single balanced configuration: $T\asymp a^{3/10}$ remainders in a window $[A,2A)$ with $A\asymp a^{3/5}$, quotients $q\asymp a^{2/5}$ and typical increments $k\asymp a^{1/10}$. At this scale the rank-four Hankel invariant $I_4(i)=L_i$ has size $\asymp aH^6/q^4\asymp 1$, where $H$ bounds the increments. The idea is that a positive integer of bounded size carries information. The labels $I_4(i),I_4(i+1),I_4(i+2)$, together with seven further $3\times3$ minors of the same size, form a \emph{pattern} (made precise in Section~\ref{sec:minors}). States with a given pattern satisfy two linear equations and one quadratic equation in five consecutive increments (Lemma~\ref{lem:pattern}), and the quotient $q_i$ is a root of a quartic fixed by the pattern and the increments (Lemma~\ref{lem:multid}). So the problem becomes one of counting patterns, and the states belonging to each pattern. Counting the latter with these equations alone already improves on $3/10$ (the first rows of the table in Section~\ref{sec:intro}). To go further, the linear and quadratic relations alone do not suffice: for some patterns they admit constant increments $k_j=t$ for every $t$ (an example follows Lemma~\ref{lem:jointcurve}). Section~\ref{sec:joint} therefore adds the fixed-dividend equation, an equation in the nodes alone that involves $a$; it excludes such families. The rest of this section builds the pattern matrix and identifies its cofactors with the orthogonal quartic of $\nu_i$ (Section~\ref{sec:patternmatrix}), ties $q_i$ to the pattern by a quartic equation (Section~\ref{sec:normid}), proves the signs and the supply of good starts used throughout Section~\ref{sec:joint} (Sections~\ref{sec:signs} and~\ref{sec:goodstarts}), and bounds the size and number of patterns (Sections~\ref{sec:minors} and~\ref{sec:minorcount}). \subsection{The pattern matrix}\label{sec:patternmatrix} Fix a state $i$ with $i+60>u_2$. \end{lemma} \begin{proof} The $2\times2$ minors of the $k$- and $r$-rows do not involve the nodes: expanding $r_m=k_m(s_m+s_{m+1})+k_{m+1}$ with $s_{m+1}=s_m+k_m$ gives \[ k_mr_{m+1}-k_{m+1}r_m=\sigma(k_m,k_{m+1},k_{m+2}),\qquad k_mr_{m+2}-k_{m+2}r_m=\tilde\sigma(k_m,k_{m+1},k_{m+2},k_{m+3}). \] The $k$- and $r$-relations of Lemma~\ref{lem:pattern} read $u_1k_1+u_2k_2=N_1k_0-N_0k_3$ and $u_1r_1+u_2r_2=N_1r_0-N_0r_3$. Solving them for $(u_1,u_2)$ by Cramer's rule and using these minors gives the exact identities \begin{align*} u_1\sigma(k_1,k_2,k_3)&=N_1\tilde\sigma(k_0,k_1,k_2,k_3)+N_0\sigma(k_2,k_3,k_4),\\ -u_2\sigma(k_1,k_2,k_3)&=N_1\sigma(k_0,k_1,k_2)+N_0\tilde\sigma(k_1,k_2,k_3,k_4), \end{align*} since the Cramer determinant is $k_1r_2-k_2r_1=\sigma(k_1,k_2,k_3)$. \end{proof} \subsection{Good starts}\label{sec:goodstarts} \begin{lemma}[Good starts]\label{lem:good} Let $b_{i_0},\dots,b_{i_0+T-1}$ be a window run in $[A,2A)$ with $T\ge36$, and put $H=\lfloor 28a/(AT)\rfloor+1$. Call a start $i$ \emph{good} if $i_0\le i$, $i+9\le i_0+T$ and $q_{j+1}-q_j\le H$ for $i\le j\le i+6$, that is, $k_0,\dots,k_6\le H$ at state $i$. Then at least $T/2$ starts are good, and every good start satisfies $i+8H$. Then $|\mathcal B|(H+1)\le q_{i_0+T-1}-q_{i_0}\le a/A$. Since $H\cdot AT>28a$, this gives $28|\mathcal B|\le T$. Each $j\in\mathcal B$ spoils at most seven starts, so at least $T-9-7|\mathcal B|\ge T/2$ starts are good, as $T\ge36$. The last assertion is immediate, since the states $i,\dots,i+8$ lie in the window. \end{proof} \subsection{The full minor vector}\label{sec:minors} The seven pattern integers are not independent: they are coordinates of a single vector of $3\times3$ minors. If all ten minors are at most $X$ in absolute value, there are only $X^{5+o(1)}$ such vectors (Proposition~\ref{prop:minorvec}), rather than the $X^7$ choices of seven independent integers. Let $\widehat{\mathcal M}_i$ be the $3\times5$ matrix with rows $(d_0,\dots,d_4)$, $(k_0,\dots,k_4)$ and $(r_0,\dots,r_4)$, and let $p_{c_1c_2c_3}$ be its minor on columns $c_10$, but never on the dividend, the orbit or the pattern. The argument has six steps. \begin{enumerate} \item For a fixed pattern, the nodes of every good start lie on at most $24$ curves (Section~\ref{sec:jointcurve}). \item On these curves the quotient $q_i$ and the curvature $I_3(i)$ are rational functions of the nodes. Components on which the reconstruction identities fail contribute $O(1)$ starts (Section~\ref{sec:jointrecon}). \item The directions at infinity of the curves are controlled by the Newton coefficients of the pattern. This makes nonexceptional components have even degree (Section~\ref{sec:jointinfinity}), so that the orders $3e/2$ and $5e/2$ below are integers and every component left after the conics has degree at least four; it also shows that exceptional patterns are few, and excludes lines (Section~\ref{sec:jointexc}). \item The reconstructed functions, and hence two families of new integer coordinates $W$ and $J$, have prescribed orders at infinity (Sections~\ref{sec:jointorders} and~\ref{sec:jointcoords}). \item Each nonexceptional conic contributes $a^{o(1)}$ starts (Section~\ref{sec:jointconic}). \item On the remaining components, adjoining $W_j^m$ and $J^n$ raises the degree. The curve-counting theorem and a balancing of heights then give the exponent (Sections~\ref{sec:jointgraph} and~\ref{sec:jointcount}). \end{enumerate} \emph{Notation.} In this section \begin{itemize} \item $\theta=(N_0,N_1,N_2,u_1,u_2,v_1,v_2)$ are the pattern integers of Section~\ref{sec:patterns}, with $N_0=I_4(i)$, and $\rho,\varphi,\chi$ and $\rho',\varphi',\chi'$ the normalised parameters~\eqref{eq:jointbar}; \item $s_j$ are the nodes, $k_j$ the increments, $P_4,R_4$ the two orthogonal quartics, $\Psi$ the quartic norm and $f$ the pattern quadratic; \item $D_{jl}=d_jk_l-d_lk_j$ are the $2\times2$ minors of drops and increments, so that $D_{01}=I_3(i)$ is the curvature of Section~\ref{sec:curv}; \item $Q$ and $E_0$ are the reconstructed quotient and curvature, $W=(W_0,W_1,W_2)$ and $J$ the joint coordinates, and $S$, $Y$ their height bounds; \item $\operatorname{ord}_P$ is the order at a point $P$, positive at zeros and negative at poles, $e$ is a multiplicity at infinity, $d$ the degree of a component (not to be confused with the drops $d_j$), $\delta$ the degree of a graph and $\delta_{\min}=10n+7m$ its lower bound (Lemma~\ref{lem:jointpowereddegree}). \end{itemize} \subsection{Good starts and the pattern curve}\label{sec:jointcurve} Put \[ H=\left\lfloor\frac{28a}{AT}\right\rfloor+1,\qquad X=\left\lfloor\frac{c_XA^4H^6}{a^3}\right\rfloor, \] with $c_X$ the constant of Proposition~\ref{prop:allminors}. Let the good starts be as in Lemma~\ref{lem:good}; at least $T/2$ starts are good. By Proposition~\ref{prop:allminors}, the minor vector of a good start has all coordinates at most $X$, and $X\ge1$ because its coordinate $p_{012}=L_i$ is a positive integer. The pattern of a good start (Section~\ref{sec:minors}) therefore has height at most $X$, and it determines $\theta(i)$. By Proposition~\ref{prop:minorvec}, there are $O_\eta(a^\eta X^5)$ patterns. The \emph{nodes} of state $i$ are $s_j=q_{i+j}-q_i$. They are the support points of the measure $\mu_i$ of Section~\ref{sec:hankel}, and the interpolation nodes of the Newton polynomials of Section~\ref{sec:patterns}. The three \emph{free nodes} $s_1,s_2,s_3$ of a good start are integers in $[0,3H]$. Distinct good starts with the same pattern have distinct free-node triples: the pattern and the free nodes determine $q_i$, which strictly increases along the orbit. (That $q_i$ is determined is shown in Section~\ref{sec:jointrecon}, where it is the rational function $Q$; the argument there uses only Lemma~\ref{lem:jointcurve}(1) below.) We now write, as functions of the three free nodes, the objects that at a good start are the orthogonal quartics of states $i$ and $i+1$ and the norm $\nu_i(P_4^2)$; the pattern curve is cut out by the pattern quadratic and a resultant identity among them. For the pattern integers $\theta$, put \begin{equation}\label{eq:jointbar} (\rho,\varphi,\chi)=\frac{(N_1,u_1,u_2)}{N_0},\qquad (\rho',\varphi',\chi')=\frac{(N_2,v_1,v_2)}{N_1}, \end{equation} the \emph{normalised parameters} of the pattern. Then $\rho>0$, and $\varphi>0>\chi$ by Lemma~\ref{lem:signs}. Treat the free nodes $s_1,s_2,s_3$ as coordinates and define \[ s_0=0,\quad s_4=(\rho+\varphi)s_1-(\varphi-\chi)s_2-(\chi-1)s_3,\quad k_j=s_{j+1}-s_j\quad(0\le j\le3), \] \[ k_4=\rho' k_1-\varphi' k_2-\chi' k_3,\qquad s_5=s_4+k_4. \] At a good start these are the actual nodes and increments, by the two $k$-relations of Lemma~\ref{lem:pattern}; the first is equivalent to $\rho k_0=\varphi k_1+\chi k_2+k_3$. Let \[ \gamma=(\rho,\,-\rho-\varphi,\,\varphi-\chi,\,\chi-1,\,1), \] and let $\gamma'$ be the same expression in $\rho',\varphi',\chi'$. Put \[ P_4(x)=\sum_{j=0}^4\gamma_j\prod_{\ell=0}^{j-1}(x-s_\ell), \qquad R_4(x)=\sum_{j=0}^4\gamma'_j\prod_{\ell=1}^{j}(x-s_\ell). \] By Lemma~\ref{lem:orthquartic}, at a good start $P_4$ is the monic orthogonal polynomial $\pi_i$ of degree four for $\nu_i$, and $R_4(x)=\pi_{i+1}(x-k_0)$ is the corresponding polynomial of the next state, written in the variable of the current state. Put $Z=xR_4$ and $f=\sum_{j=0}^4\gamma_j(s_j^2+k_j)$, the \emph{pattern quadratic}, and let \begin{align*} \Psi={}&\sum_{j=0}^4\gamma_j \bigl(s_j^3+3s_j^2+3s_j(1+k_j)+(1+k_j)^2\bigr) +\sum_{j=0}^3\gamma_jk_{j+1}\\ &+\rho' r_1-\varphi' r_2-\chi' r_3-k_4(2s_4+k_4), \end{align*} where $r_j=k_j(s_j+s_{j+1})+k_{j+1}$ for $j=1,2,3$. This is a cubic polynomial in the free nodes, the \emph{quartic norm}: at a good start it is the squared norm $\nu_i(P_4^2)$ of the orthogonal quartic (Lemma~\ref{lem:jointcurve}). The degree of an affine curve is that of its projective closure, equivalently the leading coefficient of its affine Hilbert function. ``Integral'' means that the defining ideal is prime over $\mathbb Q$; it does not assert geometric irreducibility or a rational parametrisation. For a monic polynomial $g$ we write $\operatorname{Res}(g,h)=\prod_{g(\theta)=0}h(\theta)$, the product over the roots of $g$ with multiplicity. For monic $g,h$ of degrees $m,n$ this is $(-1)^{mn}\operatorname{Res}(h,g)$, and $\operatorname{Res}(g,h)=\operatorname{Res}(g,h+ug)$ for every polynomial $u$. \begin{lemma}[The pattern curve]\label{lem:jointcurve} \begin{enumerate} \item At a good start $i$, $\Psi=\nu_i(P_4^2)>0$, and the free nodes satisfy \begin{equation}\label{eq:jointcurve} f=0,\qquad N_0\operatorname{Res}(P_4,Z)=a\Psi^4. \end{equation} We call the second equation the \emph{fixed-dividend equation}. \item For every pattern with $\rho,\varphi>0>\chi$, the two equations~\eqref{eq:jointcurve} have degrees two and at most twelve and no common factor. Their common zero set in $\mathbb A^3$ is the union of at most twenty-four integral affine curves over $\mathbb Q$, of total degree at most twenty-four. \end{enumerate} \end{lemma} \begin{proof} (1) Since $r_m=s_{m+1}^2-s_m^2+k_{m+1}$, summation by parts and the $k$-relation at state $i$ show that $N_0f$ is the $r$-relation $\sum_mU_m(i)r_m=0$ of Lemma~\ref{lem:pattern}. Next, the shift rule $\mu_i\bigl(g\prod_{\ellk}(a_jc_k-a_kc_j)K_{jk}$, where $c_4=0$ and $K_{jk}=(N_j(x)N_k(y)-N_j(y)N_k(x))/(x-y)$. For $j>k$, telescoping $\prod_{l=k+1}^j(x-s_l)-\prod_{l=k+1}^j(y-s_l)$ gives \begin{equation}\label{eq:bezoutK} K_{jk}=\sum_{m=k+1}^{j}N_{m-1}(x)\,Y_{kmj}(y),\qquad Y_{kmj}(y)=N_k(y)\prod_{l=m+1}^{j}(y-s_l). \end{equation} The polynomial $Y_{kmj}$ is monic of degree $k+j-m$, homogeneous of that degree in $y$ and the nodes, and divisible by $N_k$. So its coefficient of $N_\beta$ is homogeneous of degree $k+j-m-\beta$ in the nodes, and vanishes unless $\beta\ge k$. Thus the triple $(j,k,m)$ contributes to $\mathcal B_{\alpha\beta}$ only when $\alpha=m-1$ and $k\le\min(\alpha,\beta)$, and its contribution has degree at most $\deg(a_jc_k-a_kc_j)+k+j-1-\alpha-\beta$. For $j=4$ we have $a_4c_k-a_kc_4=c_k$, of degree at most one, and otherwise $j\le3$; in both cases the degree is at most $4+k-\alpha-\beta\le4-\max(\alpha,\beta)$. Hence \begin{equation}\label{eq:bezoutdeg} \deg\mathcal B_{\alpha\beta}\le4-\max(\alpha,\beta), \end{equation} and each term $\prod_\alpha\mathcal B_{\alpha\sigma(\alpha)}$ of the determinant has degree at most $\sum_\alpha(4-\max(\alpha,\sigma(\alpha)))\le10$, with equality possible only for the identity permutation. Note that $\gamma_1<0<\gamma_2$, $\gamma_3=\chi-1<-1$ and $\gamma_0,\gamma_4>0$. Since $s_0=0$ and $\sum_j\gamma_js_j=0$, the quadratic part of $f$ is \[ f_2=\gamma_1s_1^2+\gamma_2s_2^2+\gamma_3s_3^2+(\gamma_1s_1+\gamma_2s_2+\gamma_3s_3)^2, \] whose Hessian determinant is $8\gamma_1\gamma_2\gamma_3(1+\gamma_1+\gamma_2+\gamma_3) =-8\gamma_0\gamma_1\gamma_2\gamma_3\ne0$. A ternary quadratic form of rank three is not a product of linear forms, so $f_2$, and hence $f$, is irreducible. The degree-twelve part of the second equation is $-ac^4$ with $c=\sum_j\gamma_js_j^3$. If $f$ divided the second equation, the irreducible form $f_2$ would divide $c^4$, hence $c$. Here $s_4=-(\gamma_1s_1+\gamma_2s_2+\gamma_3s_3)$. Divide $c$ by $f_2$ as polynomials in $s_3$; the $s_3^2$ coefficient of $f_2$ is $\gamma_3(1+\gamma_3)\ne0$. The remainder is $\mathfrak r_1s_3+\mathfrak r_0$, with $\mathfrak r_0,\mathfrak r_1$ forms in $s_1,s_2$ and \[ \mathfrak r_1=\frac{\gamma_3-1}{\gamma_3+1}\bigl(\gamma_1(\gamma_1+\gamma_3+1)s_1^2 +2\gamma_1\gamma_2s_1s_2+\gamma_2(\gamma_2+\gamma_3+1)s_2^2\bigr), \] as one checks by multiplying out the quotient $-\bigl((\gamma_3+2)(\gamma_1s_1+\gamma_2s_2)+(\gamma_3^2-1)s_3\bigr)/(\gamma_3+1)$. The $s_1s_2$ coefficient $2\gamma_1\gamma_2(\gamma_3-1)/(\gamma_3+1)$ of $\mathfrak r_1$ is nonzero by the signs above, so $f_2\nmid c$. So the two equations have no common factor, their common zero set is a curve, and by B\'ezout's theorem its components over $\mathbb Q$ have total degree at most $2\cdot12$. \end{proof} The following example shows why the fixed-dividend equation is needed. If $(\rho,\varphi,\chi)=(\rho',\varphi',\chi')=(\vartheta,2\vartheta+1,-\vartheta-2)$ with $\vartheta>0$, then $\sum_l\gamma_lz^l=(z-1)^3(z-\vartheta)$, and constant increments $k_j=t$ satisfy the linear and quadratic relations for every $t$: since $z=1$ is a triple root, $\sum_l\gamma_ll^r=0$ for $r\le2$, and with $s_j=jt$ these sums are exactly the $k$- and $r$-relations. \subsection{Reconstruction and retained components}\label{sec:jointrecon} We need $q_i$ and $I_3(i)$ as rational functions on each component, with computable orders at infinity. This works only on components where two further identities hold identically; on any other component they cut out boundedly many good starts, which we count directly. The idea is that the polynomials $P_4$ and $Z$, both orthogonal to $1,x,x^2,x^3$ in $L^2(\nu_i)$, determine the moment vector of $\nu_i$ up to scale, and the two normalised division equations fix the scale; this recovers $q_i$ and $I_3(i)$ as rational functions of the free nodes. Concretely, form the $8\times9$ matrix of coefficients of $P_4,xP_4,x^2P_4,x^3P_4,Z,xZ,x^2Z,x^3Z$ in the basis $1,x,\dots,x^8$. Let $c_j$ be $(-1)^j$ times the minor obtained by deleting column $j$, and define \[ Q=\frac{c_1-c_2}{c_1-c_0},\qquad E_0=a\,\frac{\det(c_{r+s})_{0\le r,s<3}(c_1-c_0)^3} {(c_1^2-c_0c_2)^3}. \] At a good start the matrix annihilates the moment vector $(h_i(0),\dots,h_i(8))$ and has rank eight. Indeed, the resultant in \eqref{eq:jointcurve} is positive, so $P_4$ and $Z$ are coprime. So the kernel is spanned by $(c_j)$, and $h_i(j)=\lambda c_j$ for some $\lambda$. The normalised division equations $q_ih_i(0)+h_i(1)=q_ih_i(1)+h_i(2)=1$ then determine $q_i$ and $\lambda$, and $h_i(0)h_i(2)>h_i(1)^2$ shows that the denominators below are nonzero. This gives \[ h_i(j)=\frac{c_j(c_1-c_0)}{c_1^2-c_0c_2}\quad(0\le j\le8),\qquad Q=q_i,\qquad E_0=I_3(i). \] In particular, all displayed denominators are nonzero at good starts. To state the identities as equations on the curve, use the raw-moment polynomials \[ M_0=1,\qquad M_{r+1}(k_0,k_1,\dots) =\sum_{t=0}^{r}\binom rt k_0^{r-t}M_t(k_1,k_2,\dots). \] Only $M_0,\dots,M_6$ are needed; they involve $k_0,\dots,k_4$. At good starts, $M_r=\mu_i(x^r)$ for $0\le r\le6$, by the weight recursion in Section~\ref{sec:hankel}. Set \[ H_3=\det(M_{r+s})_{0\le r,s<3},\qquad H_4=\det(M_{r+s})_{0\le r,s<4},\qquad H_{013}=\det(M_{r+s})_{\substack{r=0,1,2\\s=0,1,3}}. \] This $H_4$ is the polynomial of Lemma~\ref{lem:multid}. With $p_3=\chi-1-s_1-s_2-s_3$, the coefficient of $x^3$ in $P_4$, consider the \emph{normalisation} and \emph{resolvent identities} \begin{equation}\label{eq:jointcuts} N_0P_4(-Q)=aH_4,\qquad E_0P_4(-Q)=a\bigl((Q-p_3)H_3-H_{013}\bigr). \end{equation} The first is Lemma~\ref{lem:multid} at good starts, where $Q=q_i$ and $P_4=\pi_i$; the second is the following analogue for $I_3$. \begin{lemma}[The resolvent identity]\label{lem:resolvent} At a good start, $I_3(i)\,P_4(-q_i)=a\bigl((q_i-p_3)H_3-H_{013}\bigr)$. \end{lemma} \begin{proof} This is the bordering argument of Lemma~\ref{lem:multid}, one size smaller. Write $h_j=h_i(j)$, $M_j=\mu_i(x^j)=q_ih_j+h_{j+1}$ and $P_4(x)=x^4+p_3x^3+p_2x^2+p_1x+p_0$. Since $P_4$ is orthogonal to $1,x,x^2$, expanding along the last row gives \[ \det(h_{r+s})_{r,s<3}\,P_4(x)= \det\begin{pmatrix} h_j&h_{j+1}&h_{j+2}&h_{j+4}+p_3h_{j+3}\\ 1&x&x^2&x^4+p_3x^3 \end{pmatrix}_{j=0,1,2}. \] At $x=-q_i$, add $q_i$ times column $1$ to column $2$, then $q_i$ times column $0$ to column $1$; the first three columns of row $j$ become $h_j,M_j,M_{j+1}$, and the last row becomes $(1,0,0,q_i^4-p_3q_i^3)$. Using $h_{s+1}=M_s-q_ih_s$ repeatedly, the last column equals $M_{j+3}+(p_3-q_i)M_{j+2}$ plus a combination of the columns $M_j$, $M_{j+1}$ and $q_i^3(q_i-p_3)$ times the column $(h_j;1)$; removing these leaves $(M_{j+3}+(p_3-q_i)M_{j+2};0)$. Expanding along the last row gives \[ \det(h_{r+s})_{r,s<3}\,P_4(-q_i)=(q_i-p_3)H_3-H_{013}, \] and $a\det(h_{r+s})_{r,s<3}=I_3(i)$. \end{proof} So both identities~\eqref{eq:jointcuts} hold at good starts. Clearing denominators turns them into polynomial equations $\mathcal C_N=0$ and $\mathcal C_R=0$ in the free nodes, the \emph{cuts} (written out in the proof below). A component containing a good start is \emph{retained} if both cuts vanish identically on it. \begin{lemma}[Removing components by polynomial equations]\label{lem:jointcuts} The cuts have degree at most an absolute constant $C_{\rm cut}$ in the free nodes. On a degree-$d$ component, each cut either vanishes identically or vanishes at no more than $C_{\rm cut}d$ good starts. Consequently each component that is not retained contributes $O(1)$ good starts. \end{lemma} \begin{proof} Each entry of the $8\times9$ coefficient matrix has degree at most four in the nodes, so the cofactors $c_j$ have bounded degree. Write $Q=Q_{\mathrm n}/Q_{\mathrm d}$ and $E_0=E_{\mathrm n}/E_{\mathrm d}$ using the formulas above, and clear denominators: \begin{align*} \mathcal C_N&=N_0\widehat P-aH_4Q_{\mathrm d}^4,\\ \mathcal C_R&=E_{\mathrm n}\widehat P -a\bigl((Q_{\mathrm n}-p_3Q_{\mathrm d})H_3-H_{013}Q_{\mathrm d}\bigr)Q_{\mathrm d}^3E_{\mathrm d}, \end{align*} where $\widehat P=Q_{\mathrm d}^4P_4(-Q_{\mathrm n}/Q_{\mathrm d})$. Every factor here is a fixed polynomial expression in the nodes and the pattern coordinates, so both have bounded degree in the nodes. If a polynomial of degree $r$ does not vanish identically on an integral curve of degree $d$, its zero set on that curve has at most $rd$ distinct rational points, by B\'ezout's theorem. Every good start satisfies both cleared equations, and distinct good starts of this pattern give distinct free-node triples (Section~\ref{sec:jointcurve}). Applying the point bound to whichever equation is not an identity proves the claim; the bound $d\le24$ makes it uniform. \end{proof} \subsection{Directions at infinity}\label{sec:jointinfinity} At a point at infinity the leading nodes satisfy $\sum_j\gamma_jz_j^r=0$ for $r\le3$, and if some of them coincide, the $\gamma_j$ in each group of equal leading nodes sum to zero (Lemma~\ref{lem:jointleading}). Excluding vanishing pair sums therefore makes the five leading nodes distinct, which fixes the orders at infinity of everything below. Call a pattern \emph{exceptional} if two of the five Newton coefficients $\gamma_j$ sum to zero. Since $\rho>0$, $\varphi>0$ and $\chi<0$, every $\gamma_j$ is nonzero, and a pair sum can vanish only in one of the four cases \begin{equation}\label{eq:jointexceptional} \rho+\chi=1,\qquad \rho+\chi=0,\qquad \varphi=1,\qquad \rho+\varphi=1. \end{equation} Equivalently, the integer pattern coordinates satisfy $N_1+u_2=N_0$, $N_1+u_2=0$, $u_1=N_0$ or $N_1+u_1=N_0$. \begin{lemma}[Leading nodes and determinant orders]\label{lem:jointleading} Let $C$ be an integral component of positive degree of \eqref{eq:jointcurve}. Let $P$ be a closed point above infinity on the normalisation of the projective closure of $C$, write $\operatorname{ord}=\operatorname{ord}_P$, and let $e>0$ be the multiplicity of the hyperplane at infinity at $P$; equivalently, $e=\max_{1\le j\le3}(-\operatorname{ord}s_j)$. For a local parameter (uniformiser) $\varpi$ at $P$, let $z_j\in\mathbb Q(P)$ be the value at $P$ of the regular function $\varpi^es_j$, $0\le j\le4$; we call $z_j$ the \emph{leading node}. Then the $z_j$ are not all equal and satisfy \begin{equation}\label{eq:joint-leading-moments} \sum_{j=0}^4\gamma_jz_j^r=0\qquad(0\le r\le3). \end{equation} If two of these five leading nodes coincide, the pattern is exceptional. For a nonexceptional pattern, therefore, \begin{align} \operatorname{ord}(s_l-s_j)&=-e\quad(0\le j0. \] Thus $Q^4$ is the unique term of lowest order. It follows that $4r=-6e$, or $\operatorname{ord}Q=-3e/2$. \emph{The reconstructed curvature order.} The coefficient $p_3=\chi-1-s_1-s_2-s_3$ has order at least $-e$. By the proof of Lemma~\ref{lem:jointleading}, $H_{013}$ has degree at most four, with degree-four part~\eqref{eq:H013top}. Consequently \[ \operatorname{ord}(Q-p_3)=-3e/2,\qquad \operatorname{ord}\bigl((Q-p_3)H_3\bigr)=-9e/2 <-4e\le\operatorname{ord}H_{013}. \] There is again a unique term of lowest order. Dividing the second retained identity by $P_4(-Q)$ therefore gives \[ \operatorname{ord}E_0=-9e/2-(-6e)=3e/2. \] The argument uses the discrete valuation on the normalisation, so it also covers branches above singular points of the original curve. \end{proof} \subsection{The joint coordinates}\label{sec:jointcoords} Put $d_j=b_{i+j}-b_{i+j+1}$ and \[ D_{01}=d_0k_1-d_1k_0,\quad D_{02}=d_0k_2-d_2k_0,\quad D_{12}=d_1k_2-d_2k_1. \] The first of these, $D_{01}$, is the curvature $I_3(i)$. With $s_j=q_{i+j}-q_i$ and $r_j=k_j(s_j+s_{j+1})+k_{j+1}$, the Hankel polynomial $H_3$ of Section~\ref{sec:jointrecon} and its shift are \begin{align*} H_3&=k_0r_1-k_1r_0=\sigma(k_0,k_1,k_2),\\ H_3'&=k_1r_2-k_2r_1=\sigma(k_1,k_2,k_3), \end{align*} with $\sigma$ as in Section~\ref{sec:six}. They are positive at every state at which they are defined. At a good start, $W=(D_{12},-D_{02},D_{01})=\mathbf d\times\mathbf k$ satisfies $W\cdot\mathbf k=0$ and $W\cdot\mathbf r=\det(\mathbf d,\mathbf k,\mathbf r)=p_{012}=N_0$; these two linear equations determine $W$ from its last coordinate $D_{01}=I_3(i)$. Solving them with $E_0$ in place of $I_3(i)$, on a retained component, gives \[ E_{12}=\frac{H_3'E_0-N_0k_1}{H_3},\qquad E_{02}=\frac{k_0E_{12}+k_2E_0}{k_1},\qquad W=(E_{12},-E_{02},E_0),\qquad J=N_0\Psi. \] The determinant and cross-product identities give, identically, \begin{equation}\label{eq:jointdot} W\cdot(k_0,k_1,k_2)=0,\qquad W\cdot(r_0,r_1,r_2)=N_0. \end{equation} At a good start these rational functions take the integer values $W=(D_{12},-D_{02},D_{01})$. Changing the rank-five Gram basis to $1,x,x^2,x^3,P_4$ gives \[ \det\bigl(\nu_i(x^{r+s})\bigr)_{r,s<5}=\det\bigl(\nu_i(x^{r+s})\bigr)_{r,s<4}\,\nu_i(P_4^2). \] Consequently $J=I_5(i)$ is a positive integer at good starts. The heights of these integers are controlled by \[ S=\left\lfloor\frac{c_S A^3H^3}{a^2}\right\rfloor,\qquad Y=\left\lfloor\frac{c_Y A^5H^{10}}{a^4}\right\rfloor, \] for suitable absolute constants $c_S,c_Y$. \begin{lemma}[Heights of the joint coordinates]\label{lem:jointheights} At good starts, all ten $2\times2$ minors $D_{jl}=d_jk_l-d_lk_j$ with $0\le j0$. Since $\mathbf s_*$ is affine, $P_0$ does not lie in $E_\infty$. \end{proof} \begin{lemma}[The curvature pole degree]\label{lem:jointpoledegree} The pole envelope satisfies \begin{equation}\label{eq:jointextra} \deg \mathcal F\ge \frac{3d}{2}+1. \end{equation} \end{lemma} \begin{proof} Use the function $\Phi$ from Lemma~\ref{lem:jointaffinezero}. At every point over infinity, each $W_j$ has order at least $3e_P/2$. The same is true of a rational linear combination; cancellation can only increase its zero order. Consequently \[ (\Phi)_0\ \ge\ \frac32 E_\infty+[P_0], \qquad (\Phi)_\infty\ \le\ \mathcal F . \] The first divisor is integral because every $e_P$ is even. The function $\Phi$ is nonzero and has a zero, so its principal divisor has equal zero and pole degrees. Hence \[ \deg \mathcal F\ \ge\ \deg(\Phi)_\infty =\deg(\Phi)_0 \ \ge\ \frac32\sum_{P\mid\infty}e_P\deg P+\deg P_0 \ \ge\ \frac{3d}{2}+1. \] The last inequality uses only $\deg P_0\ge1$, not that $P_0$ is rational. \end{proof} For positive integers $m,n$, let $\Gamma_{m,n}\subseteq\mathbb A^7$ be the closure of the graph obtained by adjoining $W_0^m,W_1^m,W_2^m,J^n$ to the three original node coordinates. The graph is taken on the common domain of these rational functions. It is an integral curve, and projection to the first three coordinates is birational: on that domain the four remaining coordinates are uniquely determined. Thus $\Gamma_{m,n}$ and $C$ have the same function field. Taking powers does not lose this property, because the original coordinates remain in the graph. \begin{lemma}[Degree of the powered graph]\label{lem:jointpowereddegree} If $\delta=\deg\Gamma_{m,n}$, then \begin{equation}\label{eq:jointdegree} 2\delta\ge(5n+3m)d+2m, \qquad \delta\ge10n+7m=:\delta_{\min}. \end{equation} Moreover $\delta\le C_{\rm gr}(m+n)d$ for an absolute constant $C_{\rm gr}$. For $m=n=1$ the lower bound reads $\delta\ge4d+1\ge17$. \end{lemma} \begin{proof} \emph{Lower bound.} At a point $P$ over the old infinity hyperplane, the original node coordinates have pole orders at most $e_P$, while $J^n$ has pole order $5ne_P/2$ and all $W_j^m$ vanish. Since $n\ge1$, the pole envelope of the seven graph coordinates at $P$ is exactly $5ne_P/2$. Over the affine part, the node coordinates and $J$ are regular: $J=N_0\Psi$ is polynomial in the nodes. There the envelope is exactly $m$ times the curvature envelope. The complete envelope of the graph coordinates is therefore \[ \mathcal F_{m,n}=\frac{5n}{2}E_\infty+m\mathcal F. \] There is a single rational linear combination $\psi$ of the seven coordinates whose pole divisor is $\mathcal F_{m,n}$. To see this, fix a point $P$ in the finite support of $\mathcal F_{m,n}$ and multiply all seven coordinates by a local uniformiser to the power $\mathcal F_{m,n}(P)$. Their values in $\mathbb Q(P)$ are not all zero. Cancellation of the leading pole is therefore a proper $\mathbb Q$-linear condition on the seven coefficients. The finitely many such proper subspaces do not cover $\mathbb Q^7$. Choosing coefficients outside their union gives the asserted simultaneous absence of cancellation, also when $\mathbb Q(P)\ne\mathbb Q$. As a linear function on $\Gamma_{m,n}$, $\psi$ has degree at most $\delta$. Indeed, homogenise it on the projective closure of the graph: its pencil with the homogenising coordinate consists of hyperplane sections of degree $\delta$. Removing common zeros can only decrease the degree of the resulting map to $\mathbb P^1$. Birational projection identifies its function field with $\mathbb Q(C)$, so this degree is $\deg(\psi)_\infty=\deg \mathcal F_{m,n}$. It follows that \[ \delta\ \ge\ \frac{5n}{2}d+m\deg \mathcal F \ \ge\ \frac{5n+3m}{2}d+m. \] This is the first inequality in \eqref{eq:jointdegree}; $d\ge4$ gives the second. The auxiliary linear combination is used only to measure degree: no bound on its coefficients enters the integer-point box. \emph{Upper bound.} This is a routine count of polynomial degrees, given in Appendix~\ref{app:degree}. \end{proof} Every good start whose free-node triple lies on $C$ gives an integer point on this graph. By Lemma~\ref{lem:jointheights}, its coordinates have absolute values at most \[ \max(3H,S^m,Y^n). \] The original node coordinates also show that distinct such node triples remain distinct after adjoining the powers. \subsection{The window bound and the final exponents}\label{sec:jointcount} We use the coefficient-uniform affine-curve theorem of Castryck--Cluckers--Dittmann--Nguyen~\cite[Theorem~3]{CCDN}, also stated as \cite[Corollary~2.2]{CDHNV}: an integral affine curve $C$ over $\mathbb Q$ of degree $\delta$ in $\mathbb A^r$, with $r\ge2$ fixed, has \begin{equation}\label{eq:jointexternal} N_{\rm aff}(C,B)\ll_r \delta^3 B^{1/\delta}(\log B+\delta),\qquad B\ge1, \end{equation} integer points in the box $[-B,B]^r$, with an implied constant independent of the coefficients of $C$. We use it in the form proved in the library cited in Section~\ref{sec:lean}: ``integral'' means prime over $\mathbb Q$, and $B\ge1$. These two points need no new input: a curve that is integral over $\mathbb Q$ but not geometrically integral has at most $\delta^2$ rational points, which lie in the intersection of its conjugate components, and the range $1\le B<2$ follows from $B=2$. \begin{proposition}[Window bound]\label{prop:jointwindow} Fix positive integers $m,n$ and $\eta>0$, and put $\mathcal B=\max(H,S^m,Y^n)$. For a window run in $[A,2A)$ with $T\ge36$ satisfying~\eqref{eq:jointscale}, \begin{equation}\label{eq:jointcount} T\ll_{m,n,\eta}a^\eta\left( X^5+X^4H^{1/2}+X^5\mathcal B^{1/\delta_{\min}}\right). \end{equation} \end{proposition} \begin{proof} At least $T/2$ starts are good, and for each pattern the free-node triples of its good starts are distinct (Section~\ref{sec:jointcurve}). By Lemma~\ref{lem:jointcurve}, these triples lie on at most twenty-four integral curves of degree at most twenty-four, and we bound the good starts on each curve, allowing overlaps. All the heights $H$, $S$, $Y$ and $X$ are at most a fixed power of $a$, so the logarithm in~\eqref{eq:jointexternal} is $O_\eta(a^\eta)$. \begin{itemize} \item \emph{Exceptional patterns.} There are $O_\eta(a^\eta X^4)$ of them (Lemma~\ref{lem:jointcomponents}). Under~\eqref{eq:jointscale} no line contains a good start, so every relevant curve has degree $2\le d\le24$, and \eqref{eq:jointexternal} in $\mathbb A^3$ with $B=3H$ gives $O_\eta(a^\eta H^{1/2})$ good starts per pattern. This gives the term $X^4H^{1/2}$. \item \emph{Nonexceptional patterns: components that are not retained, and conics.} By Lemma~\ref{lem:jointcuts} and Section~\ref{sec:jointconic}, these contribute $O_\eta(a^\eta)$ per pattern, hence $O_\eta(a^\eta X^5)$ in all. \item \emph{Remaining nonexceptional components.} Lines do not occur, by Lemma~\ref{lem:jointcomponents}, and odd degrees do not occur, by Corollary~\ref{cor:jointparity}, so these components have degree $d\ge4$. Their good starts give distinct integer points of $\Gamma_{m,n}\subseteq\mathbb A^7$ in a box of side $\max(3H,S^m,Y^n)\le3\mathcal B$. By Lemma~\ref{lem:jointpowereddegree}, the degree $\delta$ of $\Gamma_{m,n}$ satisfies $\delta_{\min}\le\delta\le24C_{\rm gr}(m+n)$, so \eqref{eq:jointexternal} gives $O_{m,n,\eta}(a^\eta\mathcal B^{1/\delta_{\min}})$ good starts per component. This gives the term $X^5\mathcal B^{1/\delta_{\min}}$. \end{itemize} The added coordinates $W_j$ and $J$ are functions of the free nodes on each component. They therefore introduce no further freely counted coordinates, and the pattern count is not enlarged. \end{proof} \begin{corollary}\label{cor:jointexponent} For fixed positive integers $m,n$ and every $\varepsilon>0$, \[ P(a,b)\ll_{m,n,\varepsilon}a^{E(m,n)+\varepsilon},\qquad E(m,n)=\max\left(\frac{15\delta_{\min}+m}{51\delta_{\min}+3m},\ \frac{15\delta_{\min}+6n}{51\delta_{\min}+20n}\right), \] where $\delta_{\min}=10n+7m$. In particular $E(1,1)=128/435$ and $E(50,51)=2201/7480$. \end{corollary} \begin{proof} We bound the number $T$ of terms in each dyadic window, eliminating the window scale $A$. If $T<36$ there is nothing to prove. If $AT>28a$, then Proposition~\ref{prop:six} gives $T^4\ll a$. Otherwise $HAT\le56a$, and Proposition~\ref{prop:drop} gives $T^2\le8\Delta A$. Substituting $H\le56a/(AT)$ and then $A\ge T^2/(8\Delta)$ into the definitions of $X$, $S$ and $Y$ gives \begin{equation}\label{eq:jointscales} H\ll\frac{\Delta a}{T^3},\qquad X\ll\frac{\Delta^2a^3}{T^{10}},\qquad S\ll\frac{a}{T^3},\qquad Y\ll\frac{\Delta^5a^6}{T^{20}}. \end{equation} Every power of $\Delta$ is $O(a^\eta)$, and we absorb such factors into $a^{O(\eta)}$. \begin{itemize} \item If~\eqref{eq:jointscale} fails, then $c_{\rm L}A^4H^5X\ge a^3$. With $Xa^3\le c_XA^4H^6$ this gives $A^8H^{11}\gg a^6$, and $H\le56a/(AT)$ turns it into $A^3T^{11}\ll a^5$, so $T^{17}\ll\Delta^3a^5$. \item Otherwise Proposition~\ref{prop:jointwindow} applies. By~\eqref{eq:jointscales}, its first term gives $T\ll a^{O(\eta)}a^{15}/T^{50}$, so $T^{51}\ll a^{15+O(\eta)}$. Its second term gives $T\ll a^{O(\eta)}a^{12+1/2}/T^{40+3/2}$, so $T^{85}\ll a^{25+O(\eta)}$. \item For the graph term, $T\ll a^{O(\eta)}X^5\mathcal B^{1/\delta_{\min}}$ gives $T^{51\delta_{\min}}\ll a^{O(\eta)}a^{15\delta_{\min}}\mathcal B$. Since $H\ge1$, $\max(H,S^m)\le\max(H,S)^m\ll a^{O(\eta)}(a/T^3)^m$, so if $\mathcal B=\max(H,S^m)$ then $T^{51\delta_{\min}+3m}\ll a^{15\delta_{\min}+m+O(\eta)}$. If $\mathcal B=Y^n$ then $T^{51\delta_{\min}+20n}\ll a^{15\delta_{\min}+6n+O(\eta)}$. \end{itemize} The first three exponents all equal $5/17$, both fractions in $E(m,n)$ exceed $5/17$, and $T^4\ll a$ is stronger still. Choosing $\eta$ small in terms of $\varepsilon$, $m$ and $n$, every window has $T\ll a^{E(m,n)+\varepsilon/2}$, and summing over the $O(\log a)$ windows proves the bound. For $m=n=1$ the two fractions are $256/870=128/435$ and $261/887$, and the first is larger. For $(m,n)=(50,51)$ the larger fraction is $2201/7480$. \end{proof} \begin{proof}[Proof of Theorem~\ref{thm:joint}] Set $r=n/m$. The two fractions in $E(m,n)$ become \[ E_S(r)=\frac{150r+106}{510r+360},\qquad E_Y(r)=\frac{156r+105}{530r+357}. \] The first decreases and the second increases on $r>0$. Their crossing satisfies $30r^2-10r-21=0$, so $r_*=(5+\sqrt{655})/30$ and their common value is $\alpha_*=(1310-\sqrt{655})/4365$. Positive rational ratios approximate $r_*$; choose the fixed positive integers $m,n$ to make $E(m,n)<\alpha_*+\varepsilon/2$, and apply Corollary~\ref{cor:jointexponent} with loss $\varepsilon/2$. The powers and all constants depend only on $\varepsilon$, not on $a,b$. \end{proof} \begin{remark}\label{rem:jointscales} In terms of the scales, at the critical point $T\approx a^{\alpha_*}$ one has $A\approx a^{2\alpha_*}$, $H\approx S\approx a^{1-3\alpha_*}\approx a^{0.117}$, $X\approx a^{3-10\alpha_*}\approx a^{0.057}$ and $Y\approx a^{6-20\alpha_*}\approx a^{0.115}$. The pattern count $X^5\approx a^{0.287}$ alone would give the exponent $5/17$. The graph term multiplies it by $\mathcal B^{1/\delta_{\min}}$, and at $n/m\approx r_*$ the two box radii $S^m$ and $Y^n$ balance, at $\mathcal B\approx a^{0.117m}$. This gives the extra factor $a^{0.117/(10r_*+7)}\approx a^{0.0068}$. Scaling $m$ and $n$ together does not change it, since $\log\mathcal B$ and $\delta_{\min}$ grow in proportion. \end{remark} \section{Exterior lattice coordinates}\label{sec:lattice} We now prove Theorem~\ref{thm:lattice}. The idea is that the pivot parts of the three rows of the pattern matrix satisfy congruences modulo the pivot minor fixed by the pattern, so they lie in a lattice $\Lambda_p$. In a reduced basis the increment row has coordinates $O(H/\lambda)$, and the curvature vector, a cross product, has coordinates $O(S/\lambda^2)$, even though the drop row itself is large; here $\lambda$ is the sup norm of a shortest nonzero vector of $\Lambda_p$. We keep the notation and the conventions on constants of Section~\ref{sec:joint}, and write $\delta_{\min}=10n+7m$ as there. Only the count of good starts on retained nonexceptional components of degree at least four changes. Proposition~\ref{prop:latticewindow} replaces the term $X^5\mathcal B^{1/\delta_{\min}}$ of Proposition~\ref{prop:jointwindow} by \[ X^{5-1/(3\delta_{\min})}H^{1/\delta_{\min}}+X^{5-2m/(3\delta_{\min})}S^{m/\delta_{\min}}+X^5Y^{n/\delta_{\min}}. \] In effect $H$ is replaced by $H/X^{1/3}$ and $S$ by $S/X^{2/3}$, while $Y$ is unchanged. The node term $X^{5-1/(3\delta_{\min})}H^{1/\delta_{\min}}$ gives the exponent $45\delta_{\min}/(153\delta_{\min}-1)$, which is below $\gamma_*$ once $\delta_{\min}\ge18$, so of the two fractions balanced in the proof of Theorem~\ref{thm:joint} only the curvature fraction improves, and the crossing moves from $\alpha_*=0.2942513\ldots$ to $\gamma_*=0.2942294\ldots$. Every pattern has $\lambda(p)\ll X^{1/3}$ (Lemma~\ref{lem:index}), and the weighted count of Lemma~\ref{lem:weights} shows that this saving is available on average: the patterns with an unusually short vector are few enough to pay for their larger boxes. Section~\ref{sec:latticepattern} attaches to each pattern $p$ a rank-three lattice $\Lambda_p\subseteq\mathbb Z^3$ that contains the restrictions of the rows of $\widehat{\mathcal M}_i$ to three pivot columns, and gives it a reduced basis. Section~\ref{sec:latticeshort} shows that few patterns have a short vector in $\Lambda_p$. Section~\ref{sec:latticeexterior} writes the nodes and the curvature coordinates in the reduced basis. Section~\ref{sec:latticegraph} checks that this linear change of coordinates keeps the degree bounds of Lemma~\ref{lem:jointpowereddegree}, and Section~\ref{sec:latticecount} sums over patterns and optimises the exponent. \subsection{The lattice of a pattern}\label{sec:latticepattern} Let $p\ne0$ be the minor vector of a $3\times5$ integer matrix $\mathcal M$, with pivot $\pi$ as in the proof of Proposition~\ref{prop:minorvec}; so $|p_\pi|$ is maximal among the coordinates of $p$. Put $\kappa=|p_\pi|\ge1$, let $j_1\kappa$, then $\lambda(p)\le K$. \end{lemma} \begin{proof} The box $[0,K]^3$ has more than $\kappa\ge[\mathbb Z^3:\Lambda_p]$ points, so two of them lie in the same coset of $\Lambda_p$, and their difference is a nonzero vector of $\Lambda_p$ with sup norm at most $K$. \end{proof} The next lemma is the classical reduction of a three-dimensional lattice: any basis with $|\mathbf f_1||\mathbf f_2||\mathbf f_3|\ll\det\Lambda$ would do, and the constant does not affect the exponents. For completeness we give the elementary proof in Appendix~\ref{app:reduction}. \begin{lemma}[Reduction]\label{lem:reduce} Let $\Lambda\subseteq\mathbb Z^3$ be a subgroup containing $\kappa\mathbb Z^3$, $\kappa\ge1$. There is a basis $\mathbf f_1,\mathbf f_2,\mathbf f_3$ of $\Lambda$ with $\det\Lambda=\det(\mathbf f_1,\mathbf f_2,\mathbf f_3)$, $0<\det\Lambda\le\kappa^3$ and \[ 27\,|\mathbf f_1|^2|\mathbf f_2|^2|\mathbf f_3|^2\le64\,(\det\Lambda)^2 . \] Hence every $x\in\Lambda$ is $\sum\xi_i\mathbf f_i$ with $\xi\in\mathbb Z^3$ and $27|\mathbf f_i|^2\xi_i^2\le64|x|^2$. \end{lemma} \subsection{Few patterns have a short vector}\label{sec:latticeshort} \begin{lemma}[Divisibility count]\label{lem:dotcount} For $\ell\ge1$ and $x\in\mathbb Z^3$, at most $27\ell^2\gcd(\ell,x)$ vectors $y\in[-\ell,\ell]^3$ have $\ell\mid y\cdot x$. Here $\gcd(\ell,x)=\gcd(\ell,x_1,x_2,x_3)$. \end{lemma} \begin{proof} Each residue class modulo $\ell$ meets $[-\ell,\ell]^3$ in at most $3^3$ points, so it suffices to show that the set $\mathcal K$ of solutions in $[0,\ell)^3$ has at most $\ell^2e$ elements, where $e=\gcd(\ell,x)$. By B\'ezout choose $z\in\mathbb Z^3$ with $z\cdot x\equiv e\pmod\ell$. The map $(y,j)\mapsto(y+jz)\bmod\ell$ is injective on $\mathcal K\times[0,\ell/e)$: equal images give $\ell\mid(j-j')e$, so $j=j'$, and then $y=y'$. Hence $|\mathcal K|\,\ell/e\le\ell^3$. \end{proof} \begin{proposition}[Short vectors]\label{prop:short} Let $\mathcal S$ be a set of nonzero minor vectors with coordinates in $[-X,X]$. Then for every $R\ge1$, \[ \#\{p\in\mathcal S:\lambda(p)\le R\}\ll R^3X^4\tau_{\max}(X)^2 . \] \end{proposition} \begin{proof} If $\lambda(p)\le R$, some nonzero $x\in[-R,R]^3$ lies in $\Lambda_p$, so $\kappa\mid \mathbf u\cdot x$, where $\kappa=|p_\pi|\le X$; we drop the condition $\kappa\mid \mathbf v\cdot x$. For fixed $x$, the encoding $p\mapsto(\pi,\operatorname{sgn}p_\pi,\kappa,\mathbf u,\mathbf v)$ of the proof of Proposition~\ref{prop:minorvec} gives at most $20\sum_{\kappa\le X}N(\kappa,x)$ such $p$, where $N(\kappa,x)$ counts pairs $(\mathbf u,\mathbf v)$ in $[-\kappa,\kappa]^3$ with $\kappa\mid \mathbf u\times \mathbf v$ and $\kappa\mid \mathbf u\cdot x$. By the proof of Proposition~\ref{prop:minorvec}, for each $\mathbf u$ there are at most $27\kappa\gcd(\kappa,\mathbf u)^2$ vectors $\mathbf v$. Group the $\mathbf u$ by $g=\gcd(\kappa,\mathbf u)$ and write $\mathbf u=g\mathbf u_0$ with $(\kappa/g)\mid \mathbf u_0\cdot x$. Lemma~\ref{lem:dotcount} with $\ell=\kappa/g$, and $\gcd(\kappa/g,x)\le\gcd(\kappa,x)$, give \[ \sum_{\mathbf u}g^2\le\sum_{g\mid\kappa}g^2\cdot27\Bigl(\frac\kappa g\Bigr)^2\gcd(\kappa,x) =27\kappa^2\tau(\kappa)\gcd(\kappa,x), \] so $N(\kappa,x)\le729\kappa^3\tau(\kappa)\gcd(\kappa,x)$. Next, $\gcd(\kappa,x)\le\sum_{e\mid\kappa,\,e\mid x}e$, and swapping the sums, \[ \sum_{0<|x|_\infty\le R}\gcd(\kappa,x) \le\sum_{e\mid\kappa}e\,\#\{x\ne0:|x|_\infty\le R,\ e\mid x\} \le27R^3\tau(\kappa). \] Indeed, a divisor $e>R$ of $\kappa$ divides no nonzero $x$ in the box, and for $e\le R$ the multiples of $e$ number at most $(2R/e+1)^3$, with $e(2R/e+1)^3\le27R^3$. Sum over $x$ and then over $\kappa\le X$, using $\sum_{\kappa\le X}\kappa^3\le X^4$. \end{proof} \begin{lemma}[Fractional weights]\label{lem:weights} Let $\mathcal S$ be a set of nonzero minor vectors with coordinates in $[-X,X]$, $X\ge1$. Then for $0\le t\le1$, \[ \sum_{p\in\mathcal S}\lambda(p)^{-t}\ll\tau_{\max}(X)^2X^{5-t/3}. \] \end{lemma} \begin{proof} Choose an integer $K$ with $X\le K^3\le8X$. By Lemma~\ref{lem:index}, $1\le\lambda(p)\le K$ for $p\in\mathcal S$. Writing $1/\lambda=1/K+\sum_{\lambda\le j0$. Let $x,x'\in\Lambda$ have coordinates $\xi,\xi'\in\mathbb Z^3$, and put $w=x\times x'$ and $c=\xi\times\xi'\in\mathbb Z^3$. Then \[ w=c_1\,\mathbf f_2\times\mathbf f_3+c_2\,\mathbf f_3\times\mathbf f_1+c_3\,\mathbf f_1\times\mathbf f_2,\qquad \mathbf f_i\cdot w=(\det\Lambda)\,c_i,\qquad 27\lambda^4c_i^2\le64|w|^2 . \] \end{lemma} \begin{proof} The first identity follows by expanding $(\sum\xi_i\mathbf f_i)\times(\sum\xi'_i\mathbf f_i)$ bilinearly, and taking the dot product with $\mathbf f_i$ gives the second. By Cauchy--Schwarz and Lemma~\ref{lem:reduce}, \[ 27|\mathbf f_1|^2|\mathbf f_2|^2|\mathbf f_3|^2c_i^2\le64(\det\Lambda)^2c_i^2=64(\mathbf f_i\cdot w)^2 \le64|\mathbf f_i|^2|w|^2 . \] Cancelling $|\mathbf f_i|^2$ and using $|\mathbf f_j|\ge\lambda$ for the other two vectors gives the claim. \end{proof} The lemma replaces the bounds $|\xi|\ll|x|/\lambda$ and $|\xi'|\ll|x'|/\lambda$, which would give $|c|\ll|x||x'|/\lambda^2$, by $|c|\ll|x\times x'|/\lambda^2$. This matters because the drop row is large while the curvature minors are small. Now fix a pattern $p$ that occurs at a good start, and let $\mathbf f_1,\mathbf f_2,\mathbf f_3$ be a basis of $\Lambda_p$ as in Lemma~\ref{lem:reduce}. Write $\lambda=\lambda(p)$. At a good start $i$ with pattern $p$, the pivot parts $d_\pi$ and $k_\pi$ of the drop and increment rows of $\widehat{\mathcal M}_i$ lie in $\Lambda_p$, with coordinates $\xi$ and $\xi'$. Put \[ W'=\xi\times\xi',\qquad w=d_\pi\times k_\pi. \] The entries of $w$ are, up to sign, the minors $D_{jl}$ with $j,l$ pivot columns. The next lemma shows that $W'=\Upsilon_pW$ for a constant matrix $\Upsilon_p$. We use $W'$ rather than $\Upsilon_pW$ because $W'$ is visibly integral, while $\Upsilon_p$ has rational entries. \begin{lemma}[Coordinates in the reduced basis]\label{lem:latticecoords} There are matrices $\mathcal T_p,\Upsilon_p\in\mathrm{GL}_3(\mathbb Q)$, depending only on $p$, such that at every good start with pattern $p$ \[ (s_1,s_2,s_3)=\mathcal T_p\xi',\qquad W'=\Upsilon_pW,\qquad |\xi'|_\infty\le\frac{3H}{\lambda},\qquad |W'|_\infty\le\frac{8S}{3\lambda^2}. \] \end{lemma} \begin{proof} By Lemma~\ref{lem:lift}, $p_\pi(k_0,k_1,k_2)=\mathcal Lk_\pi$, where $\mathcal L$ has rows $\mathbf L_0,\mathbf L_1,\mathbf L_2$ and $\det\mathcal L=p_\pi^2p_{012}\ne0$, since $p_{012}=N_0=I_4(i)\ge1$ at a good start. With $k_\pi=(\mathbf f_1\,\mathbf f_2\,\mathbf f_3)\xi'$ and the cumulative sums $s_j=k_0+\dots+k_{j-1}$, this gives $\mathcal T_p$. Since $|k_\pi|^2\le3H^2$ and $|\mathbf f_i|\ge\lambda$, Lemma~\ref{lem:reduce} gives $|\xi'_i|\le(8/3)H/\lambda\le3H/\lambda$. For the curvature, $W=(D_{12},-D_{02},D_{01})=(d_0,d_1,d_2)\times(k_0,k_1,k_2)$, and $p_\pi(d_0,d_1,d_2)=\mathcal Ld_\pi$. Let $\operatorname{Cof}(\mathcal L)$ have rows $\mathbf L_1\times \mathbf L_2$, $\mathbf L_2\times \mathbf L_0$, $\mathbf L_0\times \mathbf L_1$; its determinant is $(\det\mathcal L)^2\ne0$. The Binet--Cauchy identity $(\mathbf L\cdot x)(\mathbf L'\cdot y)-(\mathbf L'\cdot x)(\mathbf L\cdot y)=(\mathbf L\times\mathbf L')\cdot(x\times y)$, applied to pairs of rows of $\mathcal L$, gives $(\mathcal Lx)\times(\mathcal Ly)=\operatorname{Cof}(\mathcal L)(x\times y)$, so $p_\pi^2W=\operatorname{Cof}(\mathcal L)\,w$. Lemma~\ref{lem:exterior} gives $(\det\Lambda_p)W'=(\mathbf f_1\,\mathbf f_2\,\mathbf f_3)^{\mathsf T}w$. Together, $W'=p_\pi^2(\det\Lambda_p)^{-1}(\mathbf f_1\,\mathbf f_2\,\mathbf f_3)^{\mathsf T}\operatorname{Cof}(\mathcal L)^{-1}W$, which defines $\Upsilon_p$. Finally $|w|^2\le3S^2$ by Lemma~\ref{lem:jointheights}, and Lemma~\ref{lem:exterior} gives $3\lambda^2|W'_i|\le8S$. \end{proof} \subsection{The lattice graph}\label{sec:latticegraph} On a retained nonexceptional component $C$ of degree $d\ge4$ of a pattern $p$, regard $W'=\Upsilon_pW$ as a vector of rational functions on $C$, and let $\Gamma'_{m,n}$ be the image of the graph of \[ \bigl(s_1,s_2,s_3,(W'_0)^m,(W'_1)^m,(W'_2)^m,J^n\bigr) \] under the linear map that replaces the nodes $s$ by $\xi'=\mathcal T_p^{-1}s$. \begin{lemma}[Degree of the lattice graph]\label{lem:latticedegree} The degree $\delta'$ of $\Gamma'_{m,n}$ satisfies $\delta_{\min}\le\delta'\le C_{\rm gr}(m+n)d$. \end{lemma} \begin{proof} An invertible linear change of the node coordinates is a linear automorphism of $\mathbb A^7$, so it preserves the affine Hilbert function, and we may keep the nodes $s$. The proof of Lemma~\ref{lem:jointpowereddegree}, with Appendix~\ref{app:degree}, uses the curvature coordinates only through the following facts. \begin{enumerate} \item At every point $P$ over infinity, $\operatorname{ord}_PW_j\ge3e_P/2>0$ for each $j$ (Corollary~\ref{cor:joint-curvature-orders}). \item The pole envelope $\mathcal F$ is supported over the affine part of $C$, and $\deg\mathcal F\ge3d/2+1$ (Lemma~\ref{lem:jointpoledegree}). \item Some rational linear combination of the seven graph coordinates has pole divisor $\frac{5n}2E_\infty+m\mathcal F$; its construction uses only this envelope. \item The $W_j$ have a common denominator $\Omega$ and numerators of degree at most $C_W$ (Appendix~\ref{app:degree}). \end{enumerate} Each of these is unchanged when $W$ is replaced by $W'=\Upsilon_pW$ for a constant invertible matrix $\Upsilon_p$. Each $W'_j$ is a constant combination of the $W_l$, and each $W_l$ is a constant combination of the $W'_j$, so for every point $P$ \[ \min_j\operatorname{ord}_PW'_j=\min_l\operatorname{ord}_P W_l . \] This gives (1) for $W'$, and it shows that the pole envelope of $W'$ is $\mathcal F$, which gives (2) and (3). The numerators of $W'$ over $\Omega$ are constant combinations of those of $W$, which gives (4). The proof of Lemma~\ref{lem:jointpowereddegree} therefore applies unchanged. \end{proof} \subsection{The window bound and the optimised exponent}\label{sec:latticecount} \begin{proposition}[Lattice window bound]\label{prop:latticewindow} Fix positive integers $m,n$ and $\eta>0$. For a window run in $[A,2A)$ with $T\ge36$ satisfying~\eqref{eq:jointscale}, \[ T\ll_{m,n,\eta}a^\eta\left(X^5+X^4H^{1/2}+X^{5-1/(3\delta_{\min})}H^{1/\delta_{\min}} +X^{5-2m/(3\delta_{\min})}S^{m/\delta_{\min}}+X^5Y^{n/\delta_{\min}}\right). \] \end{proposition} \begin{proof} The proof of Proposition~\ref{prop:jointwindow} applies, except for the remaining components of the nonexceptional patterns. For such a component of a pattern $p$, the good starts give integer points $(\xi',(W'_0)^m,(W'_1)^m,(W'_2)^m,J^n)$ of $\Gamma'_{m,n}$, and distinct node triples give distinct points because $\xi'$ determines $s$. By Lemma~\ref{lem:latticecoords} they lie in the box of side \[ \mathcal B_p=\max\Bigl(1,\frac{3H}{\lambda(p)},\Bigl(\frac{8S}{3\lambda(p)^2}\Bigr)^m,Y^n\Bigr). \] By Lemma~\ref{lem:latticedegree} and~\eqref{eq:jointexternal}, there are $O_{m,n,\eta}(a^\eta\mathcal B_p^{1/\delta_{\min}})$ of them, and \[ \mathcal B_p^{1/\delta_{\min}}\le1+3H^{1/\delta_{\min}}\lambda(p)^{-1/\delta_{\min}}+8S^{m/\delta_{\min}}\lambda(p)^{-2m/\delta_{\min}}+Y^{n/\delta_{\min}}. \] Sum over the $O_\eta(a^\eta X^5)$ patterns. Since $\delta_{\min}\ge2m$, both $1/\delta_{\min}$ and $2m/\delta_{\min}$ lie in $[0,1]$, and Lemma~\ref{lem:weights}, with $\tau_{\max}(X)=a^{o(1)}$, gives $\sum_p\lambda(p)^{-1/\delta_{\min}}\ll a^\eta X^{5-1/(3\delta_{\min})}$ and $\sum_p\lambda(p)^{-2m/\delta_{\min}}\ll a^\eta X^{5-2m/(3\delta_{\min})}$. \end{proof} \begin{corollary}\label{cor:latticeexponent} For fixed positive integers $m,n$ and every $\varepsilon>0$, \begin{gather*} P(a,b)\ll_{m,n,\varepsilon}a^{E'(m,n)+\varepsilon},\\ E'(m,n)=\max\left(\frac5{17},\ \frac{45\delta_{\min}}{153\delta_{\min}-1},\ \frac{45\delta_{\min}-3m}{153\delta_{\min}-11m},\ \frac{15\delta_{\min}+6n}{51\delta_{\min}+20n}\right), \end{gather*} where $\delta_{\min}=10n+7m$. In particular $E'(3,2)=153/520$. \end{corollary} \begin{proof} Argue as in the proof of Corollary~\ref{cor:jointexponent}. The first two terms and the windows in which~\eqref{eq:jointscale} fails give the exponent $5/17$. For the third term, $T^{3\delta_{\min}}\ll a^{O(\eta)}X^{15\delta_{\min}-1}H^3$, and \eqref{eq:jointscales} gives $T^{153\delta_{\min}-1}\ll a^{45\delta_{\min}+O(\eta)}$. For the fourth, $T^{3\delta_{\min}}\ll a^{O(\eta)}X^{15\delta_{\min}-2m}S^{3m}$ gives $T^{153\delta_{\min}-11m}\ll a^{45\delta_{\min}-3m+O(\eta)}$. For the fifth, $T^{\delta_{\min}}\ll a^{O(\eta)}X^{5\delta_{\min}}Y^n$ gives $T^{51\delta_{\min}+20n}\ll a^{15\delta_{\min}+6n+O(\eta)}$. For $(m,n)=(3,2)$, $\delta_{\min}=41$ and the last three fractions are $1845/6272$, $153/520$ and $627/2131$. \end{proof} \begin{proof}[Proof of Theorem~\ref{thm:lattice}] Set $r=n/m$. The last two fractions in $E'(m,n)$ become \[ E'_S(r)=\frac{450r+312}{1530r+1060},\qquad E_Y(r)=\frac{156r+105}{530r+357}, \] where $E_Y$ is the same function as in the proof of Theorem~\ref{thm:joint}. The first decreases and the second increases on $r>0$. Their crossing satisfies $15r^2=7$, so $r_*=\sqrt{105}/15$, and their common value is $\gamma_*=471/1559-6\sqrt{105}/7795$. The fraction $45\delta_{\min}/(153\delta_{\min}-1)$ decreases in $\delta_{\min}$, and it is below $\gamma_*$ once $\delta_{\min}>\gamma_*/(153\gamma_*-45)\approx17.2$; also $5/17<\gamma_*$. Choose a positive rational $r$ close to $r_*$ with $\max(E'_S(r),E_Y(r))<\gamma_*+\varepsilon/2$, and write $r=n/m$ with $\delta_{\min}=10n+7m\ge18$, scaling $m$ and $n$ by a common factor if necessary. Then $45\delta_{\min}/(153\delta_{\min}-1)<\gamma_*$, so $E'(m,n)<\gamma_*+\varepsilon/2$, and Corollary~\ref{cor:latticeexponent} with loss $\varepsilon/2$ gives the theorem. \end{proof} \section{Exact polar projection and the Hilbert sieve}\label{sec:polar} The curvature vector $W$ is a multiple of an affine-linear vector $G\mathbf k+\ell$ in the increments (Proposition~\ref{prop:polaridentity}). Away from the single common zero of $G\mathbf k+\ell$, every zero of $J$ is therefore a pole of $W$, and this raises the graph degree provided that (i) little cancellation occurs at that base point and (ii) the pattern curve is irreducible, of the full degree $24$. A local intersection calculation gives~(i), and a sieve for branches at infinity gives~(ii). We then count the branch-bad and degenerate patterns that these steps exclude, and obtain Theorem~\ref{thm:polar}. \subsection{An exact identity at orbit states} Recall the normalised parameters~\eqref{eq:jointbar}, with $\rho,\varphi>0>\chi$ and $\gamma=(\rho,-\rho-\varphi,\varphi-\chi,\chi-1,1)$; primes indicate the next state. We retain the notation $N_0$, $\Psi$, $P_4$, $R_4$ and $D_{jl}$ from Section~\ref{sec:joint}. Write $\mathbf k=(k_0,k_1,k_2)^{\mathsf T}$ and $\mathbf d=(d_0,d_1,d_2)^{\mathsf T}$, so that $W=(D_{12},-D_{02},D_{01})^{\mathsf T}=\mathbf d\times\mathbf k$. The increment and drop rows of the pattern matrix satisfy the same linear relations (Lemma~\ref{lem:pattern}): the cofactor relations at $i$ and $i+1$ give \[ k_3=\rho k_0-\varphi k_1-\chi k_2,\qquad k_4=\rho'k_1-\varphi'k_2-\chi'k_3, \] and the same formulas express $d_3,d_4$ in terms of $\mathbf d$. For $\mathbf y\in\mathbb Q^3$ extend $\mathbf y$ to $(y_0,\dots,y_4)$ by these formulas, and let $\langle\mathbf y\rangle_j=y_0+\dots+y_{j-1}$ be its partial sums, so that $\langle\mathbf k\rangle_j=s_j$ and $\langle\mathbf d\rangle_j=b_i-b_{i+j}$. Define $G$ and $\ell$ by \[ \sum_{j=0}^4\gamma_j\langle\mathbf y\rangle_j^2=\mathbf y^{\mathsf T}G\mathbf y,\qquad \sum_{j=0}^4\gamma_jy_j=\ell^{\mathsf T}\mathbf y. \] Explicitly, \[ G=\begin{pmatrix} \rho(\rho+1)&-\rho(\varphi-1)&-\rho(\chi-1)\\ -\rho(\varphi-1)&\varphi(\varphi-1)&\varphi(\chi-1)\\ -\rho(\chi-1)&\varphi(\chi-1)&\chi(\chi-1) \end{pmatrix},\qquad \ell=\begin{pmatrix} \rho(\chi-\chi')\\ \rho'-\rho-\varphi(\chi-\chi')\\ \varphi-\varphi'-\chi(\chi-\chi') \end{pmatrix}, \] and $\det G=\rho(\rho+\varphi)(\varphi-\chi)(\chi-1)\ne0$. The pattern quadratic is $f=\sum_j\gamma_j(s_j^2+k_j)=\mathbf k^{\mathsf T}G\mathbf k+\ell^{\mathsf T}\mathbf k$. Put \[ V=G\mathbf k+\ell,\qquad\text{so that}\qquad f=\mathbf k\cdot V. \] The linear form $\mathbf y\mapsto\mathbf y\cdot V$ is the polarisation of $f$ at $\mathbf k$: it is $\mathbf y^{\mathsf T}G\mathbf k+\ell^{\mathsf T}\mathbf y$, and it recovers $f$ at $\mathbf y=\mathbf k$. We call $V$ the \emph{polar vector}. \begin{proposition}[Polar identity]\label{prop:polaridentity} At every state $i$ with $i+70$, $W\ne0$, so $\mathbf d$ and $\mathbf k$ are independent and $V$ is a multiple of $W=\mathbf d\times\mathbf k$. To find the multiple, put $r_j=k_j(s_j+s_{j+1})+k_{j+1}$. Substituting the definitions of $s_4$, $k_0,\dots,k_4$, $r_0,r_1,r_2$, $G$, $\ell$ and $\Psi$ and expanding gives the polynomial identity \[ V\cdot(r_0,r_1,r_2)-\Psi=-(s_4+1+\chi-\chi')f \] in $s_1,s_2,s_3$ and the six normalised parameters; both sides are cubic in the nodes. At an orbit state $f=0$, so $V\cdot r=\Psi$ while $W\cdot r=N_0$. Thus $\Psi W=N_0V$. Now use $J=N_0\Psi$ and $\Psi>0$. \end{proof} There is one point where this fails: at the common zero of the three forms, a zero of $J$ need not be a pole of $W$, and every pattern curve passes through that point. In projective coordinates $[\mathbf k:k_h]$, the three homogeneous forms $G\mathbf k+\ell k_h$ have a unique common zero, the finite point $\mathbf k_*=-G^{-1}\ell$. Since $V(\mathbf k_*)=0$, the identities $f=\mathbf k\cdot V$ and $V\cdot r-\Psi=-(s_4+1+\chi-\chi')f$ from the proof of Proposition~\ref{prop:polaridentity} give $f(\mathbf k_*)=\Psi(\mathbf k_*)=0$. The point also lies on the fixed-dividend curve for every $a$. Indeed, its nodes are \[ s_0^*=0,\qquad s_j^*=\frac{\gamma'_{j-1}-\gamma_{j-1}}{\gamma_j}\ (1\le j\le3), \qquad s_4^*=\chi'-\chi, \] as one checks by substituting them in $V$. Divide $Z(x)=x R_4(x)$ by $P_4(x)$ in the Newton basis $F_0,\dots,F_4$ at $s_0,\dots,s_3$, with $F_5=F_4(x-s_4)$. Since $s_0=0$, we have $xN_j=F_{j+1}$ for the Newton polynomials $N_j$ of $R_4$, so $Z=\sum_j\gamma'_jF_{j+1}$, while $xF_j=F_{j+1}+s_jF_j$. Hence, with $c_Z=\chi'-\chi-s_4$, the quotient is $x+c_Z$ and the remainder $Z-(x+c_Z)P_4$ has the Newton coefficients \[ -c_Z\gamma_0,\qquad \gamma'_{j-1}-\gamma_{j-1}-\gamma_j(s_j+c_Z)\quad(1\le j\le3); \] the coefficient of $F_4$ is $\gamma'_3-\gamma_3-s_4-c_Z=0$. They all vanish at $\mathbf k_*$, so $Z_*=x P_{4,*}$ and $N_0\operatorname{Res}(P_{4,*},Z_*)-a\Psi(\mathbf k_*)^4=0$. Hence $\mathbf k_*$ lies on every pattern curve, and Lemma~\ref{lem:polarbase} below bounds the loss there. We need $JW=N_0^2V$ as an identity in the function field, not only at good starts, so we add the three cleared polar identities to the cuts $\mathcal C_N,\mathcal C_R$ of Section~\ref{sec:jointrecon}. They have bounded degree, so, as in Lemma~\ref{lem:jointcuts}, a component on which one of them does not vanish identically contains $O(1)$ good starts. Throughout this section, \emph{retained} means that all five cuts vanish identically; on a retained component, \[ JW=N_0^2V \] holds in the function field. \subsection{The base point and the graph degree} For an integral component $C$ of a pattern curve, the \emph{base divisor} of $V$ is \[ \sum_P\Bigl(\min_j\operatorname{ord}_PV_j\Bigr)P, \] summed over the affine points $P$ of the normalisation of $C$; its degree weights $P$ by $[\mathbb Q(P):\mathbb Q]$. Since $V=G(\mathbf k-\mathbf k_*)$, it is supported over $\mathbf k_*$, the only common zero of the homogenised forms. \begin{lemma}[The base divisor]\label{lem:polarbase} There is a fixed rational polynomial $\Theta$ in the ten minor coordinates, independent of $a$ and not identically zero on the Pl\"ucker cone, with the following property. For every pattern with $\Theta\ne0$ and every integral component $C$ of the pattern curve, the base divisor of $V$ on $C$ has degree at most four. \end{lemma} \begin{proof} \emph{Step 1: the quartic initial form.} We work on the chart where $N_0N_1\ne0$, so that the normalised parameters are defined, and \[ \gamma_1\gamma_2\gamma_3\cdot\det(G)\cdot G_{00}\cdot\ell_0\ne0. \] Here $\det G\ne0$ defines the base point $\mathbf k_*$, and $\gamma_1\gamma_2\gamma_3\ne0$ defines its nodes below. Since $\nabla f(\mathbf k_*)=-\ell$ and $\ell_0\ne0$, the quadric is smooth at $\mathbf k_*$. Take $\xi_1=k_1-k_{*,1}$ and $\xi_2=k_2-k_{*,2}$ as local coordinates. Since $G_{00}\ne0$, $f$ is a genuine quadratic in $k_0$, and $\ell_0\ne0$ makes $\mathbf k_*$ a simple root of it; so we can solve $f=0$ for $k_0$ by formal power series. Let $Z_1(x;\xi_1,\xi_2)$ be the linear part of the remainder of $Z$ modulo $P_4$ computed after Proposition~\ref{prop:polaridentity}, and let $\Psi_1(\xi_1,\xi_2)$ be the linear part of $\Psi$ on this tangent plane. Let $F=N_0\operatorname{Res}(P_4,Z)-a\Psi^4$ be the fixed-dividend equation, restricted to the quadric $f=0$. It has order at least four at $\mathbf k_*$, with quartic initial form \begin{equation}\label{eq:polarinitial} N_0\mathcal R_*(\xi_1,\xi_2)-a\Psi_1(\xi_1,\xi_2)^4,\qquad \mathcal R_*(\xi_1,\xi_2)=\operatorname{Res}_{x}(P_{4,*},Z_1). \end{equation} To see that only first derivatives enter, compute the resultant as a $4\times4$ B\'ezout determinant. Each row vanishes at $\mathbf k_*$, so its term of degree four uses exactly the linear part of every row. Higher terms in the formal solution of $f=0$ cannot change~\eqref{eq:polarinitial}. \emph{Step 2: the polynomial $\Theta$.} Consider the rational function of the pattern parameters \[ M=\mathcal R_*(1,0)\Psi_1(0,1)^4-\mathcal R_*(0,1)\Psi_1(1,0)^4. \] If $M\ne0$ and $N_0\ne0$, the two axis coefficients in \eqref{eq:polarinitial} cannot both vanish, for any $a$: if they did, multiplying the two equations crosswise would give $N_0M=0$. Now write $M$, the chart conditions and $N_0N_1$ as rational functions of the ten minor coordinates, by~\eqref{eq:jointbar}, each in lowest terms, and let $\Theta$ be the product of all their numerators and denominators. Then $\Theta\ne0$ implies that each of these functions is defined and nonzero. To see that $\Theta$ is not identically zero on the Pl\"ucker cone, take the maximal minors of \[ \begin{pmatrix}1&0&0&2&10\\0&1&0&-5&-22\\0&0&1&3&9\end{pmatrix}, \] which give $(\rho,\varphi,\chi,\rho',\varphi',\chi')=(2,5,-3,3,6,-5)$ and $\mathbf k_*=(-1/7,-3/28,-1/2)$. There the chart conditions hold, and Appendix~\ref{app:polarcertificates} computes the tangent frame, the quartic and the first derivatives, giving \[ M=\frac{26291112152499}{60236288}\ne0. \] \emph{Step 3: from the initial form to the base divisor.} Let $\mathcal O$ be the local ring of the smooth quadric at $\mathbf k_*$, with $F$ as in Step~1. Choose $g=\xi_1$ or $g=\xi_2$ so that the complementary axis in \eqref{eq:polarinitial} has nonzero coefficient. The completion of $\mathcal O/(g)$ is a power-series ring in one variable, in which $F$ has order exactly four. Consequently $\dim_{\mathbb Q}\mathcal O/(F,g)=4$. If $C$ passes through $\mathbf k_*$, its local ring $\mathcal O_C=\mathcal O/I_C$ is a quotient with $F\in I_C$, so \[ \dim_{\mathbb Q}\mathcal O_C/g\mathcal O_C\le4. \] In particular, $g$ is nonzero on this one-dimensional integral local ring. Let $\overline{\mathcal O}_C$ be its finite normalisation. The quotient $\overline{\mathcal O}_C/\mathcal O_C$ is finite-dimensional over $\mathbb Q$. Apply multiplication by $g$ to $0\to\mathcal O_C\to\overline{\mathcal O}_C\to\overline{\mathcal O}_C/\mathcal O_C\to0$. Multiplication is injective on the first two rings, and its kernel and cokernel on the finite-dimensional quotient have equal dimensions. The resulting exact sequence therefore gives \[ \dim_{\mathbb Q}\overline{\mathcal O}_C/g\overline{\mathcal O}_C =\dim_{\mathbb Q}\mathcal O_C/g\mathcal O_C =\sum_{P\mid\mathbf k_*}[\mathbb Q(P):\mathbb Q]\operatorname{ord}_P g. \] The final equality follows by factoring the ideal $(g)$ in the semilocal Dedekind ring $\overline{\mathcal O}_C$. Since $G$ is invertible, the coordinates of $V=G(\mathbf k-\mathbf k_*)$ generate the centred maximal ideal. Their minimum order at each $P$ is at most $\operatorname{ord}_P g$. The weighted sum of these minimum orders, which is the degree of the base divisor, is therefore at most four. A component missing $\mathbf k_*$ has zero base divisor. \end{proof} Call a pattern \emph{degenerate} if $\Theta=0$ at its minor vector. \begin{lemma}[The polar graph degree]\label{lem:polargraphdegree} Let $\Theta\ne0$, and let $C$ be a retained nonexceptional component of degree $24$. Then the powered graph $\Gamma_{m,n}$ of $C$, and the lattice graph $\Gamma'_{m,n}$ of Section~\ref{sec:lattice}, have degree at least $\delta_{\rm pol}:=60n+56m$. \end{lemma} \begin{proof} At each point at infinity, $\operatorname{ord}_P J=-5e_P/2$, by Corollary~\ref{cor:jointparity}, and $\sum e_P[\mathbb Q(P):\mathbb Q]=24$. Thus $J$ has pole divisor, and hence zero divisor, of degree $60$; all its zeros are affine. At an affine point $P$ the coordinates of $V$ are regular, and $W=N_0^2V/J$ gives \[ \max_j\bigl(-\operatorname{ord}_PW_j\bigr) =\operatorname{ord}_PJ-\min_j\operatorname{ord}_PV_j, \] where the subtracted term is the multiplicity of $P$ in the base divisor. Summing over affine points, Lemma~\ref{lem:polarbase} gives an affine curvature pole envelope of degree at least $60-4=56$, in place of the bound $3\cdot24/2+1=37$ of Lemma~\ref{lem:jointpoledegree}. These poles are disjoint from the poles of $J$ at infinity, so the pole formula of Lemma~\ref{lem:jointpowereddegree} gives \[ \deg\Gamma_{m,n}\ge\frac{5n}2\cdot24+56m=60n+56m. \] An invertible constant change of curvature coordinates preserves the minimum valuation, so the same bound holds for $\Gamma'_{m,n}$. \end{proof} It remains to show that components of degree less than $24$ occur for relatively few patterns. Since the pattern curve has total degree at most $24$ (Lemma~\ref{lem:jointcurve}), a component of degree $24$ is the whole curve: we must show that the pattern curve is usually irreducible over $\mathbb Q$. \subsection{An explicit label for a branch at infinity} The plan is as follows. At a branch at infinity of a nonexceptional component, the residue field contains the ratio $t$ of two leading nodes, which is a root of a fixed sextic, and a square root $\beta$ coming from the fixed-dividend equation. If the minimal polynomial of $t+c\beta$ has degree twelve for some slope $c$, every branch at infinity has residue degree at least twelve; since its multiplicity $e$ is even, the component then has the maximal degree $24$. The \emph{label} below is a polynomial whose irreducibility certifies this, and which can be sieved over patterns. Let $P$ be a point above infinity on the normalisation of a nonexceptional component. The five leading nodes are distinct by Lemma~\ref{lem:jointleading}. Scale them to $(0,1,t,y,z)$. The moment equations~\eqref{eq:joint-leading-moments} of orders zero and one give $\gamma_0+\gamma_1+\gamma_2+\gamma_3+1=0$ and \[ z=-\gamma_1-\gamma_2t-\gamma_3y. \] Those of orders two and three become \[ Q_2(t,y)=\gamma_1+\gamma_2t^2+\gamma_3y^2+z^2=0,\qquad Q_3(t,y)=\gamma_1+\gamma_2t^3+\gamma_3y^3+z^3=0. \] Define the universal sextic $E_\gamma(t)$ by the polynomial identity \begin{equation}\label{eq:branchsextic} \operatorname{Res}_y(Q_2,Q_3)=\gamma_3^2(\gamma_3+1)E_\gamma(t). \end{equation} The quotient on the right is a polynomial over $\mathbb Z[\gamma_1,\gamma_2,\gamma_3]$, of degree six in $t$. At an orbit pattern $\gamma_3=\chi-1<-1$, so $\gamma_3^2(\gamma_3+1)\ne0$. Cancelling this factor in the resultant and linear subresultant identities gives $E_\gamma(t)=0$ and $\mathfrak d(t)y+\mathfrak n(t)=0$, where \begin{align*} \mathfrak d(t)&=(\gamma_3-1)\bigl(\gamma_2(\gamma_2+\gamma_3+1)t^2 +2\gamma_1\gamma_2t+\gamma_1(\gamma_1+\gamma_3+1)\bigr),\\ \mathfrak n(t)&=\gamma_2(\gamma_2+1)(\gamma_2+\gamma_3+1)t^3 +\gamma_1\gamma_2(3\gamma_2+\gamma_3+2)t^2\\ &\quad+\gamma_1\gamma_2(3\gamma_1+\gamma_3+2)t +\gamma_1(\gamma_1+1)(\gamma_1+\gamma_3+1). \end{align*} These are polynomial identities, so the cleared relation remains valid when a specialised denominator vanishes. Write \[ \mathcal V_4=t y(t-1)(y-1)(y-t),\qquad \mathcal V_5=z(z-1)(z-t)(z-y). \] By~\eqref{eq:joint-resultant-leading}, the value of the leading part $[\mathcal R]_{10}$ at these nodes is $\mathcal R_0=\gamma_0\gamma_1\gamma_2\gamma_3\mathcal V_4\mathcal V_5$. The four moment equations give the barycentric identity \begin{equation}\label{eq:branchbarycentric} \mathcal R_0\mathcal V_4=\mathcal V_5^4. \end{equation} Indeed, write the nodes as $z_0,\dots,z_3,z_4=z$, with $\gamma_4=1$. Taking $g=\prod_{l<4,\,l\ne j}(x-z_l)$ in $\sum_k\gamma_kg(z_k)=0$ (valid since $\deg g\le3$) gives $\gamma_j\prod_{l<4,\,l\ne j}(z_j-z_l)=-\prod_{l<4,\,l\ne j}(z-z_l)$, and multiplying by $z_j-z$ gives $\gamma_j\prod_{l\le4,\,l\ne j}(z_j-z_l)=\prod_{l<4}(z-z_l)=\mathcal V_5$ for $0\le j<4$. In the product of these four identities each pair $l0$, the number of integral points of the Pl\"ucker cone of coordinate height at most $X\ge1$ satisfying $\Theta=0$ is \[ O_{\Theta,\eta}(X^{14/3+\eta}). \] The count includes nonprimitive vectors and the zero vector. \end{proposition} \begin{proof} Choose a minor of maximal absolute value $\kappa>0$ and record its sign. The six one-column replacements form $\mathbf u,\mathbf v\in[-\kappa,\kappa]^3$, and the other coordinates are signed entries of $(\mathbf u\times \mathbf v)/\kappa$. There are twenty signed pivot charts. In each chart, clearing denominators in $\Theta$ gives a nonzero polynomial $\Theta_\pi(\kappa,\mathbf u,\mathbf v)$. Indeed, the product of the pivot minor and $\Theta$ at the minor vector of $\mathcal M_0$ is a nonzero polynomial in the matrix entries, so it is nonzero at some rational matrix; every pivot chart meets the nonvanishing locus. Put $g=\gcd(\kappa,\mathbf u)$, ${\bar\kappa}=\kappa/g$ and $\mathbf u_0=\mathbf u/g$. Since $\gcd({\bar\kappa},\mathbf u_0)=1$, the congruence $\mathbf u_0\times \mathbf v\equiv0\pmod {\bar\kappa}$ is equivalent to \[ \mathbf v\in\Lambda:=\mathbb Z\mathbf u_0+{\bar\kappa}\mathbb Z^3. \] This lattice contains ${\bar\kappa}\mathbb Z^3$, so Lemma~\ref{lem:reduce} gives a basis $\mathbf f_1,\mathbf f_2,\mathbf f_3$ of $\Lambda$. We need two bounds on their lengths. \begin{enumerate} \item[(a)] $|\mathbf f_i|\ll {\bar\kappa}$. The vectors ${\bar\kappa}\mathbf e_1,{\bar\kappa}\mathbf e_2,{\bar\kappa}\mathbf e_3$ lie in $\Lambda$ and span a sublattice of full rank, so for each $i$ one of them has a nonzero $i$th coordinate in the basis, and the coordinate bound of Lemma~\ref{lem:reduce} gives $27|\mathbf f_i|^2\le64{\bar\kappa}^2$. \item[(b)] $|\mathbf f_i||\mathbf f_j|\ge {\bar\kappa}\lambda^\perp(\mathbf u_0)$ for $i\ne j$, where $\lambda^\perp(\mathbf u_0)$ is the least sup norm of a nonzero vector of the normal lattice $\Lambda_{\bar\kappa}^\perp=\{z\in\mathbb Z^3:{\bar\kappa}\mid z\cdot\mathbf u_0\}$. Indeed, if $x,y\in\Lambda$ are independent, then $x\times y={\bar\kappa}z$ for a nonzero $z\in\Lambda_{\bar\kappa}^\perp$, so $|x||y|\ge|x\times y|\ge {\bar\kappa}\lambda^\perp(\mathbf u_0)$. \end{enumerate} By Lemma~\ref{lem:reduce}, the vectors $\mathbf v\in\Lambda$ with $|\mathbf v|_\infty\le\kappa$ have basis coordinates in a box with sides $B_i=O(\kappa/|\mathbf f_i|)$, and by~(a) and ${\bar\kappa}\le\kappa$ these sides are $\gg1$. A nonzero polynomial of bounded degree vanishes at $\ll B_1B_2B_3/\min_iB_i$ integer points of such a box (the polynomial grid-zero bound). Applied to a nonzero fibre $\Theta_\pi(\kappa,\mathbf u,\cdot)$ in the basis coordinates, this and~(b) give \begin{equation}\label{eq:polarfiber} \#\{\mathbf v\in\Lambda\cap[-\kappa,\kappa]^3:\Theta_\pi(\kappa,\mathbf u,\mathbf v)=0\} \ll_\Theta\sum_{i0$, and let $\delta_{\rm pol}=60n+56m$. Every window above satisfying~\eqref{eq:jointscale} obeys \begin{equation}\label{eq:polarsix} \begin{split} T\ll_{m,n,\eta}a^\eta\bigl(&X^5+X^4H^{1/2} +X^{14/3}\max(H,S,Y)^{1/17}\\ &+X^{5-1/(3\delta_{\rm pol})}H^{1/\delta_{\rm pol}} +X^{5-2m/(3\delta_{\rm pol})}S^{m/\delta_{\rm pol}}+X^5Y^{n/\delta_{\rm pol}}\bigr). \end{split} \end{equation} \end{proposition} \begin{proof} The earlier exceptional patterns, conics and non-retained components contribute $X^5+X^4H^{1/2}$, as in Proposition~\ref{prop:latticewindow}. Among the remaining patterns, Lemma~\ref{lem:branchpatterns} and Proposition~\ref{prop:polarpatterns} bound those that are branch-bad or degenerate by $O_\eta(a^\eta X^{14/3})$; orbit patterns have $p_{012}=N_0\ge1$, as Lemma~\ref{lem:branchpatterns} requires. Here $X\ll a^3$, so the extra $X^\eta$ loss is absorbed into $a^\eta$. For these patterns use the unpowered graph of Section~\ref{sec:joint} ($m=n=1$, so $\delta_{\min}=17$), whose box has size $\max(H,S,Y)$; this gives the third term of~\eqref{eq:polarsix}. For each remaining retained component, Lemma~\ref{lem:branchlabel} gives degree $24$, and Lemma~\ref{lem:polargraphdegree} gives graph degree at least $\delta_{\rm pol}$. Its upper degree is bounded in terms of $m,n$ by Lemma~\ref{lem:latticedegree}. The coefficient-uniform curve bound and Lemma~\ref{lem:latticecoords} therefore give, for a pattern with shortest lattice length $\lambda$, a contribution \[ \ll_{m,n,\eta}a^\eta\bigl((H/\lambda)^{1/\delta_{\rm pol}}+(S/\lambda^2)^{m/\delta_{\rm pol}}+Y^{n/\delta_{\rm pol}}\bigr). \] Summing with Lemma~\ref{lem:weights}, at exponents $1/\delta_{\rm pol}$ and $2m/\delta_{\rm pol}$, produces the last three terms. \end{proof} \begin{theorem}[Polar bound]\label{thm:polarconditional} For every fixed pair of positive integers $m,n$ and every $\varepsilon>0$, \[ P(a,b)\ll_{m,n,\varepsilon} a^{E_{\rm pol}(m,n)+\varepsilon} \quad(028a$, or failing~\eqref{eq:jointscale}, are handled as in the proof of Corollary~\ref{cor:jointexponent} and give at most $5/17$; dyadic summation and the factor $a^\eta$ absorb the remaining losses. For $(m,n)=(3,2)$, $\delta_{\rm pol}=288$ and the last three fractions are $12960/44063$, $4317/14677$ and $1083/3682$. For optimisation put $r=n/m$. The curvature and rank-five fractions become \[ E_S^{\rm pol}(r)=\frac{2700r+2517}{9180r+8557},\qquad E_Y^{\rm pol}(r)=\frac{906r+840}{3080r+2856}. \] The first decreases and the second increases. They cross at $r_*=(\sqrt{82849}-47)/360$, with common value $\beta_*$. Approximate $r_*$ by positive rationals and scale the corresponding numerator and denominator until $45\delta_{\rm pol}/(153\delta_{\rm pol}-1)<\beta_*$. The arbitrarily small exponent loss absorbs the approximation, proving Theorem~\ref{thm:polar}. \end{proof} \section{Rises in the quotient increments}\label{sec:rises} Throughout this section $k_i=q_{i+1}-q_i\ge1$, $d_i=b_i-b_{i+1}\ge1$, and a \emph{rise} is an index $0\le i\le N-3$ with $k_ix_1>\dots>x_6\ge0$ satisfy $x_j(q+jh)+x_{j+1}=a$ for $0\le j\le5$. Then $q^4\le 324\,h^3a$. \end{lemma} \begin{proof} Let $f_j=x_j-x_{j+1}$, and let $E=(f_1-f_2)h$ and $F=(f_2-f_3)h$ be the curvatures of the blocks starting at $x_1$ and $x_2$ (all their increments equal $h$). With $U=f_0-2f_1+f_2$, the division equations $\mathcal E_j\colon x_j(q+jh)+x_{j+1}-a=0$ give the exact identity \[ qhU=(3h-1)E+F,\qquad\text{namely}\qquad qhU-(3h-1)E-F=h(\mathcal E_0-3\mathcal E_1+3\mathcal E_2-\mathcal E_3). \] This is the case $k_0=k_1=k_2=k_3=h$ of Lemma~\ref{lem:six}, where $L=2h^3U$. By Lemma~\ref{lem:curv}, $E,F\ge1$, so the integer $U$ is at least $1$. Now bound $E$ and $F$. Subtracting consecutive division equations gives $q_jf_j\le hx_{j+1}$, where $q_j=q+jh$. Since $x_{j+1}q_{j+1}\le a$, this yields $q^2f_j\le ha$ for $1\le j\le4$. By Lemma~\ref{lem:size}, $Ex_3\le(h+1)(f_1+f_2+f_3)^2\le 9h^2(h+1)a^2/q^4$. Also $a0$, $d_{i+1}k_i0$ and $K\ge0$. Then \[ \sum_{ka$, part~(2) gives $T-1\le a/A<6\le30A^{1/3}$ instead of part~(3). Lemma~\ref{lem:geom} gives \[ \sum_k\min(\sqrt{8a}\,2^{-k/2},\sqrt2\,2^{k/2})\ll(\sqrt{8a}\sqrt2)^{1/2}\ll a^{1/4}. \] It also gives $\sum_k\min(a2^{-k},30\cdot2^{k/3})\ll a^{1/4}$. Since $\log_2a+1\ll a^{1/4}$, summing over $k$ gives the theorem. \end{proof} \begin{remark} By Theorem~\ref{thm:rises}, an orbit with $N\ge a^\theta$, $\theta>1/4$, must have $R\gg a^{2\theta-1/2}$; for $\theta$ near the exponent of Theorem~\ref{thm:polar} this is about $a^{0.088}$. Proposition~\ref{prop:rises}(3) also localises the rises. There is an absolute constant $c>0$ such that if $6A\le a$, $A\le ca^{3\theta}$ and a window run in $[A,2A)$ has $T\ge a^\theta$ terms, then $s\le T/4$, so $\ell\ge T/4$ and the number $r$ of rises in the run satisfies $r+1\gg Aa^{2\theta-1}$. \end{remark} \section{The Lean formalisation}\label{sec:lean} The source repository is \url{https://github.com/jasondavies/pierce-length-bound}. The proof baseline is commit \lean{6da6511cea9f8526054dd5ad60d77164f45de52e}, which is registered in the Palomar registry as \href{https://palomar-registry.org/entry?id=PALOMAR-2026-10-27-000017&version=1}{\lean{PALOMAR-2026-10-27-000017}}, version~1. The development uses Lean~4 \lean{v4.35.0} and Mathlib \lean{v4.35.0}. Every theorem stated in this paper is proved there in full; the one conditional result in the repository is described below. The strongest bound is exported as \begin{quote}\ttfamily\small theorem P\_le\_polar\_optimal :\\ \hspace*{2em}$\forall$ $\varepsilon$ > (0 : $\mathbb R$), $\exists$ C > 0, $\forall$ a b : $\mathbb N$,\\ \hspace*{2em}0 < b $\to$ b < a $\to$ (P a b : $\mathbb R$) $\le$\\ \hspace*{2em}C * (a : $\mathbb R$) \^{} (((41301 : $\mathbb R$) - 3 * Real.sqrt 82849) / 137480 + $\varepsilon$) \end{quote} The quantifier order makes uniformity explicit: $C$ may depend on $\varepsilon$, but not on $a$ or $b$. The function \texttt{P a b} is defined by well-founded recursion, \[ P(a,0)=0,\qquad P(a,b)=1+P(a,a\bmod b)\quad(b>0), \] and counts the positive terms of the zero-indexed orbit, as in Section~\ref{sec:intro}. The rational bound $4317/14677$ is exported separately as \lean{P_le_4317_14677}. Both results are assembled in \lean{PolarProjectionMain} from proved arithmetic, geometric and counting estimates. The repository README gives the correspondence between the other results and their Lean declarations. The affine-curve theorem~\eqref{eq:jointexternal} is imported from the separate \href{https://github.com/jasondavies/ccdn-dimension-growth/tree/bb025e7207f3a35a21b898629f5678b72aa7e44f}{\lean{ccdn-dimension-growth} library at revision \lean{bb025e7}}, which is registered in the Palomar registry as \lean{PALOMAR-2026-10-22-000015}, version~1. That development proves the plane estimate, degree-preserving projection and box rescaling, using the same affine Hilbert degree as this paper. The present repository proves the monic Hilbert irreducibility estimate (Theorem~\ref{thm:monichilbert}) and its application to the branch-label family, so neither counting input is assumed. The repository also contains a conditional refinement of Theorem~\ref{thm:main}, \lean{P_le_loglog}, which proves $P(a,b)\ll a^{3/10}\sqrt{\log\log3a}$ from two explicit hypotheses: the short-sum estimate for the Erd\H{o}s--Hooley function from~\cite{NT}, over intervals $(x,x+y]$ with $y\ge x^{1/4}$, and the mean-value estimate from~\cite{BT}. Their statements include the constants and thresholds; their proofs are not formalised here. This result is weaker than Theorem~\ref{thm:polar} and is not used elsewhere. The proof library contains no \lean{sorry} and uses no \lean{native_decide}. Its axiom audit permits only \lean{propext}, \lean{Classical.choice} and \lean{Quot.sound}, the standard axioms used by Mathlib. Sixteen public statements are compared with independent Mathlib-only specifications, and their proofs are replayed by Lean, NanoDa and con-ron. The specification file \lean{PierceLengthBoundPalomar/Challenge.lean} deliberately contains theorem holes; it is separate from the proved solution. Build instructions, the full theorem map, and the verification commands are recorded in the README. The divisor estimate uses \lean{DivisorPowerBound.lean} from \lean{openai/math}~\cite{OAIMath} under Apache-2.0, with unchanged proof bodies and adapted imports and module visibility. The repository records the source revision and the provenance of its other dependencies. \section{Limits of the method}\label{sec:limits} The polar refinement brings the exponent close to $5/17$, but does not remove that threshold. As explained in Section~\ref{sec:intro}, $5/17$ is the exponent obtained if every pattern carries $O(1)$ starts, and the estimates here never do better than that: the non-retained components and conics contribute $a^{o(1)}$ starts for each of the $X^{5+o(1)}$ patterns, and the exceptional patterns and the windows where the line-exclusion condition~\eqref{eq:jointscale} fails also lead to exponent $5/17$, independently of the coordinate powers $m,n$. The branch-bad and degenerate patterns give only the exponents $717/2440$ and $732/2491$, below this threshold. The improved graph degree gives \[ \beta_*-\frac5{17}=0.00001600826\ldots. \] Increasing the graph degree further can reduce this gap. Going below $5/17$ requires an improvement in the other counting contributions, or a different way to combine the information from successive orbit states. This is a limitation of the present estimates, not a lower bound for the Pierce iteration. The elementary $3/10$ argument has a similar barrier: even with no divisor loss, its two window bounds balance at $A\asymp a^{3/5}$ (Section~\ref{sec:proof310}), so better constants or short-interval divisor estimates alone do not change that exponent. Finally, there is no obvious monotone quantity along an orbit that could replace the window-by-window counting; in particular the curvatures need not decrease. For $a=13242$, the orbit of $255$ begins \[ 255,\ 237,\ 207,\ 201,\ 177,\ 144,\ 138,\ 132,\ldots \] with quotients $51,55,63,65,74,91,95,100,\ldots$ and first five curvatures $24,12,6,111,30$. All these remainders lie in the single window $[128,256)$. The rise bound gives one constraint on the order of the increments, but the present argument does not capture all compatibility conditions along an entire orbit. Shallit's conjectured $O((\log a)^2)$ bound remains open. \appendix \section{Conic components}\label{app:conic} In this appendix we prove Proposition~\ref{prop:jointconic}. Let $C$ be a nonexceptional component of degree two. A component that is not retained already contributes $O(1)$ starts, by Lemma~\ref{lem:jointcuts}. We may therefore assume that the component $C$ is retained. If it contains at most two free-node triples of good starts, there is nothing to prove. In the remaining case we first construct a parameter whose value is an integer at every such triple. \begin{lemma}[A bounded integral parameter]\label{lem:jointconicparameter} Let $C$ be a retained nonexceptional degree-two component containing the free-node triples of at least three good starts. After permuting the three free-node coordinates to $(x,y,z)$, there are an integer $\Delta_c\ne0$ and polynomials $\xi_0,\xi_1,\xi_2\in\mathbb Z[t]$ such that \[ \deg \xi_j\le2,\qquad |\Delta_c|,\ \max_{j,k}|[t^k]\xi_j|\le(aX)^{O(1)}. \] The map \[ t\longmapsto \bigl(\xi_0(t),\xi_1(t),\xi_2(t)\bigr)/\Delta_c \] parametrises $C$ over $\mathbb Q$. Its inverse takes an integer value at every integer point of $C$. \end{lemma} \begin{proof} Every free node of a good start has absolute value at most $a$. Three distinct such triples lie on an integer plane \[ \lambda_zz+\lambda_xx+\lambda_yy+\lambda_1=0 \] with coefficients of size $a^{O(1)}$: take a cross product of two differences as the normal, or, if it vanishes, a nonzero perpendicular vector of the same size. A plane not containing an integral curve of degree two meets it in at most two distinct points. Thus this plane contains $C$. Choose the eliminated coordinate $z$ with $\lambda_z\ne0$. The six rational pattern coordinates~\eqref{eq:jointbar} have common denominator $N_0N_1\ne0$ and integer numerators of size at most $X^2$, so the pattern quadratic $f$ has rational coefficients with numerators and denominators of size $X^{O(1)}$. Substitute $z=-(\lambda_xx+\lambda_yy+\lambda_1)/\lambda_z$ and clear denominators. The resulting plane equation is \begin{equation}\label{eq:jointconicplane} \alpha_c x^2+\beta_c xy+\gamma_c y^2+\ell_xx+\ell_yy+\ell_0=0, \end{equation} with integer coefficients of size $(aX)^{O(1)}$. The restriction of $f$ to the plane is nonzero: otherwise the plane would be a component of the irreducible pattern quadric. It has degree two because it contains $C$, and hence defines $C$ in that plane. The pullback of the hyperplane at infinity to the normalisation of $C$ has degree two. Corollary~\ref{cor:jointparity} says that each of its positive multiplicities is even. Counting residue degrees, there is therefore just one branch over infinity, of multiplicity two and residue degree one. The normalisation map is finite and surjective, so the projective conic meets the line at infinity only at the image of this rational point. Hence the leading binary quadratic in \eqref{eq:jointconicplane} has a single rational zero, of multiplicity two: it is a nonzero rational scalar times the square of a rational linear form. Interchanging $x$ and $y$ if necessary gives \[ \alpha_c\ne0,\qquad \beta_c^2-4\alpha_c\gamma_c=0. \] Set \[ \kappa_c=2\beta_c\ell_x-4\alpha_c\ell_y,\qquad \epsilon_c=\ell_x^2-4\alpha_c\ell_0,\qquad t=2\alpha_c x+\beta_c y+\ell_x. \] Completing the square in \eqref{eq:jointconicplane} gives \begin{equation}\label{eq:jointconicparameter} t^2=\kappa_c y+\epsilon_c. \end{equation} Here $\kappa_c\ne0$. If it were zero, a rational point of $C$ with parameter $t_0$ would give $\epsilon_c=t_0^2$, and the equation would factor as $(t-t_0)(t+t_0)=0$. Since $C$ is irreducible, it would lie in one of these two lines, contradicting its degree. We can therefore solve explicitly: \[ y=\frac{t^2-\epsilon_c}{\kappa_c},\qquad x=\frac{t-\beta_c y-\ell_x}{2\alpha_c},\qquad z=-\frac{\lambda_xx+\lambda_yy+\lambda_1}{\lambda_z}. \] Substitution verifies the conic and plane equations for every rational $t$, and the displayed linear expression in $x,y$ recovers $t$. In particular, $t$ is an integer whenever $(x,y,z)$ is an integer point. Distinct points have distinct parameters. Taking $\Delta_c=2\alpha_c\kappa_c\lambda_z$ clears all three denominators, and all the quantities involved are polynomials of bounded degree in coefficients of size $(aX)^{O(1)}$, which gives the stated bounds. \end{proof} \begin{lemma}[Properness and coefficient height]\label{lem:jointconicproper} In the parameter of Lemma~\ref{lem:jointconicparameter}, write \[ E_0(t)=\frac{F_E(t)}{G_E(t)},\qquad F_E,G_E\in\mathbb Z[t], \qquad \gcd_{\mathbb Q[t]}(F_E,G_E)=1. \] The polynomials may be chosen so that \[ \deg G_E-\deg F_E=3,\qquad \max(\deg F_E,\deg G_E)\le C_{\rm deg},\qquad \max_k\bigl(|[t^k]F_E|,|[t^k]G_E|\bigr)\le C_{\rm ht}a^{C_{\rm exp}}, \] for absolute constants $C_{\rm deg},C_{\rm ht},C_{\rm exp}$. In particular, $G_E$ is nonconstant. At the parameter $t$ of every good start, $G_E(t)\ne0$ and $F_E(t)/G_E(t)=I_3(i)$ is an integer. \end{lemma} \begin{proof} The explicit parametrisation identifies $C$ with the affine line and its smooth projective model with $\mathbb P^1$. Its point at infinity has hyperplane multiplicity two. Lemma~\ref{lem:joint-infinity-orders} therefore gives \[ \operatorname{ord}_{t=\infty}E_0=3. \] The function is nonzero, since it is positive at a good start. For a reduced rational function on $\mathbb P^1$, its order at infinity is $\deg G_E-\deg F_E$, proving properness. We next bound the coefficients uniformly in the component, including after cancellation. The six rational pattern coordinates, the three coordinate polynomials $\xi_j/\Delta_c$, and the integer $a$ can be written over the common nonzero denominator $N_0N_1\Delta_c$, and their numerators are polynomials in $t$ of degree at most two with coefficients of size $(aX)^{O(1)}$. The cofactor formula defining $E_0$ is a quotient of two fixed polynomials in these inputs. Substituting and clearing a fixed power of the common denominator gives nonzero integer polynomials $\tilde n,\tilde d$ of bounded degree with coefficients of size $(aX)^{O(1)}$. Choose a primitive $\Pi\in\mathbb Z[t]$ representing $\gcd_{\mathbb Q[t]}(\tilde n,\tilde d)$. By Gauss's lemma, $\Pi$ divides both $\tilde n$ and $\tilde d$ in $\mathbb Z[t]$, so $F_E=\tilde n/\Pi$ and $G_E=\tilde d/\Pi$ are coprime integer polynomials with the same ratio. Every integer factor of a nonzero integer polynomial of degree at most $C_{\rm deg}$ and height $\mathcal H$ has height at most $2^{C_{\rm deg}}(C_{\rm deg}+1)\mathcal H$, by comparing Mahler measures; so cancellation preserves the bound $(aX)^{O(1)}$. Since $X\le a^{O(1)}$, this is the asserted $C_{\rm ht}a^{C_{\rm exp}}$. Finally, the reconstruction denominator is nonzero at every good start, hence so are $\tilde d$ and its factor $G_E$ at the corresponding parameter, and the reconstruction identity gives $F_E(t)/G_E(t)=I_3(i)\in\mathbb Z$. \end{proof} \begin{lemma}[Integer values of a rational function]\label{lem:jointconicdivisors} Let $F_E,G_E\in\mathbb Z[t]$ be coprime over $\mathbb Q$, of degrees at most $C_{\rm deg}$, with $G_E$ nonconstant and coefficient heights at most $C_{\rm ht}a^{C_{\rm exp}}$. For every $\eta>0$, the number of integers $t$ such that $G_E(t)\ne0$ and $F_E(t)/G_E(t)\in\mathbb Z$ is $O_\eta(a^\eta)$. The implied constant depends only on $\eta,C_{\rm deg},C_{\rm ht},C_{\rm exp}$. \end{lemma} \begin{proof} The integer resultant $R=\operatorname{Res}(F_E,G_E)$ is nonzero. The adjugate of the Sylvester matrix gives $U,V\in\mathbb Z[t]$ with $UF_E+VG_E=R$. At any parameter in question, $G_E(t)\mid F_E(t)$, and hence $G_E(t)\mid R$. There are $2\tau(|R|)$ possible signed values of $G_E(t)$. For each such value $v$, the nonzero polynomial $G_E-v$ has at most $\deg G_E\le C_{\rm deg}$ roots. Thus the number of parameters is at most \[ 2C_{\rm deg}\tau(|R|). \] The Sylvester matrix has size at most $2C_{\rm deg}$, and its entries are bounded by $C_{\rm ht}a^{C_{\rm exp}}$. Expanding its determinant gives \[ 1\le |R|\le(2C_{\rm deg})!\bigl(C_{\rm ht}a^{C_{\rm exp}}\bigr)^{2C_{\rm deg}}. \] The divisor estimate $\tau(n)\ll_\varepsilon n^\varepsilon$, with $\varepsilon$ chosen in terms of $\eta$ and the fixed degree and height exponents, proves the claim. \end{proof} \begin{proof}[Proof of Proposition~\ref{prop:jointconic}] Apply the last lemma to the reconstructed invariant $E_0$. The parameter is injective on free-node triples, and reconstruction of the strictly increasing $q_i$ makes those triples injective in the good starts. Each retained nonexceptional conic therefore contributes $O_\eta(a^\eta)$ starts. The components with at most two free-node triples of good starts and the nonretained components were already bounded absolutely. Apply the conic estimate with $\eta/2$ and the pattern estimate $O_{\eta/2}(a^{\eta/2}X^5)$. Since there are at most twenty-four components per pattern, all nonexceptional conics together contribute $O_\eta(a^\eta X^5)$. \end{proof} \section{The upper bound for graph degrees}\label{app:degree} \begin{proof}[Proof of the upper bound in Lemma~\ref{lem:jointpowereddegree}] Only total polynomial degrees in the nodes matter here, not the heights of the pattern-dependent coefficients. The cofactors $c_j$ of Section~\ref{sec:jointrecon} have bounded degree, hence so do the numerator and denominator of $E_0=E_{\mathrm n}/E_{\mathrm d}$. Since $H_3,H_3'$ have degree at most three and the increments have degree one, the three curvature coordinates have the common denominator $\Omega=E_{\mathrm d}H_3k_1$, and $\Omega$ and the numerators $\mathcal N_0,\mathcal N_1,\mathcal N_2$ have degree at most an absolute constant $C_W$. The numerator for $J$ with this denominator is $\mathcal N_3=J\Omega$, of degree at most $C_W+3$. The denominator is nonzero on $C$, since it is nonzero at a good start. Put $\bar m=m+n$, and represent the powered coordinates with denominator $\Omega^{\bar m}$ and numerators \[ \mathcal N_j^m\Omega^{\bar m-m}\quad(0\le j\le2), \qquad \mathcal N_3^n\Omega^{\bar m-n}. \] All these numerators, and those of the node coordinates written with the same denominator, have degree at most $(C_W+3)\bar m+1$. So multiplying a polynomial of degree at most $t$ in the graph coordinates by $\Omega^{\bar mt}$ gives a polynomial in the original nodes of degree at most $\bigl((C_W+3)\bar m+1\bigr)t$. This operation is injective on the corresponding spaces of functions on $C$, because $\Omega$ is nonzero in $\mathbb Q(C)$. Comparing affine Hilbert functions gives \[ \delta t+O(1)\le d\bigl((C_W+3)\bar m+1\bigr)t+O(1), \] and hence the asserted bound with $C_{\rm gr}=C_W+4$. \end{proof} \section{A reduced basis in dimension three}\label{app:reduction} The constant $64/27=(4/3)(16/9)$ in Lemma~\ref{lem:reduce} comes from two successive size reductions. We give the elementary argument for completeness. \begin{proof}[Proof of Lemma~\ref{lem:reduce}] Write $\det\Lambda$ for the least nonzero $|\det|$ of a triple in $\Lambda$; the triple $(\kappa\mathbf e_1,\kappa\mathbf e_2,\kappa\mathbf e_3)$ gives $\det\Lambda\le\kappa^3$. A triple $(\mathbf f_1,\mathbf f_2,\mathbf f_3)$ with $|\det|=\det\Lambda$ is a basis: if not, some $x\in\Lambda$ has a Cramer coordinate that is not an integer, say the first, $\det(x,\mathbf f_2,\mathbf f_3)/\det(\mathbf f_1,\mathbf f_2, \mathbf f_3)$, and subtracting the integer part of that coordinate times $\mathbf f_1$ from $x$ gives a triple with smaller nonzero determinant. Among all bases (all have $|\det|=\det\Lambda$) minimise $g_1=|\mathbf f_1|^2$, and then the Gram determinant $g_2=g_1|\mathbf f_2|^2-\langle\mathbf f_1,\mathbf f_2\rangle^2$. Put $g_3=(\det\Lambda)^2$. Choose an integer $z_1$ with $|2(\langle\mathbf f_1,\mathbf f_2\rangle+z_1g_1)|\le g_1$. Then $(\mathbf f_2+z_1\mathbf f_1,\mathbf f_1,\mathbf f_3)$ is a basis, so $g_1\le|\mathbf f_2+z_1\mathbf f_1|^2$, and $g_1|\mathbf f_2+z_1\mathbf f_1|^2=g_2+(\langle\mathbf f_1,\mathbf f_2\rangle+z_1g_1)^2$. Hence $3g_1^2\le4g_2$. Let $\langle x,x'\rangle_1=g_1\langle x,x'\rangle-\langle\mathbf f_1,x\rangle\langle\mathbf f_1,x'\rangle$, so that $\langle\mathbf f_2,\mathbf f_2\rangle_1=g_2$, and Sylvester's identity gives $\langle\mathbf f_2,\mathbf f_2\rangle_1\langle\mathbf f_3,\mathbf f_3\rangle_1-\langle\mathbf f_2,\mathbf f_3\rangle_1^2 =g_1g_3$. Choose an integer $z_2$ with $|2(\langle\mathbf f_2,\mathbf f_3\rangle_1+z_2g_2)|\le g_2$ and put $y=\mathbf f_3+z_2\mathbf f_2$. Then $(\mathbf f_1,y,\mathbf f_2)$ is a basis with first vector $\mathbf f_1$, so $g_2\le g_1|y|^2-\langle\mathbf f_1,y\rangle^2=\langle y,y\rangle_1$, while $g_2\langle y,y\rangle_1=(\langle\mathbf f_2,\mathbf f_3\rangle_1+z_2g_2)^2+g_1g_3$. Hence $3g_2^2\le4g_1g_3$. Finally choose an integer $z_3$ with $|2(\langle\mathbf f_1,y\rangle+z_3g_1)|\le g_1$, and use the basis $\mathbf f_1$, $\mathbf f_2'=\mathbf f_2+z_1\mathbf f_1$, $\mathbf f_3'=y+z_3\mathbf f_1$. The identities above give $3g_1|\mathbf f_2'|^2\le4g_2$ and $4g_1g_2|\mathbf f_3'|^2\le g_2^2+4g_1g_3+g_1^2g_2$. With the two inequalities this gives $9g_2|\mathbf f_3'|^2\le16g_3$. Since $|\mathbf f_1|^2=g_1$, the product of the bounds $|\mathbf f_2'|^2\le\frac43g_2/g_1$ and $|\mathbf f_3'|^2\le\frac{16}9g_3/g_2$ is the claim for the basis $\mathbf f_1,\mathbf f_2',\mathbf f_3'$; rename $\mathbf f_2',\mathbf f_3'$ as $\mathbf f_2,\mathbf f_3$. Replacing $\mathbf f_1$ by $-\mathbf f_1$ if necessary makes the determinant positive. For the coordinates, $x_1\det\Lambda=\det(x,\mathbf f_2,\mathbf f_3)$, and Hadamard's inequality gives $\det(x,\mathbf f_2,\mathbf f_3)^2\le|x|^2|\mathbf f_2|^2|\mathbf f_3|^2$, so $27|\mathbf f_1|^2x_1^2(\det\Lambda)^2\le64(\det\Lambda)^2|x|^2$; likewise for $x_2$ and $x_3$. \end{proof} \section{Effective Hilbert irreducibility for monic families}\label{app:hilbert} We prove Theorem~\ref{thm:monichilbert}. The letters in this appendix are local to it. \begin{proof}[Proof of Theorem~\ref{thm:monichilbert}] Write $\operatorname{lg}(x)=1+\log(x+1)$. Implied constants depend only on $r,d$. \emph{Step 1: integer roots in one parameter.} Let $\mathcal A\in\mathbb Z[u][Z]$ be monic in $Z$, of $Z$-degree $e\ge2$, irreducible over $\mathbb Q(u)$, of total degree at most $D$ and height at most $H_0$. We claim that \[ \#\{v\in[-B,B]\cap\mathbb Z:\ \mathcal A(v,Z)\text{ has an integer root}\} \ll_D\operatorname{lg}(H_0)^4B^{1/e}(1+\log B). \] An integer root $z$ of $\mathcal A(v,Z)$ satisfies $|z|\le1+(D+1)H_0B^D$. Choose an integer $k>D$ with $k\asymp_D\operatorname{lg}(H_0)$, and apply the shear $(u,Z)\mapsto(u,Z+u^k)$. The polynomial $\mathcal A_k(u,Z)=\mathcal A(u,Z-u^k)$ is irreducible in $\mathbb Q[u,Z]$, and its total degree is exactly $ke$: the term $(Z-u^k)^e$ contributes $\pm u^{ke}$, while every other term has degree at most $D+k(e-1)d$ and let $\mathcal K$ be the Kronecker map \[ u_2^{a_2}\cdots u_r^{a_r}\zeta^{a_{r+1}}\longmapsto\omega^{a_2+a_3b+\dots+a_{r+1}b^{r-1}}. \] It is a linear bijection from polynomials with all partial degrees less than $b$ onto polynomials in $\omega$ of degree less than $b^r$, it commutes with specialising $u_1$, and it is multiplicative on products whose partial degrees stay below $b$. Since $\zeta$ occupies the highest position, $\mathcal K(F)\in\mathbb Z[u_1][\omega]$ is monic. Factor $\mathcal K(F)=\prod_\nu \mathcal A_\nu$ into monic irreducible factors over $\mathbb Q(u_1)$. Again $\mathcal A_\nu$ lies in $\mathbb Z[u_1][\omega]$, with bounded degree and height $O(\mathcal H^{O(1)})$. By Step~2, outside an exceptional set of the stated size, every $\mathcal A_\nu(v_1,\omega)$ is irreducible over $\mathbb Q$. Let $v_1$ be outside this set, and suppose $F(v_1,\cdot)=gh$ with $g,h\in\mathbb Q[u_2,\dots,u_r][\zeta]$ monic in $\zeta$ of positive $\zeta$-degree. All partial degrees of $g$ and $h$ are at most those of $F$, hence less than $b$, so $\mathcal K(g)\mathcal K(h)=\prod_\nu \mathcal A_\nu(v_1,\omega)$, and by unique factorisation $\mathcal K(g)=\prod_{\nu\in S}\mathcal A_\nu(v_1,\omega)$ for some set $S$ of indices. Put $g_S=\mathcal K^{-1}\bigl(\prod_{\nu\in S}\mathcal A_\nu\bigr)$ and define $g_{S^c}$ likewise, so that $g_S(v_1)=g$ and $g_{S^c}(v_1)=h$. If $g_Sg_{S^c}=F$ identically, this is a factorisation of $F$ over $\mathbb Q(u_1,\dots,u_r)$ into factors of positive $\zeta$-degree, which is impossible. Otherwise some coefficient of $g_Sg_{S^c}-F$ is a nonzero polynomial in $u_1$ of bounded degree vanishing at $v_1$. There are $O(1)$ sets $S$, so this adds $O(1)$ exceptional values. \emph{Step 4: induction on $r$.} The case $r=1$ is Step~2. For $r\ge2$, the exceptional values $v_1$ of Step~3 contribute at most their number times $(2B+1)^{r-1}$. For every other $v_1\in[-B,B]$, the family $F(v_1,u_2,\dots,u_r,\zeta)$ is monic, irreducible over $\mathbb Q(u_2,\dots,u_r)$, of the same degree bounds, and of height at most $(d+1)\mathcal HB^d$. Since $\operatorname{lg}((d+1)\mathcal HB^d)\ll\operatorname{lg}(\mathcal H)(1+\log B)$, the induction hypothesis bounds its reducible specialisations by $O(\operatorname{lg}(\mathcal H)^4B^{r-3/2}(1+\log B)^{4r+1})$. Summing over the $2B+1$ values of $v_1$ gives the theorem. \end{proof} \section{Degree certificates along the line directions}\label{app:linecertificates} This appendix records the certificates used in step~3 of the proof of Lemma~\ref{lem:jointcomponents}. Fix one of the four directions $w$, write the nodes along the line as $s_j+tw_j$, and expand \[ \frac{P_4(x)R_4(y)-P_4(y)R_4(x)}{x-y} =\sum_{\alpha,\beta<4}\mathcal B'_{\alpha\beta}M_\alpha(x)M_\beta(y),\qquad M_\alpha(x)=\prod_{l<\alpha}(x-n_l), \] with the nodes $n_0,n_1,n_2$ below. As for~\eqref{eq:bezout}, $\det\mathcal B'=\operatorname{Res}(P_4,R_4)$, and $\operatorname{Res}(P_4,Z)=\gamma_0\operatorname{Res}(P_4,R_4)$ has the same degree in $t$. In each case the entry $\mathcal B'_{\alpha\beta}$ has $t$-degree at most $\varrho_\alpha+\kappa_\beta$, for all values of the $\gamma_j$, the $\gamma'_j$ and the nodes $s_j$; since $\sum_\alpha\varrho_\alpha+\sum_\beta\kappa_\beta=6$, every term of the determinant has $t$-degree at most six. \begin{center}\small \begin{tabular}{@{}llll@{}} \toprule Direction $w$ & Nodes $(n_0,n_1,n_2)$ & Row weights $\varrho$ & Column weights $\kappa$\\ \midrule $(0,1,1,0,1)$ & $(s_1,s_2,0)$ & $(1,1,0,0)$ & $(1,1,1,1)$\\ $(0,1,1,0,0)$ & $(s_1,0,s_2)$ & $(2,1,1,0)$ & $(1,1,0,0)$\\ $(0,0,1,1,0)$ & $(s_1,s_2,0)$ & $(1,1,1,0)$ & $(1,1,1,0)$\\ $(0,1,0,0,1)$ & $(0,s_1,s_2)$ & $(2,1,1,1)$ & $(1,0,0,0)$\\ \bottomrule \end{tabular} \end{center} Each entry is an explicit polynomial of degree at most four in $t$, so each bound is a finite expansion. We checked all sixteen entries in each case with a computer algebra system, and the bounds are formalised as \lean{line_resultant_natDegree_le_six}. For generic coefficients the determinant has degree exactly six in each case. \section{Certificates for the polar bound}\label{app:polarcertificates} \subsection{The quartic initial form at the base point} At $(\rho,\varphi,\chi,\rho',\varphi',\chi')=(2,5,-3,3,6,-5)$ the polar base point is $\mathbf k_*=(-1/7,-3/28,-1/2)$ and $\nabla f(\mathbf k_*)=(-4,9,-5)$. Use tangent coordinates $(\xi_1,\xi_2)$ with first-order displacement \[ \delta\mathbf k=((9\xi_1-5\xi_2)/4,\xi_1,\xi_2). \] Thus the two axes used in Lemma~\ref{lem:polarbase} have tangent vectors $(9/4,1,0)$ and $(-5/4,0,1)$. Direct substitution in the Newton quartic, its remainder and the norm polynomial gives \begin{align*} P_{4,*}(x)&=x^4-\frac{20}{7}x^3+\frac{757}{112}x^2 -\frac{669}{112}x+2,\\ Z_1(x;\xi_1,\xi_2)&=\frac{77\xi_1+7\xi_2}{14} +\frac{-56\xi_1-124\xi_2}{14}x +\frac{-45\xi_1+157\xi_2}{14}x^2 +\frac{28\xi_1-28\xi_2}{14}x^3,\\ \Psi_1(\xi_1,\xi_2)&=\frac{3\xi_1+85\xi_2}{28}. \end{align*} The resultant is \[ \mathcal R_*(\xi_1,\xi_2)=\frac{ 32233977\xi_1^4-95047956\xi_1^3\xi_2+147873750\xi_1^2\xi_2^2 -111199572\xi_1\xi_2^3+31702169\xi_2^4}{6272}. \] In particular, \[ \mathcal R_*(1,0)\Psi_1(0,1)^4-\mathcal R_*(0,1)\Psi_1(1,0)^4 =\frac{26291112152499}{60236288}. \] The realising matrix in Lemma~\ref{lem:polarbase} shows that $\Theta$ is nonzero on the Pl\"ucker cone; no orbit with these parameters is required. \subsection{The irreducible sextic} The specialisation $E_\gamma=24E_\star$ at $(\gamma_1,\gamma_2,\gamma_3)=(-7,8,-4)$ reduces modulo $71$ to a nonzero scalar multiple of \[ q(T)=T^6+20T^5-14T^4+15T^3-28T^2+5T-4. \] More precisely, $E_\star=57q$ in $\mathbb F_{71}[T]$. The following certificates prove that $q$ is irreducible. Repeated squaring modulo $q$ gives \begin{align*} T^{71^2}&\equiv r_2(T):=36T^5+48T^4+49T^3+53T^2+36T+42,\\ T^{71^3}&\equiv r_3(T):=37T^5+22T^4+60T^3+13T^2+66T+35. \end{align*} For checking the iteration one may first use \[ T^{71}\equiv14T^5+33T^4+31T^3+34T^2+48T\pmod q \] and raise each remainder to the $71$st power. Define \begin{align*} U_2&=20T^4+34T^3+31T^2+13T+24,\\ V_2&=31T^5+61T^4+42T^3+61T^2+39T+4,\\ U_3&=25T^4+11T^3+53T^2+59T+48,\\ V_3&=7T^5+30T^4+65T^3+64T^2+25T+40. \end{align*} Direct multiplication in $\mathbb F_{71}[T]$ verifies \[ U_2q+V_2(r_2-T)=1,\qquad U_3q+V_3(r_3-T)=1. \] Thus $q$ has no irreducible factor of degree one or two, since such a factor would divide $T^{71^2}-T$, and none of degree three, since it would divide $T^{71^3}-T$. Every reducible sextic has an irreducible factor of degree at most three, so $q$ is irreducible. Reduction modulo $71$ preserves degree, and Gauss's lemma proves $E_\star$ irreducible over $\mathbb Q$. \section*{Declaration of AI-generated research and authorship} This manuscript is the product of an AI-driven research process. The human author initiated the investigation and directed AI systems throughout, and wrote no part of the manuscript or of the Lean code. GPT-6-Astra (OpenAI) found the results and the key steps of their proofs. These include the orthogonal polynomials and adjacent labels behind Section~\ref{sec:patterns}, the first proof of a bound $a^{3/10-\delta}$ through resultants, the use of Lemma~\ref{lem:multid} to bound the number of states per pattern, the sign identities of Lemma~\ref{lem:signs} and the slice count behind the $11/37$ bound, the observation that the pattern integers form a Pl\"ucker vector, the weighting of minor vectors by the shortest vectors of their lattices behind the $45/152$ bound, the joint-invariant graphs with their normalisation and valuation arguments, the exterior-lattice coordinates, and the polar identity and Hilbert sieve. The AI systems also developed the presentation, the formalisation and the writing. The systems were GPT-6-Astra (OpenAI), used through Codex, and Claude Opus~5.5 (Anthropic), used through Claude Code. Both contributed to the Lean formalisation and to the review and revision of the manuscript. The Lean development gives a machine-checkable version of the results. Lean's kernel checks the proofs, including the Mathlib results and the separate curve-counting library they use, relative to the axioms \lean{propext}, \lean{Classical.choice} and \lean{Quot.sound} (Section~\ref{sec:lean}); the sixteen selected statements are also replayed by two independent kernels. The conditional refinement described in Section~\ref{sec:lean} assumes two published theorems as explicit hypotheses. These automated checks are not independent human peer review. This declaration distinguishes the provenance of the work from conventional AI-assisted writing. The human author accepts responsibility for the submission and for the accuracy of this disclosure. \section*{Acknowledgements} We thank the Mathlib community, and the authors of \lean{openai/math} for the formalised divisor bound. \begin{thebibliography}{99} \bibitem{BV} O.~Baraskar and I.~Vukusic, \emph{Bounds for sets of remainders}, \href{https://arxiv.org/abs/2508.20853}{arXiv:2508.20853} (2025). \bibitem{BT} R.~de~la~Bret\`eche and G.~Tenenbaum, \emph{Note on the mean value of the Erd\H{o}s--Hooley Delta-function}, Acta Arith.\ \textbf{219} (2025), no.~4, 379--394, \href{https://doi.org/10.4064/aa250107-13-2}{doi:10.4064/aa250107-13-2}. \bibitem{CCDN} W.~Castryck, R.~Cluckers, P.~Dittmann and K.~H.~Nguyen, \emph{The dimension growth conjecture, polynomial in the degree and without logarithmic factors}, Algebra Number Theory \textbf{14} (2020), no.~8, 2261--2294, \href{https://doi.org/10.2140/ant.2020.14.2261}{doi:10.2140/ant.2020.14.2261}. \bibitem{CDHNV} R.~Cluckers, P.~D\`ebes, Y.~I.~Hendel, K.~H.~Nguyen and F.~Vermeulen, \emph{Improvements on dimension growth results and effective Hilbert's irreducibility theorem}, Forum Math.\ Sigma \textbf{13} (2025), e153, \href{https://doi.org/10.1017/fms.2025.10096}{doi:10.1017/fms.2025.10096}. \bibitem{CP} Z.~Chase and M.~Pandey, \emph{On the length of Pierce expansions}, \href{https://arxiv.org/abs/2211.08374}{arXiv:2211.08374} (2022). \bibitem{ES} P.~Erd\H{o}s and J.~O.~Shallit, \emph{New bounds on the length of finite Pierce and Engel series}, J.\ Th\'eor.\ Nombres Bordeaux \textbf{3} (1991), no.~1, 43--53, \href{https://doi.org/10.5802/jtnb.41}{doi:10.5802/jtnb.41}. \bibitem{FMT} J.~Franke, Yu.~I.~Manin and Yu.~Tschinkel, \emph{Rational points of bounded height on Fano varieties}, Invent.\ Math.\ \textbf{95} (1989), 421--435, \href{https://doi.org/10.1007/BF01393904}{doi:10.1007/BF01393904}. \bibitem{Lean} L.~de~Moura and S.~Ullrich, \emph{The Lean~4 theorem prover and programming language}, in: Automated Deduction -- CADE 28, Lecture Notes in Comput.\ Sci.\ \textbf{12699}, Springer, 2021, 625--635, \href{https://doi.org/10.1007/978-3-030-79876-5_37}{doi:10.1007/978-3-030-79876-5\_37}. \bibitem{Mathlib} The mathlib Community, \emph{The Lean mathematical library}, in: Proceedings of the 9th ACM SIGPLAN International Conference on Certified Programs and Proofs (CPP 2020), 367--381, \href{https://doi.org/10.1145/3372885.3373824}{doi:10.1145/3372885.3373824}. \bibitem{NT} M.~Nair and G.~Tenenbaum, \emph{Short sums of certain arithmetic functions}, Acta Math.\ \textbf{180} (1998), 119--144, \href{https://doi.org/10.1007/BF02392880}{doi:10.1007/BF02392880}. \bibitem{OAIMath} OpenAI, \texttt{openai/math}, \url{https://github.com/openai/math}. \bibitem{OPG} J.~O.~Shallit, \emph{A discrete iteration related to Pierce expansions}, Open Problem Garden, \url{https://www.openproblemgarden.org/op/a_discrete_iteration_related_to_pierce_expansions}. \bibitem{Pierce} T.~A.~Pierce, \emph{On an algorithm and its use in approximating roots of algebraic equations}, Amer.\ Math.\ Monthly \textbf{36} (1929), no.~10, 523--525, \href{https://doi.org/10.1080/00029890.1929.11987017}{doi:10.1080/\allowbreak 00029890.1929.11987017}. \bibitem{Shallit86} J.~O.~Shallit, \emph{Metric theory of Pierce expansions}, Fibonacci Quart.\ \textbf{24} (1986), no.~1, 22--40, \href{https://doi.org/10.1080/00150517.1986.12429786}{doi:10.1080/00150517.1986.12429786}. \bibitem{ShallitTalks} J.~O.~Shallit, \emph{Talks}, \url{https://cs.uwaterloo.ca/~shallit/talks.html} (accessed October 2026). \end{thebibliography} \end{document}