İlker Ün
← All posts

A machine-verified proof of the Riemann Hypothesis: Levent Alpöge and Claude

The proof announced on 20 November 2026 for the most famous open problem in mathematics, open for 167 years: who Levent Alpöge is, what the Riemann Hypothesis says, how the proof was found, what has been verified, and why it matters.


Status note (23 November 2026): The proof has been written out in full in the Lean proof assistant, and the Lean and Mathlib communities have certified it as correct. However, no proof that mathematicians can read and understand has been published yet, it has not gone through peer review, and the Clay Mathematics Institute has not announced a decision on the prize. This post summarises what is known so far.

On 20 November 2026, the mathematician Levent Alpöge posted a short note: “I believe I have, working with Claude, discovered a proof of the Riemann Hypothesis.” The note linked to a computer proof more than 17 million lines long. Within two days, Andrew Sutherland of MIT and Michael Rubinstein of the University of Waterloo had independently compiled and checked it on their own machines. On 21 November, the Lean FRO and the Mathlib Initiative issued a joint statement: “We have full confidence that Alpöge’s proof of the Riemann Hypothesis is correct.”

This is the claim that a question open since 1859, often called the most famous problem in mathematics, has been solved through a collaboration between a human and an AI, in a form that has passed a computer’s scrutiny. Below I try to explain what the problem is, who made the claim, how the proof was reached and why it matters so much.

The hidden order of the primes

Prime numbers (2, 3, 5, 7, 11, 13, …) are the whole numbers divisible only by 1 and themselves. Since every whole number factors uniquely into primes, they are the “atoms” of arithmetic. Individually they look scattered: sometimes they come close together (11 and 13), sometimes there are long gaps. On a large scale, however, there is a striking regularity.

Write π(x)\pi(x) for the number of primes up to xx. As a young man, Gauss noticed that this number is approximately the logarithmic integral

Li(x)=∫2xdtln⁡t.\mathrm{Li}(x) = \int_2^x \frac{dt}{\ln t}.

In 1896 Hadamard and de la Vallée Poussin proved this as the Prime Number Theorem: the ratio of π(x)\pi(x) to Li(x)\mathrm{Li}(x) tends to 1 as xx grows.

0408012016002004006008001000π(x) number of primesLi(x)x / ln xx
The number of primes up to 1000, π(x) (red steps), the logarithmic integral Li(x) (blue) and the cruder estimate x/ln x (green). Li(x) tracks the count of primes with remarkable accuracy.

The real question is: how good is this approximation? How large can the difference between the true number of primes and Li(x)\mathrm{Li}(x) become? The Riemann Hypothesis gives the best possible answer to exactly this question.

Riemann’s 1859 paper

In an eight-page paper presented to the Berlin Academy in 1859, “On the number of primes less than a given magnitude”, Bernhard Riemann extended to complex numbers a function that Euler had studied before:

ζ(s)=∑n=1∞1ns=∏p prime11−p−s.\zeta(s) = \sum_{n=1}^{\infty} \frac{1}{n^s} = \prod_{p\ \text{prime}} \frac{1}{1 - p^{-s}}.

The right-hand side is Euler’s product formula from 1737, and it shows the direct link between the zeta function and the primes: the left side runs over all whole numbers, the right side over primes only. Riemann extended ζ(s)\zeta(s) to the whole complex plane except s=1s = 1 and showed that it has a symmetry between ss and 1−s1-s (the functional equation).

The zeros of the zeta function, the points where ζ(s)=0\zeta(s) = 0, come in two kinds:

  • Trivial zeros at −2,−4,−6,…-2, -4, -6, \dots, which are easily explained.
  • Non-trivial zeros, all lying in the critical strip where the real part is between 0 and 1. There are infinitely many of them, and they are what governs the distribution of the primes.

Riemann saw that the first few zeros he computed lay exactly on the line with real part 12\tfrac12, and remarked that the following is “very likely”:

The Riemann Hypothesis. All non-trivial zeros of the zeta function have real part 12\tfrac12.

-40i-30i-20i-10i10i20i30i40i-8-6-4-2124s = 1critical line Re(s) = ½critical strip0 < Re(s) < 1trivial zeros½ + 14.13…inon-trivial zeros →Re(s)Im(s)
Zeros of the zeta function in the complex plane. Green dots are the trivial zeros, the blue region is the critical strip and the dashed red line is the critical line. Every known non-trivial zero (red dots) lies on the critical line; the first is at ½ + 14.1347…i.

A nice way to see the zeros along the critical line is Hardy’s Z(t)Z(t) function. It is real-valued on the critical line, and each time it crosses the axis the zeta function has a zero:

-4-2240102030405060t (s = ½ + it)Z(t)
Hardy's Z function along the critical line. Each crossing of the axis (red) is a non-trivial zero of the zeta function. There are 13 zeros in this range.

How the zeros determine the primes

Riemann’s real discovery was a formula that recovers the primes exactly from the zeros. For the function ψ(x)\psi(x), which counts prime powers weighted by their logarithms, this explicit formula reads

ψ(x)=x−∑ρxρρ−ln⁡(2π)−12ln⁡ ⁣(1−x−2),\psi(x) = x - \sum_{\rho} \frac{x^{\rho}}{\rho} - \ln(2\pi) - \tfrac12 \ln\!\left(1 - x^{-2}\right),

where the sum runs over the non-trivial zeros ρ\rho of the zeta function. Each zero adds a “wave” to the smooth average of the primes. The more zeros are added, the closer the sum of these smooth waves gets to the sharp steps of the primes:

01020304023571113171923293137ψ(x) (step function of prime powers)approximation with 3 zerosapproximation with 100 zerosx
Riemann's explicit formula at work. The step line is ψ(x), which jumps at prime powers; the orange curve uses only the first 3 zeros, the blue curve the first 100. As zeros are added, the sum of waves "finds" every prime.

The size of a zero’s contribution xρx^{\rho} is xRe(ρ)x^{\mathrm{Re}(\rho)}. So how far the zeros can stray from the critical line determines how far the primes can deviate from regular behaviour. If the Riemann Hypothesis holds, all zeros have Re(ρ)=12\mathrm{Re}(\rho) = \tfrac12 and the error is as small as it can possibly be (von Koch, 1901):

π(x)=Li(x)+O ⁣(x ln⁡x).\pi(x) = \mathrm{Li}(x) + O\!\left(\sqrt{x}\,\ln x\right).

In short, the Riemann Hypothesis says the primes are distributed “as regularly as possible”.

1859Riemann states the hypothesis1896Prime Number Theorem proved (Hadamard, de la Vallée Poussin)1900Hilbert's eighth problem1914Hardy: infinitely many zeros on the critical line1948Weil: proof for curves over finite fields1969Stepanov's elementary method1974Deligne: final step of the Weil conjectures1989Conrey: at least 40% of zeros on the critical line2000Clay Millennium Prize Problems: one million dollars2004First 10¹³ zeros computed to lie on the critical line2026Alpöge and Claude: Lean-verified proof announced
A short history of the Riemann Hypothesis.

In 1900 David Hilbert placed the hypothesis among the 23 most important problems for the new century (the eighth). Hardy proved in 1914 that infinitely many zeros lie on the critical line, and Conrey in 1989 that at least 40% of them do. Computers have confirmed that the first ten trillion (10¹³) zeros all lie on the line. But there are infinitely many zeros, and no computation alone is a proof. In 2000 the Clay Mathematics Institute named the hypothesis one of the seven Millennium Prize Problems, each carrying a one-million-dollar prize.

A “sibling” of the hypothesis, however, had been solved. Zeta functions of curves over finite fields, instead of the integers, satisfy an analogous Riemann Hypothesis. André Weil proved it for curves in the 1940s, and Pierre Deligne completed a far more general version (the Weil conjectures) in 1974. In 1969 Sergei Stepanov found a much more elementary method for the case of curves. That method became the starting point of Alpöge’s proof.

Who is Levent Alpöge?

Levent Hasan Ali Alpöge was born on 1 April 1992 in New York and holds both US and Turkish citizenship. He graduated from Harvard University in 2014 with a bachelor’s degree in mathematics and a master’s in physics, summa cum laude. His undergraduate thesis showed that the average elliptic curve has few integral points, and his undergraduate research earned him the 2015 Morgan Prize, the most prestigious mathematics research award for undergraduates. After Part III of the Mathematical Tripos at Cambridge as a Churchill Scholar, he completed his PhD at Princeton under Fields Medallist Manjul Bhargava (2020, Points on Curves).

After his PhD he was a Junior Fellow of the Harvard Society of Fellows (2021–2025). During this time his work with Bhargava, Wei Ho and Ari Shnidman, giving a negative answer to Hilbert’s tenth problem over the rings of integers of all number fields, appeared in Inventiones Mathematicae (2025). He also obtained important results on the density of integers that are sums of two rational cubes. He later joined the AI company Anthropic.

In his note, Alpöge writes that the Riemann Hypothesis had been mathematics’ “sacred object” for him since childhood: “It was my secret in my student days that my plans were for this problem in decades, which meant then that I tried to become familiar with all tools that I could possibly recognize in the problem when it was time.”

How was the proof found?

According to Alpöge’s note, the work began on 6 October 2026 and ended on 16 November 2026 with a completed computer proof of the Generalized Riemann Hypothesis. The central idea comes from the finite-field case mentioned above.

Stepanov’s idea. To count points on a curve over a finite field, Stepanov constructs an auxiliary polynomial that vanishes at the points of the curve with high multiplicity (to high order). Since a polynomial cannot have too many zeros counted with multiplicity, this bounds the number of points, and that version of the Riemann Hypothesis follows.

The real difficulty. Over the integers, “multiplicity” has no natural counterpart. Alpöge describes it as “something like differentiating whole numbers.”

The new idea. Alpöge was looking for a way to imitate multiplicity, and found it in the world of automorphic forms. A “theta lift” is a classical construction that transports an automorphic form on one group to another group. The idea is to apply these lifts in a chain, one after another, with each link contributing one unit of “multiplicity”. As Alpöge recounts it, the answer to how long the chain must be came from Claude: for a prime sum (a von Mangoldt sum) of length XX, the chain should have length X\sqrt{X}. In Alpöge’s words, this is the one line “which will suffice to make fellow mathematicians fall out of their chairs. (And yet, what else could it be?)”

Around this skeleton, a very large part of modern number theory is used. The timeline Alpöge published mentions tools such as the Guinand–Weil explicit formula, the relative trace formula, Iwasawa towers, the Bost slope inequality, the Chowla–Selberg formula, the Siegel mass formula and Rallis’s “seesaw” identities. In his first impressions, Terence Tao wrote that the proof “appears to use the full power of modern developments on the Langlands program and arithmetic geometry.” The last step is classical: once there are no zeros in the right half (Re(s)>12\mathrm{Re}(s) > \tfrac12), the s↔1−ss \leftrightarrow 1-s symmetry of the zeta function rules out zeros in the left half as well, leaving only the critical line.

The proof covers not only the Riemann zeta function but all Dirichlet L-functions. This means a proof of the Generalized Riemann Hypothesis (GRH) for Dirichlet L-functions, on which a great many results in number theory depend. Alpöge also writes that he expects the method to reach the still more general Extended Riemann Hypothesis with more time.

Division of labour between human and AI

Alpöge describes his own role as setting the direction: the idea of combining two different ideas in a “toy setting”, and the right analogy for carrying it over to the real problem, came from him. In the parts outside his own expertise, such as automorphic forms on higher-rank groups, he says Claude’s technical mastery was decisive: “this time Claude far outpaced me near the finish line. No, Claude flew, and danced, and sparkled near that finish line.”

This has led to an unusual situation: a complete proof exists, but no one, including its author, yet understands every detail of it. Claude’s attempt to write the proof out in prose ran past 250,000 pages. Instead of posting this “unreadable” text, Alpöge chose to release only the machine-checkable Lean code, and said he will work to understand, simplify and properly write up the proof. His intuition is that the argument “will be massively simplified, likely immediately.”

What does a computer proof guarantee?

Lean is software that checks every step of a mathematical proof down to the basic rules of logic. If Lean’s small, well-studied “kernel” accepts a proof, the proof is free of errors (assuming the underlying axioms). A small slip that a human referee might miss over hundreds of pages cannot get through.

Lean code175,187 files≈ 17 million linesCompilationLean 4 + Mathlib3 h 18 min, no errorsIndependent checkersLean kernel, nanoda,con-leche, con-ronStatement checkMathlib'sRiemannHypothesisCertificationLean FRO and Mathlib21 November 2026
The machine-verification chain of the proof. Figures are from the verification reports published by Sutherland and Rubinstein.

The code consists of about 17.4 million lines in 175,187 files. According to Sutherland’s and Rubinstein’s reports:

  • The whole code compiles without errors with Lean 4 and Mathlib; the distributed build took 3 hours 18 minutes.
  • Besides Lean’s own kernel, the proof was accepted by three independently written checkers (nanoda, con-leche, con-ron).
  • The main theorems depend only on Lean’s three standard axioms; there are no hidden assumptions.
  • The proved statement was checked by tools to be identical to the RiemannHypothesis statement already defined in the Mathlib library. This matters, because a computer proof is meaningful only if it proves the right statement.

Following these checks, the Lean FRO and the Mathlib Initiative issued a joint statement on 21 November certifying that both the statement and the proof are correct.

What is still unknown

Machine verification is strong evidence, but it is not the end of the mathematics. As of today:

  • There is no human-readable proof. Rubinstein has begun a 265-page draft, prepared with AI tools as an aid to studying the proof; it reduces a key inequality to 13 classical hypotheses not yet proved in the text. This is not a gap in the Lean proof; it shows that translating the ideas in the Lean code into human language has only just begun.
  • Peer review has not started. The result has not yet been published in a journal.
  • The Clay Mathematics Institute has not yet made a statement; its prize rules require publication and acceptance by the community.
  • Expert reaction is cautious but excited. Andrew Sutherland of MIT says “There is much work to be done to understand the mathematical details of the proof.” Terence Tao wrote, “I imagine the digestion process will take some time.” Héctor Pastén of the Pontifical Catholic University of Chile says that if the proof is correct and understood, it will complete a dictionary between different branches of mathematics, “something like a Rosetta Stone.”

Why does it matter?

The best knowledge about the primes. The Riemann Hypothesis says the error in the distribution of primes is as small as possible, of order roughly x\sqrt{x}. The strongest results on gaps between consecutive primes, primes in arithmetic progressions and many other questions rest on it.

Thousands of conditional theorems. The mathematical literature contains thousands of results that begin “If the Riemann Hypothesis is true…” or “Assuming GRH…”. For example, as Miller showed in 1976, GRH makes it possible to test quickly and deterministically whether a number is prime. Equivalent forms of the hypothesis appear in surprising places: Robin’s inequality says that a simple inequality about sums of divisors holding for every n>5040n > 5040 is equivalent to the Riemann Hypothesis. According to Sutherland’s report, the Robin and Lagarias inequalities have also been derived unconditionally in Lean from this proof. Once the proof is accepted, all of these results become unconditional theorems.

For cryptography. Today’s encryption relies on finding large primes and on the difficulty of factoring. A proof of the Riemann Hypothesis does not break these methods; it makes what we know about how primes are distributed certain.

For how mathematics is done. This may be the biggest change. One of the most famous problems in mathematics appears to have been solved by a mathematician working together with an AI model, with the result first verified by a computer. It points to a new era in which “verifying” a proof and “understanding” it come apart. Alpöge ends his note: “In a time of revolution in mathematics I hope the argument provides a glimpse towards the miracles that lie ahead, and shows us the joy and wonder we are about to find in the simplest things.”

From Riemann’s eight pages in 1859 to a 17-million-line computer proof, perhaps the most important part of this journey is only now beginning: mathematicians will read this proof, understand it, simplify it and build new mathematics from it.


Sources

The figures were computed for this post: the zeros of the zeta function and Hardy’s Z function with the mpmath library, the primes by direct counting.


← All posts
  • mathematics
  • Riemann Hypothesis
  • prime numbers
  • AI
  • Lean