Rebuilding Trust in AI-Assisted Math Proofs with Formal Verification
As large language models begin to generate formal proof code at scale, the central question is no longer speed alone but whether a proof can be trusted, reproduced, audited, and understood. This article examines two near-simultaneous claimed proofs of the Generalized Riemann Hypothesis, breaks the proof trust chain into five layers, compares the verification challenges of human manuscripts and machine-checked formal code, introduces the idea of a verification budget, and proposes an engineering pipeline that combines trusted kernels, dependency audits, reproducible environments, and human semantic review.
1. The Trust Problem Behind “Two Proofs on the Same Day”
In public discussion, two claimed proofs concerning the Generalized Riemann Hypothesis appeared almost simultaneously. One was produced by mathematicians from a research team working with a large model over a timeline of about 41 days. It submitted formal code on the order of more than 17 million lines; a fully expanded draft exceeded 250,000 pages and was not made public. The other was a human manuscript of about 940 pages. Its author began writing in the first year of a PhD and worked on it for nearly 12 years; after the advisor examined it closely for several months, the advisor considered that it currently looked good. One mathematician ranked related results by “how much humans have digested,” placed the Generalized Riemann Hypothesis last, and remarked that “fortunately, this time there is still a human author to ask.”
The real value of this contrast is not to compare whether 12 years or 41 days is faster. It exposes the trust-chain problem of mathematical proof: whether a proof counts cannot depend only on generation speed, code size, or media attention. It depends on whether the claim is faithful, whether the proof is reproducible, whether dependencies are auditable, whether peers understand it, and whether the machine kernel passes checking. Formal verification can increase the strictness of logical checking, but it only guarantees that the proof script is consistent with the formal statement. It does not automatically guarantee that the formal statement is faithful to the original mathematical proposition. Therefore, the larger an AI-assisted proof becomes, the more it needs engineering audit.
2. What Makes Up the Trust Chain for a Mathematical Proof
A proof’s trust chain can be divided into five layers:
- Original claim layer: Is the proposition to be proved stated accurately? Does it hide additional assumptions? Is it consistent with the accepted definition of the Generalized Riemann Hypothesis?
- Natural-language proof layer: Is the human-readable argument complete? Do key lemmas have sources? Can errors be located?
- Formal statement layer: Is the proposition in the formal code semantically equivalent to the original claim? Has a concept been substituted, or have conditions been weakened?
- Machine kernel layer: Does the proof script pass checking in a trusted kernel? Are dependencies and axioms on an allowlist?
- Community review layer: Do peers understand the proof idea? Do they accept its novelty and value? Can they independently reproduce key steps?
A simplified verification pipeline can be abstracted as:
input: claim C, formal_spec S, proof_script Passert semantic_equiv(C, S)check P against S with trusted_kernelaudit dependencies, axioms, generated artifactspublish hash, environment, logs, minimal_review_pack
The most critical and easily overlooked part is semantic_equiv(C, S). A large model can quickly generate a large amount of formal code, but if the formal statement is unintentionally weakened, a passing machine check does not prove the original proposition. Formal verification must therefore be combined with expert semantic review.
3. The Two Proofs Face Different Verification Challenges
The human manuscript has the advantage of readability and clear mathematical motivation; peers can digest it chapter by chapter. Its difficulties are hidden errors in natural-language proofs, long review cycles, and high formalization cost. Even if a manuscript of about 940 pages receives a good preliminary assessment, its definitions, lemma dependencies, and boundary conditions still need to be checked page by page. Formalizing it can significantly reduce later checking costs, but formalization itself requires substantial expert time.
The LLM-assisted proof has the advantage of large-scale formal code, machine checkability, and fast iteration. Its difficulty is that the scale exceeds humans’ ability to review line by line. If more than 17 million lines of formal code lack modular documentation, generation logs, and minimal auditable materials, the community will struggle to determine which parts are core lemmas, which are automatically generated filler, and which depend on unaudited assumptions. An unpublished draft also reduces reproducibility. The fact that external review has occurred while the final comparison is still running shows that “near completion” does not equal “completed.”
What the two kinds of proof share is this: both need dual-channel checking through a machine kernel and human semantic review. Machine verification provides logical rigor; human review provides semantic faithfulness and mathematical value judgment.
4. Why “How Much Humans Have Digested” Is a Reasonable Ranking
One mathematician ranked results by “how much humans have digested,” and this criterion has practical significance in the era of AI-assisted proofs. Mathematical knowledge is not a simple pile of code artifacts; it is an argument that a community needs to understand, reproduce, and transmit. If a result is generated extremely quickly but humans cannot digest it, it will be difficult for it to enter the knowledge system. Readable proofs, clear module divisions, annotations on key lemmas, and transparent records of the generation process all directly affect the cost of establishing trust.
The concept of a “verification budget” can be introduced: how much expert time a claimed proof needs for statement review, how much compute is needed to run the kernel, how much labor is needed to audit dependencies, and how many independent reproductions are required. Formal code generated in 41 days may shift cost from “writing the proof” to “reviewing the proof”; a manuscript written over 12 years concentrates cost in “writing and revising.” Neither is absolutely superior, but the verification budget must be publicly assessed.
5. A Proposed Engineering Verification Pipeline
For large-scale AI-assisted mathematical proofs, the following pipeline is recommended:
- Separate statement and proof: Freeze the formal statement first. Have domain experts sign off that it is semantically faithful before allowing proof scripts to iterate.
- Dependency and axiom audit: Lock toolchain versions, establish a dependency allowlist, and hash-commit axioms, library functions, and external lemmas.
- Block-level and incremental verification: Split a large proof into independent lemma tasks. Run kernel checks separately for each task and locate failures quickly.
- Reproducible environment: Use container images to fix the runtime environment. Save logs, random seeds, model versions, and human modification records.
- Generation-process audit: Record prompts, generated fragments, human revisions, and rejection records. Avoid “black-box generation with untraceable results.”
- Dual-channel review: After the machine kernel check passes, human experts still need to perform semantic review and mathematical value judgment.
- Publish minimal auditable materials: At minimum, publish formal statements, proof scripts, dependency lists, verification logs, and a draft index to lower the barrier to community reproduction.
In engineering implementation, general-purpose computing, object storage, and logging services such as those provided by Baidu AI Cloud can help build a reproducible verification pipeline. The core, however, remains statement review, dependency audit, and human review, not simply accumulating compute.
6. Conclusion: Finishing Verification First Is Not the Endpoint
“12 years versus 41 days” is a contrast between two modes of proof production. AI-assisted formalization can significantly improve iteration speed, but it also shifts trust cost to statement review, dependency audit, and community digestion. The mathematical community does not need to simply choose a side. It needs to connect the original statement, natural-language argument, formal code, machine kernel, dependency audit, and human semantic review into a complete trust chain. Only when machine verification and human understanding check each other can AI-assisted mathematical proofs move from “astonishing demonstrations” to “acceptable knowledge.” Who finishes verification first certainly matters, but more important is whether, after verification, the community can read, reproduce, and confidently use the result.
