Deterministic polynomial factorization over prime fields

A claimed coin-free algorithm that factors any polynomial modulo a prime in time polynomial in the input size.

1 paper October 4, 2026 Explained by AI

Factoring a polynomial modulo a prime p means splitting it into pieces that cannot be split further. Fast methods that use random guesses have existed since at least 1981. Known methods without guessing were slow for huge primes or assumed the unproven generalized Riemann hypothesis. This paper claims a method with no randomness whose running time is polynomial in the degree and the number of digits of p. One key input is an analytic theorem claimed in a companion openai/math paper.

First step
1970
Berlekamp, factoring over large finite fields with linear algebra
Significance
Major
The deterministic bounds it cites needed time growing with the square root of p, or GRH. It claims a bound polynomial in the input size without either.
Trust
Claimed, not checked
Field
Theoretical computer science
1 paper

The explanation

Work with whole numbers modulo 5, where only the remainders 0 to 4 count. Take the polynomial x² + 1. Put in x = 2, and you get 5, which counts as 0. Put in x = 3, and you get 10, also 0. So x² + 1 splits as (x − 2)(x − 3). Check it: the product is x² − 5x + 6, and modulo 5 that is x² + 1. Now work modulo 7 instead. The squares there are only 1, 2 and 4, so x² + 1 is never 0. Modulo 7, the same polynomial cannot be split at all.

This is factorization over a prime field. A prime field is the arithmetic of remainders after division by a prime p. Complete factorization means writing a polynomial as a constant times irreducible pieces, each with its multiplicity. An irreducible piece is one that cannot be split further. The multiplicity counts how often a piece repeats.

The difficulty is the size of p. The input gives p by its binary digits. A prime near 10¹⁰⁰ needs only 333 binary digits, but trying every remainder means 10¹⁰⁰ trials. So an efficient method must run in time polynomial in the number of digits, not in p itself. The paper also asks for polynomial time in the degree n at the same time.

Random guessing solves this efficiently. Berlekamp's work in 1967 and 1970 used linear algebra to reduce factoring to finding suitable separating elements. Cantor and Zassenhaus in 1981 found such elements by random choices, in expected polynomial time. The hard part is making every choice without randomness. Shoup's 1990 method avoids randomness, but its time grows roughly like the square root of p. For p near 10¹⁰⁰, the square root is 10⁵⁰. Other results assumed the generalized Riemann hypothesis, or GRH, an unproven conjecture about the zeros of certain functions. Under GRH, Evdokimov in 1994 reached a quasipolynomial bound in n, a little worse than any fixed power of n.

The paper claims a deterministic method, one that never flips a coin, for every prime and every degree. Its running time is at most a constant times ((n + 1) times the number of binary digits of p) to the power 10¹². The exponent is deliberately generous. The point is one fixed polynomial bound for all degrees and all primes. The method uses no randomness, no help factoring integers, and no GRH.

The method first reduces the job to one case. The polynomial has distinct roots, and every root is already one of the remainders. When the number of roots is even, a tournament trick works. Compare every pair of roots by a fixed rule, so one of each pair wins. With 4 roots there are 6 games in all. Equal scores would need 1.5 wins each, which is impossible. So unequal scores separate the roots into groups. When the number of roots is odd, the paper uses an auxiliary curve, the solutions of an equation built from the polynomial. It shows that certain labels on that curve cannot all agree. Different labels then split the polynomial.

Both cases need extra arithmetic information, prepared without guessing. The paper gets it from auxiliary primes. These are small primes with a special relation to p. Showing that small enough ones always exist needs a zero-free theorem for Hecke L-functions. These are functions built from primes, and their zeros control how primes are spread. This paper takes that theorem as an input. It comes from the companion paper “Primitive roots for every admissible integer base”. The algebraic reduction itself does not use it.

How sure is this? No Lean formalization is listed for this result in the openai/math release. So no computer proof checker has checked it. The polynomial-time claim also depends on the companion paper's analytic theorem, which is itself unreviewed. No specialist review of either paper has been published.

What it doesn't show. This does not give a fast practical method: the claimed bound has exponent 10¹², which the paper calls deliberately generous.

Where it came from

This result comes from an unreleased OpenAI model, published in the openai/math release on 6 October 2026.

Hype check

Major only if both this paper and its companion hold. No Lean formalization is listed and no specialist review is published. The bound is theoretical, with exponent 10¹².

Words used

Prime field
Arithmetic with the remainders 0 to p − 1 after division by a prime p.
Irreducible polynomial
A polynomial that cannot be written as a product of two polynomials of smaller degree.
Multiplicity
How many times the same irreducible piece appears in a factorization.
Deterministic algorithm
A method that never uses random choices, so the same input always gives the same steps.
Polynomial time
A running time bounded by a fixed power of the input length, here the degree and the digits of p.
GRH
The generalized Riemann hypothesis, an unproven conjecture about where certain functions can equal zero.
Hecke L-function
A function that encodes how primes are distributed; its zeros control the size of the auxiliary primes.

The original paper

All quoted lines (10)

  1. The difficulty studied here is to make every such choice deterministically, with a bound polynomial in both the degree and the bit length of the characteristic.
    Deterministic Polynomial Factorization over Prime Fields Back to text
  2. There is a uniform deterministic algorithm that, given a prime pp in binary and a nonzero dense polynomial f∈\Fp[x]f\in\Fp[x] of degree nn, outputs its leading coefficient and its distinct monic irreducible factors with their multiplicities in O(((n+1)⌈log⁡2p⌉)1012)O\bigl(((n+1)\lceil\log_2p\rceil)^{10^{12}}\bigr) bit operations, with absolute implied constant.
    Deterministic Polynomial Factorization over Prime Fields Back to text
  3. The exponent is deliberately generous. The point is one fixed polynomial bound for all degrees and prime characteristics.
    Deterministic Polynomial Factorization over Prime Fields Back to text
  4. The algorithm uses no randomness, integer-factorization oracle, primitive-root oracle, or GRH assumption.
    Deterministic Polynomial Factorization over Prime Fields Back to text
  5. The Berlekamp algebra reduces complete factorization to splitting a monic square-free polynomial FF all of whose roots already belong to \Fp\Fp.
    Deterministic Polynomial Factorization over Prime Fields Back to text
  6. The vertex scores cannot all be equal when NN is even, so they provide a separator.
    Deterministic Polynomial Factorization over Prime Fields Back to text
  7. The odd-degree construction uses cyclic curves Yq=F(X)Y^q=F(X).
    Deterministic Polynomial Factorization over Prime Fields Back to text
  8. If every test gave one common label, a fixed nonzero infinity divisor would become divisible by one more power of λ\lambda than its lattice valuation allows.
    Deterministic Polynomial Factorization over Prime Fields Back to text
  9. The analytic theorem itself belongs to the companion.
    Deterministic Polynomial Factorization over Prime Fields Back to text
  10. The reduction in Theorem … does not use that theorem.
    Deterministic Polynomial Factorization over Prime Fields Back to text

Other sources

  1. OpenAI, “Deterministic Polynomial Factorization over Prime Fields”, openai/math release preprint (October 4, 2026) We give a uniform deterministic polynomial-time algorithm for complete factorization over prime fields.
  2. openai/math release notes (2026): model provenance and review status manuscripts and supporting proof artifacts produced by an internal OpenAI model
  3. OpenAI, “Primitive roots for every admissible integer base”, openai/math release preprint (October 4, 2026)
  4. E. R. Berlekamp, “Factoring polynomials over large finite fields”, Mathematics of Computation 24 (1970), 713–735
  5. D. G. Cantor and H. Zassenhaus, “A new algorithm for factoring polynomials over finite fields”, Mathematics of Computation 36 (1981), 587–592
  6. V. Shoup, “On the deterministic complexity of factoring polynomials over finite fields”, Information Processing Letters 33 (1990), 261–267
  7. S. Evdokimov, “Factorization of polynomials over finite fields in subexponential time under GRH”, Algorithmic Number Theory, LNCS 877 (1994), 209–219