Claude shortens Riemann hypothesis proof to 112,827 lines
Anthropic’s Luke Sernau has published a version of Alpöge’s 17.4-million-line proof, made with colleagues and Claude. Checking programs accepted it, but the authors say mathematicians have not read it.
Levent Alpöge, a mathematician at Anthropic, used Claude to produce a proof of the Riemann hypothesis and its generalisation to Dirichlet L-functions, and published it on 20 November. The proof is written in the Lean proof assistant, where a small checking program, the kernel, verifies every step.
On 25 November Luke Sernau of Anthropic published two new editions on GitHub, which Sernau describes as ‘produced in collaboration with my colleagues at Anthropic, and Claude’. Sernau explained on the Lean community forum that simpler proofs had been found for many intermediate results and that many arguments are new, the German site heise online reported. Neither edition mentions the Ferrero–Washington theorem, although it was central to the original proof, according to the riemann-rev repository, which tracks checks of the proof.
The table shows the size of each version, as counted by the riemann-rev repository.
| Version | Lean files | Lines |
|---|---|---|
| Alpöge’s original | 175,187 | 17,374,215 |
| Readable edition | 803 | 477,124 |
| Compact edition | 794 | 112,827 |
The line counts include comments and blank lines. The compact edition has 76,149 lines of code, of which the argument itself takes up 24,850. Background missing from the Mathlib library, such as class field theory, takes up 51,280 lines of code, and it is proved rather than merely assumed. The lines of code cannot be compared with the 17.4 million lines, because nobody has counted the lines of code in the original.
The authors say every file compiles with no unfinished parts, three checker programs accept the proof, and it relies only on Lean’s three standard axioms. MIT mathematician Andrew Sutherland independently checked both editions with software, heise online reported, and Michael Rubinstein of the University of Waterloo reached the same result for the compact edition. The checks confirm that the new editions prove the same statements as the original.
The riemann-rev repository points out that machine checking shows every step follows from the axioms but does not explain why the theorem holds. Nor has the proof gone through the usual peer review by mathematicians. No mathematician has yet read even the compact edition, the authors say.
AI is being used to produce versions that people can read. Rubinstein has written an unfinished 265-page exposition of the original proof with Claude, Codex and Gemini. On Thursday mathematician Bartosz Naskrecki published a working draft that covers the whole compact edition. Neither has yet been reviewed by people. Three mathematicians have announced a project on Terence Tao’s blog that aims to produce a proof humans can understand.