AI-Assisted Proof and the Limits of Formal Verification: Lessons from the Riemann Hypothesis Controversy

    A controversy over a claimed proof of the Riemann Hypothesis offers a useful lens on AI-assisted mathematics. Without treating the claim as established, this article explains how AI can help locate defects in proofs, why formal verification is easier to audit than natural-language argument, what a successful checker run does and does not guarantee, and how development teams can build traceable, reproducible human-AI reasoning workflows.

    1. Verify the Evidence Before Discussing Whether AI Has Changed Mathematics

    An article claiming that a major mathematical problem has been solved can easily attract attention through phrases such as “years of research,” “a flaw found in hours,” and “tens of millions of lines of verification code.” Such numbers neither directly prove that the result is correct nor substitute for a checkable mathematical argument.

    The available material makes several major claims at once: that someone published a proof after long independent work, that AI quickly found a problem, and that researchers completed a proof through human-machine collaboration and obtained formal verification. However, the material does not provide a complete proof sufficient for independent checking, reproducible verification materials, or a clear review record. Therefore, “the Riemann Hypothesis has been proved” cannot be treated as an established fact in this article, and it is even less valid to infer from it that AI has solved broader related conjectures.

    The technically valuable questions around this event are:

    • How can AI help find defects in mathematical proofs?
    • Why are formal proofs easier to check rigorously than natural-language arguments?
    • What exactly does a successful verification run guarantee?
    • How should development teams build traceable, reviewable intelligent reasoning workflows?

    Answering these questions clearly is more meaningful than repeating unverified breakthrough narratives.

    2. What the Riemann Hypothesis Actually Studies

    1. Prime distribution: locally irregular, globally regular

    A prime is an integer greater than 1 whose only positive divisors are 1 and itself. The positions of primes do not follow a simple evenly spaced pattern, but as the range of observation expands, the number of primes exhibits a stable statistical trend.

    Let π(x) denote the number of primes not exceeding x. The prime number theorem states that:

    the ratio of π(x) to x/ln(x) approaches 1 as x tends to infinity.

    This conclusion describes an asymptotic trend. It does not mean that substituting a finite value into the formula gives the exact number of primes.

    To study finer distribution, one must examine the deviation between the actual count and the approximation. Much of the importance of the Riemann Hypothesis lies in its ability to impose stronger constraints on such deviations.

    2. From prime problems to zeros of a complex function

    When the real part of the complex number s is greater than 1, the Riemann zeta function can be defined by the infinite series:

    ζ(s) = Σ n^(-s), where n runs from 1 to infinity.

    In this range, it can also be written as an infinite product involving all primes. This connection allows questions about prime distribution to be transformed into questions about the properties of a complex function.

    Through analytic continuation, the function can be discussed over a wider region; apart from the pole at s = 1, it has the corresponding analytic structure. The Riemann Hypothesis concerns whether all nontrivial zeros lie on the line whose real part equals 1/2.

    Therefore, “all the key points lie on the same line” can only serve as an intuitive metaphor; it cannot replace the formal mathematical statement.

    3. Do not confuse the prime number theorem with the Riemann Hypothesis

    The classical proof of the prime number theorem is closely related to the fact that the zeta function has no zeros on the line whose real part equals 1. The Riemann Hypothesis requires all nontrivial zeros to lie on the critical line, which is a substantially stronger constraint.

    The difference can be understood as follows:

    • The prime number theorem describes the main growth trend of the number of primes.
    • The Riemann Hypothesis further restricts the error in approximations to the prime-counting function.
    • A proof of the main trend does not mean that the finest fluctuations have already been controlled.

    In common formulations, the Riemann Hypothesis implies a specific error bound for the prime-counting function relative to the logarithmic integral approximation. This is not “directly predicting every prime exactly”; it is a rigorous order-of-magnitude control of the overall deviation.

    3. Why AI May Find Flaws Faster

    1. Finding a fatal error usually does not require solving the whole problem

    A complete proof must establish a valid chain of derivation from assumptions to conclusion. Refuting a candidate proof, by contrast, may require only pointing out one irreparable step.

    Common problems include:

    • Generalizing a conclusion that holds only in finitely many cases to the infinite case;
    • Exchanging limits, sums, and integrals without satisfying the required conditions;
    • Treating a property that holds locally as a global property;
    • Implicitly using the proposition to be proved in the derivation;
    • Failing to justify that a denominator is nonzero, a function is integrable, or a series converges;
    • Citing a theorem while omitting a key premise.

    Thus, “years of research followed by a problem pointed out in a short time” is not a logical contradiction. The time spent on research and whether a proof is valid are two different dimensions.

    2. AI is good at generating leads for checking

    AI can help reviewers extract the structure of a long proof, break the argument into definitions, lemmas, dependency conditions, and final conclusions, and then question high-risk steps.

    For example, when encountering an operation that exchanges a sum and an integral, one can first check whether there is an absolute convergence condition, a suitable controlling function, or some other theorem premise that permits the exchange of order.

    The essence of this assistance is narrowing the scope of review, not automatically issuing a correct verdict. AI can also misread notation, omit assumptions, or even misclassify a valid derivation as an error.

    A reliable flaw report should contain at least three elements:

    1. It should clearly identify the problematic proposition or derivation step.
    2. It should explain which conditions required by that step remain unsatisfied.
    3. It should provide a counterexample, a contradiction, or an argument that can be independently reviewed.

    “This seems imprecise” is not enough to constitute an effective refutation.

    4. What Formal Verification Actually Verifies

    1. Turning natural-language arguments into precise objects

    Natural language is suitable for communicating mathematical ideas, but it omits many details considered obvious. A formal proof requires definitions, premises, and reasoning steps to be expressed as objects that a checker can process.

    The basic process can be summarized as:

    mathematical proposition → precise definition → lemma dependencies → proof construction → kernel checking.

    AI can participate in the middle stages of proof search and construction, but final acceptance should be determined by a rule-defined checking mechanism, not by the model’s own declaration.

    2. A successful check does not mean all real-world meanings are verified

    A formal check usually means that, under a given logical system, definitions, and dependency conditions, the target proposition has a valid proof.

    Several boundaries still need to be checked:

    First, does the formal proposition faithfully express the original problem?
    If the target is mistakenly written as a weaker proposition, then even a completely correct proof cannot justify announcing that the original problem has been solved.

    Second, have unproved assumptions been mixed into the dependencies?
    If the core difficulty is introduced as a new assumption, the result is only a conditional conclusion.

    Third, is the checking process complete?
    One should confirm that no placeholder content skipping the check was used, and that external computational results were not treated directly as facts without appropriate certification.

    Fourth, is the verification environment trustworthy?
    The checker implementation, dependency versions, build process, and runtime environment all affect reproducibility and auditability.

    Formal verification can significantly strengthen credibility, but it is not a universal guarantee independent of definitions, assumptions, and engineering environment.

    3. Code size is not a measure of proof strength

    A large proof codebase may contain automatically generated repetitive structures, expanded computations, or a large number of auxiliary lemmas. Therefore, the number of lines of code neither directly measures mathematical innovation nor independently proves that the conclusion is correct.

    More relevant indicators include:

    • The precise statement of the final theorem;
    • Dependence on axioms and external assumptions;
    • Whether the proof can be fully rechecked;
    • Whether key lemmas can be explained independently;
    • Transparency of build resources and failure behavior.

    For major results, machine checkability and human understandability should complement each other as much as possible.

    5. Building a Reliable Human-AI Proof Workflow

    Step 1: Fix the target and avoid silently changing the problem during the proof

    Before exploration begins, the research object, variable ranges, quantifier order, allowed existing conclusions, and final deliverables should be specified.

    For example, “holds for some finite range” is completely different from “holds for all natural numbers.” Similarly, “assuming a conjecture implies the conclusion” is not the same as proving that conclusion unconditionally.

    For broader conjectures, the relevant function classes, parameter ranges, and technical conditions must also be specified. One cannot claim a generalization merely because the original method appears similar.

    Step 2: Build a traceable lemma dependency graph

    Break a large proposition into multiple lemmas and record the definitions, theorems, and computational results on which each lemma depends. This helps a team:

    • Locate the genuinely difficult mathematical steps;
    • Identify circular reasoning;
    • Isolate unproved assumptions;
    • Determine the scope that must be rechecked after a local change.

    For developers, this resembles managing software module dependencies, but mathematical dependencies require stricter semantic consistency.

    Step 3: Create a feedback loop between generation and verification

    AI proposes candidate proofs, the checker returns a clear success or failure result, and researchers judge whether a failure comes from syntax, formal expression, or the mathematical approach itself.

    Feedback should not be limited to “passed” or “failed.” It should also record:

    • Unfinished subgoals;
    • Missing preconditions;
    • Lemmas and assumptions used;
    • Differences in the proposition before and after modification;
    • The environment version corresponding to the result.

    After repeated failed attempts, the team should return to the mathematical argument and reconsider the route rather than endlessly increasing the number of searches.

    Step 4: Independently reproduce and audit the critical path

    High-value proofs should be rebuilt in a clean environment wherever possible, avoiding dependence on undocumented local changes or old caches.

    If general infrastructure such as distributed computing, object storage, or task scheduling is used, a distinction should be made between “assisting the search process” and “the final trusted verification process.” Search can be complex and expensive, while the proof object finally submitted to the checker should be as clear, stable, and replayable as possible.

    Step 5: Deliver understandable explanatory materials

    Even if the final proof exists mainly in a machine-checkable form, natural-language explanations should be provided to describe the core idea, key innovations, main dependencies, and known limitations.

    Explanatory materials not only support communication; they also help other researchers check whether the formal proposition is accurate, understand which parts can be transferred to other problems, and identify possible conceptual deviations.

    6. What Development Teams Can Learn

    This kind of mathematical controversy has direct implications for intelligent programming, automated testing, and complex reasoning systems.

    First, generation and verification should have different responsibilities.
    Generative models are suitable for exploring candidate solutions, while independent checking mechanisms constrain acceptable results. A model’s claim that it has “already verified” something should not be treated as a verification record.

    Second, the coverage of verification capabilities must be clear.
    Unit tests can check only covered examples, static analysis can handle only problems within its modeling scope, and formal verification also depends on explicit specifications and assumptions. Different methods can be combined, but they cannot impersonate one another.

    Third, preserving the evidence chain matters more than pursuing a polished conclusion.
    Inputs, outputs, dependencies, environments, and failure results should be recorded so that later reviewers can replay key processes without relying on the memory of the original operator.

    Fourth, avoid driving evaluation with a single scale metric.
    The amount of generated text, runtime, number of candidate solutions, and lines of code are all process information. Genuine quality metrics should focus on whether the specification is correct, whether the evidence is complete, and whether the result can be reproduced.

    Conclusion: AI Changes the Mode of Exploration, Not the Standard of Correctness

    AI can broaden the search space of mathematical exploration and may significantly improve efficiency in organizing literature, proposing lemmas, and finding flaws. Formal methods provide an executable technical path for rigorous checking.

    But whether a candidate proof comes from long independent research or short-term human-AI collaboration, the evaluation standard should not change: the proposition must be stated accurately, assumptions must be public, derivations must be valid, and results must be reviewable.

    When facing news of a major breakthrough, the most worthwhile questions are not “Who was faster?” but “What was proved, what does it depend on, and can others verify it independently?” This is both a basic requirement of mathematical research and an important principle for building trustworthy intelligent systems.