AI and the Riemann Hypothesis: The Technical Boundaries of Formal Verification

    This article examines how to verify a large formal mathematical proof, especially one generated with AI assistance, using recent claims about the Riemann Hypothesis as a case study. It separates the claim that AI can assist mathematical research from the much stronger claim that AI has proved a major conjecture. The discussion covers statement consistency, derivation correctness, build reproducibility, and independent checking; explains why a proof's scale does not establish its mathematical credibility; and offers an actionable review and delivery workflow for large formalization projects.

    1. Clarifying the Facts: Grand Claims Require Traceable Evidence

    AI participation in mathematical research has made proof search, derivation completion, and formal encoding important technical topics. But “AI can assist mathematical research” and “AI has proved the Riemann Hypothesis” are judgments with completely different evidentiary requirements.

    The original material claims that a researcher and AI together completed a proof of the Riemann Hypothesis, released about 17 million lines of formal code, and then passed independent verification. However, this material alone cannot confirm whether the relevant announcement, proof repository, verification logs, and academic recognition are real and complete. It is not enough to report the claim as established mathematical news.

    This article therefore does not treat the claimed breakthrough as an established fact. Instead, it focuses on a more technically useful question: if someone submits a large-scale mathematical proof generated with AI participation, how should we verify it?

    First, it must be clear that the number of lines of code, the number of files, and build time cannot directly measure the truth of a mathematical conclusion. A very small proof may contain a key breakthrough, while a very large engineering project may prove a wrongly stated proposition. Credibility comes from an inspectable evidence chain, not from the impression created by scale.

    2. What Mathematical Proposition Must Be Verified?

    The Riemann Hypothesis concerns the distribution of the zeros of the Riemann zeta function.

    In the region where the real part of the complex variable is greater than 1, the function can be defined by a convergent series:

    ζ(s) = Σₙ₌₁∞ n⁻ˢ

    Through analytic continuation, it can then be extended to a larger range of complex numbers, with a pole at s = 1.

    The function has trivial zeros at the negative even integers. The core claim of the Riemann Hypothesis is that all nontrivial zeros lie on the line whose real part equals 1/2.

    This sentence looks concise, but formalizing it involves many prior definitions:

    • How complex numbers and their real parts are represented;
    • How infinite series and their convergence are defined;
    • How the analytically continued function corresponds to the original series;
    • How zeros, poles, and the boundary of nontrivial zeros are distinguished;
    • Whether the final statement covers all relevant complex numbers, not just a finite range.

    A very important risk arises here: a program may rigorously prove the proposition written into the system, but the proposition written into the system may not be the one the researcher actually intended to prove.

    For example, if “all nontrivial zeros” is mistakenly written as “nontrivial zeros below a certain height,” then even a completely correct proof yields only a conclusion within a finite range. Verifying a large number of zeros also cannot directly replace a proof over an infinite set.

    In addition, the Generalized Riemann Hypothesis concerns a broader class of functions and corresponding propositions. Even if a proof resolves the case of the Riemann zeta function, it cannot automatically be claimed that the generalized case has been solved. The applicable objects, assumptions, and generalization steps must be checked separately.

    3. Why Formal Proofs Are Easier to Mechanically Check Than Natural-Language Arguments

    Traditional mathematical papers usually use natural language, formulas, and derivation diagrams. They are efficient and flexible, but they inevitably omit some steps considered obvious.

    Formal proofs require definitions, lemmas, theorems, and their derivation relationships to be expressed as objects that a system can check. In common type-theory-based systems, a proposition can correspond to a type, and a proof can correspond to a term of that type. Checking a proof is essentially checking whether these objects satisfy the constraints under given logical rules and foundational assumptions.

    This does not mean that every detail must be expanded by hand. Automation can handle search, simplification, and composition of existing results, and AI can propose proof steps. The key point is that the derivation finally accepted must enter a checked trusted chain.

    The system can be roughly divided into two parts:

    The first part is the proof generation layer.
    It proposes candidate proofs and may use heuristic search, symbolic computation, or AI. The generation process may fail and may contain errors.

    The second part is the proof checking layer.
    It determines whether a candidate proof complies with the rules and should not accept a step merely because the generator claims that the step holds.

    The core value of this separation is that we do not need to fully trust the proof generator, but we must thoroughly review the checking mechanism and its dependencies.

    4. Large Proofs Require a Four-Layer Verification Chain

    1. Statement Consistency: Does the Proof Really Target the Intended Conjecture?

    Verifiers should, as far as possible, use independently maintained and reviewed foundational definitions to express the target proposition, and then check whether the submitted result implies that target.

    Content cannot be judged only by the theorem’s name. A result called “target conjecture proved” may contain additional assumptions or may use a rewritten function definition.

    The following questions require particular attention:

    • Does the theorem implicitly depend on the target conjecture itself?
    • Does an inconsistent premise make any conclusion provable?
    • Have new, unjustified axioms been introduced?
    • Are key quantifiers or boundary conditions missing?
    • Has only a conditional or restricted version been proved?

    An ideal deliverable should include the target statement, key definitions, dependency relationships, and a complete list of new foundational assumptions.

    2. Derivation Correctness: Are There Paths That Bypass Checking?

    “Build succeeds” is not a sufficiently precise acceptance criterion.

    A build process may include cache reuse, proof placeholders, external computation results, or skip mechanisms intended only for development. Verifiers therefore need to confirm that the final artifact contains no unfinished proof obligations and to check all trusted external steps.

    If some computations are accepted directly by the system rather than producing reviewable proof certificates, those computations enter the trusted base and must be explicitly disclosed and reviewed.

    The point is not to reject external computation categorically. The point is that “the computation program output the correct result” must not silently replace “the result has been reliably verified.”

    3. Build Reproducibility: Can Others Obtain the Same Result?

    Reproducibility requires that independent researchers can start from public source files and a clear dependency configuration and reproduce checkable proof artifacts.

    It is usually necessary to pin:

    • Source versions and content digests;
    • Dependency library and checker versions;
    • Build configuration and runtime environment;
    • External inputs and generated files;
    • Cache usage policy;
    • Complete logs and failure records.

    Note that reproducibility does not necessarily mean that all intermediate files are byte-for-byte identical. Timestamps, file ordering, or irrelevant metadata may cause differences. A project should clearly distinguish byte-level identity, proof-object identity, and theorem-content identity, rather than using a vague claim that “the result is the same.”

    4. Independent Checking: Are There Common Failure Points?

    Having multiple people run the same program mainly improves operational confidence. It does not automatically rule out defects shared by that program.

    A stronger verification method is to use an independently implemented checker to recheck exported proof objects. However, different checkers may still share parsing components, foundational specifications, or key assumptions, so it is still necessary to analyze whether they are genuinely independent.

    Independent verification should be described in layers: who rebuilt the project, who checked the proposition, who audited the foundational assumptions, and who used a different implementation for review. Compressing all these activities into a single phrase such as “accepted by the community” loses the most important technical information.

    5. What Are the Real Difficulties of a Tens-of-Millions-Line Proof Project?

    If a proof project really contains tens of millions of lines of code, it first means enormous engineering management pressure. It does not automatically mean higher mathematical credibility.

    Module Separation and Dependency Control

    A project should be layered into foundational definitions, general theory, core lemmas, and the final theorem. Large numbers of automatically generated files need to be managed separately from the key interfaces reviewed by humans.

    Particular attention should be paid to hubs in the dependency graph: a widely referenced incorrect definition may affect a large number of later conclusions. Rather than distributing review resources evenly, it is more reasonable to prioritize high-impact definitions, core transformation steps, and new axioms.

    Incremental Builds and Final Review

    During development, caches and parallel tasks can improve efficiency, but before release a complete build should still be performed in a clean environment, and key artifacts should be rechecked.

    More parallelism is not always better. Large proof checking may be limited by memory, storage throughput, and dependency order. Resource planning should be based on actual measurements, not merely on estimates derived from the number of processors.

    Traceability of Generated Content

    For automatically generated proof files, the generation rules, input data, and generator versions should be recorded. Otherwise, when a problem appears in a segment of a proof, maintainers may face a large amount of expanded code that is difficult to understand.

    The larger the codebase, the more high-level explanatory material is needed to explain what the core idea is, which lemmas play key roles, and which repetitive labor the automated expansion actually replaced.

    6. How Should AI Contributions Be Described Accurately?

    AI may participate in several different stages:

    First, proposing candidate ideas, such as guessing intermediate lemmas or finding theorems that may apply.

    Second, completing formal translation, converting an existing mathematical argument into checkable code.

    Third, assisting with engineering maintenance, such as organizing dependencies, filling in repetitive structures, and analyzing failure logs.

    Fourth, assisting with review, helping to find missing conditions, definition conflicts, or skipped steps in an argument.

    These contributions can all be valuable, but they must not be conflated. Formalizing an existing proof is not the same as discovering the proof for the first time; generating a proof draft is not the same as completing a rigorous argument; and passing local tests is not the same as proving the final target.

    Evaluating AI’s mathematical contribution should focus on what it actually completed and which publicly reviewable checks the final result passed, rather than using only the broad label “AI proved it.”

    7. An Actionable Review and Delivery Workflow

    For large formalization projects, the following workflow can be used:

    Step 1: Freeze the target.
    Specify the final theorem, mathematical objects, quantifier scope, and allowed foundational assumptions, so that the target does not change implicitly as the project progresses.

    Step 2: Freeze the materials.
    Save source snapshots, dependency lists, configuration descriptions, and content digests so that the review object is traceable.

    Step 3: Perform a foundational audit.
    Check for unfinished items, extra axioms, externally trusted computations, and mechanisms that bypass checking.

    Step 4: Perform an isolated build.
    Rebuild the project in a clean environment and record inputs, outputs, resource usage, and anomalies.

    Step 5: Independently check the proposition.
    Have people familiar with the relevant mathematical field check the definitions and final statement, rather than leaving the judgment only to build engineers.

    Step 6: Review the proof artifacts.
    Where conditions allow, use independent checker implementations and clearly record trusted dependencies that are still shared.

    Step 7: Publish layered conclusions.
    Separately state the completion status of engineering build, logical checking, semantic review, and human review, while disclosing unresolved issues.

    This method also applies to enterprise software that relies on formal verification. But it must be remembered that a program satisfying a formal specification does not mean that the specification fully expresses business requirements, and it certainly does not mean that the actual deployment environment satisfies all premises.

    8. Conclusion: Trust the Evidence Chain, Not the Scale of the Narrative

    The combination of AI and formal methods may significantly improve the efficiency of mathematical exploration and proof engineering. But the more sensational a conclusion is, the more it needs restrained, transparent, and repeatable verification.

    To judge whether a major proof is credible, the following questions should be asked in order: Is the target proposition accurate? Are the foundational assumptions reasonable? Has the derivation actually been checked? Is the build reproducible? Does independent verification have substantive differences? And does the public conclusion go beyond the evidence?

    Only when these questions are adequately answered does “a machine accepted a proof” have a solid basis for being interpreted as “the target mathematical proposition has been rigorously proved.” The technical progress truly worth noting is not how large the codebase is, but whether any qualified independent reviewer can follow the public evidence chain to an explainable and reviewable conclusion.