AI-Assisted Formal Proofs: How to Verify a Claimed Riemann Hypothesis Proof

    A recent claim describes a research team working with a large language model to produce a strict formal proof of the Riemann hypothesis and releasing compressed packages containing more than 100,000 formal proof source files. This article separates the engineering question from the headline: how should teams understand, reproduce, and audit a mathematical proof published as a large code artifact? It outlines a verification chain from freezing the theorem statement and rebuilding the environment to kernel checking, axiom auditing, and independent cross-validation, and discusses where AI fits and where its limits remain.

    Recently, a claim that a research team worked with a large language model to rigorously prove the Riemann hypothesis spread quickly through the technology community. Unlike a conventional paper submission, the announcement reportedly released multiple compressed data packages directly, containing more than 100,000 formal proof source code files. For developers and technical managers, the real issue is not a headline about whether history has been rewritten. The more engineering-oriented and verifiable question is this: when a mathematical proof is published as a large-scale code artifact, how should we understand, reproduce, and audit it? What is a reasonable role for AI, and what boundaries cannot be ignored?

    I. The Technical Substance: Not “AI Wrote a Paper” but “the Proof Became Code”

    The Riemann hypothesis is a central problem in mathematics, and its importance needs little explanation. Traditional mathematical proofs establish credibility through papers, definitions, lemmas, derivations, and peer review. A formal proof instead writes theorems, definitions, and reasoning processes as computer-checkable code, which an interactive theorem prover’s kernel verifies line by line.

    The key differences are:

    1. The proof object is more precise. Phrases such as “obviously” and “similarly obtainable” in natural language must be expanded into rigorous steps; domains, quantifier scope, and axiom dependencies must be explicitly declared.
    2. The validating authority is different. Papers require peer reading and consensus in the mathematical community; the first gate for a formal proof is machine kernel checking. After that, human review is still needed to determine whether the theorem statement is faithful, whether the axioms are acceptable, and whether the build environment is reproducible.
    3. The artifact form is different. A formal proof may contain many files, modules, dependencies, and build scripts. It is closer to a software project that requires continuous integration and quality auditing.
    4. “It compiles” does not mean “the conclusion holds.” If the theorem statement is wrong, extra assumptions are used, unacceptable axioms are introduced, or the proposition proved is not the Riemann hypothesis as the public understands it, then code passing checks does not mean the original problem has been solved.

    Therefore, when facing a claim that “some conjecture has been conquered,” the first step should be to distinguish three things: whether formal code exists, whether kernel checking passes, and whether the stated theorem strictly corresponds to the accepted problem. If any link is missing, the conclusion cannot be regarded as established.

    II. Trusted Verification Chain: From Compressed Package to Accepted Conclusion

    If such a claim enters serious verification, the following chain is recommended. It applies to mathematical formalization and can also be transferred to high-risk scenarios such as chip design, cryptographic protocols, compiler verification, and critical business rules.

    1. Freeze the Theorem Statement

    Verifiers should first freeze “the proposition to be proved” into an auditable version, including:

    • the precise definition of the Riemann hypothesis;
    • the basic definitions used, such as complex numbers, analytic continuation, zeros, and the critical line;
    • whether the proof depends on definitions in standard libraries, and whether those definitions match commonly accepted mathematical formulations;
    • whether there are hidden additional premises, unacceptable axioms, or nonstandard logical assumptions.

    This step is often overlooked, yet it is the part most easily obscured by the “headline effect” in formal verification. A completely correct machine proof of a rewritten weaker proposition does not count as a solution to the original problem.

    2. Reproduce the Build Environment

    A large proof artifact cannot merely “run on the author’s machine.” Verifiers need to reproduce:

    • the theorem prover and its kernel version;
    • dependency library versions and hashes;
    • build parameters, resource limits, and randomness settings;
    • the boundary between preprocessing scripts, generated files, and manually maintained files.

    If the environment is not reproducible, later checks may produce a situation where “the author’s environment passes but an independent environment fails.”

    3. Integrity Checks and Supply Chain Audit

    A public compressed package should include a manifest describing the digest, size, role, and dependencies of each file. Verifiers need to confirm:

    • whether the data package is complete;
    • whether there are undisclosed generation scripts or binary dependencies;
    • whether the build process calls external services that are not included in the audit;
    • whether the proof code uses only acceptable kernel features.

    4. Kernel Checking and Axiom Audit

    The trusted root of a formal proof is usually a kernel that is as small and auditable as possible. Verifiers should independently execute the complete flow from source code to kernel checking and output:

    • a list of all axioms used;
    • all external assumptions and unproved placeholders;
    • compilation warnings, deprecated features, and unsafe extensions;
    • the checking process log and the final theorem object.

    An illustrative audit checklist can be written as:

    1. theorem_statement_hash: <digest of the frozen theorem statement>
    2. toolchain_digest: <digest of the prover and kernel versions>
    3. dependency_digest: <digest of all dependencies>
    4. build_script_digest: <digest of the build scripts>
    5. artifact_digest: <overall digest of the proof artifact>
    6. axioms_used: <listed item by item>
    7. assumptions: <listed item by item>
    8. warnings: <classification of build warnings>
    9. checker_result: <result of checking in an independent environment>
    10. reviewers: <records of cross-review by multiple people>

    The purpose of this checklist is to convert “I trust the authors” into “I can independently replay and inspect it.”

    5. Multi-Person, Multi-Environment Cross-Validation

    A mathematical conclusion should not depend on a single environment or a single person. More robust approaches include:

    • independent builds by different teams in isolated environments;
    • use of read-only dependencies, fixed hashes, and offline resource mirrors;
    • manual code review of critical modules;
    • review of the theorem statement by mathematical experts;
    • public reports covering build logs, checklists, and final conclusions.

    III. What AI Participation Changes and Does Not Change

    Large language models can play a practical role in formal proof engineering, for example by:

    • decomposing natural-language lemmas into candidate proof steps;
    • retrieving available lemmas and similar structures from proof libraries;
    • generating repetitive proof templates, refactoring names, and completing documentation;
    • helping locate type errors, missing dependencies, and failing branches;
    • proposing counterexample directions or equivalent formulations during exploration.

    But it must be clear: AI is not the final judge. In formal verification, the final authority is not an explanation generated by a model, but an audited kernel check and human review of the theorem statement. A model may produce plausible-looking but non-checkable proof fragments, or introduce hidden assumptions. Therefore, AI output must go through a double loop of machine verification and human review.

    For teams, a more reasonable positioning is “AI-assisted proof engineering,” not “AI automatically publishing scientific conclusions.” The former emphasizes inspectability, rollback, and measurability; the latter easily places传播速度 above verification quality.

    IV. Engineering Challenges of Large-Scale Proof Artifacts

    More than 100,000 source code files and hundreds of megabytes of data are not extreme in modern software engineering, but the difficulty of formal proofs lies not in volume but in semantic density. Every file may contain definitions and reasoning that affect the final conclusion. Major challenges include:

    1. Build time and dependency closure: proof libraries may form complex dependency graphs, and any version drift may affect checking results.
    2. Readability and maintainability: machine-checkable does not mean human-understandable. Additional documentation, module boundaries, and explanations of proof intent are needed.
    3. Change impact analysis: modifying a basic definition may affect many upstream proofs, requiring continuous-integration-style regression checks.
    4. Evidence chain management: from theorem statement, dependencies, and axioms to final checking results, a traceable evidence chain must be formed.
    5. Release communication: a distinction should be made among different maturity levels such as “code has been published,” “build passes,” “theorem statement has been reviewed,” and “the mathematical community has reviewed it,” avoiding covering the whole process with a single conclusion.

    V. Practical Quality Process Recommendations

    For teams that want to introduce formal verification and AI assistance into high-risk systems, the following process can serve as a reference:

    1. Specification first: first review whether the theorem or specification accurately expresses the intended meaning, and then discuss the proof.
    2. Minimal trusted kernel: minimize the checker and axiom set that must be trusted.
    3. Artifact-based release: publish proof code, build scripts, dependency lists, axiom lists, and verification digests together.
    4. Automated gates: incorporate type checking, kernel checking, warning handling, and artifact verification into the continuous integration pipeline.
    5. Human-AI collaborative review: AI handles candidate generation, retrieval, and refactoring; humans handle specification review, judgment of critical lemmas, and release conclusions.
    6. Tiered statements: divide conclusions into stages such as “formalized,” “locally checked,” “independently reproduced,” and “reviewed by domain experts,” and clearly state the boundaries in external communication.
    7. Long-term reproducibility: preserve offline dependencies, environment metadata, and checking logs so that verifiers years later can still replay key steps.

    VI. Conclusion: Move Attention from Headlines to the Evidence Chain

    “AI collaborating with a large language model to complete a formal proof” does not by itself necessarily mean that a mathematical conclusion has been confirmed. It more likely represents a new form of proof engineering: AI improves the efficiency of candidate generation and code refactoring, interactive theorem provers provide machine-checkable final verification, and humans are responsible for problem definition, theorem statements, and academic consensus.

    Therefore, the professional attitude toward such claims should be: do not believe them lightly because of headlines, and do not reject them because of hype; focus on checking the theorem statement, axiom dependencies, build environment, kernel results, and independent reproduction. What truly deserves attention is not “whether some model has conquered some conjecture,” but whether we can establish a transparent, reproducible, and auditable verification process. Only when the evidence chain is complete can “witnessing history” be more than a slogan and become a conclusion jointly confirmed by the engineering and mathematical communities.