\documentclass[11pt]{article} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[margin=1in]{geometry} \usepackage{amsmath,amssymb,amsthm,microtype} \usepackage[title]{appendix} \usepackage{alltt} \usepackage[colorlinks=true,linkcolor=blue,citecolor=blue,urlcolor=blue]{hyperref} \hypersetup{pdfauthor={Peter Graham},pdftitle={A quasilinear bound for positive roots of p-adic circuit systems}} \ifdefined\pdfinfoomitdate\pdfinfoomitdate=1\fi \ifdefined\pdftrailerid\pdftrailerid{}\fi \ifdefined\pdfsuppressptexinfo\pdfsuppressptexinfo=15\fi \newtheorem{theorem}{Theorem} \newtheorem{corollary}[theorem]{Corollary} \newtheorem{lemma}[theorem]{Lemma} \newcommand{\Qp}{\mathbb{Q}_p} \newcommand{\Zp}{\mathbb{Z}_p} \newcommand{\ac}{\operatorname{ac}} \title{A quasilinear bound for positive roots of \(p\)-adic circuit systems} \author{Peter Graham\\ \small\url{https://orcid.org/0009-0007-8493-1505}} \date{December 1, 2026\\[2pt] \small Zenodo archive: \url{https://doi.org/10.5281/zenodo.24721534}\\ \small \href{https://github.com/6/clank-lab/tree/padic-circuit-roots-v3/results/padic-circuit-roots/lean}{Lean development}} \begin{document} \maketitle \begin{abstract} Rojas's Local Fewnomial Conjecture (2007) predicts, for each fixed excess $k$ of monomials over variables, bounds polynomial in the dimension $n$ on the nonsingular roots with all coordinates of phase one, uniformly over the real, complex and odd-prime $p$-adic fields. Over $\mathbb{Q}_p$ phase one means leading $p$-adic digit $1$, and we call such roots positive. For $n$ polynomials in $n$ variables with $n+2$ monomials in total and every odd prime $p$, we prove that the number of positive nonsingular roots in $\mathbb{Q}_p^n$ is $O(n\log^*n)$ uniformly in $p$, and at most $512(n+1)$ for $p\ge n+1$; with the real and complex cases it gives the conjectured bounds for $k=2$. The proof reduces the system to one equation on a line, limits the residue disks that can contain roots by $p$-adic divisibility, and bounds the roots in each disk. Phillipson and Rojas constructed $n+1$ roots, and a linear bound uniform in $p$ remains open. The general bound stated earlier is $(Cn)^n$, and the bound $2n+2$ of Goldstein, Rojas, Stone and Vera for odd $p\ge n+1$ needs hypotheses on the coefficients. Over $\mathbb{Q}_2$ an exponential factor is needed and suffices. Lean checks the explicit bound behind these estimates, stated through a recurrence; the $O(n\log^*n)$ form is derived outside Lean. This work has not yet been reviewed by experts. The proofs, Lean formalization, code and text were produced by AI models from OpenAI and Anthropic, working under the author's direction. \end{abstract} \medskip \noindent\textit{2020 Mathematics Subject Classification.} 11S05, 14G20, 14M25. \section{Introduction} How many roots can a polynomial system have when it has few monomials, whatever its degrees? Over the \(p\)-adic numbers, Rojas proved finiteness from results of Denef and van den Dries and of Lipshitz \cite[\S1.2]{PR}, \cite[\S1]{GRSV}. Rojas's arithmetic Descartes rule \cite[Theorem 1]{Rojas} states an explicit bound, which Phillipson and Rojas tabulate \cite[\S1.2]{PR}: for \(n\) equations in \(n\) variables with \(n+2\) monomials in total it has the form \((Cn)^n\), while their systems have \(n+1\) roots \cite[Theorems 1.5 and 1.6]{PR}. Goldstein, Rojas, Stone and Vera describe explicit bounds for \(n\ge2\) as known only under tropical genericity \cite[\S1]{GRSV}; Appendix~\ref{corrections} notes a gap in the general argument. For the roots in Rojas's Local Fewnomial Conjecture we prove a bound of order \(n\log^*n\) for every odd prime \(p\). Let \(L\) be \(\mathbb R\), \(\mathbb C\) or \(\Qp\). Following Phillipson and Rojas \cite[Definition 1.1]{PR}, a nonzero \(x\in L\) has \emph{phase one} if \(x/|x|=1\) for \(L=\mathbb R,\mathbb C\), and if \(\ac(x)=1\) for \(L=\Qp\). Here \(\ac(x)=p^{-v(x)}x\bmod p\), with \(v(p)=1\), is the angular component, or leading \(p\)-adic digit, of \(x\). Goldstein, Rojas, Stone and Vera \cite[\S1.1]{GRSV} denote the subgroup \(p^{\mathbb Z}(1+p\Zp)\) of such \(p\)-adic numbers \(\mathbb Q_{p,+}\), by analogy with \(\mathbb R_+\); we call its elements, and real numbers \(x>0\), \emph{positive}. A torus root lies in \((L^*)^n\) and is positive if each coordinate is. A \emph{circuit system} is a square system in \(n\) variables with exactly \(n+2\) exponent vectors in the union of its supports. Proper subsets may be affinely dependent, and individual equations may omit monomials. Let \(Y_L(n,k)\) be the supremum, over all systems of \(n\) Laurent polynomials over \(L\) in \(n\) variables with \(n+k\) distinct monomials in total, of the number of positive nonsingular torus roots \cite[Definition 1.1]{PR}. Rojas's 2007 Local Fewnomial Conjecture \cite[\S1.2]{PR} asks for absolute constants \(C_2\ge C_1>0\) such that for every \(L\in\{\mathbb R,\mathbb C,\mathbb Q_3,\mathbb Q_5,\ldots\}\) and all \(n,k\ge2\), \[ (n+k-1)^{C_1\min(n,k-1)}\le Y_L(n,k) \le (n+k-1)^{C_2\min(n,k-1)} . \] At \(k=2\) both sides are powers of \(n+1\). \begin{theorem}\label{thm} Let \(p\) be an odd prime and \(n\ge1\). Let \(F\) consist of \(n\) Laurent polynomials over \(\Qp\) in \(n\) variables. Suppose their combined support contains exactly \(n+2\) distinct exponent vectors. The set of positive torus roots of \(F\) at which the Jacobian determinant is nonzero is finite and has cardinality at most \[ 256(n+1)\bigl(1+r_p(\Lambda)\bigr),\qquad \Lambda=\lfloor\log_p(2n+2)\rfloor, \] where \(r_p(\Lambda)\) is the number of terms \(\tau_i\le\Lambda\) of the sequence \(\tau_1=1\), \(\tau_{i+1}=\tau_i+p^{\tau_i}\). In particular the cardinality is at most \(512(n+1)\) whenever \(p\ge n+1\), and at most \(768(n+1)\) whenever \(2n+2<3^{85}\). \end{theorem} The \(\tau_i\) are distinct positive integers, so \(r_p(\Lambda)\le\Lambda\). Since \(\tau_{i+1}\ge2^{\tau_i}\), \(\tau_i\) is at least a tower of \(i-1\) twos, so \(r_p(\Lambda)\le1+\log^*_2\Lambda\) for \(\Lambda\ge1\). For \(p=3\) the sequence is \(1,4,85,85+3^{85},\ldots\), and \(3^{85}\approx3.6\cdot10^{40}\). The bound is therefore \(O(n\log^*n)\) uniformly in odd \(p\), polynomial where the general bound stated earlier was exponential. Whether \(O(n)\) holds uniformly in odd \(p\) remains open. Over \(\mathbb R\) and \(\mathbb C\) the case \(k=2\) is known: \(Y_{\mathbb R}(n,2)=Y_{\mathbb C}(n,2)=n+1\). Bihan's Theorem~A bounds the positive solutions of a generic real system supported on a circuit by \(n+1\) and shows that this is attained \cite{Bihan}. Since a nonsingular root forces affine span (Section~\ref{gale}) and a small generic perturbation keeps nonsingular positive roots, it gives \(Y_{\mathbb R}(n,2)\le n+1\). Phillipson and Rojas attribute this upper bound to Bertrand, Bihan and Sottile \cite[\S1.2]{PR}, whose theorem bounds all real solutions, not only the positive ones, of a generic real system on a primitive circuit by \(2n+1\) \cite[Theorem~5.7]{BBS}. Genericity is needed: \(f_1=f_2=(1+x_1)(1+x_2)\) has a line of real solutions. The complex and real suprema agree \cite[Theorem 1.10]{PR}. \begin{corollary}\label{cor} For \(n\ge2\) and \(L\in\{\mathbb R,\mathbb C,\mathbb Q_3,\mathbb Q_5,\ldots\}\), \[ n+1\le Y_L(n,2)\le(n+1)^7 . \] \end{corollary} \begin{proof} The cited results give the lower bound and the Archimedean cases. For odd \(p\), Theorem~\ref{thm} and \(r_p(\Lambda)\le\Lambda\) give at most \(256(n+1)(1+\lfloor\log_3(2n+2)\rfloor)\) roots. At \(n=2\) this is \(1536\le3^7\). For \(n\ge3\), \(2(n+1)<3^{n+1}\), hence the logarithmic factor is at most \(n+1\). Since \(256\le(n+1)^5\), the bound is at most \((n+1)^7\). \end{proof} Thus \(C_1=1\) and \(C_2=7\) suffice at \(k=2\) for every field in the conjecture. Phillipson and Rojas observe that over the \(p\)-adic fields the upper bound holds for \(n\le k-1\) “at least for \(C_2\ge7\)” \cite[\S1.2]{PR}, so at \(k=2\) the open range was \(n\ge2\). For trinomials the maximum is three when \(p\ge5\) \cite[Theorem 1.2(5)]{PR}, \cite[\S1.1]{RZ}, from the bound of Avendaño and Krick \cite[Theorem 1.4]{AK}; the proof of their Theorem~1.6 constructs three simple positive roots. At \(p=3\) the maximum is four. Zhu proved that an integer trinomial has at most four roots in \(\mathbb Q_3\) with leading digit one \cite{Zhu} (see \cite[\S1.1]{RZ}). Appendix~\ref{corrections}(7) reduces every trinomial over \(\mathbb Q_3\) to this case. The trinomial \(x^{10}-10x+738\) has four \cite[Examples 1.4 and 1.6]{KRRZ}, \cite[Examples 2.10 and 6.3]{RZ}. The conjecture excludes \(\mathbb Q_2\), where every nonzero element is positive, sign changes of coordinates can give roots with the same image on the line of Section~\ref{gale}, and some systems have exponentially many roots (Section~\ref{q2sec}). Goldstein, Rojas, Stone and Vera prove \(2n+2\) for odd \(p\ge n+1\) \cite[Theorem 1.5]{GRSV}; for \(p=2\) see Appendix~\ref{corrections}(6). Their hypotheses concern their one-variable reduction, with \(n\) affine factors and a factor \(u\): (a) both coefficients of each affine factor are nonzero, and (b) the zeros of the factors with positive exponent are distinct modulo \(p\) from those with negative exponent, where the zero \(0\) of \(u\) counts on the side of its exponent when the exponent is nonzero. They write: “In future work, we hope to remove Hypotheses (a) and (b) and at last give an explicit upper bound for \(N_p^{n+2,n}\), at least for \(p\ge n+1\)” \cite[p.~3]{GRSV}, where \(N_p^{n+2,n}=Y_{\Qp}(n,2)\). Theorem~\ref{thm} gives such a bound for every odd prime, of the same linear order for \(p\ge n+1\); their constant is sharper on their class. Their proof builds on the root counting of Rojas and Zhu \cite{RZ}. For odd \(p>n\), Goldstein's dissertation gives \(2n+2\) under conditions on the support, the maximal coefficient minors and the reduced Gale ratios \cite[Theorem 2.3.10]{Goldstein}. The poster announces a full version \cite[p.~3]{GRSV}, which may overlap with this work, as may the explicit bounds announced in Rojas's August 2025 talk \cite{RojasTalk}. Koiran, Portier and Rojas bound the number of valuation vectors, not of roots per vector, for circuit systems with support in general position \cite[Theorem 1.10(2)]{KPR} and for sums of two products whose lower hulls share no vertex \cite[Corollary 1.5]{KPR}. Avendaño and Ibrahim count roots under finiteness of the tropical prevariety, binomial initial forms and semiregularity \cite[Definition 4.1 and Theorem 1.1]{AI}. Circuit systems need not satisfy them. Lean~4 with mathlib checks Theorem~\ref{thm}, with its recurrence, and the \(p\)-adic upper bound in Corollary~\ref{cor} (Section~\ref{formal}). Appendix~\ref{corrections} lists corrections to version~2. \section{Proof overview} \begin{enumerate} \item At a nonsingular root the \(n+2\) exponent vectors have one independent affine relation. Gale duality, as used over \(\Qp\) by Goldstein, Rojas, Stone and Vera \cite[\S1.2]{GRSV} after Bihan and Sottile \cite{BS}, reduces the system to one equation \(R(u)=1\) on a line, with \(R\) a product of powers of linear factors, and each parameter \(u\) comes from at most one positive root. \item Group the parameters by their distances to the zeros and poles of \(R\), which form a tree of disks. Along an edge of the tree, \(R\) is a constant times \(w^s\) times factors near \(1\), where \(w\) is centered on the edge and \(s\) sums the exponents of the nearer zeros and poles. If \(s\ne0\), valuation alone allows one depth. If \(s=0\), the \(p\)-adic logarithm turns \(R=1\) into \(G=0\) for a Laurent series with \(wG'=wD\), where \(D=R'/R\) has at most \(n\) zeros. \item A root then needs a cancellation among the leading terms of \(G\). Divisibility of \(k\) by powers of \(p\) restricts which terms \(w^k\) can lead, and leaves only \(O(r_p(\Lambda))\) depths between marked points (Lemma~\ref{depth}). Each location holds at most one residue disk of eligible parameters. \item Each residue disk contains at most \(16+2J\) parameters, where \(J\) counts zeros of \(D\) over an algebraic closure in a slightly larger disk, and the larger disks are disjoint (Lemma~\ref{disk}). \end{enumerate} \section{The equation on a line}\label{gale} \begin{proof}[Proof of Theorem~\ref{thm}, reduction to one variable] Choose one monomial in the combined support, divide every equation by it, and let \(y_1,\ldots,y_{n+1}\) be the remaining monomials, with exponent matrix \(E\) having \(n+1\) rows. In the new variables the system is \(c+Ay=0\), where \(c\in\Qp^n\) is the column of constant coefficients and \(A\) is the \(n\)-by-\((n+1)\) matrix of the other coefficients. At a torus zero this normalization rescales the Jacobian by a nonzero scalar. The differential of the monomial map is \(\operatorname{diag}(y)E\operatorname{diag}(x)^{-1}\). Thus a nonsingular zero forces both \(E\) and \(A\) to have rank \(n\). If such a zero exists, the affine solution set is a line \(y=c'+du\). Call a parameter \(u\in\Qp\) \emph{eligible} if it is the image on this line of a positive nonsingular torus root. Choose a nonzero integral relation \(\beta\) among the rows of \(E\). The character \(y^\beta\) is one on the monomial image. Its differential at an image point has rank one and annihilates the image of the monomial differential, hence has that image as its kernel. If the restriction \(R(u)=(c'+du)^\beta\) were identically one, the line direction \(d\) would therefore be the image of a nonzero tangent vector killed by the original Jacobian. Any other constant gives no roots. Moreover, two positive roots with the same \(u\) have componentwise quotient in the kernel of the monomial map. By the adjugate of a nonzero maximal minor of \(E\), each quotient coordinate is a root of unity. The positive subgroup is torsion-free for odd \(p\), by valuation and the injective logarithm on \(1+p\Zp\). It suffices to bound the distinct eligible parameters. After combining factors with the same zero and omitting zero total exponents, write \[ R(u)=c_0\prod_{i=1}^{m}(u-a_i)^{e_i},\qquad D(u)=\frac{R'(u)}{R(u)}=\sum_{i=1}^{m}\frac{e_i}{u-a_i}. \] The \(a_i\in\Qp\) are distinct, \(1\le m\le n+1\), and each \(e_i\in\mathbb Z\setminus\{0\}\). Each center \(a_i\) is the zero of some affine coordinate \(y_j=d_j(u-a_i)\). At an eligible parameter, \(y_j\) is a monomial in positive coordinates and is itself positive. Thus \(\ac(u-a_i)=\ac(d_j)^{-1}\) is fixed for every \(i\). The numerator of \(D\) over the product of its \(m\) distinct poles has degree at most \(m-1\) and is nonzero. \end{proof} \section{How many disks can contain roots?} For \(u\in\Qp\) away from the centers, its \emph{depth} is \(t=\max_i v(u-a_i)\in\mathbb Z\). Choose a center \(a\) attaining it. The disk \(v(z-a)\ge t\) is independent of the choice; together with \(t\) it is the \emph{location} of \(u\). Every center in this disk has distance of valuation exactly \(t\) from \(u\). Fixing any one of those centers, its prescribed leading digit places all eligible \(u\) with this location in one residue disk \(B(u)=u+p^{t+1}\Zp\). Every point of \(B(u)\) has the same valuations against all centers, so residue disks from distinct locations are disjoint. For a center \(a_i\), the disks \(v(z-a_i)\ge t\) with \(t\in\mathbb R\) form its \emph{path}. The paths of \(a_i\) and \(a_j\) coincide for \(t\le v(a_i-a_j)\) and separate after it (for \(0\) and \(p^2\), at depth \(2\)), so together they form a tree. A \emph{branch point} is a location, a disk with its depth, where paths separate. An \emph{edge} is a maximal open depth interval on one path that contains no branch point, including the ray beyond the last one. A finite zero \(\gamma\) of \(D\) over an algebraic closure projects to the disk about a closest center at depth \(\max_i v(\gamma-a_i)\). Cutting the edges at these projections gives \emph{segments}. \begin{lemma}\label{depth} Let \(\Lambda=\lfloor\log_p(2m)\rfloor\), where \(m\) is the number of centers of \(R\), and \(r=r_p(\Lambda)\) as in Theorem~\ref{thm}. The number \(N\) of distinct residue disks \(B(u)\) for eligible parameters \(u\) satisfies \(N<(6r+14)m\). \end{lemma} \begin{proof} The tree has at most \(m-1\) branch points because each split adds at least one path. Write \(\kappa\) for their number. Truncating the rays gives a finite tree with \(\kappa\) branch vertices and \(m+1\) endpoints, one of them on the outer ray. It has \(\kappa+m\le2m-1\) edges. For \(m=1\) the entire line of depths is one edge. Mark also the locations of the projections of the at most \(m-1\) finite zeros of \(D\). This leaves at most \(3m-2\) open segments and \(2m-2\) marked points. On an edge, ignoring the projections for now, choose a center \(a\) on its path and put \(w=u-a\), \(b_i=a_i-a\). A center is inner if \(v(b_i)>t\) and outer if \(v(b_i)0\) the two coefficients in the new coordinate are \[ g_kp^{kt}=-\frac1k\sum_{\rm outer}e_i(p^t/b_i)^k,\qquad g_{-k}p^{-kt}=-\frac1k\sum_{\rm inner}e_i(b_i/p^t)^k . \] Each is \(-T_k/k\) for a power sum \(T_k=\sum_{\nu=1}^q e_\nu\lambda_\nu^k\) with \(q\le m\) and \(\lambda_\nu\in p\Zp\). The polynomial \(\prod_\nu(X-\lambda_\nu)\) gives a recurrence for the power sums \(T_k\). The coefficient of \(T_{k-i}\) has valuation at least \(i\). If the first \(q\) sums vanish, the whole side vanishes. Otherwise their minimum valuation \(\mu\) gives, by induction, \[ v(T_k)\ge\mu+\max(0,k-q). \] For \(k>2q\), \(k-q>\log_2 k\ge v_p(k)\). Such an index has \(v(T_k/k)>\mu\), whereas some index at most \(q\) gives valuation at most \(\mu\). Hence every index attaining \(h(t)\) has \(0<|k|\le2m\), so \(v_p(k)\le\Lambda\). Here \(G\) is nonconstant, because \(wG'=wD(a+w)\ne0\), so \(h\) is finite. On a compact subinterval, only finitely many terms can meet the valuation of any one nonzero term, by the uniform tail estimate above. Thus \(h\) is locally the minimum of finitely many affine functions of distinct nonzero slopes. A zero of \(G\) requires either \(h(t)=v(\log C)\) if \(\log C\ne0\), or a tie between nonconstant minimizers. The first alternative occurs at most twice, since \(h\) is concave, as a minimum of affine functions, with no horizontal piece. If \(k\) attains \(h\) at \(t\) and \(k'\) at \(t'>t\), adding the two minimality inequalities gives \((k'-k)(t'-t)\le0\), so minimizers decrease weakly with depth. Fix one of the open segments. There \(\Phi(t)=\min_k(v(g_k)+v_p(k)+kt)\) is affine, so it equals one of these lines and has an integer slope \(\sigma\). Every line lies on or above \(\Phi\) on the segment, hence on its closure. Call an integral depth \(t\) \emph{interior} if \(t-1\) and \(t+1\) lie in the closure. At most two integral depths of the segment are not interior. \emph{Window.} If \(k\) attains \(h\) at an interior depth \(t\), then \(|k-\sigma|\le v_p(k)\). Indeed \(v(g_k)+kt=h(t)\le\Phi(t)\), since each line of \(\Phi\) exceeds the corresponding line of \(h\) by \(v_p(k)\ge0\). At \(t-1\), \(v(g_k)+v_p(k)+k(t-1)\ge\Phi(t)-\sigma\), and subtracting gives \(k-\sigma\le v_p(k)\). The depth \(t+1\) gives \(\sigma-k\le v_p(k)\). \emph{Tower separation.} Let \(\mathcal W\) be the set of indices \(k\ne0,\sigma\) with \(|k|\le2m\) and \(|k-\sigma|\le v_p(k)\). If \(k=\sigma+\epsilon d\) and \(k'=\sigma+\epsilon d'\) with \(\epsilon=\pm1\) and \(02n+2\), \(210(n+1)\) for \(p\ge n+1\) and \(306(n+1)\) when \(2n+2<3^{85}\) (Appendix~\ref{sharper}). This refinement is not formalized. \section{The \texorpdfstring{\(2\)}{2}-adic case}\label{q2sec} At \(p=2\) every element of \(\mathbb Q_2^*\) has leading digit one. \begin{corollary}\label{q2} Let \(n\ge1\) and let \(F\) be a system as in Theorem~\ref{thm} over \(\mathbb Q_2\). Let \(\rho\) be the rank over \(\mathbb F_2\) of the \((n+1)\)-by-\(n\) matrix of differences between one exponent vector and the others. Then \(F\) has at most \(2^{n-\rho}\cdot256(n+1)(1+r_2(\Lambda))\) nonsingular roots in \((\mathbb Q_2^*)^n\), with \(\Lambda=\lfloor\log_2(2n+2)\rfloor\). \end{corollary} Its written proof is in Appendix~\ref{q2proof}; Lean assumes \(p\) odd. Some exponential factor is unavoidable over \(\mathbb Q_2\). \(Y_{\mathbb Q_2}(1,1)=2\) \cite[Theorem 1.2(2)]{PR}, and Lenstra proved that a trinomial has at most six roots in \(\mathbb Q_2^*\), counted with multiplicity, and that six occur \cite[Proposition 9.2]{Lenstra}, so \(Y_{\mathbb Q_2}(1,2)=6\) \cite[Theorem 1.2(3) and Remark 1.3]{PR}. Phillipson and Rojas prove \(Y_L(n,2)\ge Y_L(1,1)^{n-1}Y_L(1,2)\) \cite[Theorem 1.5]{PR}, so \(Y_{\mathbb Q_2}(n,2)\ge3\cdot2^n\). Hence no bound polynomial in \(n\) holds over \(\mathbb Q_2\), and for \(n\ge12\) the bound of Corollary~\ref{q2} fails without the factor \(2^{n-\rho}\) (Appendix~\ref{q2proof}). \section{Formal verification}\label{formal} The Lean~4 library \texttt{PadicCircuits} builds with Lean v4.34.0 and a pinned mathlib commit; it is archived with the paper at \href{https://doi.org/10.5281/zenodo.24721534}{doi:10.5281/zenodo.24721534}. A system lists \(n+2\) distinct integer exponent vectors, each used in at least one equation. A solution is eligible if its coordinates are positive, it satisfies every Laurent equation, and its Jacobian determinant is nonzero. Lean's \(\texttt{Window.chainCount}\;p\;L\;1\) is \(r_p(L)\), and Theorem~\ref{thm} reads \begin{alltt}\footnotesize theorem CircuitChallenge.bound_window (hp : Odd p) (hn : 1 \(\le\) n) (F : CircuitSystem p n) : \{x | F.eligible x\}.Finite \(\wedge\) \{x | F.eligible x\}.ncard \(\le\) 256 * (n + 1) * (1 + Window.chainCount p (Nat.log p (2 * n + 2)) 1) \end{alltt} Corollaries give \(512(n+1)\), \(768(n+1)\), \(r_p(\Lambda)\le\Lambda\), and \(256(n+1)(1+k)\) when \(\Lambda\) is below a tower of \(k\) copies of \(p\). The theorem \texttt{CircuitChallenge.supremum} proves the \(p\)-adic upper bound of Corollary~\ref{cor}. The lower bound and the real and complex cases of Corollary~\ref{cor} use the cited theorems. The inequality \(r_p(\Lambda)\le1+\log^*_2\Lambda\), the sharper constant of Appendix~\ref{sharper} and Corollary~\ref{q2} are not formalized. The Lean proof departs from Lemma~\ref{depth}. In place of the logarithm series it expands prime powers of the factors \(1+x\) binomially and bounds the same power sums. It fixes a point, takes disks about it, and prescribes which centers and zeros of \(D\) lie in them; at most \(2r+5\) distinct depths with that pattern contain an eligible parameter (\texttt{master\_depths\_at\_trace\_window}). It then counts the patterns. The library uses only Lean's standard axioms; its README lists the check commands. \begin{appendices} \section{The sharper constant}\label{sharper} This count refines the proof of Lemma~\ref{depth}; Lemma~\ref{disk} is unchanged. Branch depths \(v(a_i-a_j)\) are integers, so non-interior integral depths occur only beside the projection of a zero of \(D\) at a non-integral depth, at most two per projection. A projection at an integral depth is one marked location instead. Each of the at most \(m-1\) zeros therefore costs at most \(2\), and each of the at most \(m-1\) branch points costs \(1\). The same function \(h\) and constant \(C\) apply on a whole edge, so \(h(t)=v(\log C)\), or the single depth when \(s\ne0\), occurs at most twice per edge, and there are at most \(2m-1\) edges. With at most \(2r\) interior tie depths on each of at most \(3m-2\) segments, \[ N\le2r(3m-2)+3(m-1)+2(2m-1)<(6r+7)m, \] and \(16N+2(m-1)<(96r+114)m\). For \(p>2n+2\), \(\Lambda=0\) and this is \(114(n+1)\). \section{Proof of Lemma~\ref{disk}}\label{diskproof} For a polynomial \(H\ne0\) put \(d_\varrho(H)=\max\{i:|H_i|\varrho^i =\max_\ell |H_\ell|\varrho^\ell\}\), where \(H_i\) is its coefficient of degree \(i\). This index adds under multiplication. Indeed the product of the last maximizing coefficients strictly dominates every other summand at their summed index. A linear factor \(z-\alpha\) contributes one exactly when \(|\alpha|\le\varrho\). Factoring over an algebraic closure therefore shows that \(d_\varrho\) counts the roots in the closed disk of radius \(\varrho\), with multiplicity. For this valuation polygon and for the \(p\)-adic Rolle theorem, the classical background of Lemma~\ref{disk}, see \cite[Chapter~6, \S\S1.6 and 2.4]{Robert}. \begin{proof}[Proof of Lemma~\ref{disk}] For a disk \(u_0+p^{t+1}\Zp\), scale \(u=u_0+p^{t+1}z\) and put \(\eta=\sqrt p\). All centers have scaled distance at least \(p\). Write the scaled rational function as \(P/Q\), set \(\Delta=P-Q\), and put \(\Omega=P'Q-PQ'\). Both \(P,Q\) have no zeros on the radius-\(\eta\) disk, so the zeros of \(\Omega\) there are those of \(D\) in the corresponding enlargement. Multiplying \(\Delta\) by powers of the zero-free \(Q\) keeps its zeros, and \(|M|=p^{-a}\) is small for \(M=p^a\). Choose such an \(M\ge2\) large enough that the radius-\(\eta\) Gauss norm of \(M\Delta Q'\) is strictly smaller than that of \(\Omega\). Every eligible parameter in the disk gives a zero of \(\Delta\) in \(\Zp\) in the scaled coordinate \(z\). Thus it also gives a zero of \(H=\Delta Q^{M-1}\), whose derivative satisfies \[ H'=Q^{M-2}(\Omega+M\Delta Q'),\qquad d_\eta(H')=J . \] The equality uses the strict norm inequality and \(d_\eta(Q)=0\). Put \(K=d_1(H)\) and \(j=J+1\). If \(K\le j\) then \(K\le J+1\le16+2J\). Otherwise \(K-1>J\), the last maximizing index for \(H'\) at radius \(\eta\), while \(|H_j|\le |H_K|\). Consequently \[ |KH_K|\eta^{K-1}<|jH_j|\eta^{j-1}\le |jH_K|\eta^{j-1}. \] Since \(\eta=p^{1/2}\), division by \(|KH_K|\eta^{j-1}\) gives \[ (K-j)/2\log_2k\ge v_2(k)\) for \(k>2q\). Lemma~\ref{disk} uses no logarithm, and its constant comes from \(v_p(K)\le\log_2K\), which holds for every prime. Hence the eligible parameters number at most \(256(n+1)(1+r_2(\Lambda))\). What fails at \(p=2\) is the injectivity from roots to parameters in Section~\ref{gale}, which used torsion-freeness: \(x^4+x^2-2\) has the simple roots \(\pm1\) with the same monomial coordinates. Write \(E\) for the matrix of exponent differences \(\alpha_j-\alpha_0\). Two roots with the same parameter have quotient \(\varepsilon\) with \(\varepsilon^{\alpha_j-\alpha_0}=1\) for all \(j\), whose coordinates are roots of unity in \(\mathbb Q_2\). So \(\varepsilon_i=(-1)^{b_i}\) with \(b\in\mathbb F_2^n\), and the condition is \(Eb=0\) over \(\mathbb F_2\). Conversely each such \(\varepsilon\) satisfies \(F(\varepsilon x)=\varepsilon^{\alpha_0}F(x)\) identically, so it maps nonsingular roots to nonsingular roots with the same parameter. By rank and nullity each nonempty fiber has exactly \(2^{n-\rho}\) elements. For the cutoff in Section~\ref{q2sec}, put \(B_n=256(n+1)(1+r_n)\) with \(r_n=r_2(\lfloor\log_2(2n+2)\rfloor)\). Then \(B_{12}=9{,}984<12{,}288=3\cdot2^{12}\), while \(B_{11}=9{,}216>3\cdot2^{11}\). For \(n\ge12\), \(r_n\ge2\) and \(r_{n+1}\le r_n+1\), so \(B_{n+1}/B_n\le\frac{14}{13}\cdot\frac43<2\), while \(3\cdot2^n\) doubles. For comparison, Bihan's Theorem~B bounds the real solutions of a generic real system on a circuit \(\mathcal C\) with a factor \(2^{n-\operatorname{rk}(\bar{\mathcal C})}\), where \(\operatorname{rk}(\bar{\mathcal C})\) is a rank modulo \(2\) \cite{Bihan}, of the same kind as \(2^{n-\rho}\). For odd \(p\), rescaling each coordinate by a unit moves the roots with any fixed leading digits to positive roots of a system with the same support \cite[Proposition 5.1(2)]{PR}. Hence Theorem~\ref{thm} also bounds all nonsingular torus roots over \(\Qp\) by \((p-1)^n\cdot256(n+1)(1+r_p(\Lambda))\). This is the upper half of \cite[Proposition 5.1(3)]{PR}, which states that the supremum equals \((p-1)^nY_{\Qp}(n,k)\); only the upper half is used here. \section{Corrections to version~2}\label{corrections} This version corrects errors in version~2 \cite{v2}. No theorem statement, proof or formal check changes. (1) Section~1 said that Goldstein, Rojas, Stone and Vera recall a bound of \(n+1\) for circuit systems whose tropical hypersurfaces meet transversally. With transversality as defined in \cite[\S1.1]{GRSV}, no such bound holds. Over \(\mathbb Q_3\) the tropical curves of \(x^{10}-10xy+738\) and \(y-1\) meet transversally, at \((0,0)\) and \((2,0)\). The system has four positive nonsingular roots, more than \(n+1=3\): the points \((\xi,1)\) for the four positive roots \(\xi\) of \(x^{10}-10x+738\) \cite[Examples 1.4 and 1.6]{KRRZ}, \cite[Examples 2.10 and 6.3]{RZ}, \cite[Example 1.7]{GRSV}. The sentence is removed. (2) Items~2 and~3 of the proof overview applied the logarithm on every edge, omitting the case \(s\ne0\), and used the valuation of \(D\) instead of that of \(wD\), omitting that the window inequality holds only at interior integral depths. They now follow Section~4, whose proof was correct. (3) Section~1 quoted the bound \(2n+1\) of Bertrand, Bihan and Sottile without its genericity hypothesis, which is restored. (4) Section~6 credited the value \(Y_{\mathbb Q_2}(1,2)=6\) to Phillipson and Rojas. It is Lenstra's; Phillipson and Rojas's Theorem~1.5 deduces the lower bound \(3\cdot2^n\) from it. (5) Section~1 presented the bound \((Cn)^n\) as established. Its proof counts the roots with a given valuation vector by a mixed volume of initial forms \cite[\S3]{Rojas}, which can vanish there: for odd \(p\), \((x+y-1,\;x+2xy-(1-p)(1+2p))\) has the nonsingular root \((1-p,p)\), with Jacobian determinant \(1-4p\), while at its valuation \((0,1)\) both initial forms are \(x-1\). This affects that step, not necessarily the stated inequality. (6) The comparisons with \cite[Theorem 1.5]{GRSV} and \cite[Theorem 2.3.10]{Goldstein} were stated for \(p\ge n+1\) and \(p>n\), which include \(p=2\) at \(n=1\), where \(3x^{10}+x^2-4\) has six simple roots in \(\mathbb Q_2^*\) \cite[Remark 1.3]{PR}; they are now made at odd \(p\). Hypothesis (a) of \cite{GRSV} was described as covering the factor \(u\) as well, and (b) without saying on which side the zero of \(u\) counts. (7) The trinomial witness cited for \(p\ge5\) has a double root, and the earlier work on \(x^{10}-10x+738\) and Zhu's bound at \(p=3\) were not credited. Zhu's bound covers every trinomial over \(\mathbb Q_3\) with \(m\) simple positive torus roots. Multiplying by a monomial keeps them and gives a polynomial with nonzero constant term. By Hensel's lemma, a close enough rational approximation of its coefficients has a simple root in each of \(m\) disjoint small disks about them, with the same leading digit. Clearing denominators gives an integer trinomial with at least \(m\) such roots, so \(m\le4\). (8) The Gale reduction was not credited to Bihan and Sottile and to Goldstein, Rojas, Stone and Vera, nor the sharpness of Bihan's bound to Bihan. (9) The proof of Corollary~\ref{q2} said that all of Section~\ref{gale} carries over to \(p=2\); injectivity does not. This version also cites Rojas and Zhu, uses only the upper half of \cite[Proposition 5.1(3)]{PR} in Appendix~\ref{q2proof}, and says how the Lean proof departs from Lemma~\ref{depth}. \end{appendices} \begin{thebibliography}{10} \small \setlength{\itemsep}{1pt} \bibitem{AK} M. Avendaño and T. Krick, \href{https://arxiv.org/abs/1008.4808}{Sharp bounds for the number of roots of univariate fewnomials}. \textit{J. Number Theory} \textbf{131} (2011), 1209--1228. \bibitem{AI} M. Avendaño and A. Ibrahim, \href{https://arxiv.org/abs/1107.1162}{Multivariate ultrametric root counting}. \textit{Contemp. Math.} \textbf{556} (2011), 1--23. \bibitem{BS} F. Bihan and F. Sottile, \href{https://doi.org/10.17323/1609-4514-2007-7-3-387-407}{New fewnomial upper bounds from Gale dual polynomial systems}. \textit{Mosc. Math. J.} \textbf{7} (2007), 387--407. \bibitem{BBS} B. Bertrand, F. Bihan and F. Sottile, \href{https://arxiv.org/abs/math/0502051}{Polynomial systems with few real zeroes}. \textit{Math. Z.} \textbf{253} (2006), 361--385. \bibitem{Bihan} F. Bihan, \href{https://doi.org/10.1112/jlms/jdl013}{Polynomial systems supported on circuits and dessins d'enfants}. \textit{J. Lond. Math. Soc.} \textbf{75} (2007), 116--132. \bibitem{Goldstein} J. N. Goldstein, \href{https://hdl.handle.net/1969.1/1612679}{New Explicit Bounds in \(p\)-adic Fewnomial Theory}. Ph.D. dissertation, Texas A\&M University, May 2026. \bibitem{GRSV} J. Goldstein, J. M. Rojas, H. Stone and A. Vera, \href{https://doi.org/10.1145/3832046.3832061}{New explicit root counts for \(p\)-adic circuit systems}. ISSAC 2025 poster abstract, \textit{ACM Commun. Comput. Algebra} \textbf{59} (2025), no.~4, 134--137 (online August 18, 2026). \bibitem{KPR} P. Koiran, N. Portier and J. M. Rojas, \href{https://arxiv.org/abs/1309.0486}{Counting tropically degenerate valuations and \(p\)-adic approaches to the hardness of the permanent}. arXiv:1309.0486 (2013). \bibitem{KRRZ} L. Kopp, N. Randall, J. M. Rojas and Y. Zhu, \href{https://doi.org/10.1090/mcom/3431}{Randomized polynomial-time root counting in prime power rings}. \textit{Math. Comp.} \textbf{89} (2020), 373--385. \bibitem{Lenstra} H. W. Lenstra, Jr., \href{https://doi.org/10.1515/9783110285581.277}{On the factorization of lacunary polynomials}. In \textit{Number Theory in Progress}, Vol.~1 (Zakopane-Ko\'scielisko, 1997), de Gruyter, Berlin, 1999, 277--291. \bibitem{PR} K. Phillipson and J. M. Rojas, \href{https://arxiv.org/abs/1011.4128}{Fewnomial systems with many roots, and an adelic tau conjecture}. \textit{Contemp. Math.} \textbf{605} (2013), 45--71. \bibitem{Robert} A. M. Robert, \href{https://doi.org/10.1007/978-1-4757-3254-2}{A Course in \(p\)-adic Analysis}. Graduate Texts in Mathematics \textbf{198}, Springer, 2000. \bibitem{Rojas} J. M. Rojas, \href{https://rojas-mathcs.github.io/ex.pdf}{Arithmetic multivariate Descartes' rule}. \textit{Amer. J. Math.} \textbf{126} (2004), 1--30. \bibitem{RZ} J. M. Rojas and Y. Zhu, \href{https://arxiv.org/abs/2107.09173}{Root repulsion and faster solving for very sparse polynomials over \(p\)-adic fields}. \textit{J. Number Theory} \textbf{241} (2022), 655--699. Numbering follows arXiv:2107.09173v1. \bibitem{RojasTalk} J. M. Rojas, \href{https://www.math.canterbury.ac.nz/~f.voloch/Pdfs/Abstracts.pdf}{New quantitative bounds for \(p\)-adic fewnomials}. Talk abstract, Number Theory Down Under, August 25--29, 2025. \bibitem{Zhu} Y. Zhu, \href{https://hdl.handle.net/1969.1/191953}{Trees, Point Counting Beyond Fields, and Root Separation}. Ph.D. dissertation, Texas A\&M University, 2020. \bibitem{v2} P. Graham, \href{https://doi.org/10.5281/zenodo.24730285}{A quasilinear bound for positive roots of \(p\)-adic circuit systems}, second version, Zenodo, December 1, 2026. \end{thebibliography} \end{document}