Lean and Mathlib communities certify Alpöge's Riemann Hypothesis proof

Lean and Mathlib communities certify Alpöge's Riemann Hypothesis proof

On November 20, 2026, Levent Alpöge released a proof of the Riemann Hypothesis as a Lean library of 17 million lines of code. A joint statement by the Lean and Mathlib communities, endorsed by the Lean FRO and the Mathlib Initiative, now says they have full confidence the proof is correct and congratulates him on the achievement. They write: "We hereby certify that both the statement and the proof of the Riemann Hypothesis are correct."

The codebase depends directly only on Mathlib. Over the past day, the communities rallied to verify it, and the statement says all four criteria from a linked Xena Project post are satisfied. Each criterion gets its own check.

First, the statement is correct. The Riemann Hypothesis as stated in Mathlib (RiemannHypothesis) has been carefully vetted by experts in Lean and number theory.

Second, the library compiles. Dozens of people have reported correct compilation, reproducing the same raw proof export file, and the library builds without errors or build failures.

Third, the code proves the correct statement. The community added a file that isolates the statement of the Riemann Hypothesis and imports only Mathlib. That statement was compared against the theorem proved by Alpöge using two independent tools, and both confirmed that the theorem proved in his library is exactly Mathlib's statement of the Riemann Hypothesis.

Fourth, the Lean proof is valid. The exported raw proof was checked by several proof checkers: Lean's official kernel, the checkers con-leche and con-ron, and several independent checkers contributed by third parties and written in different programming languages. The statement says con-leche and con-ron come with a formal proof, relative to set theory, that they cannot accept a false proof. That is meant to address concerns that Lean's logic itself might have flaws the proof could exploit. These checks ran on an inert export of the proof, out of reach of hypothetical malicious code in the Lean proof sources. An extensive overview is linked at math.mit.edu/~drew/grh/.

The statement thanks everyone who provided resources for the verification. It ends by saying the communities look forward to activity in the mathematical community that will help explain the new ideas in the proof.

Key facts

  • Levent Alpöge released a proof of the Riemann Hypothesis on November 20, 2026 as a Lean library of 17 million lines of code.
  • The Lean and Mathlib communities, endorsed by the Lean FRO and the Mathlib Initiative, certify that both the statement and the proof are correct, after about a day of verification.
  • Dozens of people reported correct compilation of the codebase, which depends directly only on Mathlib, reproducing the same raw proof export file.
  • Two independent tools confirmed the theorem proved is exactly Mathlib's statement of the Riemann Hypothesis.
  • The exported proof passed Lean's official kernel, the con-leche and con-ron checkers, and several third-party checkers in different programming languages.

Why it matters

The Riemann Hypothesis is one of the best-known open problems in mathematics, and this statement says a machine-checked proof of it now exists. The certification is unusual in form: instead of waiting for a human referee to read a very long argument, the communities rely on formal checking of a 17-million-line library against Mathlib's own definition of the hypothesis. The statement itself says the new ideas in the proof still need explaining by mathematicians.

Who it affects

Mathematicians and number theorists, who now have a formal proof to study and explain. Lean and Mathlib users and maintainers, whose library supplies the statement and the checking tools. Proof-checker authors, including the third parties whose independent checkers were used.

How to use it

The statement points to an extensive overview at math.mit.edu/~drew/grh/ and to the four criteria in the Xena Project post it links. The library depends directly only on Mathlib, and the community added a file that isolates the statement of the Riemann Hypothesis and imports only Mathlib, which is the piece a reader would inspect to see what was actually proved. Dozens of people have compiled the codebase and reproduced the same raw proof export file.

How solid is it

The verification is layered. The statement was vetted by experts in Lean and number theory. The library compiles without errors. Two independent tools matched the proved theorem to Mathlib's statement. Several proof checkers, including Lean's official kernel and independent third-party checkers in different programming languages, accepted the exported proof. con-leche and con-ron come with a formal proof, relative to set theory, that they cannot accept a false proof. The checks ran on an inert export of the proof. The source is the communities' own joint statement. No peer review or journal publication is mentioned; the verification is by Lean and Mathlib communities and proof checkers.

Risks and caveats

The certification is a community statement made about a day after release, so the wider reaction of mathematicians is not yet part of the record. The statement itself notes that the mathematical community will need to help explain the new ideas in the proof, so understanding lags behind verification. The statement's own safeguards address two worries: that Lean's logic might have flaws a proof could exploit, and that malicious code in the Lean sources could interfere with checking. Its answers are the formal soundness proof for the con-leche and con-ron checkers and the inert export. The statement gives no exact count beyond dozens of people and several independent checkers.

“We have full confidence that Alpöge's proof of the Riemann Hypothesis is correct, and we congratulate him on this achievement.”

— Joint statement by the Lean and Mathlib communities