Why Does Counting Primes Lead to a Straight Line?

Start with 25 to see what the Riemann hypothesis says and where Claude made a choice in the proof.
Circle the primes on a hundred chart and you get 25 circles. The number 25 gets none of them. It’s five times five. Yet in a moment we’ll use a collection of complex numbers to draw a staircase, and it will climb a step at precisely 25. What are the two pictures counting?
On November 20, 2026, mathematician Levent Alpöge released the proof he found with Claude as a library of formal mathematics written in Lean. The next day, the Lean FRO and the Mathlib Initiative confirmed that the code proves the standard Riemann hypothesis. How can a finite proof rule out a counterexample arbitrarily far away? And where in the collaboration did the idea for doing that come from? Alpöge’s account, p. 1 · Joint statement from Lean FRO and Mathlib
The Riemann Hypothesis Explained Through 25 and Claude’s Square Root
There are 25 primes up to 100. What happens next?
Walk along the number line. By 7 you’ve passed four primes, 2, 3, 5 and 7. The counter stays at four through 8, 9 and 10. At 11 it clicks up to five. Plot the running count and you get a staircase. Mathematicians call it π(x), the number of primes up to and including x.
For large x, there’s a way to estimate the count. Around a large number t, primes have an average density of about 1/ln t, where ln is the natural logarithm. Around one million, that works out to roughly one prime per fourteen integers. Add those little contributions as you travel along the line and you get a smooth curve. Here we start at 2 and write L(x) = ∫₂ˣ dt/ln t. At 100 the curve reaches 29.08. We counted 25. The difference is about 4.08. Another common convention for the logarithmic integral shifts the curve by a fixed constant. Enrico Bombieri’s problem description for the Clay Mathematics Institute, §II

At one million, the exact count is 78,498. The curve gives about 78,626.50. The gap has grown to about 128.50, yet it takes up a smaller fraction of the total. The prime number theorem tells us that the relative error tends to zero. How large can the error in the actual count be?
A classical answer equivalent to the Riemann hypothesis is π(x) = L(x) + O(√x ln x). That last term means there is a fixed constant C such that, for every sufficiently large x, the absolute error is at most C√x ln x. Two examples show us errors. The statement gives a guarantee about every sufficiently distant endpoint. Bombieri on prime counting and the error term
How to put 12 inside a function
Start with the sum of the reciprocals of the squares, 1 + 1/2² + 1/3² + 1/4² + … . Somewhere in there is 1/12². Could you make that same term using only primes?
Give each prime a row. In the row for 2, choose from 1, 2, 4, 8 and so on. In the row for 3, choose from 1, 3, 9, 27 and so on. Pick 4 from the first row, 3 from the second and 1 from every other row. Their product is 12. Multiply their reciprocal squares and you get 1/12². Every positive integer occurs exactly once because its prime factorization is unique.

That’s the arithmetic behind Euler’s product. Replace the exponent 2 by s. One side adds a term for every positive integer n. The other multiplies a factor for every prime p. Both give a single function, ζ(s), pronounced “zeta.”
ζ(s) = ∑ 1/nˢ = ∏ 1/(1 − p⁻ˢ), for Re(s) > 1. The sum runs over n = 1, 2, 3, …, and the product runs over all primes p.
Each factor on the right expands to 1 + 1/pˢ + 1/p²ˢ + … . Each row in the picture supplies one choice from that expansion. The sum and product converge absolutely when the real part of s is greater than one. A technique called analytic continuation extends the function uniquely beyond that region, with a pole at s = 1. The zeros we’re about to draw belong to this extension. NIST on the zeta function and Euler’s product
What are the dots on the line?
Think of a complex number as an address on a plane. The real part tells you how far to go horizontally. The imaginary part tells you how far to go vertically. A zero is an address at which the function’s output is exactly zero. The first nontrivial zero above the horizontal axis is at approximately 0.5 + 14.134725i. The number 14.134725 is its height.
There are also zeros at −2, −4, −6 and the other negative even integers. These are called the trivial zeros. All the remaining zeros lie in the strip between real parts zero and one. In 1859 Riemann proposed that every nontrivial zero has real part exactly 1/2. That’s the central vertical line in the picture. NIST on zeros and symmetry · Bombieri’s statement of the problem

We already knew the zeros were symmetric about that line. The two hollow dots in the right panel, at horizontal positions 0.25 and 0.75, have exactly that symmetry. Checking another batch of zeros would still leave room for such a pair higher up. A proof has to make any such pair incompatible with something we can establish independently.
Drawing the step at 25 with zeros
Change the counting rule. Each time you pass a prime p, add ln p. When you pass its square, cube or any higher integer power, add ln p again. At 23 you add ln 23. At 24 nothing happens. At 25 = 5² you add ln 5. At 27 = 3³ you add ln 3. This weighted count is ψ(x). The ordinary staircase π stays level at 25. The weighted staircase ψ takes a step there. NIST on the weighted prime count
Draw that stretch of staircase twice. For the dark line we count prime powers directly. For the orange line we start with a smooth expression and add oscillations determined by zeta’s zeros. With one conjugate pair you can barely make out 25. With the first sixty pairs you can see the rise and the shelf beyond it. The small ripples beside the jumps come from stopping the sum after finitely many terms. At a jump itself the infinite formula gives the midpoint between the two levels. Anders Strömbergsson’s notes on the explicit formula, §13

Move the slider from one to sixty pairs of zeros
What makes a zero oscillate? Write it as ρ = β + it. The explicit formula contains x raised to the power ρ. The factor x raised to β controls its size, and the angle t ln x controls how fast it turns. A conjugate pair turns that rotation into a rise and fall. Move the horizontal coordinate from 0.5 to 0.6 and the scale changes from √x to x raised to 0.6. The difference grows with x. Many terms can cancel, so adding them up takes care. The line in the complex plane governs how fast each contribution can grow. Terence Tao’s notes, Theorem 8
How Alpöge and Claude reversed the argument
We started with zeros and reconstructed prime powers. The proof travels in the other direction. A sufficiently strong arithmetic bound on fluctuations can rule out a zero off the line. The hard part is obtaining the bound without assuming the Riemann hypothesis.
Here’s a small version of the idea. There are 184,756 ways to choose ten positions from twenty. Write the binomial coefficient as the product of 11 through 20 divided by the product of 1 through 10. The primes 11, 13, 17 and 19 all appear upstairs. Nothing downstairs can cancel them. So their product, 46,189, must divide 184,756. Now read the argument backwards. Bound the size of a positive integer and you bound the product of the primes that must divide it. Take logarithms and that becomes a bound on a sum of ln p terms. Michael Rubinstein’s exposition, §§I.0–I.2

Ordinary binomial coefficients give too coarse a bound. Counting how often a prime divides a factorial involves repeatedly rounding down. Each rounding error is less than one, but together they can obscure the fluctuations we want to see. The proof needs an object whose divisibility can be tracked precisely and whose size can also be estimated independently. The expositions describe linear maps between lattices and functions connected by theta lifts. Roughly, a lift moves a function with particular symmetries into another space while carrying arithmetic information with it. Rubinstein, §§I.2 and I.7 · Robin Zhang’s notes, §§1.3–1.4
Where did Claude make a choice? Alpöge says he guided the move from a toy setting to one suited to the problem. The original strategy used multiplicity, the extra constraint you get when something vanishes to higher order. For example, (t − 2)³ has a triple zero at t = 2. That feature was hard to reproduce directly over the ordinary integers. They explored chaining theta lifts so that each additional lift could accumulate a similar effect. For a prime-power sum at scale X, Alpöge credits Claude with suggesting a chain about √X steps long. Alpöge also records that Claude helped reconstruct the rough chronology in his announcement. Alpöge’s account, pp. 1 and 3–4
Why a square root?
Call the chain length m. The Waterloo exposition identifies two leading costs of sizes X/m and m. One cost is paid at the ends and can be spread over m steps. The other accumulates as the chain grows. Try X = 10,000. At 10 steps the costs are 1,000 and 10. At 1,000 steps they are 10 and 1,000. At 100 steps both are 100. For general X, bringing the two costs to the same scale means choosing m around √X. Rubinstein, §I.8

The real work lies in proving the object obeys estimates that good. If the second cost grew as m², balancing it against X/m would leave a cost of order X to the two-thirds power. The actual argument also has to control other errors, constants and auxiliary parameters. That work is what gives this square-root choice its force. Rubinstein, §§I.8 and II.4
How a bound rules out a counterexample
Change the count one more time. Give each prime power n a weight X/n − 1 to soften the edge of the interval. The closer n gets to X, the smaller its weight. At X the weight reaches zero. Subtract the known main trend from the smoothed count and call the remaining deviation G(X). A main inequality called M and two auxiliary estimates for Dirichlet characters imply that for every positive ε, arbitrarily far out there are whole intervals from Y to Y raised to 3/2 on which G(x) ≤ x raised to the power 1/2 + ε at every point. This is a one-sided bound over an entire interval. Rubinstein, §§I.1 and I.6 · Zhang, Proposition 1.2
Suppose there were a zero at real part 0.6. Choose ε = 0.05, so the exponent in the bound is 0.55. An analytic theorem in the argument shows that such a zero is incompatible with those long intervals. The theorem accounts for possible cancellations among the oscillations. Any real part greater than a half can be excluded by choosing a sufficiently small ε. Finally, return to the picture of the hollow dots. A zero to the left would have a mirror to the right, and we’ve just ruled that out. The only place left for a nontrivial zero is the central line. Rubinstein, §I.1 and Part II

What have machines checked, and what are people still working through?
If someone hands you an answer with every calculation checked, you still want to know whether it answers the question you asked. One check in Andrew Sutherland’s MIT record compares the proposition proved by the authors’ library with a target written independently. For ordinary RH, that target is the established statement in Mathlib. Another set of checks examines the reasoning from axioms to conclusion. At Waterloo, Michael Rubinstein reports that all 175,187 modules compiled and passed Lean kernel replay, that the five main theorems depend only on three standard axioms, and that the independent checker nanoda accepted the declarations those theorems depend on. Sutherland’s verification record · Waterloo verification record
A mathematician who wants to teach a piece of the proof to someone else needs another kind of understanding. In the November 22 second edition of his guide, Rubinstein breaks the hard part of the main inequality into thirteen explicit technical propositions. The guide still takes some inputs from Lean while researchers develop self-contained written arguments for them. That gap tells you where to look if you want to understand how the proof works or adapt it. Rubinstein’s guide and version notes
What questions can we ask now?
Go back to the hundred chart. Set 2 aside and sort the other 24 primes by their remainder upon division by 4. Eleven leave remainder 1, including 5, 13 and 17. Thirteen leave remainder 3, including 3, 7 and 11. For a fixed modulus, mathematicians already knew that each coprime remainder class eventually gets the same asymptotic share. How far can a column be from its expected share when we stop at a particular distant endpoint? The formal result also covers the generalized Riemann hypothesis for Dirichlet L-functions, giving stronger control over these deviations. Other families of L-functions have their own open questions. MIT on primes in arithmetic progressions · Statements covered by the formal verification

To put the two columns inside a function, assign +1 to numbers that leave remainder 1, −1 to those that leave remainder 3, and 0 to even numbers. That’s a Dirichlet character modulo 4. Summing those signs over the primes on the chart gives 11 − 13 = −2. The second column leads by two. Insert the same signs into the zeta series and you get the corresponding Dirichlet L-function, a function that can distinguish the columns. MIT on characters and L-functions
An error bound can answer a question about an individual stretch of road. Estimate the cumulative prime count at its two ends and subtract. If the expected gain exceeds the sum of the possible endpoint errors, at least one prime lies in that stretch. You can guarantee it exists before you can name it.
What I’d like to follow next is the first researcher who borrows one of the theta-lift estimates for a different problem. Which assumptions will they still need? We now have a participant’s account of the discovery, independent replays of the reasoning, and expositions breaking the hard steps into pieces a colleague can examine. A new use of one of those pieces would tell us something concrete about what this idea can do beyond that famous line.
