A machine-checked proof of the Riemann hypothesis, found with Claude

Levent Alpöge says he and Claude have proved the Riemann hypothesis, and Lean agrees: the 17-million-line formal proof passes every independent check. What the hypothesis says about primes, what the machine check does and does not certify, and what is still missing: a proof people can read.

Key points

  • On 20 November 2026 Levent Alpöge of Anthropic said that he and Claude had proved the Riemann hypothesis. He released the proof only as a 17-million-line library for the Lean proof assistant.
  • The Lean FRO and the Mathlib Initiative certified on 21 November that the library proves Mathlib's statement of the hypothesis. Independent checks run by Andrew Sutherland at MIT, using several separate proof checkers, all passed.
  • The library also proves the generalized Riemann hypothesis for Dirichlet L-functions. Other families of L-functions are not covered.
  • A shorter Lean proof of about 76,000 lines appeared on 25 November and passes the same checks.
  • No human-readable proof exists yet. The machine check certifies that the statement is true, but no one can yet explain why. The Clay prize requires journal publication, two years and general acceptance.
In this article
  1. The news What was announced
  2. Why would primes need a hypothesis?
  3. What does a function have to do with primes?
  4. Why do the zeros control the primes?
  5. What does “generalized” add?
  6. What does it mean that Lean checked it?
  7. Back to the claim What did Claude do?
  8. What is still missing

The news

What was announced

On 20 November 2026 Levent Alpöge, a mathematician at Anthropic, posted a two-page note saying that, working with Claude, he had found a proof of the Riemann hypothesis, and that the method also settles the generalized Riemann hypothesis. He did not post a paper. The proof was released only as a library for Lean, a computer proof assistant, of about 17 million lines in 175,187 files. An informal write-up had run past 250,000 pages, and he judged it unreadable, so he chose to “only present Lean”.

Riemann poses the hypothesis
1859
lines in the original Lean proof
17 million
lines in the shorter proof of 25 November
76,000
pages of human-readable proof released
0

The next day the Lean FRO and the Mathlib Initiative, the groups that maintain Lean and its main mathematics library, certified that the library proves Mathlib's statement of the hypothesis. Andrew Sutherland at MIT then ran a long series of independent checks, all of which passed by 25 November. His report also confirms that the library proves the generalized hypothesis for one important family of functions. On 25 November a second, much shorter Lean proof appeared, about 76,000 lines in its compact edition, and it passes the same checks. What does not exist yet is a proof that a person can read.

What exactly has been proved, and how can a program certify a proof that nobody has read? The cards below take it one question at a time: why primes need a hypothesis, what the zeta function and its zeros are, what “generalized” adds, and what Lean's check does and does not establish. After them we come back to Claude's part and what is still missing.1,2,3,4

Why would primes need a hypothesis?

Primes thin out as numbers grow, but irregularly. Gauss guessed that near \(x\) roughly one number in \(\log x\) is prime, and in 1896 Hadamard and de la Vallée Poussin proved it: the number of primes up to \(x\) is about \(x/\log x\). That is only a first approximation. The real question is how far the true count strays from its smooth estimate.

The count is cleanest with a weight. Give each prime power \(p^k\) the weight \(\log p\) and add the weights up to \(x\): \[ \psi(x)=\sum_{p^k\le x}\log p . \] The prime number theorem says \(\psi(x)\) is close to \(x\). How close? If primes behaved like coin tosses, the error would be about \(\sqrt{x}\), the size of random fluctuations. In 1901 von Koch showed that the Riemann hypothesis is exactly the statement that the error is that small, up to logarithms: \[ \psi(x)=x+O\bigl(\sqrt{x}\,(\log x)^2\bigr). \] So the hypothesis is a promise about primes: they are as regular as anything random could be, and no more irregular. Riemann did not phrase it this way. He phrased it in terms of a function, and the next card explains why.10

What does a function have to do with primes?

Euler noticed that the sum over all whole numbers factors into a product over primes: \[ \zeta(s)=\sum_{n\ge1}\frac{1}{n^s}=\prod_{p}\frac{1}{1-p^{-s}}\qquad(\operatorname{Re}s>1). \] Expanding each factor as a geometric series and multiplying out gives every \(n^{-s}\) exactly once, because every number factors into primes in exactly one way. So \(\zeta\) knows the primes. Taking the logarithmic derivative even recovers our weights: \(-\zeta'(s)/\zeta(s)=\sum_n \Lambda(n)\,n^{-s}\), where \(\Lambda(n)=\log p\) if \(n=p^k\) and \(0\) otherwise.

The sum only converges when \(\operatorname{Re}s>1\). Riemann's step in 1859 was to extend \(\zeta\) to all complex \(s\) except a pole at \(s=1\), and to find a symmetry relating \(\zeta(s)\) to \(\zeta(1-s)\). The extended function vanishes at \(-2,-4,-6,\dots\); these are the trivial zeros. Every other zero lies in the strip \(0<\operatorname{Re}s<1\), placed symmetrically about the line \(\operatorname{Re}s=\tfrac12\). Riemann computed the first few, found them on that line, and wrote that it was “very probable” all of them are. That is the Riemann hypothesis: every nontrivial zero has real part \(\tfrac12\).

Computers have since checked it far beyond Riemann's few zeros. Platt and Trudgian confirmed in 2021 that every zero with imaginary part between \(0\) and \(3\cdot10^{12}\) lies on the line. But a counterexample could hide beyond any height we can compute, so no amount of checking proves it.10,11

Critical strip, 0 < Re s < 1Re s > 1: the series for zeta converges−8−6−4−22Zero at 1/2 + 14.135 iZero at 1/2 − 14.135 iZero at 1/2 + 21.022 iZero at 1/2 − 21.022 iZero at 1/2 + 25.011 iZero at 1/2 − 25.011 iZero at 1/2 + 30.425 iZero at 1/2 − 30.425 i14.13…Trivial zero at s = -2Trivial zero at s = -4Trivial zero at s = -6Pole at s = 1trivial zeros −2, −4, −6, …Re s = 1/2pole at s = 1sum of n^−s convergescritical stripRe s
The complex plane of \(s\). The series for \(\zeta(s)\) converges only to the right of \(\operatorname{Re}s=1\) (grey). The extended function has a pole at \(s=1\), trivial zeros at \(-2,-4,-6,\dots\) (hollow), and all its other zeros in the critical strip \(0<\operatorname{Re}s<1\) (shaded). The first four pairs of those zeros, at heights \(14.13\), \(21.02\), \(25.01\) and \(30.42\), sit on the dashed line \(\operatorname{Re}s=\tfrac12\). The hypothesis says they all do.

Why do the zeros control the primes?

Riemann's formula, made rigorous by von Mangoldt, writes the prime count exactly in terms of the zeros. For \(x>1\) not a prime power, \[ \psi(x)=x-\sum_{\rho}\frac{x^{\rho}}{\rho}-\log 2\pi-\tfrac12\log\bigl(1-x^{-2}\bigr), \] where \(\rho\) runs over the nontrivial zeros. Read it as music. The main term \(x\) is the smooth trend. Each zero \(\rho=\beta+i\gamma\) adds a wave that oscillates like \(\cos(\gamma\log x)\) with size \(x^{\beta}/|\rho|\). The jumps of the prime staircase are what all these waves add up to.

Now the hypothesis has a meaning you can see. If every \(\beta=\tfrac12\), every wave has size about \(\sqrt{x}\), and the error \(\psi(x)-x\) is as small as square-root fluctuations allow. A single zero with \(\beta>\tfrac12\) would make a wave of size \(x^{\beta}\), and the primes would drift from their trend by more than any random process would. The location of the zeros is the regularity of the primes.

01020304010203040The main term xChebyshev psi(x): jumps by log p at each prime powerExplicit formula with 3 pairs of zerosExplicit formula with 100 pairs of zerosψ(x)x3 zeros100 zerosx
The staircase \(\psi(x)\) jumps by \(\log p\) at each prime power \(p^k\). The explicit formula, keeping only the first 3 pairs of zeros (orange), already follows the trend \(x\) (dashed) with the right bumps; with the first 100 pairs (blue) it traces the steps closely. Computed from the zeros of \(\zeta\) listed in the figure's script; the formula with 100 pairs is within about \(0.2\) of \(\psi(x)\) between the steps.

What does “generalized” add?

Primes also spread out over remainders. Among primes ending in 1, 3, 7 and 9, each last digit gets a quarter in the long run. To count primes in the class \(a\bmod q\), Dirichlet used characters \(\chi\), periodic functions that pick out remainders, and built one function for each: \[ L(s,\chi)=\sum_{n\ge1}\frac{\chi(n)}{n^s}. \] The generalized Riemann hypothesis for Dirichlet \(L\)-functions says their zeros in the critical strip also lie on \(\operatorname{Re}s=\tfrac12\). Then every residue class gets its share of primes with square-root error.

Many results in number theory and in algorithms were proved assuming this. A classic one is Miller's 1976 primality test: assuming it, Bach showed in 1990 that testing the bases \(a\le 2(\ln n)^2\) decides whether \(n\) is prime. Since 2002 there has been a deterministic polynomial-time primality test that needs no hypothesis, so the practical gain is small, but a long list of conditional theorems would become plain theorems.

Sutherland's report lists exactly what the library proves: Mathlib's Riemann hypothesis, and the hypothesis for every Dirichlet \(L\)-function, primitive or not, of every modulus. It also states the limit: Dedekind zeta functions, Hecke \(L\)-functions and automorphic \(L\)-functions in general “are not among the statements that were checked.” Alpöge's note says the method extends further. That part is so far a claim.

The proof also turns old equivalences into theorems. Robin showed in 1984 that the hypothesis holds exactly when the sum of divisors satisfies \(\sigma(n)<e^{\gamma}n\log\log n\) for every \(n>5040\). The inequality fails for 26 numbers, the largest being 5040. Combined with an existing Lean formalization of Robin's theorem, the library now yields this inequality, and Lagarias's elementary variant of it, as checked theorems.3,4,12,13,14

What does it mean that Lean checked it?

Lean is a proof assistant. A proof written in it is reduced to steps that a small program, the kernel, checks one by one against fixed rules of logic and a few axioms. The kernel does not need to understand the proof, only to confirm every step. This is why a proof no one has read can still be checked. It also means the check rests on three things outside the proof: that the statement says what we mean, that the kernel is correct, and that nothing was smuggled in. The Xena Project blog set out these concerns as four questions on 12 November, after earlier AI-generated Lean releases.

First, the statement. Mathlib's definition reads, in mathematical notation, \[ \forall s\in\mathbb{C}:\quad \zeta(s)=0,\ \ s\notin\{-2,-4,-6,\dots\},\ \ s\neq1\ \Longrightarrow\ \operatorname{Re}s=\tfrac12 . \] The condition \(s\neq1\) is there because Mathlib assigns \(\zeta\) a conventional value at its pole. But is Mathlib's \(\zeta\) the real one? It is defined through the Hurwitz zeta function, not as the series. Mathlib, however, proves that it equals \(\sum n^{-s}\) when \(\operatorname{Re}s>1\) and is complex-differentiable everywhere except \(s=1\). Two such functions that agree on a half-plane agree on the whole connected domain, by the identity theorem of complex analysis. So the definition cannot quietly be a different function.

The other questions were answered by separate tools. The table summarizes Sutherland's report on the original library. The kernel replays alone took days: Lean's default kernel needed 48 hours and 82.6 GiB of memory. All the theorems depend only on the three standard axioms Mathlib uses throughout ordinary mathematics. The report's own caveat is the honest summary: a passing check shows the statements follow from the axioms according to the kernels used, and relies on Mathlib's definitions meaning what they are meant to.2,3,4,6,7

Checks on the original library, from Andrew Sutherland's verification report (completed 25 November). The shorter proof of 25 November passed the same kinds of checks, with one memory-limited rerun still without a verdict.
CheckWhat it rules outResult
Full build of 175,187 filesErrors, unfinished stepsCompiles with no errors
Axiom auditHidden assumptions or gaps (sorry)Only propext, Classical.choice, Quot.sound
Statement comparison (comparator, con-leche, con-ron)Proving a different or weaker theoremMatches Mathlib's statement exactly
Lean kernel, standard and paranoid modesInvalid inference stepsAccepted
Independent kernels (nanoda, con-leche, con-ron, lean4lean)A bug in Lean's own kernelAll accept
Rebuild on an offline second machineA tampered or corrupted buildByte-identical output

Back to the claim

What did Claude do?

The only account is Alpöge's note. He says he worked with Claude for weeks; his timeline runs from 6 October to 16 November, and Science News reports six weeks of back and forth. The version of Claude has not been disclosed. He describes his own role as steering: he chose to combine two ideas that worked in a simpler “toy” setting and guided the work to the analogous situation for the integers. Then, he writes, “Claude far outpaced me near the finish line,” especially in automorphic forms on higher-rank groups, where he says his own mastery is limited.

The idea he singles out descends from Stepanov's method. Weil proved the analogue of the Riemann hypothesis for curves over finite fields in the 1940s, and in 1969 Stepanov found an elementary route: build an auxiliary polynomial that vanishes to high multiplicity at the points being counted, then compare its degree with the number of zeros it is forced to have. Over the integers there is no obvious notion of multiplicity; Alpöge compares it to “differentiating whole numbers”. In his account, each step of a chain of theta lifts, maps between spaces of automorphic forms, supplies one order of multiplicity, and Claude proposed a chain of length \(\sqrt{X}\) for a prime sum of length \(X\).

Alpöge is candid about the limits of this description. Where Claude was the expert, he writes, he is paraphrasing a summary “which might make zero sense”, and “the Lean should suffice to clarify everything.” He expects the argument to be “massively simplified”, and he intends to understand it and write it up properly. The shorter proof of 25 November, from a separate repository, is a first sign that simplification is possible. Its authors have not been identified, and its idea has not yet been explained.1,4,5

What is still missing

A proof does two jobs: it establishes that a statement is true and it explains why. The Lean check settles the first job as firmly as anything in mathematics, provided the kernels and definitions are right, and several independent kernels agree. The second job has not started. No one can yet say in a few pages why the zeros lie on the line, and that understanding is what other mathematicians build on.

Reactions follow that line. Ken Ono told Science News, “As a mathematical landmark, it really doesn't get bigger than this.” Bryna Kra, a critic of AI-only results, accepted this one because “there is someone to stand behind” it. The Association for Human Mathematics, founded in September by mathematicians who refuse to work with AI companies, replied that “no human being can reasonably claim to be responsible for, or even to understand, such a document”, and objected to what it called a corporate model of proof production. The cognitive scientist Gary Marcus questioned how far the method generalizes beyond mathematics.

A second claim appeared the same day, from a very different direction. On 20 November Ravi Vakil, president of the American Mathematical Society, posted on his blog that Alessandro Masullo, a young Stanford mathematician, has a proposed proof of the generalized Riemann hypothesis that is “all human, with no AI”, on which Brian Conrad had been giving feedback for months. Vakil said he had not yet read it himself, and two days later he reported that several mathematicians had found problems in the draft; Conrad told Scientific American that it is “undergoing major revision”. The draft is in the state of a work in progress, not a checked proof, and the announcement does not mention Alpöge's.

There is also the Millennium Prize. The Clay Institute considers a solution only after it is published in a refereed mathematics journal of worldwide repute, or an outlet its board approves, then two years have passed and the solution has general acceptance. A Lean library alone meets none of these conditions, and we found no statement from the Institute.

What does this mean for quantum computing? Little directly. RSA and other cryptosystems do not rest on the hypothesis, and Shor's algorithm is unaffected. The physics connection is older: the spacings between zeros match the eigenvalue statistics of random quantum Hamiltonians, which led to the hope that the zeros are the energy levels of some quantum system. According to Alpöge's note, this proof runs through automorphic forms, not through such a Hamiltonian, so that hope is neither confirmed nor ruled out.4,5,8,9,15,16

What to ask

  • When will a human-readable account appear, and will it come from the shorter proof?
  • What is the one new idea that a number theorist can check by hand?
  • Does the method reach Dedekind and automorphic L-functions, as the note suggests?
  • Will a journal publish a proof whose primary form is a formal library, and how would it be refereed?

Sources & further reading

  1. Levent Alpöge: announcement note (20 November 2026) ↗
  2. Lean FRO and Mathlib Initiative: Lean verification of the Riemann Hypothesis ↗
  3. Andrew Sutherland: verification report for the Lean proof ↗
  4. Andrew Sutherland: verification report for the shorter Lean proof ↗
  5. Science News: Math's holy grail, the Riemann hypothesis, appears solved with AI's help ↗
  6. Xena Project: And the proof is checked in Lean ↗
  7. Mathlib: the Riemann zeta function and RiemannHypothesis ↗
  8. Association for Human Mathematics: statements ↗
  9. Clay Mathematics Institute: Millennium Prize rules ↗
  10. Clay Mathematics Institute: the Riemann hypothesis ↗
  11. Dave Platt and Tim Trudgian: The Riemann hypothesis is true up to 3·10^12 ↗
  12. Jeffrey Lagarias: An elementary problem equivalent to the Riemann hypothesis ↗
  13. Gary Miller: Riemann's hypothesis and tests for primality ↗
  14. Eric Bach: Explicit bounds for primality testing and related problems ↗
  15. Ravi Vakil: Hurried announcement – Alessandro Masullo, GRH (20 November 2026, updated 22 November) ↗
  16. Scientific American: Dueling claims of Riemann hypothesis proofs emerge (20 November 2026) ↗