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
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.
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.
Move over a row, or tap it, to pick out one polynomial and see whether it factors.
| whole numbers | polynomials over F3 | |
|---|---|---|
| primes | 2, 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 theorem | about 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 term | at most about √x · ln x, by the Riemann hypothesis (proved 2026) | at most 2√x/n, by Gauss’s formula |
| zeros of zeta | infinitely many in the critical strip, all on the line (proved 2026) | none: the hypothesis holds with nothing to check |
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.
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.
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.
P(u) = 1 + u + 4u2 + 13u3 + 169u4
| root u of P | |u| | |u| − 1/√p | Re s of the zero |
|---|---|---|---|
| 0.162192 − 0.224982i | 0.2773500981 | 0.0000000000 | 0.5000000000 |
| 0.162192 + 0.224982i | 0.2773500981 | 0.0000000000 | 0.5000000000 |
| −0.200653 − 0.191471i | 0.2773500981 | 0.0000000000 | 0.5000000000 |
| −0.200653 + 0.191471i | 0.2773500981 | 0.0000000000 | 0.5000000000 |
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.
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.
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.
| p | curves | Kolmogorov–Smirnov distance | about 1/√(number of angles), the floor for a sample |
|---|---|---|---|
| 5 | … | … | … |
| 11 | … | … | … |
| 31 | … | … | … |
| 101 | … | … | … |
| 307 | … | … | … |
| 1009 | … | … | … |
| ingredient | for a curve over Fp | for the whole numbers, before 2026 | where this module met it |
|---|---|---|---|
| the curve | C over Fp, whose points over larger and larger fields the zeta function counts | the 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 map | x ↦ xp, whose fixed points are the points with coordinates in Fp | no known analogue | A Spectrum Without an Operator |
| the space it acts on | the first cohomology of C, of dimension 2g; the zeros are the eigenvalues | unknown; the programmes of Deninger and of Connes propose candidates | Primes from Zeros |
| the positivity that forces |eigenvalue| = √p | the Hodge index theorem (Castelnuovo’s inequality) on the surface C × C | no surface to work on | What the Hypothesis Says |
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.
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.
Spot a mistake or have an idea?