On 20 November 2026, mathematician Levent Alpöge announced a proof of the Riemann Hypothesis (RH) and the Generalized Riemann Hypothesis for Dirichlet L-functions, fully formalized in the Lean 4 theorem prover. The proof, developed with the assistance of AI system Claude, is published as a massive, unannotated Lean repository containing approximately 17.4 million lines of code across 175,187 files. No traditional paper or explanatory document accompanies it. The formalization claims to prove five core theorems, including the standard Mathlib definition of RH, without relying on unproven axioms beyond Lean’s built-in propext, Quot.sound, and Classical.choice.
The code has been mirrored on GitHub by independent contributors to enable verification, but as of 24 November 2026, no independent build or peer review has been published. The repository CocoSgt/riemann-hypothesis-lean hosts an unmodified copy of Alpöge’s original release, while leanprover-community/riemann-hypothesis has been created to improve accessibility, readability, and integration with the broader Mathlib ecosystem. Both projects stress that this remains a claimed proof until independently validated.
Scale and structure of the formal proof
The proof is divided into 10 major directories, dominated by src/Development/ (12.2 million lines) and src/Formalism/ (3.2 million lines). Total repository size is about 1.3 GB when checked out. It depends on a pinned version of Mathlib (commit 0df444a3) and Lean 4.33.1. The main theorems are stated concisely in src/Main.lean, but their proofs rely on deep chains of dependencies. Static analysis shows no use of sorry, admit, or custom axioms, but the code includes 22 custom tactic shorthands and one use of addDecl — a kernel-safe command for renaming declarations. The proof compiles under strict settings, including maxHeartbeats = 4,000,000 and --tstack=400000.
Verification challenges and community response
Verifying the proof requires significant computational resources. A full lake build Main may take hours or days, depending on hardware. Users are advised to use prebuilt caches from cache.mathlib.org to inspect the code without recompilation. Independent verification steps include checking that no extraneous axioms are used, confirming the correctness of statement definitions against Mathlib, and replaying the proof with external checkers like lean4checker. The community-led repository provides a comparator tool to sandbox and verify that Main.lean proves exactly the five target statements and nothing more.
Despite the formal structure, Alpöge has acknowledged the code’s unreadability. In a Twitter post, he admitted the repository contains “garbage” and that he “yoloed a lot”, citing difficulty in cleaning it. He also confirmed that the widely reported figure of “250,000 pages” was a joke, intended as satire of overly verbose mathematical write-ups. He expressed regret for not clarifying this sooner, noting that the lack of a readable narrative was deliberate: “I didn’t feel comfortable having any slop writeup attached to this problem.”
What it means
For UK, UAE, US, and Kazakhstani tech and research leaders, this event underscores a growing tension between formal correctness and human interpretability in advanced mathematics. While Lean ensures logical consistency, the proof’s opacity limits its immediate utility. Organisations relying on cryptographic systems tied to number theory — such as those using elliptic curve or lattice-based cryptography — should monitor validation efforts, though no immediate practical impact is expected. The dependence on a single, unreviewed codebase introduces supplier risk: trust rests entirely on Alpöge and the integrity of the Lean ecosystem.
Businesses investing in formal methods should note that scalability remains a challenge. A proof of this scale demands high-memory systems and expertise in Lean tooling, raising barriers to entry. However, the use of caching and sandboxed verification shows how large formal artifacts can be made more accessible. The community’s rapid response — creating cleaner mirrors and verification tooling — reflects a maturing open-source formal mathematics infrastructure.
Next steps for verification
Researchers and institutions can contribute by performing independent builds and publishing logs of compile time, memory usage, and axiom checks. Running lean4checker or similar tools provides additional assurance beyond Lean’s native kernel. Those with spare compute capacity are invited to assist CI efforts via CI-RUNNERS.md. Until multiple independent verifications are completed, the proof should be treated as provisional. The ultimate goal — a readable, modular, and maintainable formal proof — remains a community effort now underway in the leanprover-community fork.