AI in Mathematical Proofs: What Formal Verification Can and Cannot Do
A widely shared claim about an AI-assisted formal proof of the Riemann Hypothesis raises a key distinction: passing formal verification does not mean the mathematical community has accepted a solution. This article examines what formal verification actually checks, how it differs from peer review, where AI fits in the proof workflow, and why proof readability remains an open problem. It also outlines a practical checklist for independently verifying a formalized proof.
AI and Formal Proofs: The Limits and Reality of Formal Verification
1. A Widely Misread Report
In late November 2024, a claim spread quickly on social media: a mathematical researcher, working with a large language model, had completed a formal proof that passed independent compilation and cross-checking with multiple proof verifiers. The code base was described as roughly 17 million lines and 175,187 modules, with no additional axioms reportedly introduced.
One caveat is important here: those figures came from the researcher’s public remarks and second-hand accounts. We did not obtain a primary code repository link, a measurement date, or a version number. Readers should treat the numbers as claims awaiting verification, not established facts. It is also unclear whether the line count includes comments and auto-generated code.
The critical distinction is this: a proof passing machine formal verification is not the same as the mathematical community formally accepting that a conjecture has been solved. This is not a matter of wording. It affects how accurately we understand the limits of the technology.
2. What Formal Verification Actually Verifies
2.1 The core principle
Formal verification translates natural-language reasoning into a sequence of symbolic derivation steps inside a formal system. Each step must follow explicitly defined axioms and inference rules. If any single step is wrong, it cannot pass type checking.
Illustrative statement (Lean 4 style; shown for illustration only, as a real proof would pin specific Lean and mathlib versions):
-- Illustrates only the shape of the proposition; no irrelevant premisestheorem riemann_hypothesis_formal :zeta s = 0 → re s = 1/2:= bysorry -- Placeholder: the declaration fails to compile if left unfinished
sorry is a placeholder. The tool rejects any declaration containing unfinished steps. That is the source of the strictness: only complete derivation chains are accepted.
2.2 Verification checks (with tools and checklist)
- Full compilation check: Tool is the Lean compiler; version not disclosed. Checklist: pin the commit and run a full clean build.
- Proposition consistency check: Compare definitions line by line against mathlib standard definitions; version not disclosed. Checklist: confirm that the definitions of “zeros” and the “critical line” are strictly equivalent to the original statement.
- Multi-engine cross-check: Verifier names not disclosed. Checklist: have at least two independent implementations repeat the verification.
- Axiom audit: Checklist: confirm that only the standard axiom set is used, with no custom axioms; audit commands not disclosed.
3. Machine Verification Passing Does Not Close the Case
The Riemann Hypothesis is one of the seven Millennium Prize Problems set by the Clay Mathematics Institute, carrying a prize of 1 million USD. According to the rules on the official website (accessed at the time of writing), a solution must meet the following conditions to enter review: it must be formally published and pass peer review; it must be publicly scrutinized for at least two years after publication; and it must gain broad acceptance in the mathematical community. At the time of the event, the official website still listed the problem as “unsolved.”
3.1 Formal verification vs. peer review
| Dimension | Formal Verification | Peer Review |
|---|---|---|
| What is checked | Whether each inference step is valid | Whether the idea is sound and deep |
| Error types | Logical gaps, type errors | Flaws in thinking, hidden assumptions |
| Evaluation criteria | Pass/fail | Depth, extensibility |
| Transferability | Limited to the current formal system | Influences research directions in the field |
3.2 How to independently verify a formal proof (5 steps)
- Obtain the source code and commit history.
- Pin tool and library versions.
- Run a full compilation; do not accept placeholders.
- Audit the axioms; rule out extra assumptions.
- Check proposition consistency; prevent substitution of the proposition.
4. The Role of AI in the Proof Process
4.1 From assistant to contributor of ideas
According to the researcher’s public remarks (whose name and affiliation we could not confirm in verifiable sources), the AI supplied a key constructive idea in the later stage. This claim is the respondent’s subjective statement. The comparison that the pace of progress “exceeded what the researcher could achieve alone” is likewise a subjective judgment and should retain uncertainty.
4.2 AI is not the “prover”
The actual workflow was: humans define the problem and strategy; AI explores candidate paths; the formal system enforces rigorous checking; humans complete the formalization. AI is closer to a high-energy research assistant.
4.3 Can AI complete mathematical proofs independently?
Based on currently available public information, not yet. Problem selection, strategic control, and result integration still depend on humans.
5. The Size Question: A Readability Crisis
According to public information, there is no record of any person reading through the entire proof chain. This raises a deeper question: can a proof that only machines can verify, and that humans struggle to digest, genuinely become part of the mathematical knowledge system?
The value of mathematics lies not only in whether a conclusion is true, but also in revealing new connections. The Prime Number Theorem brought complex analysis into number theory; Fermat’s Last Theorem led to the correspondence between modular forms and elliptic curves.
Checklist for simplifying and modularizing:
- Reuse standard library definitions; do not create equivalent duplicate definitions.
- Archive intermediate lemmas by topic in layers.
- Remove auto-generated one-off lemmas.
- Add human-readable summaries for core constructions.
- Mark module boundaries that can be generalized or simplified.
6. The Outline of a New Division of Labor
- Human researchers: raise questions, define direction, control strategy.
- AI models: explore paths in parallel, propose constructions, accelerate derivation.
- Formal systems: perform exhaustive logical checking.
- Human-AI collaboration teams: distill code into human-readable arguments.
Humans define the problem → AI explores + humans filter → formal verification → humans distill → peer review → enters the knowledge system
7. Conclusion: Staying Technically Precise
- Passing formal verification confirms logical compliance; it is not a final verdict.
- AI’s contribution is real, but the accurate description is human-AI collaboration.
- The readability crisis is real; simplification and modularization are the long-term direction.
- The human role is shifting toward that of questioner and integrator.
For developers, formal verification toolchains are moving toward broader engineering scenarios, and AI-assisted generation of formal code is improving. The combination of the two will affect software verification, protocol auditing, and financial contract checking.
The conclusions here are based only on currently available public information; subsequent peer review may revise them.
