Claude Solves the Riemann Hypothesis in 6 Weeks? 170,000 Lines of Code Shake the Math World

Mathematician Levent Alpoge and Claude generated 17 million lines of Lean code in six weeks, claiming to prove the Riemann Hypothesis, sparking fierce debate over the gap between machine verification and human understanding.
In 2026, mathematician Levent Alpoge used Claude to generate 17 million lines of Lean formal code in six weeks, claiming to prove the 167-year-old Riemann Hypothesis. The proof passed global machine verification coordinated by MIT with no logical gaps, but Alpoge himself could not keep up with Claude's output in real time, and the process was not fully human-auditable. Terence Tao and Manjul Bhargava pointed out that machine verification only guarantees logical consistency, not that the mathematical ideas are understood by humans; at the scale of 17 million lines, the gap between the two has become an abyss. The Clay Institute's two-year review period has not started, and the prize remains in limbo. Scott Aaronson calls it the most profound epistemological shift in mathematics since Gödel: mathematics may produce results faster than it can understand them. Together with three other major claims by Alpoge that year, this suggests that the definition of mathematics as a human endeavor may have permanently changed.
Claude Solves the Riemann Hypothesis in 6 Weeks? 170,000 Lines of Code Shake the Math World
A chatbot, six weeks, and a 17-million-line formal proof codebase—the Riemann Hypothesis, math's most dangerous unsolved mystery, seems to have been pushed to the brink of falling by AI. This is not the opening of a science fiction novel, but a real narrative that is currently sparking fierce debate.
Six Weeks vs. 167 Years: What Happened
According to a detailed breakdown by a YouTube tech channel, on November 20, 2026, 34-year-old mathematician Levent Alpoge (transliterated in the video as Alpage/Alpagay) posted a document online—or more precisely, 17 million lines of computer code—claiming to contain a proof of the Riemann Hypothesis.
The Riemann Hypothesis was proposed by Bernhard Riemann in 1859 and has remained unconquered for 167 years. Over a thousand mathematicians have spent entire careers trying to crack it, and the Clay Mathematics Institute has offered a $1 million prize that has gone unclaimed for over two decades. Alpoge's credentials are solid: he graduated summa cum laude from Harvard in 2014, earned his PhD from Princeton in 2020 under 2014 Fields Medalist Manjul Bhargava, and then held a junior fellowship at the Harvard Society of Fellows. He joined Anthropic as a mathematician, not an AI researcher—his job is to use Claude as a research tool to attack hard problems.

By comparison, Andrew Wiles took seven years to prove Fermat's Last Theorem, producing a 129-page paper. The Riemann Hypothesis is considered significantly harder and older, yet its proof is 17 million lines of code. Alpoge himself admits that Claude's output speed near the finish line exceeded his ability to keep up in real time.
Why the Riemann Hypothesis Is a "Master Key"
Prime numbers are those divisible only by 1 and themselves: 2, 3, 5, 7, 11... The problem is that when you zoom out, the distribution of primes appears random—they are like paint splattered on the number line, their density can be estimated, but the precise deterministic pattern has never been proven.
This puzzle is not merely academic. Every time you open your banking app, your phone uses enormous primes to generate security keys: two large primes multiplied together yield a number that cannot be factored by existing computers within a human lifetime. That is the lock. Primes are the key. And the Riemann Hypothesis is the blueprint for the key factory.
Riemann handed control of prime distribution to the zeros of the zeta function on the complex plane. His conjecture: all interesting zeros lie exactly on a vertical critical line. Computers have verified the first ten trillion zeros, without exception. But mathematics does not accept examples; it demands proof for infinity—and infinity is exactly where all human attempts have collapsed.

The Riemann zeta function is a function defined on the complex plane; Euler first studied its real part, and Riemann analytically continued it to the complex domain. It is defined as ζ(s) = Σ 1/n^s (when the real part is greater than 1), and extended by analytic continuation to the entire complex plane (except for a simple pole at s=1). The zeros of the zeta function fall into two categories: trivial zeros (negative even integers) and nontrivial zeros (located in the critical strip 0<Re(s)<1). The Riemann Hypothesis asserts that all nontrivial zeros lie on the critical line Re(s)=1/2. The core connection to prime distribution is this: the precise error term in the prime number theorem is directly controlled by the locations of the zeta zeros; the closer the real part of the zeros is to 1/2, the smaller the error in prime distribution. Therefore, proving the Riemann Hypothesis would profoundly deepen our understanding of prime distribution and bring unconditional proofs of numerous theorems in number theory.
Methodological Breakthrough: Translating Mathematics into Machine-Verifiable Code
What Alpoge and Claude did is a genuinely novel step in the history of mathematics: instead of attacking head-on with traditional mathematical proof language, they translated the entire argument into Lean—a formal proof verification language that computers can mechanically check. Every logical step, every intermediate proposition, every inference is reduced to a machine-checkable statement.
The result is a 17-million-line codebase. The accompanying explanatory text generated by Claude exceeds 250,000 pages, and Alpoge abandoned any attempt at a human-readable version. Subsequently, Andrew Sutherland of MIT coordinated a global verification effort: independently compiled computers independently checked the entire library, and all 17 million lines passed—no errors, no logical gaps.
This proof checker has no capacity to be charmed, deceived, or pressured. It only says: valid.
But therein lies the problem. Alpoge described a moment near the end of the proof: Claude's mathematical output speed surpassed his ability to follow, so he stopped verifying each step in real time and chose to trust the machine, checking afterward. This means the process that produced the proof is not fully human-auditable. The 17 million lines of Lean code are in principle machine-checkable, but the underlying logical architecture, mathematical ideas, and path choices—those reasoning parts—emerged from Claude in a form that even those present did not fully understand.
Lean is a dependently typed functional programming language and also an interactive theorem prover. It was initiated by Leonardo de Moura at Microsoft Research in 2013, later became an open-source project, and gave rise to the mathlib library—a vast, formally verified mathematical knowledge base. In Lean, every mathematical proposition is represented as a type, and a proof is a term of that type; the compiler mechanically checks whether the proof term indeed has that type, thereby guaranteeing logical correctness. This verification method, based on the Curry-Howard isomorphism, allows correctness to be fully guaranteed by computer without human review of every step. Lean has been used to formalize frontier modern mathematics, such as perfectoid spaces and the Fermat's Last Theorem formalization project. However, formal proofs are typically much larger than traditional textual proofs, and the scale of 17 million lines is unprecedented even in formal mathematics.
Shockwaves in the Math World: The Proof Passed, Understanding Did Not
Terence Tao, Fields Medalist and widely regarded as the greatest living mathematician, wrote in November 2026 that the mathematical community is entering genuinely unknown territory. His concern is precise and sharp: machine verification proves logical consistency; it does not prove that the mathematical ideas behind the proof are understood by any human. Historically these two things have been the same; now they are not.
Manjul Bhargava—Alpoge's own advisor and 2014 Fields Medalist—pointed out that formal verification systems have always been trusted on the premise that proofs are small enough for humans to sanity-check the output. At the scale of 17 million lines, the gap between "the computer says it's correct" and "humans understand why" has become an abyss.

The Clay Mathematics Institute's rules are clear: the proof must be published in a globally reputable peer-reviewed journal and then undergo at least a two-year review period by the global mathematical community before the prize can be awarded. Formal Lean verification has passed, but the two-year clock has not started. The prize remains unclaimed. And given that no one can read this proof the way one reads a proof, whether it can ultimately be claimed has itself become an open institutional question.
The mirror of history is glaringly clear. In 1993, Andrew Wiles announced in Cambridge that he had proven Fermat's Last Theorem; the audience gave a standing ovation, and headlines worldwide declared the problem solved. Three months later, reviewers found a logical gap. Wiles retreated to his office and worked alone for a year, nearly failing, and finally, with help from former student Richard Taylor, filled the gap in September 1994. The lesson: even the greatest living mathematician, after seven years of work, can submit a proof with a fatal flaw—and it can take another year to find and fix it.
So when the proof is 17 million lines of machine code that even the mathematician himself cannot finish reading, how long will it take to find a gap? And where do you even start looking?
The Clay Mathematics Institute's Millennium Prize rules require that solutions be published in internationally recognized mathematics journals and undergo at least a two-year period of general acceptance. The review process is typically conducted by experts in the field, who carefully examine every step of the proof. However, for a 17-million-line formal proof, traditional peer review faces fundamental challenges: no human can read and understand all the code, let alone evaluate its mathematical ideas. Although the Lean compiler can verify the logical correctness of each step, the mathematical community typically also requires a proof to provide an "understandable argument"—that is, humans can grasp its core ideas and strategy. Such understanding is crucial for the accumulation and transmission of mathematical knowledge, because mathematics is not just about truth but also about explanation and insight. Therefore, even if machine verification passes, the mathematical community still needs to develop new institutions to evaluate such proofs, for example through layered summaries, modular explanations, or interactive exploration tools to build human understanding.
This Is Not Just One Proof: The Pace Itself Is the Story
The Riemann Hypothesis is not an isolated case. According to the video, this is the fourth major mathematical claim Alpoge and Claude have produced in 2026 alone—previous ones include contributions to the Jacobian conjecture, the Carathéodory conjecture, and Hilbert's Tenth Problem. Each is a problem experts have studied for years. The mathematical community's reaction was as it is to outsiders: skepticism, careful scrutiny, hunting for holes. They found nothing. The results held up.
The normal rhythm of mathematical history is: a mathematician spends years or decades on a hard problem, publishes, the community spends years verifying, the breakthrough enters textbooks, and the next generation builds on it. The entire cycle from initial insight to accepted knowledge typically takes 10 to 20 years. Alpoge and Claude compressed this timeline to weeks in one direction and stretched it to perhaps decades—or forever—in another, because no living person can finish reading the proof.

AI researcher Scott Aaronson, in a November 2026 essay, described this moment as the beginning of an era in which mathematics may produce results faster than it can understand them, calling it the most profound epistemological shift in the discipline since Gödel proved in 1931 that some true mathematical propositions can never be proven. Gödel told us that some truths mathematics cannot reach. Claude may have just told us: some truths mathematics can reach but cannot explain.
If the proof holds, humanity will for the first time understand the deep structure of prime distribution; over a thousand theorems that depend on the Riemann Hypothesis will immediately become unconditional facts; analytic number theory, quantum chaos, mathematical physics, and other fields will unlock simultaneously. On the other hand, AI has also proven in the most rigorous field that it can produce genuine mathematical insight—not pattern matching, not summarization, but creation.
But the question truly worth pondering is not whether the Riemann Hypothesis has been solved, but whether mathematics as a human endeavor—the last field where human understanding, human insight, and human struggle are the hard currency—has been permanently redefined. If proofs can be generated faster than they can be understood and verified by machines rather than minds, then what is called mathematical truth remains true, but what is called mathematical knowledge may already be something colder: it exists in machines, not fully in us.
The proof is in the code, all 17 million lines. And this may only be the beginning of AI changing the meaning of the word "know."
Background Supplement
Gödel's incompleteness theorems are cornerstones of mathematical logic, proven by Kurt Gödel in 1931. The first incompleteness theorem states that any consistent formal system capable of basic arithmetic contains undecidable propositions—true statements that can neither be proven nor disproven. The second incompleteness theorem further shows that such a system cannot prove its own consistency. Gödel's work fundamentally changed the foundations of mathematics, revealing the inherent limitations of formal methods. Scott Aaronson analogizes the current moment to a Gödelian epistemological shift, emphasizing not the limits of mathematical truth but a new gap that may arise between human understanding and machine verification: mathematics can produce results verified as true by machines, but the ideas behind those results may exceed human comprehension. This analogy highlights the profound change that may be occurring in the nature of mathematical knowledge in the AI era.
Related articles

Nvidia CEO Removal Saga: Trump Intervenes Over the Weekend, Jensen Huang Reinstated Monday
Vergecast podcast reveals Nvidia CEO drama: earnings call said he wouldn't return and a new CEO was being sought; Trump intervened over the weekend, with J.D. Vance brokering a security guarantee to the board; Jensen Huang reinstated at 9 a.m. Monday.

Semantic Caching Explained: Reusing the Same Answer for Similar Questions
Semantic caching uses embeddings to judge whether queries are similar in meaning and reuses cached results for similar prompts. This article explains how it works, the difficulty of threshold tuning (such as the risk of misjudging negations), and its applicable boundaries.

How Did Trump Personally Turn Nvidia into the "Twelfth Board Member"?
A YouTube political commentary offers a sharp view: behind Nvidia's market cap milestone, Trump's deep involvement earns him the title of "twelfth board member." The article breaks down the commentator's logic on stock market achievements, the break from small-government tradition, and power display.