alphaFeedback

WorksMathematics

Deterministic Polynomial-Time Primality Testing with a Single Binomial Congruence

AI contributions
  • OpenAI ChatGPT 6
View details

Abstract

We give a deterministic polynomial-time primality test whose main verification is the congruence (1+X)n=1+Xn(1+X)^n=1+X^n in Cn[X]/(Xr−b(Y))C_n[X]/(X^r-b(Y)), where Cn=(Z/nZ)[Y]/(Φr(Y))C_n=(\mathbb{Z}/n\mathbb{Z})[Y]/(\Phi_r(Y)). Two identities in the coefficient ring normalize bb and ensure compatibility with the main congruence. A finite-field root count and a lattice bound show that an accepted input is a prime power; elementary preprocessing excludes nontrivial perfect powers. We construct bb deterministically using Jacobi sums and the uniform Dedekind-zeta zero-free theorem of Cureton and Thorner, which extends OpenAI's Hecke zero-free theorem. The total bit complexity is L32+o(1)L^{32+o(1)}, where L=⌈log⁡2n⌉L=\lceil\log_2 n\rceil, and verification after constructing bb costs L6+o(1)L^{6+o(1)}. More generally, for a fixed real algebraic 1/2≤θ<11/2\le\theta<1, a common zero-free boundary ℜs>θ\Re s>\theta for the relevant Dedekind zeta functions gives Lmax⁡{6,(1−θ)−1}+o(1)L^{\max\{6,(1-\theta)^{-1}\}+o(1)}. This bound reaches L6+o(1)L^{6+o(1)} at θ=5/6\theta=5/6, and hence under GRH. We state a fixed-base modification of Agrawal's conjecture for odd integers passing the base-22 Fermat test, using the modulus Xr−2X^r-2 with rr the least positive integer not dividing n(n−1)n(n-1).

Introduction

For a prime nn, the identity

(1+X)n=1+Xn(1)(1 + X)^n = 1 + X^n \tag*{(1)}

holds in every commutative algebra of characteristic nn. A primality test based on this identity must choose an algebra small enough to compute in and sufficiently restrictive to exclude composite inputs. We construct such an algebra deterministically, using one shift, one binomial relation, and exponent nn.

The coefficient ring and the final algebra are

Cn=(Z/nZ)[Y]/(Φr(Y)),An=Cn[X]/(Xr−b(Y)),(2)C_n = (\mathbb{Z}/n\mathbb{Z})[Y]/(\Phi_r(Y)), \qquad A_n = C_n[X]/(X^r - b(Y)), \tag*{(2)}

where rr is odd and squarefree and Φr\Phi_r is the rrth cyclotomic polynomial. Thus the test can equally be written in the multivariate quotient

(Z/nZ)[X,Y]/(Φr(Y),Xr−b(Y)).(\mathbb{Z}/n\mathbb{Z})[X,Y]/(\Phi_r(Y), X^r - b(Y)).

Arithmetic is performed in the full quotient, which may have zero divisors. Field quotients enter only in the proof.

For a suitable auxiliary integer DD, the acceptance equalities are

b(Y)(nD−1)/r=Yin Cn,(3)b(Y)^{(n^D-1)/r} = Y \qquad\text{in } C_n, \tag*{(3)}
b(Y)n=b(Yn)in Cn,(4)b(Y)^n = b(Y^n) \qquad\text{in } C_n, \tag*{(4)}
(1+X)n=1+Xnin An.(5)(1 + X)^n = 1 + X^n \qquad\text{in } A_n. \tag*{(5)}

The single binomial congruence is (5), evaluated in An\mathcal{A}_n. The two checks in CnC_n and elementary integer preprocessing complete the test.

The deterministic parameter construction uses a uniform zero-free theorem. OpenAI proved a common width 10−610^{-6} for finite-order Hecke LL-functions over cyclotomic fields containing μ12\mu_{12} [11 Theorem 1.2]. Cureton and Thorner extended this approach to all number fields and obtained the following stronger result.

Theorem 1.1 (Cureton–Thorner [9 Theorem 1.1]). For every number field FF, its Dedekind zeta function satisfies

ζF(s)≠0(ℜs>3132, s≠1).\zeta_F(s) \ne0 \qquad\left(\Re s > \frac{31}{32},\ s \ne1\right).

This theorem has a published Lean formalization generated with AxiomProver [3]. We use δ=1/32\delta= 1/32 in the main algorithm, so that its search cutoff is computed by integer powering. We retain δ\delta in the estimates to exhibit the effect of stronger analytic bounds. The uniformity needed below concerns the zero-free boundary; Lemma 4.1 separately makes the effective dependence on field degree and discriminant explicit.

The main result uses Theorem 1.1 as its analytic input. Corollary 6.1 gives the dependence of the running time on a general uniform zero-free boundary. Any stronger boundary satisfying its hypotheses therefore gives the corresponding improved bound by direct substitution, with the same parameter construction and algebraic acceptance criterion. § 6.1 also identifies the 5/65/6 threshold and the GRH endpoint.

Theorem 1.2 (Main result). There is a deterministic primality algorithm using (3)–(5) with total bit complexity

L32+o(1),L=⌈log⁡2n⌉.L^{32+o(1)}, \qquad L = \lceil\log_2 n\rceil.

Its parameters satisfy

D=Lo(1),r=L2+o(1),φ(r)≤r.D = L^{o(1)}, \qquad r = L^{2+o(1)}, \qquad\varphi(r) \le r.

Verification after constructing bb costs L6+o(1)L^{6+o(1)} bit operations.

The proof has three components. A normalized coefficient first produces a cyclic orbit of rr linear factors in a field extension. Bernstein’s root-counting and lattice method [4] then excludes inputs with two distinct prime factors. Next, an Odlyzko–Pomerance construction gives r=L2+o(1)r = L^{2+o(1)}, with every prime factor of rr of size Lo(1)L^{o(1)}. Finally, we construct the coefficient by combining Jacobi sums for those small prime factors. Treating the prime degrees separately keeps the number-field degrees in the auxiliary-prime estimate small.

The AKS theorem established deterministic polynomial-time primality testing [2]. Berrizbeitia and Cheng developed tests using binomial extensions and a small number of congruences [6, 7]. Bernstein gave an essentially quartic random-time primality-proving algorithm [4]; its group-size argument is the algebraic foundation used here. Lenstra and Pomerance subsequently obtained an unconditional L6+o(1)L^{6+o(1)} deterministic algorithm using Gaussian periods [10]. The present construction concerns the deterministic realization of the particular congruence (5), with a normalized coefficient in the full cyclotomic quotient. Its auxiliary-prime search dominates the stated total bound.

Throughout, log⁡\log is the natural logarithm unless a base is displayed. The notation O~\widetilde{O} suppresses factors polynomial in logarithms. All complexity statements count bit operations; o(1)o(1) is as L→∞L \to\infty, with δ\delta fixed.

An algebraic acceptance criterion

We first prove that the three acceptance identities force nn to be a prime power. This part of the argument depends only on the identities and the sizes of the degrees, not on how the coefficient is constructed.

Let n>3n>3 be odd, and choose an odd squarefree integer r>2r>2 and a positive integer DD such that

gcd⁡(n,r)=gcd⁡(D,r)=1,q−1∣Dfor every prime q∣r.(6)\gcd(n,r)=\gcd(D,r)=1,\qquad q-1\mid D\quad\text{for every prime }q\mid r. \tag*{(6)}

In particular, λ(r)∣D\lambda(r)\mid D, so nD≡1(modr)n^D\equiv1\pmod r and the exponent in (3) is integral. For odd rr, define

h=r−12,Br=∑j=0h(rj)(hj)(r−j+hh).(7)h=\frac{r-1}{2},\qquad B_r=\sum_{j=0}^{h}\binom{r}{j}\binom{h}{j}\binom{r-j+h}{h}. \tag*{(7)}

Our exact size condition is

3⌊log⁡2Br⌋2≥D2L2r,L=⌈log⁡2n⌉.(8)3\left\lfloor\log_2 B_r\right\rfloor^2\ge D^2L^2r,\qquad L=\left\lceil\log_2 n\right\rceil. \tag*{(8)}

This condition uses integer arithmetic only: the logarithm floor is the bit length of BrB_r minus one.

Lemma 2.1 (Cyclotomic coefficient ring). Under (6), substitution Y↦YnY\mapsto Y^n defines an automorphism σ\sigma of CnC_n with σD=1\sigma^D=1. Each field quotient of CnC_n is Fpe\mathbb{F}_{p^e} for some prime p∣np\mid n, where e=ord⁡r(p)∣De=\operatorname{ord}_r(p)\mid D. In every such quotient the image of YY has order exactly rr.

Proof. Since gcd⁡(n,r)=1\gcd(n,r)=1, raising a primitive rrth root to its nnth power permutes the primitive roots. The integral cyclotomic relation therefore makes the substitution well-defined. An inverse is substitution by YvY^v for nv≡1(modr)nv\equiv1\pmod r. Also Yr=1Y^r=1 and nD≡1(modr)n^D\equiv1\pmod r, which prove σD=1\sigma^D=1.

A maximal ideal of CnC_n lies over a prime divisor pp of nn. Because p∤rp\nmid r, the polynomial Xr−1X^r-1 is squarefree in Fp[X]\mathbb{F}_p[X]. The roots of Φr\Phi_r are precisely the primitive rrth roots, whose Frobenius orbits have length ord⁡r(p)\operatorname{ord}_r(p). The quotient fields consequently have the stated degrees. Finally, pD≡1(modr)p^D\equiv1\pmod r implies e∣De\mid D. □

Lemma 2.2 (Iteration of the main congruence). If (4) and (5) hold, then

(1+X)nj=1+Xnjin An(j≥0).(1+X)^{n^j}=1+X^{n^j}\quad\text{in }A_n\qquad(j\ge0).

Proof. Equation (4) gives σi(b)=bni\sigma^i(b)=b^{n^i} by induction. Put F(X)=(1+X)n−1−XnF(X)=(1+X)^n-1-X^n. Equation (5) says Xr−b∣F(X)X^r-b\mid F(X) in Cn[X]C_n[X]. Applying σi\sigma^i to its coefficients gives Xr−bni∣F(X)X^r-b^{n^i}\mid F(X). Substituting XniX^{n^i} and using

Xr−b∣Xrni−bniX^r-b\mid X^{rn^i}-b^{n^i}

gives (1+Xni)n=1+Xni+1(1+X^{n^i})^n=1+X^{n^{i+1}} in AnA_n. Starting at j=0j=0, this proves the assertion by induction. No additivity of nnth powering for composite nn is used. □

Theorem 2.3 (Acceptance criterion). Suppose (6) and (8) hold. If (3)–(5) hold, then nn is a prime power. If nn is not a nontrivial perfect power, it is prime.

Proof. Put N=nDN=n^D. The element YY is a unit, so (3) makes bb a unit. Suppose for a contradiction that nn has at least two distinct prime divisors. Choose a field quotient k=Fpek=\mathbb{F}_{p^e} of CnC_n as in Lemma 2.1, and put P=peP=p^e. We use the same names for the images of YY and bb. One has P∣NP\mid N, and YY has order rr in $k^\times. Choose a root α\alpha of Xr−bX^r-b in an algebraic closure of kk. Normalization and Lemma 2.2 imply

αN=Yα,ui:=1+Yiα,uiN=ui+1(i mod r).\alpha^N=Y\alpha,\qquad u_i:=1+Y^i\alpha,\qquad u_i^N=u_{i+1}\quad(i\bmod r).

For the last identity, substitute YiαY^i\alpha in (1+X)N=1+XN(1+X)^N=1+X^N and use N≡1(modr)N\equiv1\pmod r. Each uiu_i is nonzero: otherwise α=−Y−i\alpha=-Y^{-i}, so b=(−1)rb=(-1)^r and Y=b(N−1)/rY=b^{(N-1)/r} would have order at most two. Let GG be the finite multiplicative group generated by the uiu_i in k(α)×k(\alpha)^\times.

We first prove ∣G∣≥Br|G|\ge B_r, using the signed-product count recorded by Bernstein [4 Section 3]. Consider all integer vectors a=(a0,…,ar−1)a=(a_0,\ldots,a_{r-1}) for which the positive entries sum to at most hh and the absolute values of the negative entries also sum to at most hh. If exactly jj entries are negative, their positions can be chosen in (rj)\binom{r}{j} ways, their absolute values in (hj)\binom{h}{j} ways, and the remaining nonnegative entries in (r−j+hh)\binom{r-j+h}{h} ways. This gives exactly BrB_r vectors.

Their products ∏iuiai\prod_i u_i^{a_i} are distinct. Indeed, suppose two such products are equal. Taking successive NNth powers rotates all indices, so the equality holds with α\alpha replaced by each of the rr distinct elements YjαY^j\alpha. Clearing denominators produces an equality of two polynomials at all those elements; each polynomial has degree at most 2h=r−12h=r-1. Their difference is therefore zero by the field root bound. Unique factorization into the pairwise distinct factors 1+YiZ1+Y^iZ, whose constant terms are all 1, makes the original exponent vectors equal. Hence

∣G∣≥Br.(9)|G|\ge B_r. \tag*{(9)}

For the upper bound, r∣P−1r\mid P-1, and b∈kb\in k gives αP=Ytα\alpha^P=Y^t\alpha for some integer tt. Set H=N/P>1H=N/P>1. Frobenius in characteristic pp, followed by injectivity of PPth powering, gives

uiP=ui+t,uiH=ui+1−t.(10)u_i^P=u_{i+t},\qquad u_i^H=u_{i+1-t}. \tag*{(10)}

Consider the lattice

Λ={(a,c)∈Z2:(1−t)a+tc≡0(modr)}.\Lambda=\{(a,c)\in\mathbb{Z}^2:(1-t)a+tc\equiv0\pmod r\}.

It has determinant rr, because 1−t1-t and tt generate the unit ideal in Z/rZ\mathbb{Z}/r\mathbb{Z}. The symmetric convex hexagon

max⁡{∣alog⁡H∣,∣clog⁡P∣,∣alog⁡H+clog⁡P∣}≤r/3log⁡N\max\{|a\log H|,|c\log P|,|a\log H+c\log P|\}\le\sqrt{r/3}\log N

has area

r(log⁡N)2log⁡Hlog⁡P≥4r,\frac{r(\log N)^2}{\log H\log P}\ge4r,

since log⁡H+log⁡P=log⁡N\log H+\log P=\log N. Minkowski’s convex body theorem gives a nonzero lattice point in this closed hexagon. The equality case follows by slightly enlarging the hexagon and using discreteness. Change its sign if necessary to make a≥0a\ge0. If c≥0c\ge0, put U=HaPcU=H^aP^c and V=1V=1; if c<0c<0, put U=HaU=H^a and V=P−cV=P^{-c}. Equation (10) and the lattice relation give gU=gVg^U=g^V for every g∈Gg\in G, and

max⁡(U,V)≤Nr/3.\max(U,V)\le N^{\sqrt{r/3}}.

Moreover, U≠VU\ne V. For c≥0c\ge0 this follows from (a,c)≠(0,0)(a,c)\ne(0,0). For c<0c<0, equality would contradict the fact that HH has a prime factor other than pp when a>0a>0; when a=0a=0, it would give 1=P−c>11=P^{-c}>1. Every element of GG is consequently a root of Z∣U−V∣−1Z^{|U-V|}-1 in a field. Thus

∣G∣≤∣U−V∣<Nr/3≤Br.|G|\le|U-V|<N^{\sqrt{r/3}}\le B_r.

The last inequality follows from (8), because log⁡2N≤DL\log_2N\le DL. This contradicts (9). Therefore nn has only one distinct prime divisor.

Remark 2.4. The argument does not require Xr−bX^r-b to be irreducible modulo every prime divisor of nn. It takes a root in a field extension and obtains the needed distinct products from the cyclic rotation and the field root bound. Likewise, CnC_n itself may have zero divisors. Its rank φ(r)\varphi(r) measures arithmetic cost, whereas the smaller number e∣De\mid D controls the lattice bound.

Choosing the degrees

We first record the size of the signed-product count. The improvement from signed products is due to Voloch and Vaaler, as explained in Bernstein’s analysis [4 Section 3].

Proposition 3.1. For odd r→∞r\to\infty,

log⁡2Br=κr+O(log⁡r),κ=log⁡2(3+22).\log_2 B_r=\kappa r+O(\log r),\qquad\kappa=\log_2(3+2\sqrt{2}).

Consequently, for every fixed ϵ>0\epsilon>0,

r>(c0+ϵ)D2L2,c0=13κ2=0.051540616989…,r>(c_0+\epsilon)D^2L^2,\qquad c_0=\frac{1}{3\kappa^2}=0.051540616989\ldots,

implies (8) for sufficiently large rr. A simpler sufficient condition valid for odd r≥7r\ge7 is r≥D2L2r\ge D^2L^2.

Proof. In (7), retain the term with j=⌊(1−1/2)r⌋j=\lfloor(1-1/\sqrt{2})r\rfloor. Stirling’s formula for its three binomial coefficients gives log⁡2Br≥κr−O(log⁡r)\log_2 B_r\ge\kappa r-O(\log r). For the upper bound, set t=2−1t=\sqrt{2}-1. The generating function for one signed exponent, recording positive and negative weights separately, is 1+z/(1−z)+w/(1−w)1+z/(1-z)+w/(1-w). Every vector counted by BrB_r has combined weight at most 2h2h, so

Brt2h≤(1+2t1−t)r=t−r.B_rt^{2h}\le\left(1+\frac{2t}{1-t}\right)^r=t^{-r}.

Since 2h=r−12h=r-1, this has the asserted exponential rate. The asymptotic threshold follows on substituting this estimate in (8). For the simpler bound, the count includes all nonnegative 0–1 vectors of weight at most hh and their negatives, with zero counted once. Their number is 2r−12^r-1. Hence ⌊log⁡2Br⌋≥r−1\lfloor\log_2 B_r\rfloor\ge r-1, and 3(r−1)2≥r2≥D2L2r3(r-1)^2\ge r^2\ge D^2L^2r for the stated range.

To meet the size condition with small DD, we build rr from primes qq for which q−1∣Dq-1\mid D. The following parameter theorem is due to Odlyzko and Pomerance; we use the form in Adleman–Pomerance–Rumely [1 Theorem 3], also used by Bernstein [4]. There is an absolute constant CC such that, for every sufficiently large HH, some positive integer DD satisfies

D≤exp⁡(Clog⁡log⁡Hlog⁡log⁡log⁡H),∏q−1∣Dq primeq≥H.(11)D\le\exp(C\log\log H\log\log\log H),\qquad\prod_{\substack{q-1\mid D\\q\ \mathrm{prime}}}q\ge H. \tag*{(11)}

Proposition 3.2. There is a deterministic search for DD and odd squarefree r>2r>2 satisfying gcd⁡(D,r)=1\gcd(D,r)=1, q−1∣Dq-1\mid D for every prime q∣rq\mid r, and (8), with

D=Lo(1),r=L2+o(1),q≤D+1=Lo(1)(q∣r).(12)D=L^{o(1)},\qquad r=L^{2+o(1)},\qquad q\le D+1=L^{o(1)}\quad(q\mid r). \tag*{(12)}

Its cost is at most L4+o(1)L^{4+o(1)} bit operations.

Proof. Enumerate even positive integers DD. For each, enumerate the primes q≤D+1q \le D+1 with q−1∣Dq-1 \mid D and q∤Dq \nmid D. Multiply these primes in increasing order, checking (8) after each prefix whose product exceeds 2. If all primes are exhausted without success, continue to the next DD.

To bound the search, apply (11) with H=L3H=L^3. The supplied DD is Lo(1)L^{o(1)}. Deleting the primes dividing DD removes a product at most DD, so the remaining product is at least H/D≥D2L2H/D \ge D^2L^2 for sufficiently large LL. Such a successful DD is even: if DD were odd, the product in (11) would contain only the prime 2. For even DD, excluding q∣Dq \mid D also excludes 2. Proposition 3.1 now guarantees success. For each fixed smaller LL, applying (11) with HH sufficiently large gives the same termination argument.

At the first successful prefix the product obeys

r≤(D+1)max⁡{6,D2L2}=L2+o(1).r \le(D+1)\max\{6,D^2L^2\}=L^{2+o(1)}.

Conversely, Proposition 3.1’s upper estimate and (8) give r≫D2L2r \gg D^2L^2, establishing the stated asymptotic scale. Each trial has Lo(1)L^{o(1)} small primes and divisibility checks. The exact count BrB_r can be evaluated from binomial recurrences in O~(r2)\widetilde{O}(r^2) bit operations: there are O(r)O(r) terms, each with O(r)O(r) bits. The Lo(1)L^{o(1)} trials fit the claimed bound. □

The factorization of rr is known from its construction. To enforce gcd⁡(n,r)=1\gcd(n,r)=1, test its known prime factors against nn. A common prime factor proves compositeness unless it equals nn, in which case nn is prime.

A uniform auxiliary-prime bound

For each prime q∣rq \mid r, we seek a prime ℓ\ell modulo which nn is a qqth power nonresidue. Such a prime will define the character used in § 5. We prove its existence for prime inputs by applying Theorem 1.1 to Kummer extensions of degree qq. The following smoothed estimate makes the dependence on the number field explicit.

Lemma 4.1 (Smoothed prime-ideal estimate). Fix 0<δ≤1/20<\delta\le1/2 and a nonzero nonnegative smooth function ww supported in (1,2)(1,2). Let FF be a number field of degree dFd_F and absolute discriminant ΔF\Delta_F, and suppose its Dedekind zeta function has no zeros in ℜs>1−δ\Re s>1-\delta. Put

ΨF(x)=∑p∑a≥1log⁡Np w((Np)ax).\Psi_F(x)=\sum_{\mathfrak{p}}\sum_{a\ge1}\log N\mathfrak{p}\,w\left(\frac{(N\mathfrak{p})^a}{x}\right).

Then, uniformly in FF and x≥2x\ge2,

ΨF(x)=xw^(1)+Ow(x1−δ(log⁡ΔF+dF)),w^(s)=∫0∞w(u)us−1 du.(13)\Psi_F(x)=x\widehat{w}(1)+O_w\left(x^{1-\delta}(\log\Delta_F+d_F)\right),\qquad \widehat{w}(s)=\int_0^\infty w(u)u^{s-1}\,du. \tag*{(13)}

The implied constant is effective.

Proof. This is the smoothed explicit-formula calculation in [11 Section 9.2, especially (9.9)]; we recall the dependence on the field. Mellin inversion applied to −ζF′/ζF-\zeta_F'/\zeta_F and a contour shift from ℜs=2\Re s=2 to ℜs=−1/2\Re s=-1/2 give

ΨF(x)=xw^(1)−∑ρxρw^(ρ)−(r1+r2−1)w^(0)+Ow(x−1/2(log⁡ΔF+dF)).\Psi_F(x)=x\widehat{w}(1)-\sum_{\rho}x^\rho\widehat{w}(\rho)-(r_1+r_2-1)\widehat{w}(0)+O_w\left(x^{-1/2}(\log\Delta_F+d_F)\right).

where ρ\rho runs over nontrivial zeros with multiplicity and (r1,r2)(r_1,r_2) is the signature. The functional equation bounds the integral on the left line with the displayed dependence. The uniform zero count in a unit interval at height TT is O(log⁡ΔF+dFlog⁡(2+∣T∣))O(\log\Delta_F + d_F \log(2 + |T|)). The Mellin transform decays faster than every inverse power of ∣T∣|T| in bounded vertical strips. Since ℜρ≤1−δ\Re\rho\le1-\delta, the zero sum is absolutely convergent and is bounded by Ow(x1−δ(log⁡ΔF+dF))O_w(x^{1-\delta}(\log\Delta_F + d_F)). The residue at zero and the left-line integral are absorbed in the same bound. These estimates have effective absolute constants for fixed ww.

Lemma 4.2 (Auxiliary prime for one prime degree). Fix 0<δ<1/20 < \delta< 1/2, and suppose that for every number field FF, ζF(s)\zeta_F(s) has no zeros in ℜs>1−δ\Re s > 1-\delta. There is an effective constant CδC_\delta such that, for every prime n>3n > 3 and every odd prime q≠nq \ne n, there is a prime ℓ\ell satisfying

ℓ≤Cδ(q(L+log⁡q+2))1/δ.(14)\ell\le C_\delta\left(q(L+\log q+2)\right)^{1/\delta}. \tag*{(14)}
ℓ≡1(mod12q),ℓ∤n,n(ℓ−1)/q≢1(modℓ).)(15)\ell\equiv1 \pmod{12q),\qquad\ell\nmid n,\qquad n^{(\ell-1)/q} \not\equiv1 \pmod{\ell}.} \tag*{(15)}

Proof. Set K=Q(μ12q)K = \mathbb{Q}(\mu_{12q}) and M=K(n1/q)M = K(n^{1/q}). The prime nn is unramified in KK, so Xq−nX^q-n is Eisenstein at a prime of KK above nn. Thus [M:K]=q[M:K] = q, and M/KM/K is cyclic because μq⊂K\mu_q \subset K. By hypothesis, both ζK\zeta_K and ζM\zeta_M are zero-free in ℜs>1−δ\Re s > 1-\delta. For the stated algorithm, Theorem 1.1 supplies this hypothesis with δ=1/32\delta= 1/32.

The cyclotomic discriminant bound and the discriminant of Xq−nX^q-n give

[K:Q]=O(q),log⁡ΔK=O(qlog⁡q),[K:\mathbb{Q}] = O(q),\qquad\log\Delta_K = O(q\log q),
[M:Q]=O(q2),log⁡ΔM=O(q2(L+log⁡q)).[M:\mathbb{Q}] = O(q^2),\qquad\log\Delta_M = O(q^2(L+\log q)).

More explicitly, the relative discriminant divides (qqnq−1)OK(q^q n^{q-1})\mathcal{O}_K, and the discriminant tower formula gives the second bound. Lemma 4.1 therefore yields

ΨK(x)−1qΨM(x)=(1−1q)xw~(1)+Ow(q(L+log⁡q+2)x1−δ).(16)\Psi_K(x)-\frac{1}{q}\Psi_M(x)=\left(1-\frac{1}{q}\right)x\widetilde{w}(1)+O_w\left(q(L+\log q+2)x^{1-\delta}\right). \tag*{(16)}

Consider an unramified degree-one prime of KK. If it splits in MM, its first-power contribution cancels against the contributions of the qq primes above it, after the factor 1/q1/q. Otherwise it is inert, since the extension has prime degree, and its positive first-power contribution remains. A surviving prime lies above a rational prime ℓ≡1(mod12q)\ell\equiv1 \pmod{12q} for which nn is not a qqth power in Fℓ\mathbb{F}_\ell. This is exactly the last condition in (15).

All terms of prime-ideal residue degree at least two, and all higher prime powers, contribute in absolute value at most Ow(qxlog⁡2(2x))O_w(q\sqrt{x}\log^2(2x)) to (16). To see the field dependence, a field of degree dd contributes at most Ow(dxlog⁡2(2x))O_w(d\sqrt{x}\log^2(2x)); the weighted total degree here is [K:Q]+[M:Q]/q=O(q)[K:\mathbb{Q}]+[M:\mathbb{Q}]/q=O(q). Ramified degree-one first powers contribute at most Ow(qlog⁡(6qn))O_w(q\log(6qn)), since the ramified rational primes divide 6qn6qn.

Take x=Tδ(q(L+log⁡q+2))1/δx=T_\delta\left(q(L+\log q+2)\right)^{1/\delta}. For an effectively large constant TδT_\delta, the error in (16) is less than half its main term. The discarded terms are smaller as well, uniformly in qq and nn, because δ<1/2\delta< 1/2. Some surviving prime lies in (x,2x)(x,2x). Absorbing 2Tδ2T_\delta in CδC_\delta proves the lemma.

All primes q∣rq\mid r are at most D+1D+1. Hence a common search bound, increased by rounding if needed, is

B=⌈Cδ((D+1)(L+⌈log⁡2(D+1)⌉+3))1/δ⌉=L1/δ+o(1)=L32+o(1).(17)B=\left\lceil C_\delta((D+1)(L+\lceil\log_2(D+1)\rceil+3))^{1/\delta}\right\rceil =L^{1/\delta+o(1)}=L^{32+o(1)}. \tag*{(17)}

For the search itself it suffices to test primes ℓ≡1(modq)\ell\equiv1\pmod q; Lemma 4.2 supplies a prime even in the smaller progression. Only prime-input existence is needed. If a search fails within the bound, the algorithm rejects.

Constructing the normalized coefficient

Characters defined by the input

For each prime q∣rq \mid r, choose a prime ℓq≤B\ell_q \le B with q∣ℓq−1q \mid\ell_q-1, ℓq∤n\ell_q \nmid n, and n(ℓq−1)/q≢1(modℓq)n^{(\ell_q-1)/q} \not\equiv1 \pmod{\ell_q}. Put

tq=n(ℓq−1)/q mod ℓq.t_q = n^{(\ell_q-1)/q} \bmod\ell_q.

Its order in Fℓq×\mathbb{F}_{\ell_q}^{\times} is exactly qq. For u≠0u \ne0 define jq(u)∈{0,…,q−1}j_q(u) \in\{0,\ldots,q-1\} by

u(ℓq−1)/q=tqjq(u)(modℓq).u^{(\ell_q-1)/q} = t_q^{j_q(u)} \pmod{\ell_q}.

This is a multiplicative-group homomorphism to Z/qZ\mathbb{Z}/q\mathbb{Z}, written additively, and jq(n mod ℓq)=1j_q(n \bmod\ell_q)=1. Its values are computed by a table of the qq powers of tqt_q.

Choose sq∈{1,…,q−1}s_q \in\{1,\ldots,q-1\} satisfying

sq=−(D(r/q))−1(modq).(18)s_q = -(D(r/q))^{-1} \pmod q. \tag*{(18)}

The inverse exists by (6) and squarefreeness. In Rq=(Z/nZ)[Z]/(Φq(Z))R_q=(\mathbb{Z}/n\mathbb{Z})[Z]/(\Phi_q(Z)), define the order-qq character

χq(u)=Zsqjq(u)(u≠0),χq(0)=0.(19)\chi_q(u)=Z^{s_qj_q(u)}\quad(u\ne0),\qquad\chi_q(0)=0. \tag*{(19)}

In particular, χq(n)=Zsq\chi_q(n)=Z^{s_q} and χq(−1)=1\chi_q(-1)=1, since qq is odd. This construction needs neither a primitive root modulo ℓq\ell_q nor a factorization of ℓq−1\ell_q-1.

Jacobi sums and a binary recurrence

For positive integers a,ca,c, set

J(χa,χc)=∑u∈Fℓχ(u)aχ(1−u)c.J(\chi^a,\chi^c)=\sum_{u\in\mathbb{F}_{\ell}}\chi(u)^a\chi(1-u)^c.

Here χ=χq\chi=\chi_q and ℓ=ℓq\ell=\ell_q. The terms for u=0,1u=0,1 vanish. The other terms are powers of ZZ, so the sum is computed by counting qq possible exponents before reduction modulo (n,Φq(Z))(n,\Phi_q(Z)). Define

βq(Z)=ℓq∏j=1q−2J(χq,χqj)in Rq.(20)\beta_q(Z)=\ell_q\prod_{j=1}^{q-2}J(\chi_q,\chi_q^j)\quad\text{in }R_q. \tag*{(20)}

Lemma 5.1. The element βq\beta_q is the qqth power of its Gauss sum in a cyclotomic extension of RqR_q. It can be computed in RqR_q using only O(log⁡q)O(\log q) Jacobi sums, without constructing that extension.

Proof. For this proof only, work in Rq[T]/(Φℓ(T))R_q[T]/(\Phi_{\ell}(T)) and put τa=∑u≠0χ(u)aTu\tau_a=\sum_{u\ne0}\chi(u)^aT^u. The integral Gauss–Jacobi identities give

τaτc=J(χa,χc)τa+c(a,c,a+c≢0(modq)),(21)\tau_a\tau_c=J(\chi^a,\chi^c)\tau_{a+c}\quad(a,c,a+c\not\equiv0\pmod q), \tag*{(21)}
τ1τq−1=ℓ.(22)\tau_1\tau_{q-1}=\ell. \tag*{(22)}

These follow by grouping the two summation indices according to their sum; the zero-sum terms vanish in (21) because the product character is nontrivial. They are identities in integral cyclotomic rings and remain valid after reduction modulo nn; see also [8 Theorem 2.4]. Iteration gives τ1q=βq\tau_1^q=\beta_q.

For a shorter computation, maintain a<qa<q and A∈RqA\in R_q with τ1a=Aτa\tau_1^a=A\tau_a, starting at a=1a=1, A=1A=1. Follow the binary expansion of q−1q-1 after its leading bit. On a doubling, set

A←A2J(χa,χa),a←2a.A\gets A^2J(\chi^a,\chi^a),\qquad a\gets2a.

If the next bit is 1, then set

A←AJ(χa,χ),a←a+1.A \gets AJ(\chi^{a},\chi), \qquad a \gets a+1.

Every resulting index is at most q−1q-1, so no step uses a trivial product character. At the end, τ1q−1=Aτq−1\tau_1^{q-1}=A\tau_{q-1}; multiplying by τ1\tau_1 gives βq=ℓA\beta_q=\ell A. The coefficient ring embeds in the displayed extension, since its defining polynomial is monic, so this is an identity in RqR_q. There are O(log⁡q)O(\log q) steps and no divisions.

Combining the prime degrees

Substitution Z↦Yr/qZ \mapsto Y^{r/q} defines a homomorphism Rq→CnR_q \to C_n: the polynomial Φq(Yr/q)\Phi_q(Y^{r/q}) is divisible by Φr(Y)\Phi_r(Y) over Z\mathbb{Z}. Form

b(Y)=∏q∣rβq(Yr/q)r/q  in Cn.(23)b(Y)=\prod_{q\mid r}\beta_q(Y^{r/q})^{r/q}\ \text{ in } C_n. \tag*{(23)}

Each computation in ZZ takes place in a ring of rank q−1q-1; the substitution combines its result with the other prime degrees in the common coefficient ring CnC_n.

Proposition 5.2 (Completeness on prime inputs). If nn is prime, the construction (23) satisfies all three equalities (3)–(5).

Proof. Put N=nDN=n^D. In RqR_q, NNth powering fixes every coefficient, because nD≡1(modq)n^D\equiv1\pmod q and the scalar field is Fn\mathbb{F}_n. For the Gauss sum from Lemma 5.1, Frobenius and reindexing give

τ1N=∑u≠0χq(u)TuN=χq(N)−1τ1=Z−Dsqτ1.\tau_1^N=\sum_{u\ne0}\chi_q(u)T^{uN}=\chi_q(N)^{-1}\tau_1=Z^{-Ds_q}\tau_1.

The scalar ℓq\ell_q is invertible modulo nn, so (22) makes τ1\tau_1 a unit. Since βq=τ1q\beta_q=\tau_1^q and q∣N−1q\mid N-1, cancellation gives

βq(N−1)/q=Z−Dsq.(24)\beta_q^{(N-1)/q}=Z^{-Ds_q}. \tag*{(24)}

This identity holds in RqR_q, by its injection into the monic extension used in the proof. Substituting into (23),

b(N−1)/r=Y−D∑q∣rsq(r/q)=Y.b^{(N-1)/r}=Y^{-D\sum_{q\mid r}s_q(r/q)}=Y.

Indeed, modulo each prime q∣rq\mid r, all but its own summand vanish, and (18) makes the remaining exponent 11. The Chinese remainder theorem gives the exponent 11 modulo rr. This proves (3). Finally, nnth powering is Frobenius in every commutative algebra of characteristic the prime nn. It gives b(Y)n=b(Yn)b(Y)^n=b(Y^n) and (1+X)n=1+Xn(1+X)^n=1+X^n, proving the other two equalities.

The algorithm and its bit complexity

Here is the complete algorithm, with δ=1/32\delta=1/32 and an effective constant CδC_\delta from Lemma 4.2 fixed in advance. One may take CδC_\delta to be an integer, so the search bound (17) is computed by integer powering.

  1. Reject integers below 2; accept 2 and 3; reject even inputs greater than 2. Reject nontrivial perfect powers.

  1. Construct D,rD,r as in Proposition 3.2. For every prime q∣rq\mid r, if q∣nq\mid n, accept when q=nq=n and otherwise reject. Construct Φr(Y)\Phi_r(Y) modulo nn.

  1. Sieve the primes up to BB in (17). If a prime in the sieve divides nn, accept when it equals nn and otherwise reject. For every q∣rq \mid r, select a prime ℓq≤B\ell_q \le B with ℓq∤n\ell_q \nmid n, q∣ℓq−1q \mid\ell_q - 1, and n(ℓq−1)/q≢1(modℓq)n^{(\ell_q-1)/q} \not\equiv1 \pmod{\ell_q}. Reject if any such search fails.

  1. Compute the tables jqj_q, the residues sqs_q, and the Jacobi-sum coefficients βq\beta_q using the binary recurrence. Form bb by (23).

  1. Check (3), (4), and (5). Accept if and only if all three hold.

Proof of Theorem 1.2. If the input is prime, preprocessing cannot reject it. Lemma 4.2, using Theorem 1.1, ensures all searches succeed, and Proposition 5.2 proves acceptance. A composite input accepted at the last step would be a prime power by Theorem 2.3, contrary to the preprocessing. The earlier acceptance branches identify the input with a known prime. This proves correctness on every input.

We give the cost bounds in some detail, including the construction of the coefficient. The degree search costs L4+o(1)L^{4+o(1)} by Proposition 3.2. Elementary integer-root methods for exponents up to LL detect nontrivial perfect powers within L4+o(1)L^{4+o(1)} as well.

The sieve up to BB uses O~(B)\widetilde{O}(B) bit operations. Compute nn modulo all its primes with a product tree and a remainder tree [5]. The total bit length SS of these moduli is at most O(Blog⁡B)O(B \log B). With fast multiplication and division, the trees cost O~(S+L)=O~(B+L)\widetilde{O}(S+L)=\widetilde{O}(B+L): at every tree level the node lengths sum to O(S)O(S), and there are O(log⁡B)O(\log B) levels. This avoids an extra factor LL from reducing nn separately for each candidate.

Each small-prime modular exponentiation costs a polynomial in log⁡B\log B. There are O(log⁡r)O(\log r) primes q∣rq \mid r, all of size Lo(1)L^{o(1)}. Testing the candidates for all qq consequently costs L1/δ+o(1)L^{1/\delta+o(1)} in total. The character tables jq(u)j_q(u) are computed by modular exponentiation and lookup among qq possibilities. Each needed Jacobi sum is accumulated by scanning u=2,…,ℓq−1u=2,\ldots,\ell_q-1 and counting its exponent modulo qq. These counts have O(log⁡ℓq)O(\log\ell_q) bits; the scan does not require an LL-bit modular addition for each term. All scans, including the O(log⁡q)O(\log q) sums for each qq, therefore fit the same L1/δ+o(1)L^{1/\delta+o(1)} bound. Arithmetic in the local rings of rank q−1=Lo(1)q-1=L^{o(1)}, after reduction of the counts, costs at most L2+o(1)L^{2+o(1)} over all qq.

Put m=φ(r)≤r=L2+o(1)m=\varphi(r)\le r=L^{2+o(1)}. Fast polynomial multiplication and monic reduction give multiplication costs

O~(mL) in Cn,O~(mrL) in An.\widetilde{O}(mL)\text{ in }C_n,\qquad\widetilde{O}(mrL)\text{ in }A_n.

These bounds apply over Z/nZ\mathbb{Z}/n\mathbb{Z} without assuming it is a field. For the second, polynomial multiplication in XX over CnC_n, followed by Xr=bX^r=b, gives the stated bound; equivalently one may use bivariate Kronecker substitution and monic reductions. Forming (23) costs L3+o(1)L^{3+o(1)}. The coefficient checks cost L4+o(1)L^{4+o(1)}, because the exponents have at most O(DL)O(DL) bits. Substitution Y↦YnY\mapsto Y^n is performed using Yr=1Y^r=1 followed by reduction modulo Φr\Phi_r.

The main congruence needs O(L)O(L) multiplications in AnA_n, for total cost

O~(mrL2)=L6+o(1).\widetilde{O}(mrL^2)=L^{6+o(1)}.

Finally, Φr\Phi_r is constructible by exact monic divisions from the polynomials Yd−1Y^d-1 for the known divisors d∣rd\mid r. There are ro(1)r^{o(1)} such divisors. Even classical polynomial division with elementary LL-bit coefficient arithmetic costs at most r2+o(1)L2=L6+o(1)r^{2+o(1)}L^2=L^{6+o(1)}. This also shows that no polynomial-factorization subroutine is hidden in the construction. Combining the bounds gives

Lmax⁡{6,1/δ}+o(1)=L32+o(1).L^{\max\{6,1/\delta\}+o(1)}=L^{32+o(1)}.

which proves the theorem.

The auxiliary-prime search determines the exponent in the stated bound. The construction does not factor n−1n-1, nD−1n^D-1, or any ℓq−1\ell_q-1.

Dependence on the zero-free boundary

We now record conditional improvements under stronger analytic hypotheses. The proof of Theorem 1.2 is complete without these additional inputs. For the refinements, it suffices to have a common zero-free boundary for the fields Q(μ12q)\mathbb{Q}(\mu_{12q}) and Q(μ12q,n1/q)\mathbb{Q}(\mu_{12q},n^{1/q}), for prime inputs n>3n>3 and odd primes q≠nq\ne n; a theorem over all number fields supplies this uniformly.

Corollary 6.1 (Transfer of uniform zero-free bounds). Fix a real algebraic number 1/2≤θ<11/2\le\theta<1. Suppose that the Dedekind zeta functions of these fields have no zeros in ℜs>θ\Re s>\theta. With a corresponding choice of search cutoff, the construction gives a deterministic primality algorithm with bit complexity

Lmax⁡{6,1/(1−θ)}+o(1).(25)L^{\max\{6,1/(1-\theta)\}+o(1)}. \tag*{(25)}

In particular, a uniform zero-free boundary at 5/65/6 gives L6+o(1)L^{6+o(1)}. Under GRH for the stated fields, the auxiliary-prime search and local Jacobi-sum computations cost L2+o(1)L^{2+o(1)}, and the total cost is L6+o(1)L^{6+o(1)}.

Proof. For 1/2<θ<11/2<\theta<1, put δ=1−θ\delta=1-\theta in Lemma 4.2. Its proof uses only the two stated fields, so the weaker hypothesis of this corollary suffices. Since all q∣rq\mid r satisfy q≤D+1=Lo(1)q\le D+1=L^{o(1)}, the common cutoff is B=L1/(1−θ)+o(1)B=L^{1/(1-\theta)+o(1)}. The sieve, remainder trees, character tables, and local Jacobi-sum computations have this same bound; the remaining work costs L6+o(1)L^{6+o(1)}.

For completeness, the cutoff is effective even when the exponent is not an integer. If AA denotes the integer base in (17), approximate 1/(1−θ)1/(1-\theta) from above by a dyadic rational within 1/log⁡2A1/\log_2 A. This increases its power of AA by at most a factor of 2. Since θ\theta is fixed and algebraic, such an approximation is computable in time polynomial in log⁡A\log A. Its denominator can be O(log⁡A)O(\log A), so integer powering and integer-root extraction compute an upper-rounded cutoff in time polynomial in log⁡A\log A. This cost is negligible in the displayed bound.

At the endpoint θ=1/2\theta=1/2, Lemma 4.1 remains valid with δ=1/2\delta=1/2. The proof of Lemma 4.2 gives an error O(q(L+log⁡q+2)x)O(q(L+\log q+2)\sqrt{x}) in (16), and discarded prime-power and higher-degree terms O(qxlog⁡2(2x))O(q\sqrt{x}\log^2(2x)). Choosing a sufficiently large absolute constant TT and taking

x=T(q(L+log⁡q+2))2log⁡4(2q(L+log⁡q+2))x=T\bigl(q(L+\log q+2)\bigr)^2\log^4\bigl(2q(L+\log q+2)\bigr)

makes their sum, together with the ramified contribution, smaller than the main term. Thus a suitable prime satisfies

ℓq≪(q(L+log⁡q+2))2log⁡4(2q(L+log⁡q+2)).\ell_q\ll\bigl(q(L+\log q+2)\bigr)^2\log^4\bigl(2q(L+\log q+2)\bigr).

Replacing the logarithms by upper-rounded binary logarithms changes only an absolute factor. The common cutoff is consequently L2+o(1)L^{2+o(1)}. The sieve, tables, and local coefficient arithmetic fit this bound. Forming bb from the local coefficients costs L3+o(1)L^{3+o(1)}, and the remaining algebraic work costs L6+o(1)L^{6+o(1)}. GRH for these Dedekind zeta functions supplies the endpoint hypothesis. Finally, 1/(1−5/6)=61/(1-5/6)=6 gives the stated threshold. □\square

Remark 6.2 (Extent of the analytic improvement). Every stronger uniform zero-free boundary satisfying Corollary 6.1 yields the corresponding bound in (25) by changing the auxiliary-prime search cutoff. The degree parameters, Jacobi-sum construction, and algebraic soundness proof remain the same.

The exponent supplied by (25) reaches 6 at θ=5/6\theta= 5/6 and stays 6 throughout 1/2≤θ≤5/61/2 \le\theta\le5/6. Thus 6 is the best exponent obtained by improving the zero-free input alone in the present construction and cost analysis. It is an upper-bound threshold, not a lower bound for every implementation of this test. A smaller exponent would require a faster algebraic stage or a different parameter construction. In particular, the present argument does not yield a bound below the L6+o(1)L^{6+o(1)} Gaussian-period algorithm of Lenstra and Pomerance [10].

The RH hypothesis here concerns the Dedekind zeta functions of the varying cyclotomic and Kummer fields. RH for ζQ\zeta_{\mathbb{Q}} alone does not supply that hypothesis. Table 1 records the resulting exponents; the o(1)o(1) terms tend to zero as L→∞L \to\infty, with the analytic boundary fixed.

Analytic inputBoundary θ\thetaSearch exponentTotal exponent
Cureton–Thorner [9]31/3231/3232323232
Assumed 5/65/6 boundary5/65/66666
GRH for the relevant fields1/21/22266

Table 1. Exponents in the bounds La+o(1)L^{a+o(1)}. The search column includes the character tables and local Jacobi-sum computations. The first row is the main result; all subsequent rows are conditional consequences of the indicated stronger analytic inputs.

Remark 6.3 (A two-equality form). If retaining the exponent nn is unnecessary, one may replace (4) and (5) by

(1+X)nD=1+YXin An.(1+X)^{nD}=1+YX \quad\text{in } A_n.

Together with (3), this gives the rotation used in Theorem 2.3 directly. Prime inputs satisfy it, and the same proof applies. Its asymptotic verification bound is unchanged because D=Lo(1)D=L^{o(1)}, although its exponent is longer.

A fixed-base conjecture

The coefficient b(Y)b(Y) in the proved construction enforces the normalization needed for the cyclic rotation. A simpler possibility is to fix the coefficient at 2 and choose the degree directly from the input. The following conjecture proposes such a test for odd inputs, including a preliminary base-2 Fermat check.

Agrawal’s conjecture, as recorded in [2 Conjecture 6.1], asserts that if rr is prime, r∤nr \nmid n, and (X−1)n≡Xn−1(modn,Xr−1),(X-1)^n \equiv X^n-1 \pmod{n,X^r-1}, then nn is prime or n2≡1(modr)n^2 \equiv1 \pmod r. The conjecture below is a modification of that proposal: it uses roots of 2 in place of roots of unity, the shift +1+1, and the least nondivisor of n(n−1)n(n-1) as the degree. The two conjectures are not asserted to be equivalent.

Conjecture 7.1 (Fixed-base test). Let n>3n>3 be odd, and let rr be the least positive integer not dividing n(n−1)n(n-1). If

2n−1≡1(modn),(26)2^{n-1}\equiv1 \pmod n, \tag*{(26)}
(1+X)n≡1+Xn(modn,Xr−2),(27)(1+X)^n\equiv1+X^n \pmod{n,X^r-2}, \tag*{(27)}

then nn is prime.

The base-2 Fermat congruence is an explicit condition of the test. The degree rr need not be prime. It is necessarily a prime power: otherwise it would be the least common multiple of its proper prime-power factors, each of which divides n(n−1)n(n-1) by minimality.

Proposition 7.2 (Consequence of the fixed-base conjecture). If Conjecture 7.1 holds, its test is a deterministic primality algorithm using O~(L3)\widetilde{O}(L^3) bit operations.

Proof. Handle inputs at most 3 and even inputs directly, then reject unless (26) holds. Binary modular powering performs this preliminary check in O~(L2)\widetilde{O}(L^2) bit operations. By the choice of rr,

lcm⁡(1,…,r−1)∣n(n−1).\operatorname{lcm}(1,\ldots,r-1) \mid n(n-1).

Chebyshev’s estimate log⁡lcm⁡(1,…,m)=Θ(m)\log\operatorname{lcm}(1,\ldots,m)=\Theta(m) therefore gives r=O(log⁡n)=O(L)r=O(\log n)=O(L). Testing consecutive integers for divisibility finds rr within the claimed bound. Primes pass (26) by Fermat’s little theorem and (27) by Frobenius, and the conjecture excludes composites. Multiplication in (Z/nZ)[X]/(Xr−2)(\mathbb{Z}/n\mathbb{Z})[X]/(X^r-2) costs O~(rL)\widetilde{O}(rL), and binary powering uses O(L)O(L) multiplications, for total O~(L3)\widetilde{O}(L^3).

The open step is to obtain a comparable restriction on composite inputs from the fixed coefficient 2 and this degree rule. The normalization and cyclic rotation used in Theorem 2.3 are supplied by our coefficient construction; they have not been deduced from the congruence in Conjecture 7.1.

AI Assistance Disclosure

OpenAI’s GPT-6 Astra developed and wrote the proofs, including the deterministic parameter construction and complexity analysis, through an extended mathematical dialogue with the author. The author supplied the fixed-base test, conjectural framework, research notes, and references; proposed applying OpenAI’s recent analytic number-theoretic results to deterministic parameter selection; and directed the investigation of Jacobi sums, power nonresidues, composite degrees, multivariate quotient rings, and finite-field root counting.

References

References

  1. [1]L. M. Adleman, C. Pomerance, and R. S. Rumely, On distinguishing prime numbers from composite numbers, Annals of Mathematics 117 (1983), 173–206. Theorem 3 records the Odlyzko–Pomerance parameter construction. https://math.dartmouth.edu/~carlp/PDF/paper37.pdf.
  2. [2]M. Agrawal, N. Kayal, and N. Saxena, PRIMES is in P, Annals of Mathematics 160 (2004), 781–793. doi:10.4007/annals.2004.160.781. Agrawal’s conjecture is stated in Section 6; see also the authors’ version at https://www.cse.iitk.ac.in/users/manindra/algebra/primality_v6.pdf.DOI
  3. [3]Axiom Math, D. Cureton, and J. Thorner, Dedekind Zeta Zero-Free Region, Lean 4 formalization, October 2026. The declaration DedekindZetaZeroFree.main in Solution/DedekindZetaSolution.lean proves the Dedekind-zeta statement; the repository reports verification using only Lean’s standard axioms. https://github.com/AxiomMath/DedekindZetaZeroFree.
  4. [4]D. J. Bernstein, Proving primality in essentially quartic random time, Mathematics of Computation 76 (2007), 389–403. doi:10.1090/S0025-5718-06-01786-8. Section references are to the December 3, 2004 draft: https://cr.yp.to/papers/quartic-20041203.pdf.DOI
  5. [5]D. J. Bernstein, N. Heninger, and T. Lange, FactHacks: Remainder tree. https://facthacks.cr.yp.to/remainder.html.
  6. [6]P. Berrizbeitia, Sharpening “PRIMES is in P” for a large family of numbers, Mathematics of Computation 74 (2005), 2043–2059. doi:10.1090/S0025-5718-05-01727-8.DOI
  7. [7]Q. Cheng, Primality proving via one round in ECPP and one iteration in AKS, preprint, 2003. https://arxiv.org/abs/math/0301179.
  8. [8]K. Conrad, Gauss and Jacobi sums on finite fields and Z/mZ, expository notes. https://kconrad.math.uconn.edu/blurbs/gradnumthy/Gauss-Jacobi-sums.pdf.
  9. [9]D. Cureton and J. Thorner, A quasi-Riemann hypothesis for Dedekind zeta functions, Hexagon preprint 2610.02000, version 2, October 12, 2026. Theorem 1.1 and Section 15. https://hexagonmath.org/2610.02000v2.
  10. [10]H. W. Lenstra, Jr., and C. Pomerance, Primality testing with Gaussian periods, Journal of the European Mathematical Society 21 (2019), 1229–1269. doi:10.4171/JEMS/861.DOI
  11. [11]OpenAI, Primitive roots for every admissible integer base, preprint, October 4, 2026. Theorem 1.2 and Section 9. https://github.com/openai/math/blob/main/preprints/Primitive-roots-for-every-admissible-integer-base-October-4-2026/primitive-roots-all-integer-bases.pdf.hub.valency.io/works/W_c5c99wuv

Paper details

vlnc:W_pp28mvjs
v1 · latestHistory (1)

published · Fresh — published within the last 30 days

Usage

views · 5

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

CC BY 4.0

Original source

  • Mathematics

OpenAI ChatGPT 6 · View statement →

Looking for related papers…
Contents