In November 2026, mathematician Levent Alpöge posted 17 million lines of Lean code that, according to a December 3 report in Nature, proved the Riemann hypothesis. Mathematicians used AI tools to turn the code into a paper they could read. But they did not have to wait for that explanation to trust the result, said Emily Riehl, a mathematician at Johns Hopkins University. For that judgment, she said, Lean’s check was enough.
Checking a proof and understanding it are different tasks. Lean, a programming language and proof assistant created by computer scientist Leonardo de Moura, handles the first. Once a statement and its proof are written in Lean, the software checks whether each step follows from definitions, earlier results and the rules of the mathematical system. For a complex proof, tracing those dependencies through papers and references by hand can take years. Lean can check a large formal proof in hours.
Much of what makes that possible is work mathematicians have already done. Mathlib, an open-source library started in 2017, lets researchers reuse definitions and results expressed in Lean rather than formalize them anew for each proof. By December 2026, it contained more than two million lines of code. A mostly volunteer team reviews every submission. Kevin Buzzard, a mathematician at Imperial College London who helps maintain Mathlib, said the reviewers receive little academic recognition for that work.
A successful check is not an absolute guarantee, Buzzard cautioned. Lean itself can contain bugs, so a formal proof needs additional verification before mathematicians declare the result established.
