\documentclass[11pt]{article} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[margin=1in]{geometry} \usepackage{amsmath,amssymb,amsthm,mathtools} \usepackage[title]{appendix} \usepackage{microtype} \usepackage{hyperref} \hypersetup{pdftitle={Riemann hypothesis for higher-rank zeta functions of curves of genus two}, pdfauthor={Peter Graham},colorlinks=true,linkcolor=blue,citecolor=blue,urlcolor=blue} \newtheorem{theorem}{Theorem} \newtheorem{proposition}[theorem]{Proposition} \newtheorem{lemma}[theorem]{Lemma} \newcommand{\F}{\mathbb F} \newcommand{\Tr}{\operatorname{Tr}} \newcommand{\Aut}{\operatorname{Aut}} \newcommand{\Jac}{\operatorname{Jac}} \newcommand{\Pic}{\operatorname{Pic}} \newcommand{\calR}{\mathcal R} \newcommand{\calC}{\mathcal C} \title{Riemann hypothesis for higher-rank zeta functions of curves of genus two} \author{Peter Graham\\ \small\url{https://orcid.org/0009-0007-8493-1505}} \date{December 2, 2026\\[2pt] \small Zenodo archive: \url{https://doi.org/10.5281/zenodo.24781020}\\ \small \href{https://github.com/6/clank-lab/tree/weng-genus-two-v1/results/weng-genus-two/checks}{Computer checks}\\ \small \href{https://github.com/6/clank-lab/tree/weng-genus-two-v1/results/weng-genus-two/lean}{Lean development}} \begin{document} \maketitle \begin{abstract} For a curve \(X\) over a finite field \(\F_q\), Lin Weng's rank-\(n\) zeta function is a power series in \(T=q^{-ns}\). For \(\ell\ge0\), its coefficient of \(T^\ell\) sums \((q^{h^0(X,E)}-1)/|\Aut(E)|\) over the semistable vector bundles \(E\) on \(X\) of rank \(n\) and degree \(n\ell\) defined over \(\F_q\). For \(n=1\) it is the usual zeta function of \(X\). When \(X\) has genus two it is a rational function of \(T\) whose numerator has degree four. We prove Weng's Riemann hypothesis for every smooth projective geometrically connected curve of genus two over every finite field and every rank \(n\ge1\): every zero of this numerator has modulus \(q^{-n/2}\). Zhan Shi proved this on each fixed curve for all sufficiently large ranks. For curves of every genus, Hiroyuki Yoshida proved the rank-two case and Weng the rank-three case. Starting from the formula of Sergey Mozgovoy and Markus Reineke in the form given by Weng and Don Zagier, we show that the required estimate on the two middle coefficients holds for every genus-two curve over every finite field once \(n\ge13\), and once \(n\ge4\) when \(q\ge64\). Direct estimates and an exact finite calculation cover the remaining ranks. Lean proves that the zeros of the numerator of the Weng--Zagier expression have modulus \(q^{-n/2}\), assuming three geometric inputs and the outcome of the finite calculation. Outside Lean, we use the published theorem of Mozgovoy--Reineke and Weng--Zagier identifying this expression with the bundle sum. The calculation itself is run by Lean's executable evaluator and reproduced by two independent programs. This work has not yet been reviewed by experts. The proofs, computations, code, Lean formalization and text were produced by AI models from OpenAI and Anthropic, working under the author's direction. \end{abstract} \medskip \noindent\emph{2020 Mathematics Subject Classification.} 11G20, 14H60, 11M41.\\ \emph{Keywords.} Nonabelian zeta functions, curves over finite fields, semistable vector bundles. \section{Introduction} Let \(X\) be a smooth projective geometrically connected curve over the finite field \(\F_q\). For a vector bundle \(E\) on \(X\), write \(h^0(X,E)\) for the dimension of its space of global sections. For \(n\ge1\) and an integer \(d\), let \(\beta_n(d)\) be the sum of \(1/|\Aut(E)|\) over the isomorphism classes of semistable vector bundles \(E\) on \(X\) of rank \(n\) and degree \(d\) defined over \(\F_q\), and let \(\alpha_n(d)\) be the same sum with each term multiplied by \(q^{h^0(X,E)}-1\). Weng's rank-\(n\) pure non-abelian zeta function \cite[\S1.2, Main Definition~1]{weng12} is, in the variable \(T=q^{-ns}\), \[ Z_n(T)=\sum_{\ell\ge0}\alpha_n(\ell n)T^\ell . \] We call it the geometric rank-\(n\) zeta function, since it counts bundles. It is a rational function of \(T\) with denominator \((1-T)(1-q^nT)\), and its numerator \(P_n(T)\) is defined in \eqref{eq:shape}. For \(n=1\) it is the usual zeta function of \(X\). \begin{theorem}\label{thm:main} Let \(X/\F_q\) be a smooth projective geometrically connected curve of genus two, and let \(n\ge1\). In the variable \(T=q^{-ns}\), the numerator of Weng's geometric rank-\(n\) zeta function has degree four. Every one of its zeros, counted with multiplicity, has modulus \(q^{-n/2}\). Equivalently, every zero in the \(s\)-plane has real part \(1/2\). \end{theorem} For \(n=1\) this is Weil's Riemann hypothesis for curves over finite fields \cite[Th\'eor\`eme~1.6]{deligne}. Weng stated the same assertion for every rank as the Riemann hypothesis for these zeta functions \cite[\S1.2]{weng12}. For elliptic curves, Weng and Zagier proved it in every rank \cite[Theorem~7]{wzell}. For curves of every genus, Hiroyuki Yoshida proved the rank-two case in the appendix to Weng's \emph{Special uniformity of zeta functions I} \cite[Appendix, Theorem~3]{yoshida}. It is stated there as Theorem~12 for the \(SL_2\) zeta function, which equals the rank-two zeta function \cite[Theorem~1]{wz}. Lin Weng proved the rank-three case \cite[Theorem~4.3]{weng22}. For genus two, Zhan Shi proved that the Riemann hypothesis holds on each fixed curve for all sufficiently large ranks \cite[Theorem~20]{shi25}, \cite[Theorem~33]{shi26}. What is new here is a rank bound that does not depend on the curve or the field, together with the remaining ranks. We prove the estimate behind the large-rank case with explicit constants for every genus-two curve over every finite field: it applies once \(n\ge13\), and once \(n\ge4\) when \(q\ge64\) (Proposition~\ref{prop:uniform}). Direct estimates settle rank two over every field and rank three when \(q\ge64\), and an exact calculation settles ranks two through twelve over the 26 fields with \(q<64\). Ranks two and three follow from the results of Yoshida and Weng; we prove them again for genus two to keep the argument self-contained and inside the Lean check of Section~\ref{sec:verification}. The proof starts from the expression of the geometric zeta function by Sergey Mozgovoy and Markus Reineke \cite[Theorem~7.2]{mr}. Weng and Zagier credit the equality of this expression with the \(SL_n\) zeta function jointly to all four authors \cite[Theorem~1]{wz} and give the composition formula we use \cite[(26)]{wz}. Lemma~\ref{lem:mass} collects known identities, the counting miracle, the semistable mass formula and Shi's coefficient formulas, with their sources. \paragraph{Outline of the proof.} The numerator \(P_n\) is a reciprocal quartic, so after division by its constant term it is determined by two coefficients \(a\) and \(b\). Lemma~\ref{lem:circle} turns the assertion that all zeros lie on the circle \(|T|=q^{-n/2}\) into four polynomial inequalities in \(a\) and \(b\). By Lemma~\ref{lem:mass}, \(a\) and \(b\) are given by two ratios \(A\) and \(B\) of bundle counts. The ratio \(A\) is \(\#X(\F_q)\) plus a quotient of sums over the compositions (ordered partitions) of \(n-1\) and their cuts. The ratio \(B\) is the total weight of the compositions of \(n\) divided by that of the compositions of \(n-1\). Both ratios are close to \(q^n+\#X(\F_q)\). The hard step is to bound the error in these approximations for every curve and field at once. We bound the contribution of the compositions with more than one part by a recurrence over their first part (Lemmas~\ref{lem:marked} and~\ref{lem:thresholds}). This gives the inequalities once \(n\ge13\), or \(n\ge4\) with \(q\ge64\). Appendix~\ref{app:low} treats rank two over every field and rank three when \(q\ge64\) by hand. For \(q<64\) and \(2\le n\le12\) the quartic depends only on the two integer coefficients \((u,v)\) of the L-polynomial of \(X\), and an exact calculation checks the inequalities at every pair in the grid of Appendix~\ref{app:finite}, which contains the pair of every genus-two curve. Section~\ref{sec:verification} states what Lean checks and what it assumes. \section{The two mass ratios} Write \(N_i=\#X(\F_{q^i})\), \(N=N_1\), \(Q=q^n\), and let \(Z(t)\) be the zeta function of \(X\). The geometric zeta function is rational and satisfies a functional equation: \begin{equation}\label{eq:shape} Z_n(T)=\sum_{\ell\ge0}\alpha_n(\ell n)T^\ell =\frac{P_n(T)}{(1-T)(1-QT)},\qquad P_n(T)=Q^2T^4P_n(1/(QT)). \end{equation} Indeed \(T^{-1}Z_n(T)\) is invariant under \(T\mapsto1/(QT)\) \cite[\S7.1]{mr}, \cite[\S\S1,7]{wz}. The constant term is positive because the trivial bundle contributes \((Q-1)/|\mathrm{GL}_n(\F_q)|\). For \(n\ge2\) put \(m=n-1\), \(s_n=q^{\binom n2}\) and \(J=\#\Jac(X)(\F_q)\). Define \(v_1=J/(q-1)\) and \(v_j=q^jZ(q^{-j})v_{j-1}\) for \(j\ge2\). These products of values of \(Z\) are the constants \(\hat v_j\) of \cite[(26)]{wz} for genus two. A composition of \(j\) is a tuple \(K=(k_1,\ldots,k_r)\) of positive integers with sum \(j\), written \(K\models j\); its parts are ordered and \(r\) is their number. Put \[ W(K)=\frac{\prod_{i=1}^r v_{k_i}} {\prod_{i=1}^{r-1}(1-q^{k_i+k_{i+1}})},\qquad (\sigma_j,F_j,D_j)=\sum_{K\models j}W(K)(1,q^{1+k_1},q^{-k_r}). \] Thus \(\sigma_j\) is the sum of the weights \(W(K)\), while \(F_j\) and \(D_j\) weight each composition by its first part and by its last part. By Lemma~\ref{lem:mass}, \(s_j\sigma_j=\beta_j(0)\) is the total mass of the semistable bundles of rank \(j\) and degree zero. Set \(\sigma_0=1\). For example \(\sigma_2=v_2-v_1^2/(q^2-1)\). The curve \(y^2=x^5+x^2+1\) over \(\F_3\) has \(N=6\), \(N_2=18\) and \(J=24\), so \(\sigma_1=v_1=12\), \(v_2=238\), \(\sigma_2=220\) and \(\beta_2(0)=660\). Our two ratios are \(A=\alpha_n(n)/\alpha_n(0)\) and \(B=\beta_n(0)/\alpha_n(0)\). The identities in Lemma~\ref{lem:mass} are known. The first is the counting miracle, proved for curves of every genus by Mozgovoy and Reineke \cite[Corollary~7.3]{mr} and by Kotaro Sugahara, whose proof appears in an appendix within \cite[\S1]{weng22} (see \cite[Theorem~1.7]{weng22}). The second is the semistable mass formula \cite[Theorem~9]{wzell}. The expressions for \(A\), \(a\) and \(b\) are Shi's \cite[(7), (9)]{shi25}. We derive them again from \eqref{eq:wz} to fix notation. \begin{lemma}\label{lem:mass} We have \(\alpha_n(0)=s_n \sigma_m,\ \beta_n(0)=s_n\sigma_n\), and \begin{equation}\label{eq:mass} A=N+\frac{F_m-D_m-\sum_{k=1}^{m-1}D_k\sigma_{m-k}}{\sigma_m}, \qquad B=\frac{\sigma_n}{\sigma_m}. \end{equation} The numerator divided by its constant term is \begin{align} C_n(T)&=1+aT+bT^2+QaT^3+Q^2T^4, \label{eq:quartic}\\ a&=A-Q-1,\qquad b=(Q-1)B+2Q-(Q+1)A. \label{eq:ab} \end{align} \end{lemma} \begin{proof} Weng and Zagier state \cite[(26)]{wz} for \(\hat Z_{X,n}(T)=T^{1-g}Z_n(T)\) in terms of \(\hat Z_X(t)=t^{1-g}Z(t)\), the constants \(\hat v_k\) and a power of \(q^{\binom n2(g-1)}\). For \(g=2\) these are \(T^{-1}Z_n(T)\), \(Z(t)/t\), \(v_k\) and \(s_n\). With \(B_0(x)=1\) and \(B_j(x)=\sum_{K\models j}W(K)/(1-q^{k_r}x)\) for \(j>0\), the formula \cite[(2), (4), (26)]{wz} therefore reads \begin{equation}\label{eq:wz} s_n^{-1}T^{-1}Z_n(T)= \sum_{k=0}^m B_k(q^{-k}/T)\frac{Z(q^kT)}{q^kT}B_{m-k}(q^{k+1}T). \end{equation} The middle factor starts with \(q^{-k}/T+N\). A nonempty left factor starts with \(-q^kD_kT\). The right factor has constant term \(\sigma_{m-k}\), and at \(k=0\) its linear coefficient is \(F_m\), since reversal preserves \(W\). The coefficient of \(T^{-1}\) is \(\sigma_m\). The constant terms are \(N\sigma_m+F_m\) at \(k=0\), \(-D_m\) at \(k=m\), and \(-D_k\sigma_{m-k}\) otherwise. This proves the first mass identity and the formula for \(A\). At \(T=Q^{-1}\) and \(T=1\) the right side times \(1-QT\) and \(1-T\) has limits \(\sigma_n\) and \(-\sigma_n\), respectively \cite[end of \S7]{wz}. A degree-one line bundle defined over \(\F_q\) exists by Lang's theorem for the \(\Pic^1\) torsor and the vanishing of the Brauer group of a finite field. Tensoring with its powers preserves the \(\beta_n\) masses. A semistable bundle \(E\) of slope \(\ell\ge3\) has \(H^1(X,E)=0\), since its Serre dual has negative slope. Riemann--Roch therefore gives \(\alpha_n(\ell n)=(Q^{\ell-1}-1)\beta_n(0)\). Its geometric series shows that the corresponding limits of \(T^{-1}Z_n\) are \(\beta_n(0)\) and \(-\beta_n(0)\). Hence \(\beta_n(0)=s_n\sigma_n\) and \begin{equation}\label{eq:poles} P_n(1)=(Q-1)\beta_n(0)>0,\qquad P_n(Q^{-1})=Q^{-2}P_n(1)>0 . \end{equation} In degree \(2n\), Serre duality pairs \(E\) with \(E^\vee\otimes K_X\) in degree zero. Riemann--Roch gives \(h^0(E)=n+h^0(E^\vee\otimes K_X)\), so \(\alpha_n(2n)=Q\alpha_n(0)+(Q-1)\beta_n(0)\). Multiplication by the denominator in \eqref{eq:shape} gives \eqref{eq:ab}. \end{proof} \begin{lemma}\label{lem:circle} For \(Q>0\) and real \(a,b\), every root of \eqref{eq:quartic} has modulus \(Q^{-1/2}\) if and only if \begin{equation}\label{eq:margins} \mu_Q(a,b)=\bigl(a^2-4b+8Q,\ 16Q-a^2,\ b+2Q,\ (b+2Q)^2-4Qa^2\bigr)\ge0 \end{equation} componentwise. In particular \(|a|<\sqrt Q/2\) and \(|b|0\) nondecreasing, \(w_j\le(21/2)8^{j-1}\), and \(w_j\le2^j\) for \(q\ge64\). Splitting off the first part gives, with the sums over positive \(i+j=m\), \begin{equation}\label{eq:rec} t_{ij}=\tfrac43q^{-ij}\frac{w_iw_j}{w_m},\qquad \calC_m=1+\sum t_{ij}\calC_j,\qquad H_m=\sum t_{ij}(\calC_j+H_j). \end{equation} Indeed the singleton has weight one. Prepending \(i\) to a composition of \(j\) multiplies its weight by \(t_{ij}\) and increases its number of cuts by one. \begin{lemma}\label{lem:thresholds} For every curve of genus two over every finite field, \begin{equation}\label{eq:thresholds} qH_{12}\le1/6,\quad qH_j\le1/16\ (j\ge13),\quad qH_j\le3/32\ (q\ge64,\ j\ge3). \end{equation} \end{lemma} The proof, which uses only \eqref{eq:rec} and the bounds on \(w_j\), is in Appendix~\ref{app:rec}. \begin{proposition}\label{prop:uniform} If \(n\ge13\), or if \(q\ge64\) and \(n\ge4\), the ratios in \eqref{eq:mass} satisfy \[ |A-Q-N|<9/40,\qquad |B-Q-N|<9/40. \] Consequently \(|a|<\sqrt Q/2\) and \(|b|0\) and \(P(1/q)=q^{-2}P(1)\) by reciprocity. Finally \(|q^{-ns}|=q^{-n\operatorname{Re}s}\), so modulus \(q^{-n/2}\) means real part \(1/2\). \end{proof} \section{Verification and reproducibility}\label{sec:verification} \paragraph{The formal statement.} The accompanying Lean development, built on Mathlib, proves the theorem \texttt{Challenge.}\allowbreak \texttt{genus\_two\_riemann\_hypothesis}. In mathematical notation it states the following. Let \(\F_q\) be Mathlib's field of order \(q\) (every field of that order is isomorphic to it) and \(X\) a smooth, proper, geometrically connected scheme of relative dimension one over \(\F_q\) such that \((1-t)(1-qt)Z(t)\), with \(Z\) defined from the point counts by \eqref{eq:logz}, is a polynomial of degree four with integer coefficients and constant term one. For \(n\ge1\), let \(\mathcal Z_n(T)\) be \(Z(T)\) if \(n=1\) and the right side of \eqref{eq:wz} multiplied by \(s_nT\) if \(n\ge2\). Then the numerator of \((1-T)(1-q^nT)\mathcal Z_n(T)\) in \(\mathbb Q(T)\) has degree four, and each of its complex zeros has modulus \(q^{-n/2}\). This is Theorem~\ref{thm:main} for the rational function given by the formula of Weng and Zagier. The identification of \(\mathcal Z_n\) with the bundle sum \(Z_n\) \cite[Theorem~7.2]{mr}, \cite[Theorem~1]{wz}, and the fact that genus two gives an L-polynomial of degree four, are used in the written proof but stay outside Lean. \paragraph{Hypotheses.} The Lean theorem is an implication from four hypotheses. The first three are statements quantified over all curves as above. The fourth is the single closed Boolean equality \texttt{FiniteArithmetic.checks = true}. \begin{itemize} \item Weil's theorem in genus two: the coefficients \(u,v\) of the L-polynomial \eqref{eq:artin} are integers, \(P(1)>0\), and every zero of \(P\) has modulus \(q^{-1/2}\) \cite[Th\'eor\`eme~1.6]{deligne}. \item The hyperelliptic bound: the points of \(X\) over \(\F_q\) and over \(\F_{q^2}\) inject into two copies of the projective line (Appendix~\ref{app:ordinary}). \item The shape of the Weng--Zagier formula: for \(n\ge2\), \((1-T)(1-QT)\mathcal Z_n(T)\) is a polynomial of degree at most four with positive constant term and the reciprocity of \eqref{eq:shape}, and its value at \(Q^{-1}\) is \((1-Q^{-1})Q^{-1}s_n\sigma_n\). These properties combine \cite[Theorem~1 and \S7]{wz} with the arguments in the proof of Lemma~\ref{lem:mass}. \item The finite calculation: the Boolean function implementing the algorithm of Appendix~\ref{app:finite} returns true. \end{itemize} \paragraph{What Lean proves.} From these hypotheses Lean proves the extraction of \(a\) and \(b\) in Lemma~\ref{lem:mass}, Lemma~\ref{lem:circle}, the composition estimates of Section~3, the estimates of Appendix~\ref{app:low}, and the statement that acceptance of the finite calculation gives \eqref{eq:margins} for every pair \eqref{eq:grid} and every \(2\le n\le12\). For the bounds on \(w_j\) and \(Z(1/Q)\), Lean uses Weil's bounds on the coefficients and \(N_1\le N_2\), so it needs the hyperelliptic point bound only over \(\F_q\) and \(\F_{q^2}\). Lean's kernel, its trusted proof checker, checks these proofs, including the 26 comparisons of Appendix~\ref{app:rec} by direct evaluation. The theorem depends only on Lean's standard axioms \texttt{propext}, \texttt{Classical.choice} and \texttt{Quot.sound}. \paragraph{The finite calculation.} The fourth hypothesis is checked outside the kernel. Lean's executable evaluator ran the Boolean function over the full finite range in 352 CPU seconds. Two independent programs in exact rational arithmetic reproduce the certificates of Appendix~\ref{app:finite}. \paragraph{Code and data.} The Lean development, the two Python checkers and the certificates accompany this paper in its release archive, with instructions for reproducing each check. The folder \texttt{lean} contains the statement above in \texttt{Challenge.lean} and the algorithm of Appendix~\ref{app:finite} in \texttt{FiniteArithmetic.lean}. The folder \texttt{checks} contains the Python checkers. The certificates are \texttt{data/low-rank.json} for ranks two and three and \texttt{data/finite.json} for ranks four through twelve. \begin{appendices} \section{The L-polynomial of a genus-two curve}\label{app:ordinary} For a prime \(\ell\nmid q\), let \(F\) be geometric Frobenius on \(H^1_{\mathrm{\acute et}}(X_{\overline{\F}_q},\mathbb Q_\ell)\). The zeta function of \(X\) is \begin{equation}\label{eq:logz} Z(t)=\exp\Bigl(\sum_{i\ge1}N_it^i/i\Bigr), \end{equation} and the trace formula gives \(N_i=q^i+1-\Tr(F^i)\). Weil's theory of curves \cite{weil}, \cite[\S\S1.3--1.6]{deligne} gives the L-polynomial of \(X\), the integral reciprocal numerator of degree \(2g=4\) \begin{align} P(t)&=\det(1-tF)=1+ut+vt^2+qut^3+q^2t^4,\label{eq:artin}\\ u&=-\Tr(F)=N-q-1,\qquad v=\Tr(\textstyle\bigwedge^2 F)=\tfrac12(N_2-q^2-1+u^2).\nonumber \end{align} Here the second identity for \(v\) is Newton's identity. Moreover \(Z(t)=P(t)/((1-t)(1-qt))\), \(P(1)=J\), and every eigenvalue of \(F\) has absolute value \(\sqrt q\). Conjugate pairs have product \(q\). A real eigenvalue is \(\pm\sqrt q\), and each sign has even multiplicity because the full product is \(q^2>0\) and the dimension is even. Consequently \begin{equation}\label{eq:traces} P(t)=(1-x_1t+qt^2)(1-x_2t+qt^2),\qquad |x_i|\le2\sqrt q . \end{equation} Since \(X\) is hyperelliptic, \(0\le N_i\le2(q^i+1)\) in every characteristic: its canonical map is a double cover of the projective line defined over \(\F_q\). Indeed \(h^0(K_X)=2\), and for a geometric point \(y\), Riemann--Roch gives \(h^0(K_X-y)=h^0(y)=1\), since two sections in degree one would yield a degree-one map to the projective line. The system is base-point-free and defined over \(\F_q\). The resulting map to \(\mathbb P^1\) has degree two and every fiber has at most two distinct points, including in characteristic two. An effective rational divisor of degree two consists of two rational points, possibly equal, or one closed point of degree two. Thus \[ \#(\operatorname{Sym}^2X)(\F_q)=(N^2+N_2)/2=J+q. \] For the second equality, tensoring with \(K_X\) identifies \(\Pic^0\) with \(\Pic^2\). Every rational class has a line bundle over the finite field. Riemann--Roch gives each such bundle one independent section, except for \(K_X\), which has two and contributes \(q+1\) divisors. It follows that \[ w_1=\frac{J}{q(q-1)} \le\frac{3q^2+3q+3}{q(q-1)}\le\frac{21}{2},\qquad w_j=w_1\prod_{i=2}^j Z(q^{-i}). \] The last identity follows from \(v_j=q^{j(j+1)/2}w_j\). Comparing coefficients in \eqref{eq:logz} and exponentiating gives the coefficientwise inequalities \begin{equation}\label{eq:ordinarybound} 1\preceq Z(t)\preceq(1-t)^{-2}(1-qt)^{-2}\preceq(1-qt)^{-4}. \end{equation} Exponentiation preserves this order for nonnegative series with zero constant term, by its power expansion. In particular \(w_j\) is nondecreasing. For \(i\ge2\), \(Z(q^{-i})\le (1-1/4)^{-2}(1-1/2)^{-2}=64/9<8\). For \(q\ge64\), Weil's bound on the four eigenvalues gives \[ w_1\le (1+q^{-1/2})^4/(1-q^{-1})\le6561/4032<2. \] In this range \eqref{eq:ordinarybound} gives \(Z(q^{-i})\le(1-1/64)^{-4}\le(1-4/64)^{-1}<2\). This proves both bounds on \(w_j\) used in \eqref{eq:rec}. \section{Estimates for the marked sum}\label{app:rec} For positive \(i+j=m\), put \(h=\min(i,j)\), \(k=\max(i,j)\) and \(\theta_{ij}=14\cdot8^{h-1}/2^{ij}\). Since \(w_k\le w_m\) and \(w_h\le(21/2)8^{h-1}\), the weight \(t_{ij}\) in \eqref{eq:rec} is at most \((2/q)^{ij}\theta_{ij}\le(2/q)\theta_{ij}\). Define \(\gamma_m,\eta_m\) by \eqref{eq:rec} with \(\theta_{ij}\) in place of \(t_{ij}\), starting at \((\gamma_1,\eta_1)=(1,0)\). Induction gives \(\calC_m\le\gamma_m\), \(H_m\le(2/q)\eta_m\). In the second recurrence retain \(2/q\) on the first weight and bound \(\calC_j+H_j\) by \(\gamma_j+\eta_j\). The finite comparisons used in the induction are \[ \begin{array}{c|c} 1\le j\le11 & \gamma_j+\eta_j\le4096\\ j=12 &12\eta_j\le1\\ 13\le j\le26&32\eta_j\le1 . \end{array} \] For reproducibility these are the complete operations, with exact rationals and inclusive integer ranges. The first two pairs \((\gamma_m,\eta_m)\) are \((1,0),(8,7)\). \begin{verbatim} for m = 1,...,26: gamma[m] = 1 eta[m] = 0 for j = 1,...,m-1: i = m-j theta = 14 * 8^(min(i,j)-1) / 2^(i*j) gamma[m] = gamma[m] + theta*gamma[j] eta[m] = eta[m] + theta*(gamma[j]+eta[j]) if m <= 11: assert gamma[m]+eta[m] <= 4096 if m == 12: assert 12*eta[m] <= 1 if m >= 13: assert 32*eta[m] <= 1 \end{verbatim} For \(m\ge8\), \(k\ge4\) and \(ij=m-1+(h-1)(k-1)\). Therefore \(S_m=\sum_{i+j=m}\theta_{ij}\le14(m-1)/2^{m-1}\), a nonincreasing bound for \(m\ge2\). It is at most \(154/2048<1/8\) for \(m\ge12\). If \(\gamma_j+\eta_j\le4096\) for all preceding \(j\), then \(\gamma_m+\eta_m\le1+2\cdot4096S_m\le1025\) in this range. For \(m\ge27\) this gives \(\eta_m\le4096S_m\le4096\cdot14\cdot26/2^{26}<1/32\). Together the finite and inductive bounds give the first two parts of \eqref{eq:thresholds}. If \(q\ge64\), we may use \(w_h\le 2^h\). The exponent identity just used implies \(2^{h-1}\le q^{(h-1)(k-1)}\), also for \(h=1\). Consequently \(t_{ij}\le(8/3)q^{-(m-1)}\) and \(\sum_{i+j=m}t_{ij}\le(8/3)(m-1)/q^{m-1}\le1/24\). The recurrence gives \(\calC_m+H_m\le9/8\) by induction since \(1+2(9/8)/24=35/32<9/8\). Thus for \(m\ge3\) \[ qH_m\le3(m-1)/q^{m-2}\le6/q\le3/32 , \] as required. \section{Ranks two and three}\label{app:low} In rank two put \(p=v_1=J/(q-1)\), \(\tau=x_1+x_2\), with \(x_i\) given by \eqref{eq:traces}. Then \(N=q+1-\tau\), \(J=(q+1-x_1)(q+1-x_2)\), and \eqref{eq:mass} gives \[ A=q^2+N-q^{-1},\qquad B=q^2Z(q^{-2})-\frac p{q^2-1}. \] Substitute \(P(t)=1-\tau t+(x_1x_2+2q)t^2-q\tau t^3+q^2t^4\) into the ordinary zeta and clear denominators. This gives \[ q^2Z(q^{-2})=q^2+N+q^{-1}+\frac{J+p}{q^2-1}, \qquad B-A=\frac{J}{q^2-1}+\frac2q . \] Thus \(a=q-\tau-q^{-1}\) and \(b=J+2q-2N=q^2+2q-1-(q-1)\tau+x_1x_2\). The discriminant of \(\calR\) is \[ (x_1-x_2)^2+(q-1)^2(5+2/q+q^{-2}+2\tau/q). \] Since \(\tau\ge-4\sqrt q\), it is at least \((q-1)^2(1-\lambda)^2(\lambda^2+2\lambda+5)>0\) with \(\lambda=q^{-1/2}\). At the left endpoint, \(\calR(-2q)=(q+1+x_1)(q+1+x_2)>0\). At the right endpoint, \[ \calR(2q)=5q^2+2q-3+(1-3q)(x_1+x_2)+x_1x_2 . \] It decreases in each \(x_i\), since \(1-3q+2\sqrt q<0\). At its minimum \(x_1=x_2=2\sqrt q\) it equals \((\sqrt q-1)^3(5\sqrt q+3)>0\). Finally \(|a|\le q-q^{-1}+4\sqrt q<4q\) since \(4\sqrt q<3q\) for \(q\ge2\). The vertex is interior with negative value, so both roots lie between \(-2q\) and \(2q\). Lemma~\ref{lem:circle} applies. For rank three let \(Q=q^3\) and assume \(q\ge64\). Put \(V=v_2\), \(r=p^2/V\), and \(\Delta=q^2-1\). Since \(p=qw_1\le2q\) and \(V=pq^2 Z(q^{-2})\), we have \(00,\quad \mu_q(u,v)\ge0 . \end{equation} The actual \(u,v\) of \eqref{eq:artin} belong to it. Indeed the hyperelliptic bound \(0\le N\le2(q+1)\) gives the first bound, Weil's theorem and Lemma~\ref{lem:circle} give the four signs, and \(P(1)=J>0\). The signs imply \(-2q\le v\le(u^2+8q)/4\le6q\). This covers supersingular curves and permits pairs that need not come from any curve. The field orders are \[ \begin{gathered} 2,3,4,5,7,8,9,11,13,16,17,19,23,\\ 25,27,29,31,32,37,41,43,47,49,53,59,61 . \end{gathered} \] \begin{proposition}\label{prop:box} At every pair in \eqref{eq:grid} and every \(2\le n\le12\), \(\sigma_{n-1}\) is positive and \(\mu_{q^n}(a,b)\ge0\) for the normalized coefficients \eqref{eq:ab}. \end{proposition} \begin{proof}[Proof by finite computation] The following algorithm specifies the entire calculation in rational arithmetic. Define \(L_{\ell j}\) as the sum of \(W(K)\) for compositions of \(\ell\) ending in \(j\). For \(1\le j\le\ell\), deletion of the final part gives \[ L_{\ell\ell}=v_\ell,\qquad L_{\ell j}=v_j\sum_{i=1}^{\ell-j}\frac{L_{\ell-j,i}}{1-q^{i+j}} \quad(j<\ell). \] Summing \(L_{\ell j}\) against \(1,q^{1+j},q^{-j}\) gives respectively \(\sigma_\ell,F_\ell,D_\ell\), using reversal for \(F_\ell\). The following ranges are inclusive. \begin{verbatim} for each prime power q in [2,63]: for u = -q-1,...,q+1: for v = -2*q,...,6*q: J = 1 + u + v + q*u + q^2 if J <= 0 or any entry of mu(q,u,v) < 0: continue form P and Z, then mass[1],...,mass[12] # mass[j] = v_j form L, then sigma,F,D for lengths 1,...,12 for n = 2,...,12: Q = q^n m = n-1 c0 = sigma[m] assert c0 > 0 y = (q+1+u)*c0 + F[m] - D[m] y = y - sum(D[i]*sigma[m-i] for i = 1,...,m-1) a = y/c0 - Q - 1 b = ((Q-1)*sigma[n] + 2*Q*c0 - (Q+1)*y)/c0 assert all four entries of mu(Q,a,b) >= 0 \end{verbatim} Here \texttt{mu} is \eqref{eq:margins}. The field orders may be generated by trial division for primes below \(64\) and taking all of their successive positive powers below \(64\). There are \(43{,}492\) retained pairs across \(26\) fields. The \(391{,}428\) quartics at ranks four through twelve and the \(86{,}984\) at ranks two and three all satisfy the asserted tests. The accompanying certificate gives, at each field and rank, the exact minimum of each margin and its lexicographically first \((u,v)\) witness. The global minima in the two smallest ranks, in the order of \eqref{eq:margins} and after division of the quartic by its positive constant, are as follows; all are positive. \[ \begin{array}{c|rrrr} n&\mu_1&\mu_2&\mu_3&\mu_4\\ \hline 2&17/4&175/4&7&13\\ 3&2528713/169744&15981623/169744&738/47&298242/2209 . \end{array} \] \end{proof} A second calculation uses the geometric expression \cite[Theorem~7.2]{mr}, \cite[(25)]{wz} to obtain three Taylor coefficients of \(Z_n(T)/s_n\) directly. This is \(T\) times the right side of \eqref{eq:wz}. At an interior cut of total \(k\) between parts \(k_i,k_{i+1}\), the cut term in \cite[(25)]{wz} cancels the denominator \(1-q^{k_i+k_{i+1}}\) in \(W(K)\), leaving a weight for each segment. The left and right factors are summed against the appropriate \(L_{kj}\) and \(L_{m-k,j}\). A nonempty left factor with last part \(j\) contributes the coefficient triple \((0,-q^{k-j},-q^{2(k-j)})\) from \((1-q^{j-k}/T)^{-1}\); a nonempty right factor contributes \((1,q^{k+j+1},q^{2(k+j+1)})\). An empty factor contributes \((1,0,0)\). The middle factor \(q^{-k}Z(q^kT)\) contributes \[ (q^{-k},\,N,\,q^k(1+q+q^2+(1+q)u+v)). \] Multiply the three polynomials modulo \(T^3\) and sum over the cuts. If the result is \(z_0+z_1T+z_2T^2\), then \[ \sigma_{n-1}=z_0,\qquad a=(z_1-(1+Q)z_0)/z_0,\qquad b=(z_2-(1+Q)z_1+Qz_0)/z_0. \] The calculation can use integers by clearing positive denominators. An independent enumeration, taking \(v\) first and restricting \(u^2\le16q\) before applying the other conditions, reproduces the same per-field counts, minima and witnesses. Two point counts illustrate the scale and signs. For the smooth completion of \(y^2=x^5+x^2+1\) over \(\F_3\), \(N=6,\ N_2=18\), giving \((u,v)=(2,6)\). At rank two the coefficients of \(C_2\) are \((1,14/3,18,42,81)\); the masses are given in Section~2. The independent checker also reproduces the rank-five coefficient triple for this curve exactly. For \(y^2=x^5-x\) over \(\F_{61}\) one gets \(N=62,\ N_2=3478\), hence \((u,v)=(0,-122)\). Both counts include the point at infinity. They can be reproduced over either field by summing \(1+\chi(f(x))\) over its elements, with \(\chi(0)=0\), and then adding one. The independent checker verifies the rank-three coefficients of the second curve by exact arithmetic. Direct summation over literal compositions and interpolation also recover the rank-five and rank-twelve quartics on the respective curves. For example \(T=-1/q,-2/q,-3/q\) give three distinct values of \(T^{-1}+QT\) at the rank-twelve input, so the reciprocal basis \(1+Q^2T^4,T+QT^3,T^2\) determines all three coefficients. \end{appendices} \begin{thebibliography}{99} \bibitem{deligne} P.~Deligne, La conjecture de Weil. I, \emph{Publ. Math. Inst. Hautes \'Etudes Sci.} \textbf{43} (1974), 273--307. \href{https://www.numdam.org/item/PMIHES_1974__43__273_0/}{Journal article}. \bibitem{mr} S.~Mozgovoy and M.~Reineke, Moduli spaces of stable pairs and non-abelian zeta functions of curves via wall-crossing, \emph{J. \'Ec. polytech. Math.} \textbf{1} (2014), 117--146. \href{https://doi.org/10.5802/jep.6}{doi:10.5802/jep.6}. \bibitem{shi25} Z.~Shi, Riemann hypothesis for non-abelian zeta functions of genus 2 curves, November 10, 2025. \href{https://arxiv.org/abs/2511.06729v1}{arXiv:2511.06729v1}. \bibitem{shi26} Z.~Shi, \emph{On Non-Abelian Zeta Functions for Curves over Finite Fields}, doctoral thesis, Kyushu University, March 25, 2026. \href{https://hdl.handle.net/2324/7443550}{University record and thesis}. \bibitem{weil} A.~Weil, \emph{Sur les courbes alg\'ebriques et les vari\'et\'es qui s'en d\'eduisent}, Actualit\'es Sci. Indust. 1041, Hermann, Paris, 1948. \bibitem{weng12} L.~Weng, Zeta functions for function fields, February 18, 2012. \href{https://arxiv.org/abs/1202.3183v2}{arXiv:1202.3183v2}. \bibitem{yoshida} L.~Weng, Special uniformity of zeta functions I. Geometric aspect, with an appendix by H.~Yoshida, March 11, 2012. \href{https://arxiv.org/abs/1203.2305v1}{arXiv:1203.2305v1}. \bibitem{weng22} L.~Weng, Riemann hypothesis for non-abelian zeta functions of curves over finite fields, January 11, 2022. \href{https://arxiv.org/abs/2201.03703v1}{arXiv:2201.03703v1}. \bibitem{wzell} L.~Weng and D.~Zagier, Higher-rank zeta functions for elliptic curves, \emph{Proc. Natl. Acad. Sci. USA} \textbf{117} (2020), 4546--4558. \href{https://doi.org/10.1073/pnas.1912023117}{doi:10.1073/pnas.1912023117}. \bibitem{wz} L.~Weng and D.~Zagier, Higher-rank zeta functions and \(SL_n\)-zeta functions for curves, \emph{Proc. Natl. Acad. Sci. USA} \textbf{117} (2020), 6398--6408. \href{https://doi.org/10.1073/pnas.1912501117}{doi:10.1073/pnas.1912501117}. \end{thebibliography} \end{document}