AI-Assisted Theorem Proving: The Technical Logic Behind Solving Hard Math Problems

    This article examines how AI systems contribute to proving notoriously difficult mathematical conjectures, using the VP vs. VNP problem in algebraic complexity theory as the central example. It explains why lower-bound proofs resist automation, then breaks the approach into three technical layers: formal proof languages and state machines, symbolic reasoning with pruning and backtracking search, and the compute infrastructure needed for long proof chains. It also draws a clear line between a claimed proof and an accepted one, outlining kernel verification, assumption audits, and peer review, and closes with practical recommendations for developers.

    1. Background: Why Conjectures Like This Are So Hard to Prove

    In algebraic complexity theory, VP and VNP are two algebraic classes that describe computational feasibility. VP roughly corresponds to families of polynomials computable by arithmetic circuits whose size grows polynomially and whose degree is polynomially bounded. VNP corresponds to a class of counting-style polynomial families characterized by exponential summation, with the permanent as the canonical representative. Proving VP ≠ VNP means showing that the permanent has no polynomial-size arithmetic circuit. This is regarded as an extremely difficult lower-bound problem in the algebraic setting, on par with several long-standing separation problems in classical complexity theory.

    The difficulty comes down to three factors:

    • No general recipe for lower bounds. Upper bounds can be established by constructing an algorithm, but lower bounds require ruling out every possible construction — a universally quantified claim.
    • The search space explodes with scale. Exhaustive verification becomes infeasible with even a small increase in parameters, far beyond any realistic compute budget.
    • Proof chains are extremely long and tightly coupled. A slight error in a single lemma’s symbol substitution can invalidate dozens of subsequent derivation steps, making manual review prohibitively expensive.

    2. Technical Layer 1: Formal Languages and the Proof State Machine

    To involve a model in proving, the first step is transcribing natural-language mathematics into a machine-checkable formal language. In practice, this typically relies on the tactic-style scripts supported by interactive proof assistants, where each step produces an explicit change to the proof goal stack.

    Illustrative form (pseudocode, structure only):

    1. theorem VP_ne_VNP :
    2. forall (f : PolyFamily),
    3. in_VNP f -> not (exists C, ArithmeticCircuit C /\ size C = poly n /\ computes C f).
    4. proof
    5. intros f Hvnp [C [Hcirc Hsize Hcomp]].
    6. apply degree_lower_bound in Hvnp.
    7. have hdeg : degree f >= superpoly n := Hvnp.
    8. have hdeg' : degree f <= poly n := circuit_degree_bound C Hsize Hcomp.
    9. exact (contradiction hdeg hdeg').

    The key point: once formalized, the legitimacy of each step is decided by the kernel, not by the model’s confidence. This fundamentally isolates the hallucination problem from proof correctness.

    3. Technical Layer 2: Symbolic Reasoning and Search Strategy

    In tasks like this, the model’s real role is that of a strategy proposer, not the final arbiter. Common engineering combinations include:

    1. Candidate lemma generation: the model proposes several tactics or lemma instances based on the current goal stack.
    2. Pruning and ranking: candidates are ordered by heuristic features (goal similarity, historical success rate, dependency depth) so that low-cost branches are explored first.
    3. Backtracking search: a tree-search-style framework maintains node states and rolls back failed branches, preventing a single-point error from contaminating the whole search.
    4. Caching and reuse: proved lemmas are normalized, hashed, and cached for reuse across branches, significantly reducing repeated derivation.

    Pseudocode:

    1. def prove(state, budget):
    2. if state.is_closed: return state.proof
    3. if budget == 0: return None
    4. key = normalize(state)
    5. if key in cache: return cache[key]
    6. for tactic in rank(model.propose(state)):
    7. nxt = kernel.apply(state, tactic) # legitimacy guaranteed by the kernel
    8. if nxt is None: continue
    9. r = prove(nxt, budget - 1)
    10. if r: cache[key] = r; return r
    11. return None

    4. Technical Layer 3: Compute and Engineering Orchestration

    Long-chain proofs impose three requirements on infrastructure — high concurrency, interruptibility, and observability — which align closely with general cloud practices:

    • A container platform hosts stateless search workers that scale on demand and are rebuilt on task failure;
    • Object storage holds proof state snapshots and intermediate artifacts, enabling resume-from-checkpoint;
    • A message queue handles task distribution and result collection, smoothing out peaks and troughs;
    • Logging and monitoring/alerting services track success rate, average chain length, and rollback counts to catch search degradation early.

    The general capability categories offered by Baidu AI Cloud in such scenarios (containers, storage, queues, logging, monitoring) can serve as a reference architecture; actual selection should depend on your own scale and compliance requirements.

    5. How Trustworthy Is the Conclusion: A Claimed Proof Is Not an Accepted One

    The boundary between engineering and academia must be emphasized: a model outputting “proved” is only a candidate result. A trustworthy conclusion requires three layers of filtering:

    1. Kernel verification passes: the formal script has no unclosed goals and no extra axiom assumptions;
    2. Assumption audit: check whether a strong assumption equivalent to the goal has been quietly introduced — the most common hidden loophole;
    3. Peer review and formal archival: domain experts review whether the modeling faithfully reflects the original mathematical proposition.

    The third point is especially critical — formalization can only guarantee that “the reasoning from assumptions to conclusion is sound”; it cannot guarantee that “the assumptions faithfully capture the original problem.” Modeling bias is the real risk source in this kind of work.

    6. Practical Advice for Developers

    • Fully decouple “generation” from “verification”; never let the model prove itself at any stage;
    • Formalize small-scale special cases first, get the loop working end to end, then scale up;
    • Maintain a versioned assumption list and diff the assumption set on every proof change;
    • Pin the environment with reproducible container images so results can be re-run by third parties.

    The value of this methodology extends beyond mathematics: the combination of formal modeling + search + rigorous verification applies equally to protocol verification, compiler correctness, and distributed-system invariant checking.