The Riemann Hypothesis, proved
By Amiro
What the Riemann hypothesis says about the prime numbers, and the proof found in November 2026 with an AI model: checked by computer in Lean, but not yet understood by people.
Transcript
- 0:00 On the twentieth of November, 2026, a mathematician named Levent Alpöge posted seventeen million lines of computer code. A day later, the Lean community, who build a language in which computers check proofs step by step, said they had full confidence that it was correct. It proves the Riemann hypothesis: the most famous open problem in mathematics, unsolved for a hundred and sixty-seven years.
- 0:26 But what does it actually say? And why are mathematicians thrilled and uneasy at the same time? To find out, we have to start with the oldest mystery in numbers: the primes.
- 0:38 Primes are the numbers you can't split into smaller whole factors: two, three, five, seven, eleven. Every whole number is built from them, the way molecules are built from atoms. Yet they turn up with no obvious pattern. Sometimes two are next-door neighbours, like eleven and thirteen. And sometimes there's a long gap with none at all.
- 1:01 So instead of predicting each prime, let's count them. Write pi of x for the number of primes up to x. Its graph is a staircase that climbs one step at every prime. As a teenager, Gauss noticed that this staircase hugs a smooth curve, the logarithmic integral, which assumes that near x, primes are spaced about log x apart. In 1896 this was finally proved. It's called the prime number theorem.
- 1:29 But hugging isn't matching. Look closely, and the staircase wanders above and below the curve. How far can it stray? The Riemann hypothesis answers: never much more than about the square root of x. That's the size of the wobble you'd expect from flipping x coins. The primes, it says, are no wilder than chance.
- 1:50 Why would anyone believe that? The story starts with Euler, in 1737. He found that adding up one over every whole number, raised to a power s, gives exactly the same answer as multiplying together one factor for each prime. On the left, every number. On the right, only primes. It's a bridge between the two: whatever you learn about one side, you learn about the primes.
- 2:16 In 1859, Bernhard Riemann wrote a short paper, his only one about prime numbers. His leap was to feed this function complex numbers: points on a plane, not just on a line. Then the zeta function has zeros, points where it equals zero. Some are easy: minus two, minus four, minus six, and so on. The rest, the interesting ones, all lie in a narrow strip between zero and one.
- 2:44 And here's the strange part. Every one of these zeros that anyone has ever found sits on one vertical line, exactly halfway across the strip, where the real part is one half. The first is at one half plus fourteen point one three i. Then twenty-one point oh two. Then twenty-five point oh one, and on and on. Riemann guessed that all of them, infinitely many, lie on this line. That guess is the Riemann hypothesis.
- 3:13 But what do zeros have to do with primes? Riemann discovered an astonishing formula. In its modern form, it goes like this. Take a slightly different staircase, one that steps at the primes and at their powers. Start from a smooth curve, and add one wave for each zero. With one zero, the curve starts to ripple. With five, it begins to bend into steps. With a hundred zeros, the steps sharpen, and they land right on the primes and their powers. The zeros are the hidden music of the primes. Each zero is a pure tone. Together, they play the staircase.
- 3:51 Now you can see why the line matters. Each wave grows as x grows, and how fast depends on where its zero sits. A zero on the line, at one half, gives a wave that grows like the square root of x. But a single zero off the line, say at three quarters, would give a wave that grows like x to the three quarters: louder than all the others, throwing the primes off by far more. So: every zero on the line means the primes stay inside that square-root band. A statement about zeros is a statement about primes.
- 4:24 Riemann's guess became the great unsolved question of mathematics. In 1900, David Hilbert put it on his famous list of problems for the new century. In 1914, G. H. Hardy proved that infinitely many zeros lie on the line, though not that all of them do. In 1989, Brian Conrey showed that more than two fifths do. Computers have checked trillions of zeros, every one on the line. In 2000, the Clay Institute offered a million dollars for a proof. And still, for a century and a half, no one could prove that the pattern never breaks.
- 5:01 Then came this autumn. Levent Alpöge is a number theorist who works at Anthropic. On the sixth of October, working with Claude, Anthropic's AI model, he set out to prove it. By the sixteenth of November, they had a proof. There was no long paper, only a four-page note. The proof itself is written in Lean, a programming language where every step of an argument is checked by a computer. And it proves even more: the generalized Riemann hypothesis, for a whole family of related functions, the Dirichlet L-functions.
- 5:33 But a computer's check is only as good as the statement it checks. So the Lean community checked two things. First, that the theorem is exactly Mathlib's statement of the Riemann hypothesis, one that experts had vetted long before. Second, that the proof passes Lean's own kernel, and several independent checkers, written by different people, in different languages. On November the twenty-first, they announced full confidence that the proof is correct.
- 6:01 And it didn't stay huge for long. By November the twenty-fifth, Luke Sernau, also at Anthropic, had rewritten it in two shorter versions: a readable one of about three hundred thousand lines, and a compact one of just seventy-six thousand. That's more than ninety-nine percent smaller, and it, too, passes the checks.
- 6:21 So how does it work? There's no full account in plain mathematics yet. But the first guides to the proof, put together by mathematicians working with AI, describe its heart. And it begins with an old trick about primes. Take the number twenty choose ten: one hundred eighty-four thousand, seven hundred and fifty-six. Every prime between ten and twenty divides it: eleven, thirteen, seventeen and nineteen. And the number itself is less than four to the tenth. Since a number is at least as big as the primes that divide it, multiplied together, those primes can't be too crowded. Two facts about one number: what divides it, and how big it is. Together they put a ceiling on the primes.
- 7:04 Chebyshev used arguments like this, back in 1852, to pin the primes down to within about ten percent. But the method stalls there. How many times a prime divides numbers like these jumps around with rounding, and those rounding errors are as big as the signal you're looking for. To get down to the square root of x, you'd need a far better number: one whose divisibility is perfectly smooth, and whose size you know almost exactly.
- 7:31 The proof finds such numbers in geometry. The simplest example is this figure-eight curve, the lemniscate, studied for more than three hundred years. It has its own version of the sine function, the lemniscate sine. Its derivatives at zero are whole numbers: one, minus twelve, three thousand and twenty-four, and on they grow. Now look at what divides them. The primes that leave remainder three when divided by four, like three, seven and eleven, always divide them a guaranteed number of times, and that guarantee grows smoothly and predictably. That's the kind of number Chebyshev was missing.
- 8:10 The real proof upgrades these numbers into far richer objects, built from theta functions, and links them into a long chain, each link lifting the construction one step further. A longer chain helps. An error made once, at the two ends, gets spread over all m links, so it shrinks like x over m. But every link adds a small cost of its own, so that error grows like m.
- 8:35 One falls, one rises. The best chain is where they meet: at m equal to the square root of x. And there, the error is the square root of x, exactly the size the Riemann hypothesis demands. If the links had cost more, say m squared instead of m, the balance would land at two thirds, and the proof would fall short. The one half isn't put in by hand. It falls out of a balance.
- 9:01 So is the story over? Not quite. Computers have checked every step, and the experts who ran the checks are confident. But a proof is also meant to explain why something is true, and right now, no one fully understands this one. It draws on half a century of number theory: modular forms, Galois representations, Shimura varieties, and much more. Mathematicians are now working through it, often with AI's help, to turn it into ideas people can hold in their heads. Even the million-dollar prize has to wait. The Clay Institute's rules ask for a published proof, and two years of scrutiny.
- 9:41 Let's go back to where we started. The primes looked random: gaps here, neighbours there. But underneath, they're played by the zeros, and every one of those zeros sits on one line. For a hundred and sixty-seven years, that was a hope. Now it has a proof that a machine can check, even if people can't yet read it. The primes are as orderly as they could possibly be. Now we get to find out why.
More explanations on Sifr