Multi-Agent Proof Pipeline: A Practical Guide to Roles, Review, and Formal Verification
This article explains how to build a multi-agent collaboration pipeline for mathematical proofs, where generation and verification are handled by separate agents rather than a single model reviewing its own output. It covers four defined roles, file-based handoffs, how to draft reproducible prompts from prior attempts, combining same-source and cross-source review, and using formal verification as the final acceptance gate. Readers will find a reusable process document structure, a prompt template, a review output table, and a practical deployment checklist.
1. The Bottleneck Is Not Computation, It Is Sign-Off
A pattern that keeps showing up: models that are good at generating content are often bad at scrutinizing what they just generated. The reason is not mysterious. Generation and verification rely on different capability structures. Generation favors coverage and associative breadth; verification demands item-by-item checking and actively constructing counterexamples. Asking the same context and the same set of weights to do both is like asking a candidate to grade their own exam.
The tension in the original case sits right here. On the same problem, several agents took turns over multiple rounds without cracking it. Then a single agent with stronger reasoning, given only one prompt, returned a complete 43-page derivation in 103 minutes. Four more agents were then brought in for cross-review: two shared the same “lineage” as the generator, two did not. Finally, the result was translated into a formal language that a machine could check line by line.
What is worth copying is not “who won,” but the second half: once a proof exists, a separate team reviews it. The way mathematics gets organized is shifting from “one person writes it and submits” to “one party produces the proof, another audits it, and humans only pose the problem and make the call.”
2. Role Separation: Write the Pipeline Down as a Document
The reusable move is to fix the collaboration rules in a process document committed to the repository, defining four roles and their handoff artifacts:
- Project lead (human): sets the goal, approves each key proposition, reads the final version end to end, and holds the only sign-off authority.
- Problem setter: converges a vague research intent into a decidable proposition, and states the background, what is known, and where it is stuck.
- Generator: produces the proof only, and does not self-assess.
- Reviewer: performs falsification and error-finding only, does not rewrite the original proof, and outputs an issue list.
The key constraint is that handoff artifacts must be files. Verbal conclusions cannot be audited; files can. An illustrative directory convention:
/problem/statement.md # proposition, background, known blockers/attempts/ # records left by each failed round, never deleted/proof/final.md # delivered by the generator/review/ # independent issue lists from each reviewer/formal/ # formalization code and compiler logsPROCESS.md # roles, handoff artifacts, acceptance criteria
Failure records must be archived. In the original text, a folder held a stack of records left by earlier failed rounds. That is not clutter; it is the best source of context. It turns “what has already been tried and why it did not work” into input for the next round and prevents repeating the same mistakes.
3. Prompts Are Not Hand-Written: Let Context Grow Itself
One easily overlooked detail in the case: the prompt was not written by the project lead. Another agent drafted it first, given the background and the blockers, and a human then confirmed it. This points to a more engineering-driven way of constructing prompts: treat a prompt as a compilable artifact, not as inspiration.
A usable template structure:
Background: domain, notation conventions, existing resultsGoal: the proposition to prove (decidable, unambiguous)Known blockers: paths attempted + reasons for failure (from attempts/)Constraints: no skipped steps, no citing unproven lemmasDeliverable: complete derivation + list of key lemmas
Three practical points: the proposition must be decidable; blockers must be specific about which step fails; the deliverable must include a lemma dependency list so reviewers can follow the trail.
4. Cross-Review: Pair Same-Source Self-Check With Cross-Source Audit
The value of review comes from independence. Same-source agents tend to reproduce the blind spots present when the proof was generated, while cross-source agents are more likely to raise structural objections. The safer combination is half same-source and half cross-source, with a unified output format:
| Review item | Requirement |
|---|---|
| Location | Point to a specific page, paragraph, or equation number |
| Type | Logical leap, missing citation, boundary omission, notation conflict |
| Severity | Blocking / needs clarification / suggestion |
| Verdict | Pass, conditional pass, fail |
Only blocking-level issues are sent back to the generator, and when they are, the original review checklist must be attached; verbal paraphrase is not allowed. Conditional-pass items are adjudicated one by one by the project lead.
5. Formalization: Turn “Looks Right” Into “The Machine Says Right”
The ceiling of natural-language review is human attention; the ceiling of formal verification is logic itself. Translating a proof into a formal language that can be checked line by line means the compiler rejects any skipped step. This is the hardest acceptance standard available. Engineering recommendations:
- Formalize the core lemmas first, then the main theorem, to avoid rolling everything out at once and triggering an avalanche of errors.
- Keep the compiler logs; an error is evidence.
- After formalization passes, backfill the human-readable version so the human-readable draft and the machine-checked draft stay from the same source.
This is isomorphic to practice in software engineering: review reduces defect density, while type checking and testing block defects before merge. Neither can substitute for the other.
6. Deployment Checklist
- Write the process into a document under version control, so roles and acceptance criteria are queryable.
- Separate generation from review; reviewers must not modify the original draft.
- Append to failure records and never delete them; they serve as context for the next round.
- Have agents draft prompts and humans confirm them, ensuring reproducibility.
- Keep review output structured; blocking-level issues must be returned in writing.
- Use a passing formalization compile as the final acceptance gate.
- Humans keep only two things: posing the problem and making the call.
The essence of this pipeline is converting an untrusted single-shot generation into an auditable, reproducible, handoff-ready engineering asset. As generation capability keeps improving, what becomes genuinely scarce is verification capability. Whoever turns “review” into a standard process step can reliably convert occasional impressive results into deliverable, deterministic output.
