The Lean and Mathlib community has officially confirmed the correctness of Stanford mathematician Levent Alpöge's proof of the Riemann hypothesis. Alpöge published the formal mathematical proof on Nov. 20, 2026, structured as 17 million lines of code written in Lean, a tool that checks mathematical proofs for errors. Independent verification proved decisive: dozens of people ran the code independently and got the same result. Andrew Sutherland, a mathematician at MIT, lists the independent checks on his website.

"We have full confidence that Alpöge's proof is correct, and we congratulate him on this achievement,"

the Lean and Mathlib community said in a statement. First formulated in 1859 around the distribution of prime numbers, the Riemann hypothesis stands as one of seven Millennium Prize problems (we covered this on 21.11). Running deterministic verification environments over millions of lines of machine-checked code introduces a clear standard of correctness, directly challenging probabilistic outputs that require human spot-checking.

Timeline Collapse for Formal Systems

The definitive resolution arrived much earlier than expected. Forecasters on Metaculus had put the expected date at May 2035.

Mathematician Terence Tao said last month he expected the problem to fall to a combination of humans and AI around 2050 or so. Instead, the proof bypasses those projections by decades through machine-verifiable code. The verification programs are designed so they provably cannot accept a flawed proof, eliminating ambiguity across the entire verification pipeline.

The demonstration shifts technical requirements for critical infrastructure and corporate systems where error tolerance is zero. Organizations evaluating formal proof checkers face steep upfront development expenses to author millions of lines of Lean code, yet the methodology eliminates post-deployment errors that probabilistic code generators regularly introduce. Enterprise engineering teams must now calculate whether absorbing the high labor cost of deterministic formal verification outweighs the compounding operational liabilities of unverified software.

Side by side

Levent Alpoge turned the mathematical proof into 17 million lines of Lean, allowing researchers across institutions to validate it strictly as deterministic software.

Our stories: Riemann Hypothesis and LLM Limits (November 21).

Artificial IntelligenceMachine LearningDeveloper Productivity