Multi-Agent Collaboration for Mathematical Proofs: From Generation to Verification

    This article explores how to establish a trustworthy validation mechanism for complex technical outputs generated by AI, using a multi-agent mathematical proof case as an example. It details the limitations of model self-review and proposes a four-role collaboration framework consisting of a task definer, proof constructor, independent reviewer, and verifier. Furthermore, it outlines strategies for organizing auditable dependency graphs, managing formal verification, and handling historical materials. The methodology is also adapted for software development to help teams shift from rapid generation to evidence-driven delivery.

    1. The Emergence of Long Proofs is Only the Starting Point

    The original material describes a mathematical research attempt: a problem that had previously failed through multiple rounds of solving attempts was taken on by a new model, which generated a compiled proof manuscript of 43 pages in approximately 103 minutes. The researchers originally asked the model to handle one conjecture, but it submitted a complete derivation involving three conjectures. Subsequently, other agents participated in the review, and the proof entered the formalization stage.

    These time and page metrics are case-specific information from the original narrative and cannot be directly used as a universal benchmark for model capabilities. The specific definition of the problem, operating conditions, complete derivation, and final formalized results were not fully elaborated in the material. Therefore, it cannot be asserted that the relevant conjectures have been rigorously solved.

    However, this case does raise a question worth the attention of developers and research teams:

    When a generation system delivers what appears to be a complete technical output, how should the team establish a trustworthy acceptance mechanism?

    For mathematical proofs, the answer is not to “ask again if it is correct”; for software development, it is not to have the model add a quick “check for issues” in the original conversation. A more reliable approach is to separate generation, review, and verification into different stages, using different evidence to support conclusions at different levels.

    2. Why Generators Should Not Be the Sole Reviewers

    Having the same model check its own output offers advantages such as low cost, complete context, and easy modification. It is suitable for discovering symbolic inconsistencies, obvious calculation errors, and local omissions, but it should not bear the final correctness judgment.

    2.1 Previous Reasoning May Continue to Influence the Review

    When constructing a proof, the generator has already formed an explanatory path. When subsequently asked to self-review, the model may reorganize its language along this path rather than actively looking for conflicting facts.

    For example, a certain step in the proof assumes by default that a function has sufficient regularity. If the model accepted this default condition during the generation phase, it may continue to use it during the review, ultimately mistaking “an unstated assumption” for “details that can be filled in later.”

    This does not mean the model is inherently incapable of self-review, but it shows that: self-review and independent review provide different types of evidence and cannot replace each other.

    2.2 Length and Professional Expression Can Easily Create a Sense of Credibility

    Long proofs typically contain definitions, lemmas, formulas, and appendices, formally resembling mature papers. However, these characteristics only indicate that the manuscript is well-organized, not that the logical chain holds.

    A proof might interweave a decisive error among numerous correct local derivations, such as:

    • Directly generalizing a conclusion that only holds for finite scales to limit cases;
    • Exchanging integrals, sums, or limits without verifying conditions;
    • Mistaking a parameter-dependent constant for a uniform constant;
    • Using a conclusion equivalent to the target theorem when proving a key lemma;
    • Quietly strengthening “there exists some object” to “there exists an object satisfying additional constraints.”

    These issues often lie not on the surface of the text, but within dependency relationships and quantifier structures.

    2.3 Multiple Models Agreeing Does Not Equal a Valid Mathematical Proof

    Introducing multiple reviewers can increase the chances of finding errors, but consensus cannot simply be treated as evidence of correctness. Different models may share similar training materials, reasoning habits, or blind spots, and may simultaneously accept a theorem that seems common but is actually inapplicable.

    Therefore, the key to improving credibility is not the number of reviewers, but whether the review perspectives are complementary, whether the basis is traceable, and whether critical steps can undergo more rigorous inspection.

    3. Establishing Four Roles Instead of Stacking Multiple Chat Windows

    The original material mentioned a division of labor table containing four roles but did not provide the complete content. The following is a general design oriented towards R&D practices, not a restatement of the specific items in that table.

    3.1 Task Definer: Clarifying What Exactly Needs to be Proven

    This role is usually assumed by researchers or technical leads. Responsibilities include organizing background, fixing definitions, listing known results, clarifying objectives, and defining acceptance criteria.

    Assuming the research task contains three conjectures, labeled A, B, and C. The task specification should clarify:

    • Which one currently must be proven;
    • Whether other conjectures can be used as known premises;
    • Which conclusions have not yet been confirmed;
    • What the parameter ranges and boundary cases are;
    • Which existing theorems can be cited;
    • Whether the final deliverable requires a textual proof or also a formalized proof.

    It is especially important to avoid writing “guesses that repeatedly appeared in historical attempts” as established facts. Otherwise, the generator might complete a beautiful derivation based on an incorrectly simplified problem.

    3.2 Proof Constructor: Responsible for Exploration and Delivering Candidate Solutions

    The constructor can propose multiple routes, break down auxiliary lemmas, and gradually form a complete proof.

    The deliverable should not only be a formatted manuscript, but also include:

    • A list of theorems and lemmas;
    • Assumptions used for each conclusion;
    • Key external theorems and their applicable conditions;
    • Steps that are not yet closed;
    • Differences from historically failed solutions;
    • High-risk areas suggested for priority review.

    If the constructor goes beyond the task scope and incidentally proves other conjectures, these results should be marked as extra candidate conclusions and accepted separately, rather than lowering the review intensity just because “more was completed.”

    3.3 Independent Reviewer: Looking for Gaps Sufficient to Overturn the Proof

    An independent reviewer should not accept a task description like “This is a completed proof, please confirm its correctness.” A better instruction is:

    Without presuming the conclusion holds, check whether each key derivation is supported by explicit assumptions. Prioritize looking for counterexamples, missing conditions, circular dependencies, and irreproducible steps.

    Different reviewers can divide the labor:

    • One category specifically checks definitions, quantifiers, and dependencies;
    • One category specifically checks estimates, convergence, and boundary conditions;
    • One attempts to construct counterexamples or degenerate cases;
    • One checks the feasibility of formal implementation.

    Review reports must point to specific locations, explaining what conditions were used, what conditions are missing, and which conclusion the defect affects. “Generally reasonable” is not sufficient as an acceptance opinion.

    3.4 Verifier and Adjudicator: Converting Opinions into Checkable Evidence

    This role is responsible for organizing formal verification, maintaining issue lists, and making the final judgment on the delivery. The human lead does not need to re-do all calculations word by word, but must understand the scope of key conclusions and the boundaries of verification evidence.

    When review opinions conflict, derivations and counterexamples should be compared, rather than voting by the number of supporters. A valid counterexample is sufficient to negate a universal proposition; multiple general approvals cannot offset a substantive logical gap.

    4. Organizing Proofs into Auditable Dependency Graphs

    Long manuscripts easily obscure the relationships between conclusions. Breaking the proof down into a dependency graph can expose circular reasoning and implicit premises earlier.

    A schematic structure is as follows:

    1. Basic Definitions and Assumptions
    2. ├── Auxiliary Conclusion 1
    3. │ └── Key Lemma
    4. └── Auxiliary Conclusion 2
    5. └── Main Theorem
    6. Key Lemma + Main Theorem -> Corollary

    Each node should at least record:

    1. Conclusion ID:
    2. Exact Proposition:
    3. Required Assumptions:
    4. Dependent Conclusions:
    5. Proof Location:
    6. Review Status:
    7. Pending Issues:

    The dependency graph must be updated synchronously with the actual proof. If an auxiliary lemma depends on the main theorem, and the main theorem uses this auxiliary lemma, the team needs to determine whether there is a legal stepwise induction or other independent structure; if not, it usually means circular reasoning.

    For parameterized conclusions, constant dependencies should also be clarified. For example, “there exists a constant such that the estimate holds” and “there exists a uniform constant applicable to all parameters” are not the same proposition. Dependency records can help reviewers discover such enhancements that are not easily perceived from the text.

    5. What Formal Verification Can and Cannot Solve

    Formal proof assistant systems require mathematical objects, assumptions, and inference rules to be expressed in a machine-checkable form. Compared to natural language review, they are better at discovering missing premises, type mismatches, and steps that cannot be derived from existing rules.

    However, “machine-checked and passed” also requires accurate interpretation.

    5.1 It Checks the Encoded Proposition

    If a researcher wants to prove a conclusion but adds overly strong assumptions during formalization, the system may still accept the proof. This only shows that the proposition with strengthened assumptions holds, not that the original problem has been solved.

    Therefore, acceptance must verify whether the natural language target is consistent with the formalized statement, paying special attention to quantifier order, parameter ranges, existential conditions, and object definitions.

    5.2 Verify Newly Added Assumptions and Unfinished Parts

    A complete delivery should explain whether additional axioms were introduced, whether placeholder proofs exist, and whether difficulties were shifted into unproven premises.

    When the system allows unfinished items to be retained under certain conditions, a strict distinction must be made between “the file can be processed” and “all conclusions have been proven.” Acceptance criteria should require that the target results contain no undisclosed proof gaps.

    5.3 Prioritize Formalizing Critical Bottlenecks

    Translating dozens of pages of text line by line from the very beginning may cause extensive rework. A more prudent sequence is:

    1. Fix core definitions and the final theorem;
    2. Check whether the formalized proposition faithfully expresses the research objective;
    3. Prioritize implementing the most critical and controversial lemmas;
    4. Confirm that the main proof route can be closed;
    5. Then supplement the remaining technical details and manuscript explanations.

    Formalization is not about adding a “certification label” to the generated result, but a continuous process of exposing and eliminating logical gaps.

    6. Managing Historical Materials to Avoid Failed Approaches Becoming False Premises

    The original case preserved documentation of multiple rounds of failed attempts. Such materials are highly valuable: they can record which methods do not work, which auxiliary conclusions have been established, and which obstacles repeatedly appear.

    However, directly handing all documents to a new agent also carries risks. Outdated definitions, erroneous lemmas, and contradictory derivations may be mixed together, affecting subsequent judgments.

    It is recommended to categorize historical materials into four types:

    • Verified Facts: Note the verification method and applicable conditions;
    • Candidate Conclusions: Not yet proven, cannot be used as default premises;
    • Failed Routes: Preserve the location and reason of failure;
    • Deprecated Versions: Used for traceability, do not participate in current derivations.

    Task specifications should prioritize providing a curated list of facts, rather than letting the generator guess which content is trustworthy from a large amount of old documents.

    7. Transferring the Method to Code and Enterprise R&D

    Mathematical proofs and software delivery share a similar structure: code is the implementation plan, tests and reviews are the evidence, and business owners are responsible for confirming whether the objectives have been correctly expressed.

    After generating code, independent reviewers can be arranged to check functional semantics, boundary inputs, security risks, concurrency behavior, and resource release respectively, followed by verification through compilation checks, automated testing, static analysis, and necessary runtime experiments.

    Here, three misconceptions should also be avoided:

    • All tests passing does not mean all inputs are correct;
    • Reviewers not finding problems does not mean problems do not exist;
    • The implementation matching the technical description does not mean the technical description matches the business requirements.

    For high-risk modifications, verification intensity should be increased. For example, permission checks need to verify denial paths, financial calculations need to check precision and rounding rules, and concurrency logic needs to cover race conditions. Acceptance evidence must match the risk type, rather than uniformly requiring “running a few more tests.”

    The team should also retain version correspondence: which version of the output received which round of review, which issues have been fixed, and whether the fixes introduced new changes. Once a proof or code is modified, previous conclusions cannot automatically cover the new version.

    8. Shifting from “Rapid Generation” to “Evidence-Driven Delivery”

    An experience of generating a long proof in a short time can demonstrate the potential of automating complex reasoning, but it cannot replace the rigorous inspection of results. What is truly worth reusing is a working method that connects problem definition, candidate generation, independent review, formal verification, and human adjudication.

    What the team ultimately needs to answer is not “how many pages the model wrote,” but:

    • Whether the objective was accurately expressed;
    • Whether key conclusions have a complete basis;
    • Whether the review discovered and closed substantive issues;
    • What the machine inspection covered;
    • Whether remaining uncertainties were explicitly disclosed;
    • Whether the final evidence corresponds to the currently delivered version.

    Generation is responsible for expanding the exploration space, review for exposing vulnerabilities, formal verification for checking inference rules, and humans for judging whether the problem and evidence match. Only by separating these responsibilities and reconnecting them through a traceable process can complex technical outputs move from “appearing credible” to “having a credible basis.”