AI Mathematical Proof Pipelines: Division of Labor Behind a 103-Minute, 43-Page Proof

    This article examines how to organize a multi-agent pipeline for solving hard mathematical problems, based on a case where one model produced a 43-page proof in 103 minutes and four heterogeneous agents then reviewed it. It explains why self-review by the same model instance fails, defines four roles with single-point draft writes, shows how to write handoff prompts, how to structure heterogeneous review output, how formal verification acts as the final arbiter, and how to reuse failure artifacts and enforce auditable governance.

    Before You Merge to Main, Get a Second Pair of Eyes

    Many developers have this habit: let an AI coding tool finish a piece of code, then follow up in the same conversation with “check this for bugs.” The model replies “no obvious issues found,” and the code gets merged straight into main. The move looks smooth in a demo but is risky in engineering, because the generator and the reviewer share the same context, the same biases, and the same blind spots. The reason it found nothing is likely that it shares the same blindness as the “self” that wrote the code.

    A recent push on a hard problem in probability theory and statistical physics ran that habit in reverse. The problem had already been attempted by wave after wave of agents without success. A newly connected model took only 103 minutes and returned a complete 43-page proof. Four additional agents then came in to review it: two from the same technical lineage and two from a different one, forming a heterogeneous cross-check. Those 43 pages are now being translated into a formal language that a machine can check line by line.

    What is actually worth copying is not “who won,” but the half-sentence added afterward: once the proof exists, bring in another batch of agents to check whether it is correct. Doing mathematics starts to look like staffing a team — one shop produces the proof, another audits it, and humans only pose the problem and make the call.

    1. Problem Framing: Why Self-Review Does Not Hold Up in Engineering

    Handing both generation and review to the same model instance trips three traps at once.

    The first is context contamination. The reviewer reads not only the artifact under review but also every trace of the generator’s self-persuasion: abandoned branches, lemmas that were forced into shape, boundary cases silently assumed true. It will continue to believe along that line of reasoning.

    The second is objective misalignment. The generation phase rewards “looks complete, can keep going,” while the review phase requires “actively hunt for counterexamples, actively attack the weakest link.” The same weights and the same prompting style can hardly switch between those two personas within a single round.

    The third is error correlation. Models from the same lineage share highly overlapping blind spots for certain classes of traps: circular reasoning, swapped quantifier order, exchanging limits and summation, ignored measure-zero sets, inverted constant dependencies. Ask it to self-check and it checks what it already believes.

    Hence the first actionable engineering principle: the generator and the reviewer must be heterogeneous, and the reviewer must not inherit the generator’s reasoning drafts — it receives only the statement of the proposition and the body of the proof.

    2. Pipeline Overview: Four Roles and One Canonical Draft

    A reusable process can be abstracted into four roles, with the core constraint being single-point writes to the canonical draft.

    • Project lead (human): sets the goal, approves each important proposition, reads the final text part by part, and breaks ties when there is conflict.
    • Proposer agent: produces candidate proofs only, and never edits the canonical draft.
    • Editor agent: the only role allowed to modify the canonical draft; merges content that has passed review, unifies notation, and removes duplication.
    • Reviewer agents (multiple, heterogeneous): attack and verify only, output issue lists, and never write proofs.

    Three supporting rules:

    1. Single-point writes to the canonical draft. Except for the editor role, no agent may modify the final text directly; they may only submit patch suggestions and issue tickets.
    2. Review is isolated from generation. Reviewers cannot see the generator’s reasoning drafts or failure logs, so they cannot be “persuaded.”
    3. Conclusions must be mechanically verifiable. A natural-language proof is only an intermediate state; the end state must be a formal language that can be checked line by line, with a compiler deciding pass or fail.

    A schematic of roles and state transitions (pseudocode, expressing the flow only, not bound to any specific product interface):

    1. state = { goal, lemmas_approved[], draft, review_tickets[], formal_status }
    2. while not state.done:
    3. cand = proposer.solve(state.goal, context=state.approved_lemmas) # no access to draft history
    4. tickets = [reviewer_i.attack(cand) for reviewer_i in heterogeneous_reviewers]
    5. if all_pass(tickets):
    6. state.draft = editor.merge(state.draft, cand) # single write point
    7. state.formal_status = formalizer.translate_and_check(state.draft)
    8. else:
    9. state.review_tickets += dedup(tickets) # failure assets go into the library

    3. Prompts Are Handoff Documents, Not Inspiration

    In that push, the proposer’s prompt was not written by hand. It was first drafted by another general-purpose conversational model, given three things: background on the problem, known equivalent transformations, and where things were stuck. This step is often underestimated: the quality ceiling of a prompt depends on whether the background information is compressed losslessly.

    A qualified handoff prompt contains at least five parts:

    1. A precise statement of the target proposition, including all quantifiers, parameter ranges, and normalization conventions.
    2. A list of already-accepted lemmas with their proof highlights, to avoid duplicated work.
    3. Explicit failure boundaries: which paths have been tried, where they broke, and the specific form of the break point.
    4. Allowed resources and the formalization target: whether a compilable formal file is required, plus target page count and notation conventions.
    5. An output contract: proof skeleton first, then each lemma expanded in turn, and finally a separate list of “weak points likely to be challenged.”

    Point 5 matters especially. Having the generator list its own weak points makes the reviewer’s attack surface explicit in advance and can significantly shorten review rounds.

    4. Heterogeneous Review: Turning Shared Blind Spots into a Coverable Set

    The design goal of the review stage is to make the union of the reviewers’ blind spots as small as possible. In practice there are three orthogonal dimensions of heterogeneity.

    • Lineage heterogeneity: cross-checking models built on different technical routes, reducing error correlation.
    • Role heterogeneity: one looks for counterexamples, one verifies that each cited step holds, one focuses specifically on limits, measure, boundary behavior, and constant dependencies.
    • Tier heterogeneity: switching reasoning tiers or sampling temperatures within the same lineage, trading multiple independent attempts for coverage.

    Review output must be a structured issue ticket, not a paragraph of commentary:

    1. {
    2. "target": "Lemma 3.2",
    3. "type": "quantifier_order | hidden_assumption | divergent_case | citation_invalid",
    4. "severity": "blocker | major | minor",
    5. "evidence": "a concrete instance where the inequality reverses at n=2",
    6. "suggested_fix": "add the applicability conditions for monotone convergence"
    7. }

    With structured output, deduplication, severity assignment, dispatch, and regression verification can all be automated. If the same issue keeps recurring, the generation-side prompt or lemma library needs fixing, rather than adding more review rounds.

    5. Formal Verification: The Only Referee That Does Not Lie

    However strict natural-language review is, it is only credible in a probabilistic sense. The real closed loop is translating the proof into a formal proof that can be checked line by line, with the kernel deciding whether each cited theorem exists, whether types match, and whether quantifier instantiation is legal. If a human writes one step wrong, it will not let it pass.

    Going from 43 pages of natural language to a compilable formalization usually takes four steps: definition alignment (translating “sufficiently small” and “almost everywhere” from the analysis into precise objects), lemma sinking (breaking long stretches of reasoning into reusable small lemmas), tacticization (replacing “obviously” with executable tactics), and dependency cleanup (removing unused assumptions and circular references). The output of this step exposes hidden gaps in the natural-language proof in reverse. This is also why “produce the proof first, then formalize” exposes problems more easily than “formalize while writing”: the former offers a complete structure to attack.

    In engineering terms, it is advisable to make formalization status a pipeline gate: a final draft that has not passed compilation may not enter the next round, and issue tickets must be closed to zero.

    6. Failure Assets: That Stack of Markdown Files Is the Real Asset

    A large stack of notes left by earlier failed rounds sits in the folders. This is not garbage; it is the most expensive asset. It is worth structuring into three libraries:

    • Counterexample library: paths already disproved, with concrete constructions, preventing later rounds from stepping on the same landmines.
    • Lemma library: small conclusions that have passed review, with formalization status and a dependency graph attached.
    • Break-point library: the specific steps that got stuck and the external conditions required, which directly form part 3 of the next round’s prompt.

    At the start of each new task, do retrieval-based assembly first: pull relevant entries from the three libraries and assemble the prompt. This turns “thinking from zero” into “advancing along known boundaries,” and is one of the main sources of the reduction that brought the run down to 103 minutes.

    7. Governance and Auditability: Humans Do Only Two Things

    The bottleneck in running agents at scale is not compute but review bandwidth. Four executable governance rules:

    1. Proposition-level approval: important lemmas may be cited by downstream steps only after a human signs off, preventing errors from being amplified downstream.
    2. Single-point merge: only the editor role can change the canonical draft, all changes are logged, and everything can be rolled back.
    3. Gated acceptance: a formalization compile pass and zero open issue tickets, both conditions met, are required before something counts as final.
    4. Cost and quota isolation: separate budgets and concurrency limits for the proposer, reviewers, and formalization, with logs and metrics collected centrally into a logging service and a monitoring and alerting system, and artifacts written to object storage for traceability.

    On the cloud, this architecture is vendor-neutral: a container platform hosts the stateless agent runtimes, a message queue handles task dispatch and backpressure, object storage keeps prompts, drafts, and formalization artifacts, logging and monitoring provide observability, and keys and permissions are managed by a unified identity system. The general capability categories Baidu AI Cloud offers for this kind of “multi-agent pipeline” scenario — containers, messaging, storage, logging and monitoring — are sufficient, with no dependency on any proprietary interface.

    Closing: Replace “Who Is Stronger” with “How It Is Organized”

    The transferable part of a 103-minute, 43-page result is not a model ranking but the organization: generation separated from review, single-point writes to the canonical draft, conclusions that must be mechanically verifiable, and structured reuse of failure experience. When the model writing the proof no longer reviews its own proof, the team’s role shifts from operator to problem-setter and decision-maker — and that half-sentence added afterward is worth copying more than the victory that came before it.