Skip to content
Riemann Hypothesis Machine-Verified in Lean: Proof Complete, Human Review Begins
Fundamentals 10 min read

Riemann Hypothesis Machine-Verified in Lean: Proof Complete, Human Review Begins

The author corrects their earlier skepticism after Lean theorem prover successfully verified the Riemann Hypothesis proof within a day, meeting all three machine-verification conditions, though human comprehension of the 17-million-line formalization remains a multi-year challenge.

Model Perspective
Model Perspective
Model Perspective

The author previously published an article questioning whether the Riemann Hypothesis had been proven, concluding it had not yet met the criteria for a machine-verified proof. They set three falsification conditions: independent compilation outside the author circle, only standard Lean axioms used, and the final theorem matching Mathlib's RiemannHypothesis definition.

How the Three Conditions Were Met

Compilation: MIT mathematician Andrew Sutherland, outside the author circle, compiled all 175,187 modules with zero errors. A second build on Finland's LUMI supercomputer reproduced the result byte-for-byte.

Axioms: Audit showed the five main theorems depend only on Lean's three built-in axioms — propext, Classical.choice, Quot.sound — with no sorry and no author-injected axioms.

Statement correctness: The final line is theorem riemannHypothesis : RiemannHypothesis, pointing directly to the Mathlib definition already vetted by number theorists. The Lean community wrote a challenge file that imports only Mathlib, isolates the Riemann Hypothesis statement, and uses a diff tool to confirm exact match.

Checker diversity: Besides the official Lean kernel, two independently written checkers — nanoda and con-leche — also accepted the exported proof.

On November 21, Lean FRO and the Mathlib Initiative issued a joint statement confirming that this Lean library correctly states and proves the Riemann Hypothesis.

Trust chain: first three rings passed
Trust chain: first three rings passed

Where I Was Wrong

The direction of the judgment was correct; the error was in the timeline. The author expected independent compilation of 17 million lines (over 250,000 printed pages) to take weeks. Instead, dozens of people downloaded, compiled, and cross-checked in a single day. The key change is review speed: the Kepler conjecture proof submitted in 1998 took years for human referees to reach 99% confidence, and Thomas Hales spent over a decade formalizing it. This time, the work before the third trust-ring was completed in one day.

The Remaining Hurdle

The falsification conditions only cover the first three rings of the trust chain. Machine checking can verify correctness, but not human understanding. Fields medalist James Maynard assigns 98–99% confidence based on Lean's verification, yet stresses that human comprehension requires additional checks beyond formalization. As of November 21, Sutherland's public log still lists stricter re-checks in progress.

The same day, American Mathematical Society president Ravi Vakil posted a 940-page manuscript by Masullo claiming a proof of the Generalized Riemann Hypothesis, developed over 12 years without AI. Within eight hours, Vakil updated that an AI-assisted review had found a potential issue. Two proofs now sit on opposite sides of the human-understanding barrier: one too long for humans to read but machine-checked; the other human-readable but not yet fully verified.

Shing-Tung Yau remarks that mathematics has "entered a new era." The author wonders whether anyone can compress the 17-million-line formalization into a few-dozen-page paper explaining why the proof strategy works. Levent Alpöge's notes also acknowledge the argument's extreme length and hope for future simplification.

What I Simplified

"Machine-level validity" rests on two assumptions: the checker kernel has no bugs, and Mathlib's definition faithfully captures mathematicians' intended Riemann Hypothesis. Both have been widely reviewed but carry non-zero risk. The author did not personally compile the code; facts are drawn from Lean community statements, MIT verification records, and public reports. The Clay Mathematics Institute requires two years of publication and broad acceptance before considering a prize — mathematical acceptance will take much longer.

Model Card Model: Trust Chain. A machine proof is trustworthy = reliable checker × no hidden assumptions × proves original statement × human understands. Assumption: Checker kernel and Mathlib definitions are correct. Conclusion: As of November 22, the first three rings are publicly confirmed by the Lean community; only "human understands" remains. Calculation (illustrative): Yesterday 0.99×0.90×0.80×0.50 ≈ 0.36; after the middle two rings rise to 0.99, 0.99×0.99×0.99×0.50 ≈ 0.49. The final 0.50 unchanged, overall still below half. Falsification: Checker vulnerability discovered, or Mathlib definition shown not equivalent to original problem.

Takeaway: When making judgments, write down what evidence would change your mind. Written falsification conditions force you to actually update when evidence appears, rather than rationalizing. The author wrote them, so today they can happily correct.

Yesterday's title asked "Was it really proven?" Today's answer: The machine half is proven; the human half just began.

References

[1] Lean FRO, Mathlib Initiative. Joint statement on the Lean verification of the Riemann Hypothesis, 2026-11-21.

[2] Sutherland A. Lean verification record (MIT), 2026-11-21; Kingy.ai. Levent Alpöge's Claude-assisted Riemann hypothesis proof verified in Lean, 2026-11-21.

[3] Science and Technology Daily. Mathematics enters a "new era": Shing-Tung Yau and two other mathematicians respond to AI-assisted proof of Riemann Hypothesis, 2026-11-22.

[4] Science and Technology Daily. Six-week AI collaboration meets 12-year deep work: mathematics welcomes dual Riemann Hypothesis proofs, 2026-11-21.

[5] Hales T, et al. A Formal Proof of the Kepler Conjecture. Forum of Mathematics, Pi, 2017.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

formal verificationRiemann Hypothesismathematical foundationstrust chainMathlibLean theorem proverproof assistantsmachine-checked proof
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.