Inside the 17-Million-Line AI Proof of the Riemann Hypothesis

Inside the 17-Million-Line AI Proof of the Riemann Hypothesis

On November 20, 2026, mathematician Levent Alpöge released a formal proof of the 19th-century Riemann hypothesis, developed over six weeks alongside Anthropic's AI model Claude. Within 24 hours, both the Lean Focused Research Organization and the Mathlib Initiative confirmed that the proof passed mechanical verification. The announcement arrived one day after Anthropic went public on the Nasdaq stock market, transforming a quiet mathematical breakthrough into a flashpoint for Wall Street, Silicon Valley, and academia.

Initial headlines framed the event as a simple man-versus-machine milestone. That framing misses the real story. Nobody handed a prompt to a chatbot and waited for a million-dollar prize solution to pop out. Instead, a seasoned number theorist used an AI system to construct a sprawling, 17-million-line codebase that no human could read in a lifetime, bypassing traditional peer review through automated theorem verification.

The Verification Shift That Changed Mathematics

For 167 years, Bernhard Riemann's 1859 conjecture stood as the ultimate graveyard for mathematical reputations. The hypothesis concerns the distribution of prime numbers and the behavior of the Riemann zeta function. Specifically, it states that every nontrivial zero of this function has a real part equal to one-half, placing them all along a single vertical axis known as the critical line.

Solving it carries a one-million-dollar reward from the Clay Mathematics Institute, which named it one of seven Millennium Prize Problems in 2000. Over the decades, dozens of celebrated researchers have claimed victory, only for human referees to spend months or years hunting down subtle logical flaws buried in hundreds of pages of dense prose.

Alpöge avoided that bottleneck entirely. Rather than publishing a traditional paper for human referees to dissect, he released 175,187 files containing roughly 17 million lines of formal code written in Lean, an interactive theorem prover.

Machines do not get tired. They do not skim over tedious algebraic lemmas or assume a routine step works out because the author has a prestigious pedigree. When MIT mathematician Andrew Sutherland and volunteers from the Lean community ran Alpöge's export files through independent proof checkers, the software evaluated every logical deduction down to Lean's three foundational axioms.

The verification community established four strict criteria before endorsing the result:

  • Definition integrity. Comparator tools confirmed that the code imported Mathlib's pre-existing, vetted definition of the Riemann hypothesis rather than subtly altering the problem to make it easier to solve.
  • Arithmetical equivalence. The proof independently established classical equivalents that do not rely on complex analysis, including Robin's inequality.
  • Clean compilation. Multiple independent teams expended substantial computing power to compile the raw code from scratch.
  • Third-party validation. The resulting export files passed every known formal proof checker.

By November 21, the Lean FRO and Mathlib Initiative issued a joint statement declaring full confidence that the proof is correct. Not only did the codebase establish the classic Riemann hypothesis, it also proved the stronger Generalized Riemann Hypothesis for Dirichlet L-functions.

How a Human and an AI Built an Unreadable Monument

Understanding how Alpöge and Claude actually worked together requires stripping away the marketing mythology surrounding artificial intelligence. Alpöge is not a casual prompt engineer. Born in 1992, he trained in number theory and arithmetic statistics, specializing in elliptic curves, Selmer groups, and the distribution of arithmetic invariants. Before joining Anthropic, he already possessed the exact theoretical toolkit required to attack the problem.

Early technical reviews by mathematicians—including Robin Zhang at IHES and Michael Rubinstein, who used AI agents of their own to scan and summarize the Lean source—reveal that the proof is anything but brute-force computation. It draws heavily on modern number theory, weaving together techniques from arithmetic geometry and the Langlands program.

At the heart of the argument is a strategy to transport methods used to prove the Weil conjectures over finite fields directly onto the integers. Doing so required carefully managing the length of a chain of theta lifts, balancing competing error terms until they collapsed into the required asymptotic bound on prime-counting functions.

In a traditional research setting, translating a high-level geometric strategy of this magnitude into rigorous, bug-free proofs would take a team of specialists a decade. Claude acted as an industrial-scale formalization engine. It generated thousands of intermediate lemmas, wrote the Lean syntax, debugged type mismatches, and scaled up the connective tissue between major theoretical leaps.

Yet that speed came with an immediate trade-off. When Alpöge released the initial 17 million lines, no human on Earth—including Alpöge himself—had read every line of the output.

The Compressing Machine and the Rivalry Behind It

A proof that machines certify but humans cannot comprehend creates an existential crisis for pure mathematics. Mathematicians do not prove theorems merely to log binary true-or-false outcomes. They do it to understand why mathematical structures behave the way they do.

Alpöge acknowledged this immediately, predicting in his announcement note that the sprawling codebase could be massively simplified. Within days, the compression began. By November 26, Sutherland finished verifying two stripped-down versions of the codebase:

  • A readable edition trimmed to 300,000 lines.
  • A compact edition distilled down to 76,000 lines.

Even at 76,000 lines, the proof remains a mammoth undertaking for human study. Martin Bridson, president of the Clay Mathematics Institute, called the announcement historic while noting that actual human comprehension of the underlying argument will take considerable time.

Beneath the academic celebration lies a fierce corporate and personal rivalry. The November 20 release did not happen in a vacuum. Just one month earlier, in October 2026, researchers using an OpenAI model published an analytic proof of the weaker quasi-Riemann hypothesis, proving that nontrivial zeros stay confined within a narrower strip rather than sitting directly on the critical line.

Alpöge's breakthrough directly overshadowed his former competitor's milestone. In his notes, Alpöge offered a pointed nod to the good taste of the researchers at OpenAI, noting that their separate proof regarding the nonexistence of Siegel zeros resembled an application of Stepanov's method without a multiplicity argument. Behind the scenes, tensions between the two camps had already boiled over. Reports surfaced alleging that OpenAI researcher Sébastien Bubeck had pressured another mathematician to drop Alpöge as a co-author on an unrelated fluid dynamics paper solely because Alpöge worked at Anthropic—a charge Bubeck dismissed as false and inflammatory.

Meanwhile, the human-only side of mathematics experienced a poignant collision on the exact same day. On November 20, Stanford mathematician Ravi Vakil posted a 940-page manuscript written by an independent Italian mathematician named Masullo, who had spent nearly twelve years working alone on a proof of the Generalized Riemann Hypothesis. Unlike Alpöge's Lean files, Masullo's draft contained flaws in central steps and was declared unready for formal submission. Twelve years of solitary human toil met six weeks of AI-accelerated formalization on the very same Friday.

What Critics and Skeptics Still Question

Despite unanimous agreement from formal verification experts that the Lean code compiles cleanly, the mathematical community is far from closing the book on the episode. Several critical fault lines remain unresolved:

1. The Attribution Black Box

Anthropic has not released detailed transcripts showing the exact division of labor between Alpöge and Claude. In an earlier August 2026 experiment, Anthropic researchers showed that Claude subagents could improve a lower bound on zeta zeros while a staff member mostly typed words of encouragement. In November, however, the human collaborator was an elite number theorist. Without full transparency into the prompt logs, outsiders cannot tell whether Claude discovered the core theta-lift insight on its own or simply translated Alpöge's blueprint into Lean at superhuman speed.

2. The Timing Optics

Releasing the proof on a personal website just 24 hours after Anthropic's Nasdaq debut raised eyebrows across both finance and academia. Alpöge stated he worked on the problem in a personal capacity, yet his announcement explicitly pointed to his employer. For a newly public AI company competing against OpenAI and xAI for enterprise contracts and defense deals, having a headline linking its flagship model to a famous unsolved math problem provides priceless brand validation.

3. The Clay Prize Hurdle

Mechanical verification in Lean satisfies computer scientists, not the Clay Mathematics Institute. Under the institute's strict rules, a solution must be published in a refereed mathematics publication of worldwide repute and achieve general acceptance in the mathematical community over a two-year waiting period. Until human mathematicians translate those 76,000 lines of Lean back into transparent, peer-reviewed prose and verify that no subtle bug exists in Lean's underlying logic kernel, the one-million-dollar check stays in the bank.

Why This Changes Software Beyond Pure Math

The real-world consequences of Alpöge's proof extend far beyond prime numbers and academic prize committees. Proving the Riemann hypothesis does not immediately break modern RSA encryption—a common myth fueled by pop-science summaries—because standard public-key cryptography relies on the practical difficulty of factoring large composite numbers rather than the asymptotic distribution of primes.

What it actually breaks is the ceiling on formal verification in high-stakes engineering.

For decades, software engineers have known that formal proof assistants like Lean can mathematically guarantee that critical code contains zero bugs, memory leaks, or security vulnerabilities. Historically, almost nobody used them outside aerospace and cryptographic kernels because writing formal proofs required rare specialists and took ten times longer than writing the software itself.

Alpöge and Claude just proved that an AI model can generate, debug, and verify 17 million lines of formal logic in six weeks. If large language models can formalize the deepest theorems of arithmetic geometry, they can formalize operating system kernels, smart contracts, medical device firmware, and autonomous flight controllers. The era of trusting software because it passed a few unit tests is ending, replaced by systems that prove their own correctness before a single line of code ever runs in production.

CW

Charles Williams

Charles Williams approaches each story with intellectual curiosity and a commitment to fairness, earning the trust of readers and sources alike.