Anthropic Researcher and Claude Claim Riemann Hypothesis Proof in 17M Lean Lines
An Anthropic researcher used Claude to generate a 17-million-line Lean proof of the Riemann hypothesis. While independent systems verified it, human comprehension remains an open challenge.

On November 20, Anthropic researcher Levent Alpöge published a four-page note announcing an extraordinary milestone: “I believe I have, working with Claude, discovered a proof of the Riemann hypothesis.” The claim extends beyond the core 1859 hypothesis—which states that all non-trivial zeros of the Riemann zeta function possess a real part of 1/2—to also cover the generalized formulation for Dirichlet L-functions.
Rather than presenting a traditional paper, Alpöge released a massive formal codebase written in the Lean interactive theorem prover. Spanning 175,187 files and approximately 17 million lines of code, the work would exceed 250,000 pages if printed. By comparison, Mathlib, the foundational mathematics library built by hundreds of contributors over several years, contains just a few million lines. Alpöge noted that he has not yet mastered every mathematical step contained in the output, and no human has read the artifact in its entirety.
How machines verified an unread proof
Because the proof is far too sprawling for human peer review in the short term, verification has fallen entirely to software. Lean operates via a compact, trusted logical kernel. To validate the result, researchers systematically tested four primary failure modes:
- Hidden axioms: Michael Rubinstein from the University of Waterloo analyzed the codebase's dependencies, verifying that the five primary theorems rely solely on Lean 4's standard axioms (
propext,Classical.choice, andQuot.sound) without introducing unproven assumptions or shortcuts. - Kernel errors: Rubinstein executed the entire project through Lean’s kernel without errors. The proof export was then processed by
nanoda, an independently developed type checker, which validated 1,484,729 declarations cleanly. MIT’s Andrew Sutherland rannanodaalongside a second independent checker,con-leche, both of which confirmed the proof. - Build tampering: Sutherland conducted a clean, offline rebuild on an isolated machine with read-only source files, producing an exact byte-for-byte match to the public export.
- Target mismatch: To ensure Claude had not proved a trivial or altered variant of the problem, researchers placed the target theorem in an isolated file importing only official Mathlib definitions. Automated comparison tools confirmed the final claim matches Mathlib’s established formal statement of the Riemann hypothesis.
The gap between verification and understanding
While independent engines agree that the formal terms check out, mathematical insight remains scarce. Brian Conrey, a prominent Riemann hypothesis specialist, observed that the construction appears “seriously complicated” and suggested simpler routes likely exist.
Rubinstein released a 265-page draft guide addressing the zeta function case, isolating the argument to an upper bound on a weighted sum over prime powers and estimates for Dirichlet characters across thirteen hypotheses. Even so, the guide relies directly on Lean for its central step. Furthermore, the Clay Mathematics Institute continues to list the hypothesis as unsolved, adhering to rules that demand peer-reviewed publication and a two-year vetting period. Mathematician Ravi Vakil also noted that a Stanford postdoctoral researcher has independently submitted a proof.
What it means for developers
This development highlights a critical paradigm shift in AI engineering: the decoupling of generator complexity from verification. Large language models paired with execution loops do not face the human constraint of brevity. When operating against an automated kernel, models are free to output convoluted, verbose logic as long as every step satisfies formal constraints.
In mathematics, validation is binary and reliable because Lean provides a small, mathematically sound verifier. For standard software development, however, verifiers are significantly weaker. Engineering teams typically rely on unit tests, continuous integration suites, and manual code reviews—systems that leave ample room for subtle bugs.
This gap demonstrates that an AI model's utility depends heavily on the rigor of the validation environment surrounding it. As developers design agents for code synthesis, data extraction, or system automation, the primary bottleneck is not model capability, but the precision of the feedback loop. For teams exploring these workflows across different architectures, developers can try top AI models cheaply through one API at https://apixoai.online to benchmark varying reasoning abilities against their own testing harnesses.
Ultimately, Claude’s mathematical output demonstrates that when the checking mechanism is absolute, a model can solve complex problems without human-readable explanations. For software engineers, the priority is clear: investing in rigorous, automated verification mechanisms is what unlocks the true potential of autonomous AI.
Source: Nobody Has Read Claude’s Proof of the Riemann Hypothesis — Towards AI. Written by the Apixo team from that report.
One key for Claude, GPT, GLM, DeepSeek and more. Pay per token with crypto.
Get your API key

