AI Proves the Riemann Hypothesis: Should We Believe It?

Formal math and AI collaboration make proofs mechanically verifiable, shifting trust from AI to axioms and checkers.
The article addresses whether AI-generated mathematical proofs can be trusted, explaining that formal mathematics decomposes proofs into reasoning chains from axioms to theorems, and proof assistants like Lean can mechanically check each step without trusting the AI. Using the AI-assisted Riemann Hypothesis proof as an example, code shrank from millions of lines to about 76,000, yet each line still hides many reasoning steps. To counter possible checker bugs, the article suggests multiple independent checkers and formally verified checkers. On the AI side, reinforcement learning rewards successful proofs, and agents iteratively refine steps using proof assistant feedback. The conclusion: trust should shift from believing in AI to believing in axioms, inference rules, and verified checkers, while humans grasp the high-level proof structure.
Recently, major labs have achieved a series of seemingly proven results in mathematics, drawing widespread attention. An episode of Computerphile delved into the relationship between formal mathematics, proof assistants, and artificial intelligence, and answered the key question: can we trust mathematical proofs produced by AI?
Formal Mathematics: Making Proofs Mechanically Verifiable
The core idea of formal mathematics is not complicated: starting from a set of axioms assumed to be true, and using clearly defined inference rules, derive theorems step by step. In modern proof assistants like Lean or Rocq, the axiom set differs from everyday mathematics' additive identity and commutativity laws, but the principle is the same—there are always some foundational facts that cannot be proven and can only be accepted.
Starting from axioms, we can prove simple theorems, then combine simple theorems into more complex ones. In this way, any proven theorem can be traced back along the chain of reasoning to the axioms. The only things we need to trust are the axioms themselves and the combination rules.

For non-mathematicians, this may sound abstract. But the key point is: once a formal proof is written out, checking its correctness becomes very mechanical and very simple. This is similar to factorization—finding the factors is hard, but verifying that the factors multiply to the original number is easy.
Proof Assistants and Dependent Types
Lean and Rocq (formerly Coq) are both interactive theorem provers, whose core languages are typically built on dependent type theory. Dependent types allow types to depend on values—for example, in the type "vector of length n," n is a value parameter. This allows mathematical objects and their properties to be expressed within the same type system, with propositions encoded as types and proofs as terms of that type. It is precisely this "propositions as types, proofs as programs" correspondence (the Curry-Howard correspondence) that reduces proof checking to type checking, making it fully mechanizable. Lean 4 also includes a programmable macro and metaprogramming framework, enabling mathematicians to define notation and tactics close to pencil-and-paper mathematics, improving writing efficiency while keeping the kernel trustworthy.
AI Proof of the Riemann Hypothesis: Scale and Verification
Take the Riemann Hypothesis as an example. The proof completed by Anthropic's Claude in collaboration with Lean experts initially attempted up to millions of lines of Lean code. According to data cited in the episode, the latest version has been reduced to about 76,000 lines of Lean code. But behind each line of code lies a huge number of reasoning steps.

For humans, building such a massive formal proof from scratch is traditionally almost infeasible. Serious human attempts have existed over the past decades, but they are extremely difficult. However, AI excels at creatively generating candidate proofs, while proof checkers can independently and automatically verify each step. This division of labor makes formal mathematics and AI a "match made in heaven."
Checking the Checker: How Do We Ensure the Verification Tool Itself Is Reliable?
An obvious question: could the proof checker itself have bugs? The answer is yes. Historically, the kernels of proof assistants have indeed had bugs, and it will be difficult to avoid them entirely in the future.
The remedy is multiple independent verifications. For the Lean proof of the Riemann Hypothesis, different people wrote different proof checkers, which independently confirmed the validity of the proof. Going further, there is research work on formalizing the correctness of proof checkers themselves. If a proof is checked by a formally verified checker, then to overturn the conclusion, one would need the checker to have a bug, that bug to happen to affect this particular check, and the proof itself to happen to be wrong in some way yet escape detection—extremely stringent conditions would all have to hold simultaneously.

Of course, humans could in theory manually check the entire proof step by step, but those microscopic steps are extremely tedious, boring, and provide no understanding of the proof's overall picture. The practical approach is to write proofs at a higher level of abstraction in a proof assistant like Lean—which is essentially a programming language. This way, humans can understand the key lemmas and theorems and grasp the big picture of the proof.
Trusted Kernel and Formal Verification
Proof assistants typically use a "small kernel" architecture: only a small amount of core code is responsible for the final type checking, and all high-level tactics and automation ultimately generate proof terms that are rechecked by the kernel. Thus the trusted base is relatively small, making manual review and formal verification feasible. Historically, bugs have mostly occurred in peripheral tactics or parsing layers rather than in the kernel itself. To further reduce risk, researchers formalize the reliability of the kernel using simpler logic or another system—for example, verifying certain components of Lean in Coq, or using a metalogical framework to machine-verify the checking rules. Such work cannot completely eliminate trust in the underlying hardware and compiler, but it compresses the chain of trust to an auditable range, complementing the "multiple independent verification" approach described in the article.
How AI Generates Proofs: Reinforcement Learning and Agents
On the AI side, the specific methods of major labs are unknown to the outside world, but there are some widely believed practices. First, use reinforcement learning when training large language models: proof attempts either succeed or fail, and the model can update its weights based on feedback—rewarding success and penalizing failure—thereby improving the success rate of one-shot proofs.
Second, in an agentic setting, the agent can repeatedly query the model and use feedback from the proof assistant to correct steps. The model does not have to prove the Riemann Hypothesis in one go—that is completely infeasible. Instead, it can try multiple proof paths, refine based on the proof assistant's feedback on invalid steps, switch to entirely new ideas when necessary, and retain partial successful experience.

If agents or swarms of agents can be deployed to keep a large number of strong models working continuously for days, weeks, months, or even years, it may be possible to achieve results that are extremely difficult for humans to attain.
Reinforcement Learning and Proof Search
Applying reinforcement learning to formal proofs typically treats the proof assistant as an environment: the agent selects a tactic or lemma application given a goal state, and the environment returns a new state or an error message. Since proof success is a sparse and delayed reward, training often combines process rewards (such as reduction in remaining goals, state similarity) with the final success signal. Another approach is "expert iteration": the model generates many attempts, and only proofs that pass the checker are kept as training data for repeated fine-tuning. This is akin to AlphaZero-style self-play, but mathematical proofs have a much larger action space and sparser feedback. Agent frameworks further introduce search and backtracking, turning a single generation into multiple rounds of interaction, thereby gradually approaching the goal in long-horizon proofs.
The Boundaries of Trust: What Exactly Are We Trusting?
Back to the title question: can we trust AI's proof of the Riemann Hypothesis? The logic given in the episode is: you don't need to trust AI itself. What you need to trust are the axioms, the inference rules, and the proof checkers that have undergone multiple independent verifications. AI's creative output is constrained by the formal proof, and the correctness of the proof is independently confirmed by mechanized checkers.
Of course, this is not absolutely foolproof—checkers can have bugs, and formal verification can have oversights. But through independent checkers, formally verified checkers, and human understanding of the high-level proof structure, the foundation of trust shifts from "believing in AI" to "believing in verifiable mathematics and software." This may be the most trustworthy path for mathematical proofs in the AI era.
One-line Summary
Formal mathematics and AI collaboration make proofs mechanically verifiable, shifting trust from AI to axioms and checkers.
Paragraph Summary
The article revolves around "can we trust mathematical proofs given by AI," pointing out that formal mathematics breaks proofs down into a chain of reasoning from axioms to theorems, and proof assistants like Lean can mechanically check each step without needing to trust the AI that generated the proof. Using the AI-assisted proof of the Riemann Hypothesis as an example, the code was reduced from millions of lines to about 76,000 lines, but behind each line there are still many reasoning steps. To address the issue that checkers themselves may have bugs, the article proposes multiple independent checkers and formally verified checkers corroborating each other. On the AI side, reinforcement learning rewards successful proofs, and in agent settings, feedback from the proof assistant is repeatedly used to correct steps. The final conclusion is: the foundation of trust should shift from believing in AI to believing in axioms, inference rules, and verified checkers, while humans can understand the high-level proof structure.
Related articles

AI Giants Say 'Slow Down' While Flooring the Accelerator — Who's Lying?
The Vergecast breaks down five AI hot topics: Anthropic's crypto flub, AI hacking, Altman and Amodei's slowdown calls, Google search AI-ification, Jensen Huang's testimony, and how AI products can replicate Google Maps-style data deals.

Flo Enters Telehealth: Launches Flo Clinic and Acquires Elektra Health
Flo launches telehealth platform Flo Clinic, initially focused on perimenopause care, and acquires menopause health company Elektra Health, marking women's health apps' shift from tracking tools to healthcare services.

Ford Reinvents Hands-Off Driving from the Chip Up: Fathom Electric Pickup to Get It as Standard
Ford says its ADAS costs have dropped enough to be standard across all models, debuting on the 2027 Fathom electric pickup starting at $28,350. This article analyzes the cost logic and market impact of Ford's chip-level ADAS overhaul.