Where the Hypothesis Is a Theorem

Replace whole numbers by polynomials over a finite field and the Riemann hypothesis was proved decades before 2026. Count points on curves, compute their zeta functions and watch every zero land on its circle

Where the Hypothesis Is a Theorem

Swap the whole numbers for polynomials whose coefficients are counted modulo a prime, and everything in this module has a twin: primes, a zeta function, a critical line, a hypothesis. This is where the hypothesis was proved first, by André Weil in the 1940s. For three quarters of a century that theorem was the strongest reason to believe the original, which was proved in November 2026, and its proof shows exactly which ingredients the whole numbers seemed to lack for all that time.

Prime Polynomials

Watch the sieve strike out every product and leave the prime polynomials standing, then compare the count with Gauss’s formula. Change p and the degree, and slide s towards 1 to see the sum and the product chase the same value.

0 of 1,656 products formed, 0 primes used
Coefficients modulo p =
Up to degree
729
polynomials of degree 6 still standing
116
Gauss’s formula for degree 6
121.5
the guess x/n, with x = 36 = 729
…
error of the guess; √x/n is 4.5
1.499314
sum over all 1,093 monic polynomials of degree ≤ 6
1.682108
product over everything still standing
1.5
closed form 1/(1 − p1−s)

Move over a row, or tap it, to pick out one polynomial and see whether it factors.

The dictionary between the two worlds
whole numberspolynomials over F3
primes2, 3, 5, 7, 11, …monic polynomials with no factor of lower degree
size|n| = n|f| = 3deg f, the number of remainders on division by f
zeta function∑ n−s = ∏ (1 − p−s)−1∑ |f|−s = ∏ (1 − |P|−s)−1 = 1/(1 − 31 − s)
prime number theoremabout x/ln x primes up to x (1896)about x/n primes of size exactly x = 3n; n is the logarithm of x to base 3
error termat most about √x · ln x, by the Riemann hypothesis (proved 2026)at most 2√x/n, by Gauss’s formula
zeros of zetainfinitely many in the critical strip, all on the line (proved 2026)none: the hypothesis holds with nothing to check
still standing (prime, once the sieve is done); the exact countthe guess x/n; the sum over all polynomialsthe error of the guessthe bound 2√x/n

Each row holds every monic polynomial of one degree, in counting order of its coefficients; a struck polynomial takes the colour of the degree of the prime that struck it, and rows too long to draw cell by cell show the share still standing as brightness. Only primes of degree up to half the largest are needed, as only primes up to a square root are needed for numbers. The left chart has a logarithmic vertical scale. Before the sieve finishes, the amber product on the right runs over everything still standing, and falls onto the sum as the composites go. Degrees are capped so that the longest row has at most a million polynomials.

Go deeper:Gauss’s Count and a Zeta Function with No Zeros

Polynomials with coefficients in Fp, the whole numbers modulo a prime p, can be added, multiplied and divided with remainder, so they factor uniquely into polynomials that factor no further. Those are the primes of this world, and the size of a polynomial f of degree n is |f| = pn. Gauss counted the monic primes of each degree in notes written about 1797 and not published in his lifetime. The polynomial Tpn − T is the product of every monic prime whose degree divides n, each once. Comparing degrees gives pn = ∑d | n d · π(d), where π(d) is the number of monic primes of degree d, and Möbius inversion turns that into

π(n) = (1/n) ∑d | n μ(d) pn/d = pn/n − pn/2/n − …   (the second term appears when n is even).

Write x = pn for the size, so that n is the logarithm of x to base p. The count is x/n with an error of at most 2√x/n: the prime number theorem, with an error of the size the Riemann hypothesis gives for the whole numbers, and here it is an exact identity that the sieve confirms by brute force.

The zeta function explains why. There are pn monic polynomials of degree n, each contributing p−ns, so the sum over all of them is a geometric series:

ζ(s) = ∑f monic |f|−s = ∑n ≥ 0 pn p−ns = 1/(1 − p1 − s) = ∏P prime (1 − |P|−s)−1.

It has a pole at s = 1 (and at the points 1 + 2πik/ln p above and below it) and no zeros at all. There are no waves to add to the main term, which is why the error is so small: for the line itself the hypothesis holds with nothing to check. In the variable u = p−s the function is 1/(1 − pu), a rational function, and that is the reason everything on this page is finite and exact where the classical theory needs limits.

The analogy between number fields and fields of functions on a curve was set out by Richard Dedekind and Heinrich Weber in 1882. Emil Artin, in a thesis written in 1921 and published in 1924, defined zeta functions for curves over finite fields of the kind in the next demo, where zeros do appear, and conjectured the Riemann hypothesis for them. See also: The Rosetta Stone in the Langlands Program, and Euler’s Golden Key for the product over ordinary primes.

Every Zero on Its Circle

Press “Random curve” a few times and watch the roots land on the green circle every time, while the histogram underneath tests thousands of curves against the bound. Then drag the “Break it” slider to give the curve points it does not have, and see a zero leave the line.

Degree of f
p =
y² = x5 + x + 1 over F13
15
N1: points over F13; p + 1 = 14
177
N2: points over the field with 132 = 169 elements
0.2773500981
1/√p, the radius every root should have

P(u) = 1 + u + 4u2 + 13u3 + 169u4

root u of P|u||u| − 1/√pRe s of the zero
0.162192 − 0.224982i0.27735009810.00000000000.5000000000
0.162192 + 0.224982i0.27735009810.00000000000.5000000000
−0.200653 − 0.191471i0.27735009810.00000000000.5000000000
−0.200653 + 0.191471i0.27735009810.00000000000.5000000000
The recipe for genus 2: the counts N1 and N2 give the coefficients of u and u² (by Newton’s identities), and the symmetry of the zeta function gives the rest: the coefficient of u4 − k is p2 − k times that of uk. All 4 roots have absolute value 1/√p to ten decimal places, so every zero of this curve’s zeta function has real part ½.
0 of 20,000 polynomials tried
20,000 drawn at random from the 4,455,516 polynomials of degree 5 modulo 13
0
curves tested
0
singular f skipped
0
curves with a root off the circle, or outside ±4√p
0 ≤ 14.42
largest |p + 1 − N1| seen, against 4√p
points of the curve; counts of curvesa zerothe circle |u| = 1/√p, which is the line Re s = ½the Hasse–Weil boundoff the circle; forbidden by the theorem

Points are counted by trying every x in the field and asking whether f(x) is a square, with one point at infinity when the degree is odd and two or none when it is even; the fields with p² and p³ elements are built explicitly. Since u = p−s, a circle in the u-plane is a vertical line in the s-plane and each zero repeats at spacing 2π/ln p; the crosses are the poles at s = 0 and s = 1. In the histogram the rose bands are counts the theorem forbids and the grey bands are counts no equation of this shape could have: for genus 2 below p = 17, and for every genus-3 prime offered here, the bound on N1 alone is weaker than the trivial one, and the test relies on the roots. p goes up to 97 for genus 1, 47 for genus 2 and 23 for genus 3; the test visits at most 200,000, 20,000 and 5,000 polynomials. The roots are found in double precision.

Go deeper:The Riemann Hypothesis for Curves

Let C be the curve y² = f(x) over Fp, with f of degree 2g + 1 or 2g + 2 and no repeated root, and let Nk be the number of its points with coordinates in the field with pk elements, points at infinity included. Its zeta function packs all these counts into one series, and it turns out to be a rational function of u = p−s:

Z(u) = exp( ∑k ≥ 1 Nk uk/k ) = P(u) / ((1 − u)(1 − pu)),   P(u) = ∏i = 12g (1 − αiu),   Nk = pk + 1 − ∑ αik.

P has integer coefficients and degree 2g, where g is the genus, and a functional equation pairs each α with p/α. So the first g counts determine P, and P determines every later count: the tests for this page predict N3 and N4 from P and then confirm them by counting over fields built explicitly. The Riemann hypothesis for C says that every αi has absolute value √p. Then every root of P has absolute value p−½, which in the variable s is real part ½, and

|Nk − (pk + 1)| ≤ 2g · pk/2.

This is the Hasse–Weil bound: the number of points is pk + 1 with an error of square-root size, the same shape as the error in counting primes that the hypothesis for ζ gives. A zero off the line would be a curve with too many or too few points over some field. See also: What the Hypothesis Says.

Helmut Hasse proved the case of genus 1 in papers of 1933 to 1936. André Weil announced a proof for every curve in 1940, in a note written while he was in prison in Rouen, and published full proofs in 1948. In 1949 he conjectured the same three things for varieties of every dimension: the zeta function is rational (proved by Bernard Dwork in 1960), it satisfies a functional equation (Alexander Grothendieck, 1965), and its zeros and poles lie on prescribed circles (Pierre Deligne, 1974). Sergei Stepanov found an elementary proof for curves in 1969, which Enrico Bombieri simplified and completed in 1973. What the browser does here is a check in double precision on particular curves; the theorem covers them all. See also: Algebraic Geometry and Curves over Finite Fields in the Langlands Program.

Random Matrices, Proved

Press Play and watch the amber histogram of eigenangles settle onto the sky-blue curve for random matrices as p grows, then switch to genus 2, where the curve has two humps. The table at the bottom lists what the proof uses and what was missing over the whole numbers for a century.

0 of 25 curves
p =
0
curves: every non-singular one over F5
—
distance between the curves’ angles and the USp prediction
0.0054
the same distance for 20,000 sampled random matrices
0
curves with an eigenvalue off the circle
y² = x3 + 3x over F5: N1 = 10, so the trace of Frobenius is a = p + 1 − N1 = -4. Frobenius acts on a two-dimensional space with trace a and determinant p, as0−51−4does. Its eigenvalues are √p · e±iθ with cos θ = a/(2√p) = −0.8944, so θ = 2.6779 = 0.8524π; divided by √p it is conjugate to the rotation−0.894−0.4470.447−0.894, an element of USp(2) = SU(2). The operator whose eigenvalues are the zeros is known here: it is this one.
Distance from the random-matrix prediction as p grows (genus 1)
pcurvesKolmogorov–Smirnov distanceabout 1/√(number of angles), the floor for a sample
5………
11………
31………
101………
307………
1009………
What the proof uses, and what was missing for a century over the integers. The right-hand column is the picture as it stood until the hypothesis for ζ was proved in November 2026; how that proof supplies these ingredients has not yet been set out for human readers (See also: What Is Actually Known).
ingredientfor a curve over Fpfor the whole numbers, before 2026where this module met it
the curveC over Fp, whose points over larger and larger fields the zeta function countsthe primes, as a “curve” called Spec Z; but a curve over what? The base would be a hypothetical “field with one element”The Prime Staircase
the Frobenius mapx ↦ xp, whose fixed points are the points with coordinates in Fpno known analogueA Spectrum Without an Operator
the space it acts onthe first cohomology of C, of dimension 2g; the zeros are the eigenvaluesunknown; the programmes of Deninger and of Connes propose candidatesPrimes from Zeros
the positivity that forces |eigenvalue| = √pthe Hodge index theorem (Castelnuovo’s inequality) on the surface C × Cno surface to work onWhat the Hypothesis Says
eigenangles of curves, counted herethe density for USp(2)random matrices sampled herethe single curve

Each curve contributes g angles θ, where its Frobenius eigenvalues are √p · e±iθ. Here p is fixed and the curve varies; the Sato–Tate law is the other way round, one curve and varying p. The sky curve is (2/π) sin²θ for genus 1 and (1/π) sin²θ (1 + 4 cos²θ) for genus 2, the density of an eigenangle of a random matrix in the compact symplectic group from Weyl’s integration formula. The distance is the largest gap between the two cumulative distributions. Genus 1 uses every curve y² = x³ + ax + b, or 100,000 random ones when there are more; genus 2 uses monic quintics, 4,000 random ones when there are more, and its largest prime takes several seconds.

Go deeper:The Operator Exists

Hilbert and Pólya are said to have suggested that the zeros of ζ might be the eigenvalues of some operator. For a curve over Fp that is a theorem. The Frobenius map sends a point (x, y) to (xp, yp); the points it fixes are exactly those with coordinates in Fp, and the points fixed by its k-th power are those counted by Nk. Frobenius acts linearly on a space of dimension 2g attached to the curve, its first cohomology, and the numbers αi are its eigenvalues. Divided by √p, the matrix is unitary and symplectic: an element of the compact group USp(2g), defined up to conjugacy.

Weil’s proof, in one paragraph. On the surface C × C draw the graph of Frobenius and the diagonal; they meet in the fixed points, so N1 is an intersection number, and likewise Nk for the graph of the k-th power. The intersection form on curves drawn on a surface obeys a positivity law, the Hodge index theorem, known in this setting as Castelnuovo’s inequality, and applied to combinations of these graphs it gives |Nk − (pk + 1)| ≤ 2g · pk/2 for every k, which forces every eigenvalue onto the circle. Grothendieck’s standard conjectures were meant to carry the same positivity to higher dimensions; they remain conjectures, and Deligne’s proof of 1974 went another way.

In “Random Matrices, Frobenius Eigenvalues, and Monodromy” (1999) Nicholas Katz and Peter Sarnak proved that as p grows, the Frobenius classes of the curves of genus g over Fp become equidistributed in USp(2g) with respect to its natural measure, a consequence of Deligne’s theorem. Bryan Birch had proved the case of the family y² = x³ + ax + b in 1968. So for families of curves the random-matrix statistics of zeros are proved, where for ζ they are still an observation (See also: A Spectrum Without an Operator). Katz and Sarnak’s philosophy is that every natural family of L-functions has a symmetry type, unitary, symplectic or orthogonal, visible in the zeros nearest the centre. Note the difference from the Sato–Tate law, which fixes one curve over the rationals and varies the prime; here the prime is fixed and the curve varies. See also: Sato–Tate in the Langlands Program.

For a century, every attempt to transplant this proof to the whole numbers was a programme and not a proof: Christopher Deninger’s conjectural cohomology theory, Alain Connes’s trace formula on a noncommutative space, and the “arithmetic site” of Connes and Caterina Consani each proposed a candidate for the missing space or the missing surface. The hypothesis for ζ was proved in November 2026 by a machine-checked proof. Its author, Levent Alpöge, describes the argument as a descendant of Stepanov’s elementary proof for curves, with chains of theta lifts playing the part that multiplicity plays there. How it supplies what the table in the demo lists as missing has not yet been set out for human readers, and this lesson does not guess. See also: What Is Actually Known.

Key Takeaways

  • Polynomials over a finite field have primes, a zeta function and a prime number theorem whose error is exactly of square-root size, by a formula of Gauss.
  • For a curve over a finite field the hypothesis says every root of P(u) lies on the circle |u| = 1/√p, which bounds the number of points; Hasse proved it for genus 1 and Weil for every curve.
  • The zeros there are eigenvalues of a known operator, Frobenius, and over families of curves they are distributed like eigenvalues of random symplectic matrices: a theorem of Katz and Sarnak.
  • The proof needs a curve, a Frobenius map, a space for it to act on and a positivity law; for a century none of the four had a known counterpart for the whole numbers. The hypothesis for ζ was proved in November 2026, by an argument its author traces to Stepanov’s proof for curves.

Spot a mistake or have an idea?

Search