How to Review AI-Assisted Proofs: A Practical Guide to Formal Verification

    This article explains how to carefully evaluate claims of AI-assisted proofs of major conjectures such as the Riemann Hypothesis. It does not judge whether any specific proof is valid. Instead, it lays out a review process covering trusted computing bases, proposition mapping, verification of key claims, common misjudgments, and reproduction steps, so readers can assess what each stage of a formal verification actually proves and what it does not.

    This article does not judge whether a proof of the Riemann Hypothesis (RH) or the Generalized Riemann Hypothesis (GRH) is valid. It describes a careful evaluation process: given such a claim, which parts should a reader check, what can each part establish, and what can it not establish?

    Fact-Check Notes

    • Nature of the claim: A personal statement by an individual researcher. It has not undergone peer review in the mathematics community and has not been published in a formal journal.
    • Verifiability: The claimed manuscript length and code size come from the claimant’s own account and cannot be independently verified here.
    • Current points of dispute: Whether the proof is complete, whether the formalized proposition precisely corresponds to the original conjecture, and what role AI actually played in key steps.
    • Scope of this article: It discusses verification methodology only and takes no position on whether the proof holds.

    1. A Personal Claim Is Not Community Confirmation

    The claim has not been peer reviewed. The story circulating online is that a researcher, working with a large language model, produced proofs of the Riemann Hypothesis and its generalization, the Generalized Riemann Hypothesis. What the claimant has published is a summary of only a few pages. According to the claimant, the full proof is far too large to read directly, so its main carrier is formal code written in an interactive theorem prover.

    “On the order of ten million lines” is a figure whose basis must be checked. When readers see such a number, they should first ask three questions: which code repository it comes from, which files were counted, and whether third-party dependencies were included. A reliable claim typically comes with the repository’s commit hash, build logs, and the output of the counting script. Only when these materials are public can the size figure be reproduced. Size itself proves nothing. Ten million lines of code can contain large amounts of duplication, placeholders, or irrelevant content, and may serve an incorrectly stated proposition.

    2. Why Formal Proofs Become the Core Carrier

    The basic idea of formal verification is to express mathematical propositions, definitions, lemmas, and proofs in a strict formal language, and then have a small trusted kernel check whether the proof follows the rules of inference. Once the kernel accepts a proof, a machine can confirm in finite steps that the proof term is valid. This approach is reproducible and auditable, but expensive to write, and proof code is generally not suitable for direct human reading.

    Peer review and formal verification answer different questions. Peer review relies on experts reading the narrative, definitions, and chains of reasoning to judge whether humans understand the argument. Formal verification relies on machine checking to judge whether a formal system accepts the proof. Their forms of evidence and failure modes differ as well.

    Checking method Input Primary evidence Typical failure modes
    Peer review Papers, narrative, lemmas Expert reading opinions and objections Missing subtle errors; too long to read fully
    Formal verification Formal propositions, proof terms, dependency libraries Records of successful kernel checks Proposition stated incorrectly; kernel or dependency defects; implicit axioms introduced
    Engineering reproduction Commit hash, toolchain versions, build scripts Others independently obtain the same result Environment differences; unlocked dependencies; inconsistent artifacts

    Trusted Base Checklist

    The trusted base is the part a reader must accept on faith because the proof itself cannot verify it. Check each of the following items:

    1. Logical foundation of the kernel: Identify which type theory or logical system is used and whether any additional axioms are introduced.
    2. Kernel implementation: Confirm the kernel version and check for known defect records. Kernel code is usually small enough to audit.
    3. Dependency versions: Every dependency should be pinned to a specific version or commit hash. Using “latest” invites drifting results.
    4. Additional axioms: List all axioms the main theorem depends on. In Lean, for example, use #print axioms. Any assumption beyond standard mathematical axioms requires dedicated scrutiny.
    5. Build environment: Record the operating system, compiler versions, and key configuration settings.
    6. Runtime environment: If external toolchains have platform-dependent behavior, describe its scope of impact.
    7. Artifact hashes: Compute hashes of compiled artifacts and proof files, and publish them so readers can compare.

    3. Proposition Review: From the Original Conjecture to the Formal Statement

    A successful kernel check only means a formal proposition has been proved. Whether that proposition corresponds to the original conjecture must be reviewed by humans. The following mapping steps are recommended:

    1. Break the natural-language statement of the original conjecture into independent conditions, such as the function’s domain, the range of zeros, and the location of the critical line.
    2. For each condition, find the corresponding formal definition and record its source file and line number.
    3. Check boundary conditions, including the multiplicity of zeros, values at special points, and how limits are handled.
    4. Check quantifier order. Swapping “for all” and “there exists” can completely change the meaning of a proposition.
    5. Look for implicit assumptions, such as default measurability, convergence, or interchange-of-summation conditions.
    6. Produce a comparison table in which each row records the natural-language statement, the formal statement, an explanation of any differences, and the review conclusion.

    The Generalized Riemann Hypothesis requires extra checking. It involves a broader family of L-functions, and reviewers should confirm three things: whether the definition of the L-function family is complete, whether it covers all cases required by the original conjecture, and whether the dependency conditions are written out explicitly. The mapping from special cases to the general case also needs separate verification.

    4. Checking Key Claims and the Technical Approach

    The claimant’s summary contains three kinds of claims: the use of several number-theoretic tools, a role for AI in key steps, and that the method generalizes to the Generalized Riemann Hypothesis.

    Polynomial methods, Fourier analysis, and iterative theta lifting are tools with extensive literature in analytic number theory and representation theory. The difficulty lies in organizing them into a complete proof chain that a machine can check. The precise connections among definitions, estimates, asymptotic expansions, error terms, and supporting lemmas are often harder to formalize than any single theorem.

    This article takes no position on the role of AI. Readers can ask the claimant to provide auditable records, including at least:

    • The model name, version, and dates of use;
    • Key prompts and outputs, or complete conversation records that can reproduce key steps;
    • Every adopted intermediate lemma, marked as proposed by the model, completed by a human, or modified by a human;
    • Records of all human modifications, including before-and-after code diffs;
    • Logs of formal verification results, traceable to specific commits.

    With these records, the three stages of “AI proposed,” “human completed,” and “kernel checked” can be evaluated separately. Without them, readers cannot determine where AI played a role or how large that role was.

    5. Common Misjudgments

    1. Passing the kernel does not mean the proposition is correct. The kernel only checks whether the proof follows the rules; it does not check whether the proposition accurately corresponds to the original conjecture.
    2. Successful compilation does not mean a valid proof. Compilation only shows that the code can be organized and executed, not that the mathematical proof is complete.
    3. Large code size does not mean trustworthiness. Line count is an engineering metric with no direct conversion to mathematical correctness.
    4. An author’s account is not independent verification. Only when third parties can reproduce the result does independent confirmation exist.
    5. A public repository is not directly reusable. A repository may lack dependency locking, or may build only in the author’s local environment.

    6. Reproduction Procedure

    1. Obtain the repository and verify that the commit hash matches the version in the claim.
    2. Pin the toolchain versions and record operating system and compiler information.
    3. Build completely according to the build instructions and save the full logs.
    4. Run the kernel check and confirm that no proofs are skipped or left as placeholders. Search for placeholder keywords such as sorry and count them.
    5. List all axioms on which the main theorem depends.
    6. Against the proposition mapping table, confirm item by item that the formal proposition matches the original conjecture.
    7. Compute hashes of the compiled artifacts and compare them with the values published by the author.

    Save the results of every step. If a step fails, first determine whether the problem lies in environment differences or in the proof itself.