Essays

AI Helped Prove the Riemann Hypothesis. Do We Understand Why?

A 17-million-line proof raises an older question about what mathematics is for

The Lean proof of the Riemann Hypothesis passed formal checks. David Ouyang asks what separates a verified proof from an explanation, and what that means for mathematics and AI.

David Ouyang · · 7 min read

On November 20, 2026, Anthropic mathematician Levent Alpöge announced that he and Claude had found a proof of the Riemann Hypothesis. What he released was not a paper one could read from beginning to end. It was roughly 17 million lines of Lean code. He had also tried to generate a human-readable account and ended up with more than 250,000 pages. The next day, the Lean FRO and Mathlib Initiative said they had checked the statement, the code, and the formal proof, and were confident it was correct. Mathematicians still have the harder task of explaining the ideas inside it. See Alpöge’s account and the joint verification statement.

The number that stayed with me was 250,000 pages. A computer can check a formal proof line by line; no mathematician can read that many pages as a single argument. If the conclusion is secure but the reason remains hard to grasp, what exactly have we gained? And what does that tell us about mathematics itself: is it a body of truths we discover, or a set of rules we invent?

What does the Riemann Hypothesis say?

It starts with prime numbers: 2, 3, 5, 7, 11, and so on. Each has no positive divisors other than 1 and itself. Every integer greater than 1 can be factored into primes in just one way. Primes become less common as numbers grow, but there is no simple rule that tells us where the next one will appear.

In 1859, Bernhard Riemann studied a function called the zeta function. In one form it involves all positive integers; in another, valid in the appropriate range, it is an infinite product over primes. Unique prime factorization connects the two. Riemann’s hypothesis says that all the function’s “nontrivial zeros” have real part 1/2. Imagine those zeros lined up along one vertical line in the complex plane. Their positions govern how far the distribution of primes can stray from its average trend. The Clay Mathematics Institute gives a short account of the problem.

Here is the oddity: a question about ordinary whole numbers led to a function of complex numbers, and the function led back to a sharper account of primes. That kind of unexpected connection is one reason mathematicians care about a proof, even before anyone finds a use for it.

Do we discover mathematics or invent it?

We certainly invented the symbols for numbers. Yet putting three apples beside two apples seems to give five regardless of what we call them. Change the notation and the relationship remains. That is why a Platonic view has lasting appeal: mathematical objects exist independently of us, and mathematicians discover their properties. No physical drawing is a perfect circle, but mathematics can define one and work out what follows.

Formalism offers another picture. We choose concepts and axioms, then follow rules of inference to see what they imply. Mathematics becomes a remarkably strict game. People may choose the rules, but once the rules are fixed, they cannot choose the results at will.

Both pictures leave something unexplained. If mathematics is only a consequence of rules, why does it fit nature so well? If mathematical truths exist outside the universe, how do we know anything about them?

Why does mathematics fit the physical world?

The most useful distinction, to me, is that mathematics asks what must follow from given assumptions, while physics asks which patterns our universe actually follows. Newton’s theory of gravity faced observational tests and was later revised beyond its range of application. A mathematical theorem depends on definitions, axioms, and inference. Physics has another burden: it must find out which mathematical structure, if any, describes the world in front of us.

Yet mathematics developed for abstract reasons repeatedly turns up in physics. Non-Euclidean geometry became part of general relativity. Group theory helps physicists describe symmetry. Complex numbers are indispensable in quantum mechanics and electrical engineering. In 1960, physicist Eugene Wigner called this the “unreasonable effectiveness of mathematics in the natural sciences.” Why should concepts devised in the abstract describe nature so closely? His essay still makes the question feel fresh.

Would two plus three still equal five in another universe?

Imagine a universe without familiar gravity or atoms, perhaps even with a different structure of space and time. Newton’s laws need not hold there. But if it has three distinguishable things and another two, and if combining them means what we mean by addition, the total is five. The answer is almost built into the terms of the question.

The difficult part is whether another universe could be described using the same objects and the same logic. Human ideas of number, space, and order developed in this world. Intuitionist, paraconsistent, and quantum logics also show that classical logic is not the only system we can study rigorously. None of this shows that ordinary arithmetic would fail elsewhere. It does warn against moving too quickly from “this follows necessarily within our system” to “every possible world must work this way.”

There is a further problem: we cannot step wholly outside logic to test logic. Any argument for or against it has to use some rule of inference. Whether mathematics is a truth beyond every physical universe cannot be settled simply by writing another proof.

What does a machine-checked proof give us?

The position is clearer now than it was when I first saw the news. The Lean and Mathlib teams report more than a successful compilation: they checked that the statement proved really is the Riemann Hypothesis and used several proof checkers to verify the formal argument. They express full confidence in its correctness. Formal verification answers whether a conclusion follows from its premises. It does not, by itself, tell us which ideas make the argument work. Their statement ends by looking ahead to the mathematical explanations still to come.

Mathematical work can give us several kinds of understanding. A calculation gives an answer. A proof establishes a result under its assumptions. An explanation shows which steps matter and why. The best explanations do more: they let us use the same idea on a problem we had not thought to connect. That ability to compress a vast argument into a transferable insight is what I would look for next. Alpöge himself expects shorter arguments to follow. Mathematicians and AI may be able to find them together.

A sound but difficult proof followed by a search for its central idea may become a new order of mathematical discovery. The formal proof gives that search a firm starting point.

What is mathematics, and where might AI take it?

I have come to think of mathematics as the study of abstract objects and relationships: we draw concepts from experience, then ask what becomes unavoidable under chosen assumptions. It is more than an arbitrary word game. Structures connect in unexpected ways, and some describe our universe with astonishing accuracy. But I do not see sufficient grounds to claim that we have found eternal objects existing independently of every possible universe.

AI puts new pressure on this old question. Calculators have long outpaced us in arithmetic, and AlphaGo beat the best human Go players. Now AI has helped create and formalize a proof too large for experts to read in full. Calling such a system a machine that merely repeats what it has seen no longer captures what happened. Yet proof, explanation, and scientific discovery each demand something different. A proof settles a mathematical claim; a physical theory must also survive contact with the world.

If AI someday discovers new laws of nature or builds a scientific theory that people could never have conceived, we will have to rethink the human role in science. For now, I want to know whether this immense proof contains an idea we can explain, test elsewhere, and use to ask a better question. That would tell us more than another million lines of checked code.

Further reading

About the Author

David Ouyang writes about artificial intelligence, science, and technology. He studied physics at Peking University, earned graduate degrees in electrical engineering and applied physics at Stanford, and taught machine learning at Santa Clara University.

Read more Share on LinkedIn