Lean Verification of the Riemann Hypothesis - Joint statement by... leanprover-c...
HN Best 200 @best
Lean Verification of the Riemann Hypothesis - Joint statement by... leanprover-community.github.io · 240 points · 184 comments · HN thread
TL;DR A joint statement by the Lean and Mathlib communities, endorsed by the Lean FRO and the Mathlib Initiative, certifies that Levent Alpöge's Lean library proving the Riemann Hypothesis (about 17 million lines, depending only on Mathlib) is correct. The statement was checked against Mathlib's RiemannHypothesis definition using comparator and con-leche, and the exported proof was checked by Lean's kernel, con-leche, con-ron and several third-party checkers. The thread mostly accepts the result while debating whether a proof no human yet understands counts as 'proven' and whether checker-level bugs are fully ruled out.
- Alpöge released the proof on November 20, 2026 as a Lean library of about 17 million lines that depends directly only on Mathlib.
- The statement is Mathlib's RiemannHypothesis, vetted by Lean and number theory experts, and a separate file isolates it for comparison.
- Comparator and con-leche --compare confirmed that the theorem proved matches Mathlib's statement exactly.
- The exported raw proof was checked by Lean's official kernel, con-leche, con-ron and several independent checkers in different languages, run on an inert export to avoid arbitrary code execution.
- con-leche and con-ron come with a formal proof, relative to set theory, that they cannot accept a false proof.
- The communities expect the coming work to explain the new ideas in the proof, which no human has yet digested.
Discussion The thread is long and mostly about what 'proven' means here. Many commenters, several of whom identify as mathematicians, accept the result as effectively settled because of the multi-checker verification, and they are more curious about the new ideas than doubtful. Others press on the gap between machine verification and human understanding, on whether a 17-million-line proof can be called understood, and on trust in Lean's checkers and set-theoretic foundations. Side discussions cover AI alignment and the Culture novels, Lean tooling such as con-leche's name, and whether the result is practically useful given that most mathematicians already assumed RH true. The mood is impressed and celebratory, with a skeptical minority.
- Proof is effectively settled given multi-checker verification (most): Many commenters, including professional mathematicians, consider RH proved because the statement was matched to Mathlib and several independent checkers agree. They say the verification now exceeds the rigor of most peer-reviewed mathematics.
- Proven formally but not yet understood by humans (many): A recurring position is that the result is verified but remains unexplained, so it is not 'proven' in the fuller sense until humans grasp why it works. Commenters expect simplification and human-readable versions to follow, as with the Four Color Theorem.
- Residual doubt about checkers and foundations (some): Some point out that every verification relies on ZFC and on checker implementations and assumptions such as x86 correctness. They argue that no check can be fully free of loopholes, though a shared bug across independent checkers is seen as very unlikely.
- Practical value is limited since RH was assumed true (some): Several commenters note that most working mathematicians already assumed RH, so the direct impact is small. The main gains are the many conditional theorems that now become unconditional and any new techniques that come out of the proof.
- Worry about AI-generated, opaque mathematics (some): Some comments link the episode to broader concerns about AI producing knowledge that humans cannot follow, with a few drifting into general AI-alignment and sci-fi discussion.
Links from the comments
- Lean's announcement that it now ships with verified kernels, cited as the answer to the earlier fake Collatz refutation.
- Xena project post listing the four criteria for accepting a Lean-checked proof.
- The con-leche Lean checker, described as a CONsistent LEan CHEcker.
- A blueprint attempting a more accessible explanation of the proof's structure.
#RiemannHypothesis #LeanProver #FormalVerification #NumberTheory #AIMathematics #Mathlib