AI-Assisted Formal Mathematical Proofs: Capabilities, Challenges, and Engineering Practices

    AI systems are increasingly credited with proving open mathematical problems, but the signal that matters most is whether the proof passes machine verification. This article explains why a formal, machine-checked proof is more trustworthy than a natural-language argument, reviews the algebraic-complexity backdrop of VP versus VNP, outlines the two roles AI plays in theorem proving, and walks through the practical challenges of reliability, scalability, and cost. It closes with engineering guidance for teams adopting an "AI proposes, kernel verifies" workflow, and a rational framework for judging claims of "AI solving major problems."

    Introduction: The Real Story Is “Verified by a Machine from Start to Finish”

    Recent work that drew wide attention showed an AI model producing a proof for an open problem in algebraic complexity, with the emphasis that the “entire proof passes machine verification.” Setting aside whether the specific result is ultimately accepted by the research community, the part most worth a developer’s or engineer’s attention is that last phrase—“passes machine verification.” It means the proof was not judged by human reviewers relying on experience, but was checked step by step by a formal proof system, with every step independently reviewable by the machine. Using this as a starting point, this article systematically reviews the technical landscape of AI entering mathematical proof: the problem background, the significance of machine verification, the role AI plays, and the challenges that must be faced when putting it into practice.

    Background: VP vs. VNP—the “P vs. NP” of Algebraic Complexity

    In computational complexity theory, whether P equals NP is one of the central open problems of computer science. In the branch of algebraic complexity, there is a structurally similar but more “arithmetical” counterpart.

    In the late 1970s, researchers introduced two algebraic complexity classes:

    • VP: roughly, the families of polynomials computable by arithmetic circuits of polynomial size and polynomial degree, analogous in status to P;
    • VNP: roughly, the families of polynomials expressible as an exponential sum (summation) over a VP-class polynomial family, analogous in status to NP.

    Deciding whether VP equals VNP is regarded as the algebraic counterpart of P vs. NP. A frequently cited reference point is that determinant-family problems are considered to fall on the “easier” side, while the permanent is considered to sit on the “hard” side. Therefore, if one could rigorously prove “VP ≠ VNP over any field,” that would amount to establishing a clear difficulty separation within the algebraic framework. This is exactly why such results stir so much interest—they don’t just solve a single problem, they may redraw the boundary between “efficiently computable” and “inherently hard.”

    Why “Passes Machine Verification” Matters More Than “Produced a Proof”

    Mathematical proofs are among the highest achievements of human intellect, but errors are not rare in history; many conclusions that were “proved” for years were later overturned. Human review has inherent limitations: reviewers have limited time, proofs can run to hundreds of pages, and cross-domain symbolic reasoning is easy to overlook.

    The value of formal verification lies precisely here. It relies on interactive theorem provers (a class of software systems based on dependent type theory or higher-order logic) to break a proof down into a series of inference steps that a kernel can check one by one. There is a key design principle here: the system kernel (trusted kernel) is small and simple enough that its correctness can be independently reviewed; no matter how complex the proof above it is, or who generated it, it must ultimately “ground out” in basic rules the kernel can verify. This is the idea of the “trusted small kernel.”

    So the signal that “passes machine verification” sends is this: the trustworthiness of the proof no longer depends on someone’s reputation, but on a public, reviewable checking process. This also explains why machine verification is so critical when AI is involved in proving—it turns the question “did the AI really reason correctly” from a subjective judgment into an objective, measurable one.

    Two Roles AI Plays in Mathematical Proof

    When you introduce AI into the proof process, it typically plays one of two roles; understanding the division of labor between them matters for judging the quality of a result.

    The first is the “conjecturer and constructor.” AI can extract patterns from large amounts of data, examples, or existing theorems, and propose propositions worth proving, guess key lemmas, or construct proof approaches that might work. Its output is a “candidate” whose correctness still needs to be checked.

    The second is the “proof searcher and strategy generator.” Within a fixed formal framework, proving can be viewed as finding a path through an enormous inference tree. Here AI’s job is to efficiently propose “what the next step should be”—for example, generating an intermediate lemma, choosing a transformation, or invoking a known theorem.

    Below is illustrative pseudocode showing the “AI proposes strategy + proof kernel acts as referee” collaboration loop:

    1. def prove_with_assist(goal, search_budget):
    2. # goal: the formal proposition to be proved
    3. # search_budget: upper bound on search steps/compute budget
    4. for step in range(search_budget):
    5. tactics = model.propose(goal) # AI proposes candidate tactics
    6. for t in tactics:
    7. next_state = kernel.apply(t, goal) # kernel verifies each tactic's legality step by step
    8. if next_state is None:
    9. continue # tactic is illegal, discard it directly
    10. if kernel.is_solved(next_state):
    11. return kernel.certificate() # return a proof object that can be independently checked
    12. goal = next_state
    13. break
    14. return None # budget exhausted without closing the goal

    The key to this code lies in kernel.apply and kernel.is_solved: no matter how clever the AI is, it can only propose candidates, and any illegal step of reasoning is rejected on the spot by the kernel. This fundamentally suppresses the risk of reasoning that “looks sound but is actually wrong.”

    Reliability, Scalability, and Cost: Three Challenges

    Even with machine verification as an “insurance policy,” AI-assisted proving still faces real-world challenges.

    1. The barrier of formalization itself. Translating natural-language mathematics into a machine-checkable formal language is itself time-consuming and requires domain expertise. The coverage of the formalization library directly determines how far the AI can go—much reasoning depends on lemmas already deposited in the library, and the more complete the library, the more “room to maneuver” the AI has.
    2. Explosion of the search space. Theorem proving is essentially finding a path in a state space that is exponentially large; with a limited compute budget, it is easy to get stuck exploring locally and miss the actual proof. How to balance “broad exploration” against “deep convergence” is a core engineering problem.
    3. Attribution and reproducibility. Once AI is involved, you need to clearly record “which step was proposed by whom, based on which lemma, and how much budget it consumed,” so that results can be reproduced and audited. This is both a requirement of academic integrity and a precondition for engineering trustworthiness.

    There is also something to be clear-eyed about: AI may “invent” a nonexistent lemma or incorrectly cite some theorem (so-called hallucination). The good news is that under a strict formal framework, such errors are almost certainly caught by the kernel—but only if you actually put it into a verifiable closed loop, rather than stopping at the “natural-language argument” stage.

    Engineering Takeaways for Developers

    If you want to bring “AI + formal verification” into your project, the following practices are worth borrowing:

    • Keep a human in the loop. AI handles proposing hypotheses, exploring approaches, and drafting, while human experts set goals, review the formalization modeling, and sign off on key steps.
    • Modularize and accumulate lemmas. Break a large goal into small lemmas, formalize them incrementally, and deposit them into a reusable library. This both lowers the difficulty of any single proof and gives the AI’s search “footholds.”
    • Bring verification into continuous integration. Much like automated tests for code, you can configure a “verify on commit” pipeline for proofs, where any change must pass kernel re-checking before it can be merged.
    • Ensure reproducibility through observability. Fully record search logs, budget consumption, and intermediate states to make results easy to trace and collaborate on.
    • Support large-scale search with elastic compute. Proof search is often compute-intensive and well suited to elastically scaling container platforms paired with GPU compute, using object storage to persist proofs and datasets, and logging and monitoring services to track task status. On platforms such as Baidu AI Cloud, these general capabilities (elastic compute, container orchestration, object storage, and logging and monitoring) can serve as infrastructure options for hosting such workloads.

    It is worth emphasizing that no matter how strong the underlying compute is, the trustworthy boundary of formal verification is always determined by “the correctness of the kernel,” not by compute or model size.

    A Rational View: The Value of a Result Depends on Its Verifiability

    Back to the result at the beginning. For any news of “AI cracking a major mathematical problem,” the rational and professional attitude is:

    1. First ask “is it machine-verified,” then ask “what is the conclusion.” A verifiable formal proof is far more trustworthy than a claim backed only by human argument.
    2. Wait for independent verification and peer review. Even if the kernel check passes, confirm whether the formalization modeling faithfully reflects the original proposition and whether it introduced any extra assumptions.
    3. Focus on the method, not the hype. What is genuinely valuable in the long term is the paradigm of “AI proposes strategy + machine acts as referee,” along with the formalization libraries and toolchains that accumulate around it.

    In summary, AI is moving mathematical proof from a “closed activity of individual genius” toward an open paradigm of “human-machine collaboration and machine re-checking.” Its significance is not that it draws conclusions for humans, but that it makes every conclusion more verifiable. For technical teams, understanding the capability boundaries of this paradigm is far more valuable in the long run than chasing any single hotspot.