# Alpöge's 17-million-line Riemann proof passes Lean checks

> The proof was released as a 17-million-line Lean library, and the Lean and Mathlib communities say independent checks confirm it is correct.

Oossa · 2026-11-22 · https://oossa.com/en/alpoge-s-17-million-line-riemann-proof-passes-lean-checks

The codebase depends directly only on Mathlib, the mathematical library that already contains a formal statement of the Riemann hypothesis. That distinction matters: the community checked not only that Alpöge’s code runs, but that it proves exactly the intended statement.

Stanford mathematician Levent Alpöge released the proof on Nov. 20, 2026, as a 17-million-line Lean library. Lean is a system for checking mathematical proofs; in a joint statement endorsed by the Lean FRO and Mathlib Initiative, the Lean and Mathlib communities say they have “full confidence” in the proof.

## What the community certified

The communities say the verification met four criteria, each covering a different possible problem. First, Mathlib’s RiemannHypothesis statement had already been carefully vetted by experts in Lean and number theory. Second, Alpöge’s library compiles without errors or build failures; dozens of people reported successful compilation and reproduced the same raw proof export file.

Third, the theorem in Alpöge’s library had to match Mathlib’s formal statement, rather than a subtly different claim. The community added a file that isolates the hypothesis and imports only Mathlib, then compared it with Alpöge’s theorem using two independent tools, comparator and con-leche-compare. Both confirmed the match.

## How the proof was checked

The exported proof was checked by Lean’s official kernel, by con-leche and con-ron, and by several third-party checkers written in different programming languages. These checks examined the raw proof export, not simply the original source code.

Con-leche and con-ron come with formal proofs, relative to set theory, that they cannot accept a false proof. That addresses a specific concern: whether a flaw in Lean’s own logic could be exploited by a proof. The communities say checks ran on an inert export, out of reach of hypothetical malicious code in the Lean source files.

Dozens of people independently reported the same result. MIT mathematician Andrew Sutherland has an overview of the independent checks on his website, including reports of compilation.

## Why the timing stands out

The Riemann hypothesis is one of mathematics’ best-known open problems. It makes a prediction about how prime numbers are distributed, and its statement had already been formalized in Mathlib before Alpöge supplied this proof.

The result also came well before forecasts cited by The Decoder. Metaculus forecasters had put the expected solution date at May 2035, while mathematician Terence Tao said last month that he expected a solution through “a combination of humans and AI around 2050 or so.” These were forecasts, not deadlines, but Alpöge’s proof arrived earlier than either estimate.

## What happens next

The joint statement does not explain the new mathematical ideas in Alpöge’s proof. The Lean and Mathlib communities say they look forward to activity in the mathematical community that will help explain them.

The formal verification answers whether the encoded proof establishes the intended statement. Understanding and communicating the proof’s ideas is a separate task the communities say they expect mathematicians to take up.

## The facts

- Levent Alpöge released his proof as a 17-million-line Lean library on Nov. 20, 2026.
- Dozens of people reported that the library compiled and reproduced the same raw proof export.
- The proof was checked by Lean’s official kernel, con-leche, con-ron and third-party checkers.
- Metaculus forecasters put the expected solution date at May 2035; Terence Tao said he expected a human-and-AI solution around 2050.

## Why it matters

For mathematicians working in Lean, the community says the proof matches the vetted Riemann hypothesis statement in Mathlib. That gives them a formally checked proof artifact to examine. The communities say further mathematical work is needed to explain the proof’s ideas.

## What it means for you

If you use Mathlib, you can find the formal Riemann hypothesis statement there, and the community says Alpöge’s theorem matches it. The announcement does not specify how or when projects will use the proof.

**Our take:** The strongest part of this announcement is the layered verification: compilation, statement matching and checks by several proof checkers. The mathematical ideas still need to be explained beyond the formal certification.

## Sources & references

1. [Lean and Mathlib community officially confirms Levent Alpöge's proof of the Riemann hypothesis is correct](https://the-decoder.com/lean-and-mathlib-community-officially-confirms-levent-alpoges-proof-of-the-riemann-hypothesis-is-correct/) – The Decoder, 2026-11-22
2. [Lean and Mathlib communities](https://leanprover-community.github.io/blog/posts/riemann-hypothesis/) – Lean and Mathlib communities
3. [Claude helps topple Riemann problem](https://www.semafor.com/article/11/22/2026/claude-helps-topple-riemann-problem) – Semafor, 2026-11-22

Last updated: 2026-11-22
