arXiv:2611.02280math.NTNov 2026

Manuscript Offprint

arXiv:2611.02280

Deterministic Polynomial-Time Primality Testing with a Single Binomial Congruence

Joseph M. Shunia

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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-2 Fermat test, using the modulus Xr−2X^r - 2 with rr the least positive integer not dividing n(n−1)n(n-1).

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 \mathcal{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=Yb(Y)^{(n^{D}-1)/r} = Y

in CnC_n,

(3)

b(Y)n=b(Yn)b(Y)^n = b(Y^n)

in CnC_n,

(4)

(1+X)n=1+Xn(1+X)^n = 1+X^n

in An\mathcal{A}_n.

(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) \neq 0 \qquad \left( \Re s > \frac{31}{32}, \; s \neq 1 \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. Section 6.1 also identifies the 5/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) \leq 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.