"The Riemann Hypothesis is not just a problem. It is the problem. It is the most important problem in pure mathematics."
— mathematician Enrico Bombieri
You may have read that the Riemann Hypothesis has been proved. This post explains what’s happened, why it matters, and what it means for the rest of us.
If you saw the Ron Howard film A Beautiful Mind then you’ve heard Russell Crowe talk about the Riemann Hypothesis. Remember the film’s pivotal scene in which Crowe’s John Nash is apprehended during a lecture? This scene dramatises a public lecture Nash gave in 19591 in which he attempted to present what he believed was a proof of the hypothesis.
In her authoritative biography of Nash, Sylvia Nasar wrote that “Nash’s compulsion to scale this most difficult, most dangerous peak proved central to his undoing.”
That peak remained unscaled for 167 years, since Riemann first made his conjecture in 1859.
But last week a mathematician, Levent Alpöge, announced that he, working with an internal version of Anthropic’s AI model Claude, had proved the Riemann Hypothesis. Within days many experts agreed that his proof was indeed correct.
A most curious proof of the world’s most famous conjecture
Perhaps the most surprising thing about Alpöge’s proof2 is that the experts are convinced it is correct; yet nobody has read through it from start to finish. Indeed they would be hard pressed to have done so, given that it is 17 million lines long. Printed out it would consume hundreds of thousands of pages.
If you’ve ever seen a mathematical proof, it was probably on a blackboard (or, if you’re younger than me, a whiteboard) or in a mathematics textbook. Alpöge’s proof looks nothing like one of these. For starters, it is written not by hand but in language that resembles computer programs. Specifically, it was written by the AI under Alpöge’s direction in a language called Lean. Lean is essentially a programming language that tells a computer how to do a mathematical proof. Running a Lean program checks that the proof is valid in the sense that each step of the proof follows logically from the steps that came before.
Mathematicians who use Lean to do mathematical proofs had already written down in Lean the mathematical statement of the Riemann Hypothesis. Alpöge’s proof proves exactly that statement.3 Like any other computer program Lean might have bugs, which make it say that a proof is valid even when it is not. Lean is a large program, but only the part of it that checks a proof needs to be correct and that part is relatively small. The experts who checked Alpöge’s Lean proof ran it through not only Lean’s proof checker but several independent proof checkers, some of which have even been proved correct.4
This kind of validation is the most stringent way to check a proof’s validity5. Alpöge’s proof passed admirably. Computer programs were central to writing and checking Alpöge’s proof; however, arriving at the scientific consensus that it was indeed correct was done the traditional way, through a social process.
Proofs produced and checked by computers are not new. What is new is producing such a significant result in only a matter of weeks, when prior computer-aided results have taken many years of human labour, and when the sum total of human effort expended on the Riemann Hypothesis surely amounts to untold lifetimes.
Of course, you might find it surprising that Alpöge’s AI-written proof is valid at all—certainly many other people do. After all, AI agents cheat all the time. Most famously, during a hacking evaluation in July, OpenAI’s agents broke their containment and hacked AI company Hugging Face in search of the test answers. OpenAI’s investigation, and another by independent AI evaluators METR, blamed tasks that were effectively impossible,6 combined with the agents being run without sufficient safeguards and monitoring. If you give an agent an impossible task with too little oversight, you might expect it to cheat.
If ever a task was effectively impossible, it was surely proving the Riemann Hypothesis, which Nasar called “the holy grail of pure mathematics”. And cheating in Lean is certainly possible: in July, someone using AI found a bug in Lean that let them produce a fake mathematical proof. Before November 20 I’d have told you that finding such a bug was orders of magnitude easier than proving the Riemann Hypothesis.
Yet the checks described above show that Alpöge’s AI didn’t cheat. The reason, I think, is that Alpöge didn’t simply tell Claude “Prove the Riemann Hypothesis in Lean, whatever it takes”. Instead he told Claude what strategy to follow, guiding it towards the right approach; it was only near the finish line, he reports, that “Claude far outpaced” him.
Climbing together
Should we conclude, therefore, that the role of human scientists who work with AI will be limited to blessing the pronouncements of advanced AI models, or to stopping them from cheating?
Hardly. To borrow an analogy, AI lets mathematicians reach scientific peaks from the sky rather than on foot. Absent expert human guidance, AI has so far failed to summit the highest peaks. And Alpöge’s Lean proof stands on the shoulders not only of the giants who came before but the masses of scientific contributors whom the history books might overlook. Those masses also include the many experts whose intelligence was harvested to power the dramatic leaps in AI capability of the last few years.
In working to understand Alpöge’s proof, we’ll no doubt learn important lessons about both mathematics and how best to use AI to advance human-led discovery. I hope those lessons help us draw better maps for guiding AI to even greater heights, and that each new discovery in turn deepens human understanding, leaving us better placed to lead the next. Now that’s my kind of recursive self-improvement, with humans as the selves whose improvement is the ultimate goal, and AI merely providing the lift.
That isn’t the vision that frontier labs like OpenAI and Anthropic seem to be pursuing: theirs is built on human expertise paid for once (if at all) and sold back to the rest of us again and again. As Cristina Lopes observed, even the intelligence of the volunteers now cleaning up Alpöge’s proof will almost certainly be harvested: if next year’s AI models can write a more elegant proof of the Riemann Hypothesis, it will be at least partly because they have absorbed the fruits of that human labour. We must therefore work towards democratising AI, lest the only people able to scale the highest peaks be those labs’ employees or customers. Humanity cannot afford to cede its potential for new discovery to the Empires of AI.
Alpöge described what he saw as “one dawn across science of something far greater”. That’s true only if we ensure the sun rises for everyone.
The film moves the lecture to a Harvard conference. The real one was an AMS meeting at Columbia on 28 February 1959, followed by a talk on the same topic at Yale, according to Nasar’s biography. The real lecture ended, as his friend and fellow mathematician Cathleen Morawetz recalled, with him being “laughed out of the auditorium”. ↩︎
Some might object to me calling this “Alpöge’s proof”. But had it been wrong it would be him who would take the blame. He is the author insofar as he bears primary responsibility for the work. ↩︎
Checking this is more complicated than it sounds. It’s not enough to read the text of the proof and see that it proves
RiemannHypothesis, which is the name of Lean’s statement of the hypothesis. One must also check, for instance, that that name hasn’t been overridden somewhere in the millions of lines of Alpöge’s Lean proof. ↩︎The mathematically curious might wonder whether Gödel’s Second Incompleteness Theorem might rear its head when one tries to prove a proof checker correct. However, there is a long history of developing formally verified proof checkers: the trick is to use a stronger logic to reason about the logic in which the prover reasons. If your head is hurting, so is mine. ↩︎
Software engineers will recognise principles of N-Version Programming, and may recall that even independently developed implementations can share common faults. Indeed, the fake proof I mention later fooled both Lean and an independent proof checker. So, as with everything in life, 100% certainty is never possible. However, as far as computer-produced proofs of mathematical results go, we can be extremely confident in this one. ↩︎
The hacking challenge in question, ExploitGym, contains 898 tasks, 198 of which have never been solved. 93% of the tasks the agents discussed among themselves (a sign of where they were working the hardest) came from those 198. ↩︎