Lean Communities Certify Proof of the Riemann Hypothesis Written as Computer Code
The Lean and Mathlib communities say Levent Alpöge's proof of the Riemann Hypothesis is correct. The proof is a Lean library of 17 million lines of code and has been checked with several independent tools.

The Lean and Mathlib communities, which develop the Lean proof assistant and its Mathlib mathematics library, have jointly stated that Levent Alpöge's proof of the Riemann Hypothesis, released on November 20, 2026, is correct. The Riemann Hypothesis is one of the best-known unsolved problems in mathematics, and the proof now exists as a Lean library of 17 million lines of code. The statement is endorsed by the Lean FRO and the Mathlib Initiative.
The library depends directly only on Mathlib. Over the past day the communities worked to verify it, and the authors of the statement say they have full confidence in its correctness. They refer to four criteria set out on the Xena Project blog and say all of them are met.
How it was checked
First, the statement of the hypothesis is correct. It is part of Mathlib (RiemannHypothesis) and has been carefully vetted by experts in Lean and number theory.
Second, Alpöge's library compiles correctly. Dozens of people have reported successful compilation, reproducing the same raw proof export file, with no errors or build failures.
Third, the code proves the right statement. The community added a file that isolates the statement of the Riemann Hypothesis and imports only Mathlib. Two independent tools, comparator and con-leche (with the --compare option), confirmed that the theorem proved in Alpöge's library is exactly Mathlib's statement.
Fourth, the proof itself is valid. The exported raw proof was checked by several proof checkers: Lean's official kernel, con-leche and con-ron, and several independent checkers contributed by third parties and written in different programming languages. Con-leche and con-ron come with a formal proof, relative to set theory, that they cannot accept a false proof. This addresses concerns that flaws in Lean's own logic might be exploited. The checks ran on an inert export of the proof, beyond the reach of any hypothetical malicious code in the Lean sources.
The authors thank everyone who contributed resources for the verification, and say they look forward to activity in the mathematical community that will help explain the new ideas in the proof.


