Lean verification of the Riemann Hypothesis
- ID
- 49073
- Status
- summarized
- Published
- 21 Nov 2026, 10:36 PM
- Fetched
- 22 Nov 2026, 9:50 AM
- Provider
- Hacker News
- Category
- dev-community
- Original URL
- https://leanprover-community.github.io/blog/posts/riemann-hypothesis/
- Source URL
- https://hnrss.org/best
Summary
- Score
- 6.5
- Created
- 22 Nov 2026, 9:50 AM
- Tags
- Audience
- developersai_ml_learnersai_agent_users
What happened
On 20 November 2026, Levent Alpöge released a proof of the Riemann Hypothesis as a Lean library of 17 million lines, depending directly only on Mathlib. Within about a day, the Lean and Mathlib communities certified it against four published criteria: the Mathlib statement of RiemannHypothesis was vetted as correct, dozens of people reproduced an identical raw proof export, two independent tools (comparator and con-leche --compare) confirmed the proved theorem matches Mathlib's statement, and the export was re-checked by Lean's official kernel plus con-leche, con-ron, and third-party checkers written in different languages. The con-leche and con-ron checkers ship with a formal proof, relative to set theory, that they cannot accept a false proof, and all checks ran on an inert export kept out of reach of the Lean source code.
Why it matters
The reusable idea here is the verification pipeline, not the theorem: pin the statement in a trusted library, export the proof to an inert artifact, then re-check that artifact with multiple independently implemented checkers — including two carrying machine-checked soundness proofs. If you are deciding how much to trust AI-generated or third-party code you cannot read line by line, that is a concrete pattern you can copy (pin the spec, verify the artifact, don't trust the source repo). If you are not doing formal methods, this changes nothing about your stack — the honest read is that a 17M-line proof library is a landmark for Lean and Mathlib users, not a signal for typical SaaS or app builders.
Discussion angle
Would the 'inert export + N independent checkers in different languages' pattern work as a review gate for agent-generated code, or does it only hold because Lean has a kernel and a pinned statement library that most codebases lack?