% Radical identity testing is in coRP. CC0 1.0. Version 1 (reviewed before posting by GPT-6 Astra, ChatGPT Pro mode, 2 Dec 2026). % Mathematics: GPT-6 Astra (ChatGPT Pro mode), run NEG_NIGHT, 21-22 November 2026 (Theorems 1 and 2, the sampling theorem); Claude Opus 5.5 at effort max, 1 December 2026 (simplified proofs, text, programs). \documentclass[11pt]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern,amsmath,amssymb,amsthm,mathtools,microtype} \usepackage[a4paper,margin=28mm]{geometry} \PassOptionsToPackage{hyphens}{url} \usepackage[hidelinks]{hyperref} \setlength{\emergencystretch}{2.5em} \newtheorem{theorem}{Theorem} \newtheorem{proposition}[theorem]{Proposition} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{corollary}[theorem]{Corollary} \theoremstyle{remark} \newtheorem{remark}[theorem]{Remark} \DeclareMathOperator{\Tr}{Tr} \DeclareMathOperator{\lcm}{lcm} \newcommand{\Q}{\mathbf Q} \newcommand{\Z}{\mathbf Z} \newcommand{\R}{\mathbf R} \newcommand{\F}{\mathbf F} \newcommand{\coRP}{\mathsf{coRP}} \newcommand{\coNP}{\mathsf{coNP}} \newcommand{\PP}{\mathcal P} \newcommand{\OO}{\mathcal O} \title{Radical identity testing is in coRP} \author{} \date{Version 1, 2 December 2026 \quad CC0 1.0} \begin{document} \maketitle \begin{abstract} \noindent The radical identity testing problem asks whether an integer polynomial, given by an algebraic circuit, vanishes at real radicals $\sqrt[d_1]{a_1},\dots,\sqrt[d_k]{a_k}$, where the nonnegative integers $a_i$ and the degrees $d_i$ are written in binary. Balaji, Nosan, Shirmohammadi and Worrell (LICS 2022) placed it in coNP under the generalized Riemann hypothesis, and the case of square roots of odd primes in coRP under the same hypothesis and in coNP without it. We prove, with no hypothesis, that the problem is in coRP (Theorem~\ref{thm:flat}). The same holds for circuits with nested real roots of odd degree, whose radicands are computed by the circuit and may be zero or negative (Theorem~\ref{thm:nested}); and if the value is known to be an integer of at most $w$ bits, it is computed without error in expected time polynomial in the input size and $w$ (Corollary~\ref{cor:value}), and for flat radicals deterministically if the least common multiple of the degrees is polynomially bounded (Proposition~\ref{prop:det}). The algorithm evaluates the circuit once, over $\F_p$ or $\F_{p^2}$, for a random prime $p$ in residue classes for which the necessary roots exist; any choice of these roots is sound, because the ring generated by the radicals is a quotient of a polynomial ring by binomials. The residue classes are chosen so that a possible exceptional zero of a Dirichlet $L$-function cannot remove the primes in them (Proposition~\ref{prop:primes}); using the established generalized Riemann hypothesis for Dirichlet $L$-functions, one class is enough. Both constructions use primes with bit length linear in the combined parameter of Proposition~\ref{prop:primes}; the single-class construction improves the bound on the number of candidate trials. Rational constants and defined divisions are allowed in Corollary~\ref{cor:divisions}; its zero-test register extension has a bounded-error guarantee. The mathematics was produced by GPT-6 Astra (ChatGPT Pro mode) and Claude Opus 5.5 at effort max; see the end of Section~\ref{sec:intro}. No human has checked the paper. \end{abstract} \section{Introduction}\label{sec:intro} An algebraic circuit (straight-line program) has the constants $-1,0,1$, input variables, and gates $+$ and $\times$. An instance of \emph{radical identity testing} (RIT) consists of a circuit computing a polynomial $f\in\Z[x_1,\dots,x_k]$ and of integers $a_i\ge0$, $d_i\ge1$ ($1\le i\le k$), all written in binary; the question is whether \[ f\bigl(\sqrt[d_1]{a_1},\dots,\sqrt[d_k]{a_k}\bigr)=0, \] where $\sqrt[d]a$ is the nonnegative real root. The value can be doubly exponentially large, and the number field generated by the radicals has exponential degree already when all $d_i$ are $2$; for degrees in binary even a single radical has exponential degree. The problem was introduced by Balaji, Nosan, Shirmohammadi and Worrell \cite{BNSW}. Their Theorem~1 places it in $\coNP$ under the generalized Riemann hypothesis; before, it was known to be in $\mathsf{PSPACE}$. For square roots of distinct odd primes their Theorem~2 gives $\coRP$ under GRH and $\coNP$ unconditionally. Bl\"omer \cite[Theorem~2.2, p.~5, with the input-size definition on p.~4 of the ETH report]{Bloemer} gave a randomized polynomial-time test when the degrees $d_i$ are written in unary and the circuit is bounded, that is, the degrees and the bit lengths of the coefficients of the polynomials at all its gates are polynomial; \cite[Section~5]{BNSW} extend this to degrees in binary. \begin{theorem}\label{thm:flat} Radical identity testing is in $\coRP$. \end{theorem} Our second theorem allows nesting. An \emph{odd-root circuit} has integers in binary as inputs, gates $+$ and $\times$, and gates $u\mapsto\sqrt[d]u$ with an odd integer $d\ge1$, written in binary, for the unique real $d$-th root of the real number $u$ that has been computed before; $u$ may be zero or negative. \begin{theorem}\label{thm:nested} The problem whether the value of an odd-root circuit is $0$ is in $\coRP$. \end{theorem} \begin{corollary}\label{cor:value} There is a randomized algorithm that, given an instance of RIT or an odd-root circuit whose value is an integer of absolute value at most $2^w$, computes this integer, without error, in expected time polynomial in the size of the input and $w$. \end{corollary} For RIT no randomness is needed here if the least common multiple of the degrees is polynomially bounded, for instance for square roots (Proposition~\ref{prop:det}). With nested roots of even degree the picture changes: since $\sqrt{v\cdot v}=|v|$, an integer $u$ given by a straight-line program is strictly positive if and only if, for $v=u-1$, one has $\sqrt{v\cdot v}-v=0$. Thus zero testing for circuits with square-root gates is as hard as $\mathsf{PosSLP}$, in the strict-positivity convention of \cite[Section~1.1, p.~2]{ABKM}. It is not harder: by Meiburg \cite[Section~Q.1, Theorem~23]{Meiburg} the sign of the value of a circuit with nested real roots of arbitrary degrees, written in binary, is decided in polynomial time with a $\mathsf{PosSLP}$ oracle. Under a constructive form of the radical conjecture, $\mathsf{PosSLP}\in\mathsf{BPP}$ would imply $\mathsf{NP}\subset\mathsf{BPP}$ \cite[Conjecture~1.1 and Theorem~1.2, p.~3]{BuergisserJindal}. So the restriction to odd degrees in Theorem~\ref{thm:nested} is where the method ends. The theorems do not touch the sign of a sum of square roots. In \cite{BNSW} it is also noted that Koiran's theorem on Hilbert's Nullstellensatz places RIT in the polynomial hierarchy under GRH; that theorem now follows without GRH from the established zero-free half-plane $\Re s>31/32$ for every Dedekind zeta function \cite[Theorem~1.1, p.~3]{CuretonThorner}, through \cite[Theorems~A--B, p.~2, Corollary~C and Corollary~D(4), p.~3]{KoiranHexagon}. This all-number-field input is distinct from Dirichlet GRH. Theorem~\ref{thm:flat} gives the sharper RIT classification. \subsection*{The idea} In \cite{BNSW} a nonzero value is certified by a prime $p$ that splits completely in the splitting field of the polynomials $x^{d_i}-a_i$, so that $p\equiv1$ modulo the degrees and the $a_i$ are power residues; such primes are rare when the degrees are exponential. We use primes of the opposite kind. If $\gcd(d,p-1)=1$, then every element of $\F_p$ has exactly one $d$-th root in $\F_p$. For the odd part of the degrees this suffices. For the $2$-part we take $p\equiv-1$ modulo a high power of $2$ and work in $\F_{p^2}$, where the required square roots exist. Section~5 of \cite{BNSW} discusses a soundness difficulty with computations in extension fields. Here soundness follows from a ring homomorphism from the normalized order generated by the radicals; after normalization this order is $\Z[Y_1,\dots,Y_r]/(Y_j^D-b_j)$, so that \emph{every} choice of roots of the $b_j$ in a finite field gives one. The primes in question have a density that is only polynomially small, and the known distribution of primes in progressions shows that a random prime of polynomially many bits is found in polynomial time; a possible exceptional zero of a Dirichlet $L$-function does not matter, because its character averages to at most $1/3$ over the classes used. \subsection*{Who did what, and what was checked} Theorems~\ref{thm:flat} and~\ref{thm:nested} and Propositions~\ref{prop:primes} and~\ref{prop:det} were found and proved by GPT-6 Astra (ChatGPT Pro mode) in a research run of 21 and 22 November 2026. Claude Opus 5.5 at effort max read those proofs line by line on 1 December 2026 without finding a fault, simplified them (Lemma~\ref{lem:order}, Lemma~\ref{lem:local}, the norm estimate) and wrote this text; another session of it, the same day, read the whole text, redoing every step, and found no fault. The first session also ran four computational suites on the modular rules and on the algorithms of Theorem~\ref{thm:flat} and Proposition~\ref{prop:det}; their programs and output are kept with the records of the checks of this work (folder \texttt{fork2/}). The review of 2 December 2026 wrote explicit fixtures and programs of its own (folder \texttt{pro\_review\_20261202/} of the same records); their completed results are given in the following paragraph. These experiments test the modular and finite-ring evaluation rules; they do not implement the asymptotic prime sampler with its unspecified effective absolute constants. The records are at \url{https://github.com/KokunoYumeto/zeta-and-l-functions-workbench}. No human has checked the paper. The replacement suites all pass: $144$ explicit flat instances at eight proven $160$-bit primes ($1{,}152$ evaluations), including exact characteristic-polynomial identities, $+1$ perturbations, dependent radicands, integer-only circuits, positive values below $10^{-1900}$ and large binary root degrees; twelve nested-root fixtures (one with defined divisions) at forty proven $200$-bit primes ($480$ evaluations), including zero and negative roots, collapsed degrees, a $91$-bit root degree, exact recovery of $\pm2^{190}$ and the defined-division translation; degree-$24$ radicals over $2,3,5$ at twenty-five proven $160$-bit primes with eight chosen-root configurations per prime ($600$ root equations, $400$ exact resultant identities and $400$ $+1$ perturbations); and $36$ finite-ring evaluations with $D=1,\dots,12$ and outputs $0,\pm2^w$. The exact resultant oracles are verified in the integral binomial quotient. Incompatible unnormalized choices for $\sqrt8$ and $\sqrt2$ reproduce the expected failure of their true relation. Each implementation was read and rerun by a separate reviewing instance. The deterministic small-degree tests enumerate and verify their field-presentation fixtures; the general polynomial-time construction in Proposition~\ref{prop:det} is justified by its cited algorithm, not by that enumeration. The broader division and register-program results were already stated and proved in run NEG\_NIGHT, statements NN-C051 and NN-C052 \cite{ResearchCatalogue}. Corollary~\ref{cor:divisions} gives those scopes here with a complete checked reduction. \section{Random primes}\label{sec:primes} For odd $m\ge1$, an integer $J\ge3$ and $X\ge1$ let \[ \PP(m,J,X)=\{p\text{ prime}:\ X\le p<2X,\ p\equiv-1\ (\mathrm{mod}\ 2^J),\ \gcd(m,p(p-1))=1\}. \] \begin{proposition}\label{prop:primes} There are effectively computable absolute constants $J_0\ge3$ and $C\ge8$ with the following property. Let $m\ge1$ be an odd integer and let $J\ge J_0$, $B\ge1$, $w\ge0$ be integers; put $q=2^Jm$, \[ k=\lceil\log_2q\rceil+\lceil\log_2(B+2)\rceil+w+32,\qquad X=2^{Ck},\qquad \PP=\PP(m,J,X). \] Then $|\PP|>64B$, and there is a randomized algorithm that returns a uniformly distributed element of $\PP$ in expected time polynomial in $\log m+J+\log B+w$. It does not factor $m$. Every element of $\PP$ is larger than $q$ and $2^{w+1}$. The sampled primes have $O(k)$ bits, and the expected number of candidate trials in the construction below is $O(k(1+\log_2m))$. Using the established Dirichlet GRH, one can instead sample from one residue class with expected $O(k)$ candidate trials. There is an effectively computable absolute integer $C'\ge8$ such that, for the same integer parameters $m,J,B,w,k$, put $X_0=2^{C'k}$ and let $a$ be the class modulo $q$ specified by \[ a\equiv-1\pmod{2^J},\qquad a\equiv2\pmod m. \] Then the set $\mathcal P_0=\{p\text{ prime}:X_0\le p<2X_0,\ p\equiv a\pmod q\}$ has more than $64B$ elements, every element exceeds $q$ and $2^{w+1}$, and a uniform element of $\mathcal P_0$ can be sampled in expected polynomial time without factoring $m$. In particular the sampled primes have $O(k)$ bits. \end{proposition} \begin{proof} Let $S$ be the set of the residue classes $a$ modulo $q$ with $a\equiv-1$ modulo $2^J$ and $\gcd(a(a-1),m)=1$. Write $m=\prod_\ell\ell^{v_\ell}$. By the Chinese remainder theorem \begin{equation}\label{eq:S} \frac{|S|}{\varphi(q)}=2^{1-J}R_m,\qquad R_m=\prod_{\ell\mid m}\frac{\ell-2}{\ell-1}\ge\prod_{i=1}^{h}\frac i{i+1}=\frac1{h+1}\ge\frac1{1+\log_2m}, \end{equation} where $h$ is the number of primes dividing $m$; the $i$-th of them in increasing order is at least $i+2$. \emph{Averages of real characters.} Let $\chi$ be a real Dirichlet character modulo $q$, and $\mu_\chi$ the average of $\chi$ over $S$. Its component at an odd prime $\ell\mid m$ is trivial or the Legendre symbol, whose sum over the classes $a\ne0,1$ modulo $\ell$ is $-1$; its component at $2$ is one of $1,\chi_{-4},\chi_8,\chi_{-8}$, with the values $1,-1,1,-1$ at $-1$. Hence $\mu_\chi=\pm\prod(-1/(\ell-2))$, the product over the primes with nontrivial component. If one of these primes is at least $5$, then $|\mu_\chi|\le\frac13$. Otherwise only $\ell=3$ can occur, and $\mu_\chi=-1$ except for the principal character and the characters induced by $\chi_8$, $\chi_{12}$, $\chi_{24}$, the real primitive characters of these conductors with $\chi(-1)=1$, for which $\mu_\chi=1$. These have no real zeros $\beta\in(0,1)$. For $f(x)=x^{-s}$, $s>0$, the difference $f(x)-f(x+d)$ is positive and decreasing in $x$. The values of $\chi_8$ at $1,3,5,7$ and of $\chi_{12}$ at $1,5,7,11$ are $+,-,-,+$, so that in every period $f(b+1)-f(b+3)-f(b+5)+f(b+7)>0$, and in the same way for $\chi_{12}$. The values of $\chi_{24}$ at $1,5,7,11,13,17,19,23$ are $+,+,-,-,-,-,+,+$, and \[ [f(b{+}1)-f(b{+}7)]-[f(b{+}13)-f(b{+}19)]+[f(b{+}5)-f(b{+}11)]-[f(b{+}17)-f(b{+}23)]>0 . \] So $L(s,\chi)>0$ for $s>0$; inducing the character multiplies by positive factors $1-\chi(\ell)\ell^{-s}$. For the principal character use $\zeta(s)=(1-2^{1-s})^{-1}\sum_n\bigl((2n-1)^{-s}-(2n)^{-s}\bigr)<0$ on $(0,1)$. Consequently every real character modulo $q$ that has a real zero in $(0,1)$ satisfies $\mu_\chi\le\frac13$. \emph{Primes.} By the theorem behind Linnik's theorem (the exact estimate is \cite[Theorem~2]{Tao}; for the underlying argument see \cite[Section~18.4, Proposition~18.5, pp.~439--442]{IwaniecKowalski}) there are effective absolute constants $A,c,C_0>0$ such that for $x\ge q^{C_0}$ and $(a,q)=1$ \begin{equation}\label{eq:linnik} \psi(x;q,a)=\frac1{\varphi(q)}\Bigl(x-\chi_1(a)\frac{x^\beta}\beta+xE\Bigr),\qquad |E|\le A\,e^{-c\log x/\log q}+A\,\frac{\log^2q}q, \end{equation} where the term with $\chi_1$ and $\beta\in(0,1)$ is present only if the real character $\chi_1$ modulo $q$ has a real zero $\beta=1-\varepsilon/\log q$ with $\varepsilon$ smaller than an absolute constant. (In that case the first part of the error is even $e^{-c\log(1/\varepsilon)\log x/\log q}$; this is not needed here.) Choose $J_0$ such that the second summand of the bound for $E$ is at most $\frac1{36}$ for $q\ge2^{J_0}$, and a constant $K\ge C_0$ such that the first is at most $\frac1{36}$ for $x\ge q^K$. For $X\ge q^K$ we sum \eqref{eq:linnik} over $a\in S$ and take the difference of the values at $2X$ and $X$. As $\mu_{\chi_1}\le\frac13$, the main terms give at least $\frac{|S|}{\varphi(q)}\bigl(X-\frac13\int_X^{2X}t^{\beta-1}dt\bigr)\ge\frac{2X|S|}{3\varphi(q)}$, and the error is at most $\frac{|S|}{\varphi(q)}\cdot\frac X6$; so \[ \sum_{a\in S}\bigl(\psi(2X;q,a)-\psi(X;q,a)\bigr)\ge\frac{X|S|}{2\varphi(q)} . \] The proper prime powers up to $2X$ contribute at most $\sqrt{2X}\log^2(2X)/\log2$ to this. Put $C=\max(8,\lceil K\rceil)$ and $X=2^{Ck}$. Since $k\ge32$, $q,B<2^k$ and $C\ge K$, one has $X\ge q^K$. The elementary inequalities \[ 2^{(C/2-1)k}>6\sqrt2\,\log2\,(Ck+1)^2, \qquad 2^{(C-2)k}>192(Ck+1)\log2 \] hold at $C=8,k=32$ and each left-to-right ratio increases separately in $C\ge8$ and $k\ge32$. They imply respectively that the prime-power contribution is at most $X/(6q)$ and that $X/(3q\log(2X))>64B$. Hence \begin{equation}\label{eq:count} |\PP|\ \ge\ \frac{X|S|}{3\varphi(q)\log(2X)}\ >\ 64B . \end{equation} \emph{The algorithm.} Draw integers $n\in[X,2X)$ with $n\equiv-1$ modulo $2^J$ uniformly until $\gcd(m,n(n-1))=1$ and $n$ is prime (by deterministic polynomial-time primality testing \cite[Theorems~4.1 and~5.1]{AKS}). There are at most $2X/2^J$ candidates, so by \eqref{eq:S} and \eqref{eq:count} a trial succeeds with probability at least $\frac{R_m}{3\log(2X)}\ge\frac1{3(1+\log_2m)\log(2X)}$, and $\log(2X)$ is polynomial in the parameters. For the last assertion, the Chinese remainder theorem computes $a$ without factoring $m$, and $(a,q)=1$. By established Dirichlet GRH and \cite[Exercise~48]{TaoGRH}, uniformly in a reduced class, \[ \psi(x;q,a)=\frac{x}{\varphi(q)}+O(\sqrt{x}\log^2(qx)). \] Subtract at $2X_0$ and $X_0$ and remove proper prime powers. The total error is at most $A_1\sqrt{X_0}(C'+1)^2k^2$ for an effective absolute $A_1$. Since $q<2^k$, choosing $C'$ sufficiently large makes this at most $X_0/(2q)$ for every $k\ge32$: the ratio $2^{(C'/2-1)k}/k^2$ increases in $k\ge32$, and its value at $32$ grows exponentially in $C'$. Thus \[ |\mathcal P_0|\ge\frac{X_0}{2\varphi(q)\log(2X_0)}>64B. \] The last inequality follows from $q,B<2^k$ and $C'\ge8$. There are at most $2X_0/q$ integers in the class in this interval, so a uniform trial is prime with probability at least $1/(4\log(2X_0))$. Every prime in the class satisfies the required coprimality conditions. This sampler is uniform on $\mathcal P_0$, not on the larger set $\mathcal P(m,J,X_0)$; either distribution suffices for the later bad-prime estimates. \end{proof} \begin{remark}\label{rem:cyclotomic} With the generalized Riemann hypothesis for Dirichlet $L$-functions, which Alp\"oge proved in November 2026 \cite{Alpoge,GRHLean}, the argument is shorter: one takes the single class $a\equiv-1$ modulo $2^J$, $a\equiv2$ modulo $m$, whose primes satisfy the conditions, and the explicit estimates for primes in progressions. The classical proof of the first assertion does not use it. For the class of $1$ modulo $q$, where every character has the value $1$, a possible exceptional zero cannot be avoided in this way, and Alp\"oge's theorem is of use: \emph{cyclotomic identity testing}, the same problem with roots of unity $\zeta_n^{e_i}$ in place of the radicals ($n$ and the $e_i$ in binary), was placed in $\mathsf{BPP}$ under GRH by Balaji, Perifel, Shirmohammadi and Worrell \cite[Theorem~1]{BPSW}. Their required prime-counting estimate is a consequence of Dirichlet GRH \cite[Section~2, Theorem~6; Section~3, Proposition~9]{BPSW}, so their $\mathsf{BPP}$ algorithm is now unconditional. Run NEG\_NIGHT \cite[statement NN-C048]{ResearchCatalogue} also states and proves the coherent-root variant: with the prime factorization of the binary conductor supplied, one primitive root and its binary powers, defined divisions and a promised polynomial-bit integer output, straight-line evaluation is Las Vegas polynomial time. Its bounded-step exact-zero register extension is $\mathsf{BPP}/\mathsf{FBPP}$. No factorization-free Las Vegas extension is claimed here. \end{remark} \section{Proof of Theorem \ref{thm:flat}} We use the following classical fact (Mordell \cite[Section~2, Lemma, p.~627]{Mordell} for number fields; Siegel \cite[Section~1, Satz, p.~60]{Siegel} for arbitrary real ground fields). \begin{lemma}\label{lem:real} Let $k\subset\R$ be a field and $\alpha\in\R$, $\alpha\neq0$, with $\alpha^n\in k$ for some $n\ge1$. Let $s\ge1$ be minimal with $\alpha^s\in k$. Then $s\mid n$, and $X^s-\alpha^s$ is the minimal polynomial of $\alpha$ over $k$. If $\alpha\notin k$, then $\Tr_{k(\alpha)/k}(\alpha)=0$. \end{lemma} \begin{proof} Apply Siegel's theorem \cite[Section~1, Satz on p.~60]{Siegel} to the single real radical $\alpha$. It says that $[k(\alpha):k]$ is the least positive exponent $s$ for which $\alpha^s\in k$. This exponent divides $n$, since it is the order of the class of $\alpha$ in $\R^\times/k^\times$. The monic polynomial $X^s-\alpha^s$ therefore has the minimal degree and is the minimal polynomial. If $s>1$, its coefficient of $X^{s-1}$ is zero, giving the trace assertion. \end{proof} \subsection*{Normalization} Radicals with $a_i\in\{0,1\}$ or $d_i=1$ are integers. For the others, factor refinement by greatest common divisors \cite[Theorem~1, Corollary~2 and Theorem~7]{BDS} gives in polynomial time pairwise coprime integers $m_1,\dots,m_r>1$ and exponents with $a_i=\prod_jm_j^{e_{ij}}$. For each $j$ find the largest $h_j$ such that $m_j=b_j^{h_j}$ with an integer $b_j$ (there are at most $\log_2m_j$ candidates). The $b_j>1$ are pairwise coprime, and none is a perfect power; so the exponents in the prime factorization of $b_j$ have greatest common divisor $1$ (the factorization is not computed). Put \[ D=\lcm(d_1,\dots,d_k),\qquad\beta_j=\sqrt[D]{b_j}>0,\qquad\text{so that}\quad\sqrt[d_i]{a_i}=\prod_j\beta_j^{\,h_je_{ij}D/d_i} . \] The exponents have polynomially many bits; with repeated squaring the given circuit becomes a circuit of polynomial size for a polynomial $g\in\Z[Y_1,\dots,Y_r]$ with $g(\beta_1,\dots,\beta_r)=f(\sqrt[d_1]{a_1},\dots)$. If $r=0$, we are testing an integer given by a circuit; this is covered by what follows. \begin{lemma}\label{lem:order} The field $K=\Q(\beta_1,\dots,\beta_r)$ has degree $D^r$, and $Y_j\mapsto\beta_j$ defines an injective homomorphism \[ \OO=\Z[Y_1,\dots,Y_r]/(Y_1^D-b_1,\dots,Y_r^D-b_r)\longrightarrow K . \] \end{lemma} \begin{proof} By Bl\"omer \cite[Lemma~4.6 in the ETH report, p.~9]{Bloemer}, the minimal polynomial of $\beta_j$ over $\Q(\beta_1,\dots,\beta_{j-1})$ is $X^{t_j}-c_j$, where $t_j$ is the least positive integer for which $c_j=\beta_j^{t_j}$ is an integer. Here $t_j=D$: if $\beta_j^t\in\Z$, taking prime valuations in $b_j^t=(\beta_j^t)^D$ gives $D\mid t\,v_\ell(b_j)$ for every prime $\ell\mid b_j$, and their greatest common divisor is $1$. Thus each successive field degree is $D$, and the monomials with exponents less than $D$ form a $\Q$-basis of $K$. Division by the monic binomials shows that the same monomials are a free $\Z$-basis of $\OO$. Their images are linearly independent, so the displayed homomorphism is injective. The case $r=0$ is immediate. \end{proof} \subsection*{Evaluation in a finite field} Write $D=2^em$ with $m$ odd, put $J=\max(J_0,e+1)$, and let $p\in\PP(m,J,X)$ for some $X$, with $p\nmid\prod_jb_j$. Since $\gcd(m,p-1)=1$, $b_j$ has the unique $m$-th root $u_j=b_j^v$ in $\F_p$, $mv\equiv1$ modulo $p-1$. If $e=0$, put $\kappa=\F_p$ and $y_j=u_j$. If $e\ge1$, put $\kappa=\F_p[i]$, $i^2=-1$, which is a field with $p^2$ elements because $p\equiv3$ modulo $4$. The $2$-part of the order of the cyclic group $\kappa^\times$ is $2^a$ with \[ a=v_2(p-1)+v_2(p+1)\ge1+J\ge e+2 . \] An element of $\kappa^\times$ whose order has $2$-part at most $2^{a-1}$ is a square. The $2$-part of the order of $u_j\in\F_p^\times$ is at most $2$, and extracting a square root at most doubles the $2$-part of the order; so one can extract $e$ square roots in succession, with arbitrary choices of the signs, and obtains $y_j\in\kappa$ with $y_j^{2^e}=u_j$. Square roots in $\kappa$ are found by Las Vegas polynomial-time finite-field factorization \cite[Theorem~20.9, p.~537]{ShoupBook} and verified. In both cases $y_j^D=b_j$ in $\kappa$. Hence $Y_j\mapsto y_j$ defines a ring homomorphism \[ \phi\colon\OO\longrightarrow\kappa . \] By Lemma~\ref{lem:order} $g(Y)\in\OO$ is determined by the real number $\alpha=g(\beta_1,\dots,\beta_r)$. So if $\alpha=0$, then $g(y_1,\dots,y_r)=\phi(g(Y))=0$ in $\kappa$, \emph{for every such $p$ and every choice of the roots}. Suppose $\alpha\neq0$ and let $N=|N_{K/\Q}(\alpha)|$, a positive integer. By the theorem of Cayley and Hamilton $\pm N=\alpha\alpha'$ with $\alpha'\in\Z[\alpha]\subset\OO$. So if $p\nmid N$, then $\phi(\alpha)\phi(\alpha')\neq0$ and $g(y_1,\dots,y_r)\ne0$, again for every choice of the roots. Let $s$ be the number of gates of the circuit for $g$ and $L\ge1$ an integer with $b_j\le2^L$ for all $j$ (the constants being at most $2^L$ as well). All conjugates of the $\beta_j$ have absolute value at most $2^L$, and a gate at most squares a bound that is at least $2$; so every conjugate of $\alpha$ has absolute value at most $2^{L2^s}$ and \begin{equation}\label{eq:norm} \log_2N\le D^r\,L\,2^s . \end{equation} The number $B=D^rL2^s+rL+1$ has polynomially many bits, and $N\prod_jb_j$ has fewer than $B$ prime divisors. \subsection*{The algorithm} Compute the normalization, $D$, $m$, $e$, $J$ and $B$; draw a random $p\in\PP(m,J,X)$ as in Proposition~\ref{prop:primes} (with $w=0$); if $p$ divides $\prod b_j$, answer ``zero''; otherwise compute the $y_j$, evaluate the circuit for $g$ at $(y_1,\dots,y_r)$ in $\kappa$, and answer ``nonzero'' if the result is not $0$ and ``zero'' otherwise. If $\alpha=0$, the answer is ``zero''. If $\alpha\ne0$, the answer is wrong only if $p$ divides $N\prod b_j$, which has probability less than $B/|\PP|<\frac1{64}$. The expected running time is bounded by a polynomial $T$ in the input size; stopping after $64T$ steps, with the answer ``zero'', adds at most $\frac1{64}$ to the error probability. This proves Theorem~\ref{thm:flat}. \qed \section{Proof of Theorem \ref{thm:nested}} \begin{lemma}\label{lem:local} Let $k\subset\R$ be a number field, $p$ a prime, and $k\to L$ an embedding into a finite extension $L$ of $\Q_p$ with residue field $\F_p$. Let $\alpha\in\R$ and $d\ge1$ with $\alpha^d\in k$ and $\gcd(d,p(p-1))=1$. Then there are a finite extension $L'$ of $L$ with residue field $\F_p$ and an embedding $k(\alpha)\to L'$ that extends $k\to L$. \end{lemma} \begin{proof} We may assume $\alpha\ne0$. Let $s$ be minimal with $\gamma=\alpha^s\in k$; by Lemma~\ref{lem:real} $s\mid d$ and $k(\alpha)\cong k[X]/(X^s-\gamma)$. Let $\pi$ be a uniformizer of $L$ and $\gamma=\pi^vu$ with a unit $u$ of $L$. Since $s$ is prime to $p-1$ and to $p$, the $s$-th power map is bijective on $\F_p^\times$ and on the units congruent to $1$; so $u=w^s$ with a unit $w$. The extension $L'=L(\sqrt[s]\pi)$ is totally ramified, so its residue field is $\F_p$, and $X^s-\gamma$ has the root $(\sqrt[s]\pi)^vw$ in it. \end{proof} Let an odd-root circuit be given, let $m$ be the least common multiple of the degrees of its root gates, and $p$ a prime with $\gcd(m,p(p-1))=1$. Evaluate the circuit in $\F_p$ by using for a root gate of degree $d$ the bijection $x\mapsto x^{1/d}$ of $\F_p$, that is, $x\mapsto x^{d'}$ with $dd'\equiv1$ modulo $p-1$ (and $0\mapsto0$). \begin{proposition}\label{prop:reduction} Let $\alpha\in\R$ be the value of the circuit and $\bar\alpha\in\F_p$ the value of its evaluation in $\F_p$. If $\alpha=0$, then $\bar\alpha=0$. If $\alpha\neq0$ and $p$ does not divide $N_{\Q(\alpha)/\Q}(\alpha)$, then $\bar\alpha\ne0$. If $\alpha$ is an integer, then $\bar\alpha$ is its residue class modulo $p$. \end{proposition} \begin{proof} The values of the gates are real algebraic integers. Adjoining the values of the root gates one after another to $\Q$ and applying Lemma~\ref{lem:local} each time, starting from $\Q\to\Q_p$, we obtain a number field $K\subset\R$ that contains the values of all gates, and an embedding of $K$ into a finite extension $L$ of $\Q_p$ with residue field $\F_p$. Let $\rho$ be the resulting homomorphism from the ring of integers of $K$ to $\F_p$. If $u$ is the value at the input of a root gate of degree $d$ and $v=\sqrt[d]u$, then $\rho(v)^d=\rho(u)$, so $\rho(v)$ is the unique $d$-th root of $\rho(u)$ in $\F_p$. By induction over the gates $\bar\alpha=\rho(\alpha)$. This gives the first and the third statement; and if $p$ does not divide the norm of $\alpha\ne0$, then $\alpha$ is a unit at all places above $p$, so $\rho(\alpha)\neq0$. \end{proof} Let $L\ge1$ be such that the inputs have absolute value at most $2^L$, let $s$ be the number of gates $+,\times$, and $\Delta$ the product of the degrees of the root gates. The conjugates of $\sqrt[d]u$ are $d$-th roots of conjugates of $u$; so root gates do not increase a bound that is at least $1$, and as before every conjugate of $\alpha$ has absolute value at most $2^{L2^s}$. The degree of $\alpha$ is at most $\Delta$. So the norm of $\alpha\neq0$ has fewer than $B=\Delta L2^s+1$ prime divisors, and $\log B$ is polynomial in the size of the circuit. Draw a random $p\in\PP(m,J_0,X)$ as in Proposition~\ref{prop:primes}, evaluate the circuit in $\F_p$, and answer accordingly; by Proposition~\ref{prop:reduction} and Proposition~\ref{prop:primes} this is a $\coRP$ algorithm, with the same treatment of the running time as before. \qed \begin{proof}[Proof of Corollary \ref{cor:value}] Draw $p$ as in the proofs, with the given $w$, so that $p>2^{w+1}$. For an odd-root circuit $\bar\alpha$ is the residue class of the value $\alpha\in\Z$ modulo $p$ by Proposition~\ref{prop:reduction}, for every such $p$; with $|\alpha|\le2^w$ this determines $\alpha$. For an instance of RIT repeat until $p\nmid\prod b_j$; then $\phi(g(Y))=\phi(\alpha)$ is the residue class of $\alpha$ in $\F_p\subset\kappa$. \end{proof} \begin{proposition}\label{prop:det} There is a deterministic algorithm that, given an instance of RIT whose value is an integer of absolute value at most $2^w$, computes this integer in time polynomial in the size of the input, $w$ and the least common multiple $D$ of the degrees. \end{proposition} \begin{proof} Use the notation of Section~3. If $D=1$, evaluate the integer circuit in $\Z/2^{w+2}\Z$ and recover its unique representative of absolute value at most $2^w$. Assume $D>1$. Let $p$ be the least prime that does not divide $D$; it is at most $D+1$. Let $f$ be the order of $p$ modulo $D(p-1)$, so that $f2^{w+1}$. Trials succeed with probability bounded below and every completed trial gives the correct integer. For a register program, fix its actual characteristic-zero execution path. At each zero test include the norm of its nonzero numerator, and include the norms of the nonzero denominators encountered on this path. The number of factors and polynomial-bit upper bounds for their logarithms follow from the step bound and the circuit estimates above; one can choose a uniform budget from the program description and step bound without knowing the path. Outside this finite set of bad primes, induction on the first possible divergent branch proves that all tests and divisions agree with the actual path. The output is therefore correct. A modular zero denominator causes the simulation to abort with a fixed default output. Sample using the enlarged budget, and truncate sampling and execution at the given polynomial bounds as above. The union bound gives bounded error. At bad primes a false zero may change the path, which is why this argument gives no Las Vegas assertion for branching programs. \end{proof} \begin{remark}\label{rem:mixed} The field used in Theorem~\ref{thm:nested} is $\F_p$; its local extension is a proof device and is not constructed. If flat radicals of even degree occur at the inputs and computed odd roots have degrees prime to $3$, a similar algorithm works in $\F_{p^2}$. Let $D$ be the least common multiple of the flat degrees, take $J\ge\max(J_0,v_2(D)+1)$, and let $M$ be the least common multiple of the odd parts of the flat degrees and the computed odd degrees. Use the single class $p\equiv-1\pmod{2^J}$, $p\equiv2\pmod M$, and exclude primes dividing the normalized radicands. For every computed odd degree $d$, one then has $\gcd(d,p(p^2-1))=1$. The last assertion of Proposition~\ref{prop:primes} supplies these primes with the required density. For soundness, the chosen finite-field roots of the flat binomials lift by Hensel's lemma to the ring of integers of the unramified quadratic extension of $\Q_p$, because $p\nmid D\prod b_j$. The resulting homomorphism from $\OO$ extends to an embedding of $K=\OO\otimes\Q$. Lemma~\ref{lem:local} applies with residue field $\F_{p^2}$ after replacing $p-1$ by $p^2-1$, and handles the computed odd roots. The same norm bounds and bad-prime argument give a one-sided zero test. Every prime $p>3$ has $3\mid p^2-1$, so this particular method does not handle computed cube roots over $\F_{p^2}$. \end{remark} \paragraph{Review provenance.} GPT-6 Astra (OpenAI), ChatGPT Pro mode, reviewed this text on 2 December 2026, before its first posting, checked the full proofs and exact source locators, had each mathematical refinement checked by a separate instance before insertion, restored the division and register-program scopes of run NEG\_NIGHT, sharpened the classical prime-size bound and added the single-class sampler using established Dirichlet GRH, and added explicit reproducible test suites. \begin{thebibliography}{99} \bibitem{Alpoge} L.~Alp\"oge, \emph{Remark} (20 November 2026). \url{https://alpo.ge/remark.pdf}. \bibitem{ABKM} E.~Allender, P.~B\"urgisser, J.~Kjeldgaard-Pedersen and P.~B.~Miltersen, \emph{On the complexity of numerical analysis}, SIAM J. Comput. \textbf{38} (2009), 1987--2006. \bibitem{BPSW} N.~Balaji, S.~Perifel, M.~Shirmohammadi and J.~Worrell, \emph{Cyclotomic identity testing and applications}, ISSAC 2021; arXiv:2007.13179v2 (4 May 2021). \bibitem{BDS} E.~Bach, J.~Driscoll and J.~Shallit, \emph{Factor refinement}, J. Algorithms \textbf{15} (1993), 199--222. \bibitem{BNSW} N.~Balaji, K.~Nosan, M.~Shirmohammadi and J.~Worrell, \emph{Identity testing for radical expressions}, LICS 2022, article 8; arXiv:2202.07961v4. \bibitem{Bloemer} J.~Bl\"omer, \emph{A probabilistic zero-test for expressions involving roots of rational numbers}, ESA 1998, Lecture Notes in Comput. Sci. 1461, 151--162; exact locators refer to ETH Technical Report 299 (27 May 1998), author version, \url{https://www.research-collection.ethz.ch/server/api/core/bitstreams/bd43f0d9-ac27-4ad1-8ab1-04a50dc6f080/content}. \bibitem{BuergisserJindal} P.~B\"urgisser and G.~Jindal, \emph{On the hardness of PosSLP}, SODA 2024; arXiv:2307.08008v1 (16 July 2023). \bibitem{GRHLean} L.~Sernau and others, \emph{grh-lean}, a Lean proof of the generalized Riemann hypothesis for Dirichlet $L$-functions (2026). \url{https://github.com/lsernau/grh-lean}, readable edition at commit \texttt{72fead102f663d5c7a407964a13dc0cf9d977207}; theorem scope and verification reports as of 2 December 2026. No new kernel replay is claimed here. \bibitem{IwaniecKowalski} H.~Iwaniec and E.~Kowalski, \emph{Analytic number theory}, Amer. Math. Soc. Colloq. Publ. 53, 2004. \bibitem{KoiranHexagon} \emph{Hilbert's Nullstellensatz is in $\mathsf{AM}$ from a zero-free half-plane of Dedekind zeta functions, after Koiran}, hexagon:2611.01018v2 (1 December 2026; AI-produced). \url{https://hexagonmath.org/2611.01018v2}. \bibitem{Meiburg} A.~Meiburg, \emph{$\exists\mathbb R\subseteq\mathsf{CH}$}, arXiv:2610.10514v1 (7 October 2026). \bibitem{Mordell} L.~J.~Mordell, \emph{On the linear independence of algebraic numbers}, Pacific J. Math. \textbf{3} (1953), 625--630. \bibitem{Siegel} C.~L.~Siegel, \emph{Algebraische Abh\"angigkeit von Wurzeln}, Acta Arith. \textbf{21} (1972), 59--64. \bibitem{Shoup} V.~Shoup, \emph{New algorithms for finding irreducible polynomials over finite fields}, Math. Comp. \textbf{54} (1990), 435--447; author manuscript \url{https://www.shoup.net/papers/detirred.pdf}. \bibitem{Tao} T.~Tao, \emph{254A, Notes 7: Linnik's theorem on primes in arithmetic progressions} (2015). \url{https://terrytao.wordpress.com/2015/02/22/254a-notes-7-linniks-theorem-on-primes-in-arithmetic-progressions/}. \bibitem{AKS} M.~Agrawal, N.~Kayal and N.~Saxena, \emph{PRIMES is in P}, Ann. of Math. \textbf{160} (2004), 781--793, Theorems~4.1 and~5.1. \url{https://doi.org/10.4007/annals.2004.160.781}. \bibitem{CuretonThorner} D.~Cureton and J.~Thorner, \emph{A quasi-Riemann hypothesis for Dedekind zeta functions}, hexagon:2610.00200v2 (2026), Theorem~1.1, p.~3. \url{https://hexagonmath.org/2610.00200v2}. \bibitem{ResearchCatalogue} GPT-6 Astra (OpenAI), ChatGPT Pro mode, research run NEG\_NIGHT (21--22 November 2026), statements NN-C048, NN-C051 and NN-C052 with their proofs; kept with the records of the checks of this work (folder \texttt{neg\_night/}). \bibitem{ShoupBook} V.~Shoup, \emph{A computational introduction to number theory and algebra}, 2nd edition, 2008, Theorem~20.9 and Section~20.6. \url{https://shoup.net/ntb/ntb-v2.pdf}. \bibitem{TaoGRH} T.~Tao, \emph{254A, Notes 2: Complex-analytic multiplicative number theory} (9 December 2014), Exercise~48. \url{https://terrytao.wordpress.com/2014/12/09/254a-notes-2-complex-analytic-multiplicative-number-theory/}. \end{thebibliography} \end{document}