Multi-Agent Collaboration to Prove the Goldbach Conjecture: A Technical Engineering Path

    This article reframes multi-agent proof of the Goldbach Conjecture as a systems engineering problem rather than a question of agent count. It presents a five-layer pipeline (task decomposition, candidate generation, weighted selection, verification, merging), explains why generation can be parallel and redundant while verification must be serial and unique, and details key mechanisms such as machine-checkable proof skeletons, temperature and diversity separation, structured failure libraries, and dependency-closure-based conflict merging. It also gives a formula-based method for estimating required parallelism from DAG width and single-node pass rate, plus reproducibility and audit practices, common pitfalls, and a summary. Readers will learn how to turn an undecidable intuition search into a controllable, reproducible, and auditable workflow.

    1. Reframing the Problem: Why “How Many Agents Are Enough” Is an Engineering Question

    The original discussion focuses on how many agents need to participate. From a systems engineering perspective, however, agent count is not the independent variable. Four factors actually determine success: how prunable the search space is, whether intermediate representations are machine-checkable, the conflict rate among candidate proofs, and the latency of verification feedback. Agent count is merely a dependent variable of these four quantities.

    The formalization difficulty of the Goldbach Conjecture lies in the fact that the proposition itself is universally quantified (every even number greater than 2 can be written as the sum of two primes). Direct exhaustive search is infeasible, so it must rely on layered results from analytic number theory as stepping stones—for example, weak forms such as “1+3”, and the “1+1” conclusion under the assumption that the Generalized Riemann Hypothesis holds. A formal system only accepts finite derivations from axioms; it does not accept arguments that something is “probably true.” Therefore, any output of heuristic search must be rechecked by the proof kernel.

    This yields the first engineering principle: generation can be parallel and redundant; verification must be serial and unique.

    2. Overall Architecture: A Five-Layer Pipeline

    1. L1 Task Decomposition — split the main proposition into a lemma DAG
    2. L2 Candidate Generation — multiple agents produce proof drafts in parallel
    3. L3 Weighted Selection — one-step weighted switching to control the search budget
    4. L4 Verification — compilation and proof kernel checks, producing reproducible evidence
    5. L5 Merging — conflict detection, deduplication, dependency merging

    The output of L1 is a directed acyclic graph (DAG) whose nodes are lemmas and whose edges are dependencies. The value of the DAG is that it turns an “unsolvable universal proposition” into several “small goals that can be accepted independently,” and it makes the achievable parallelism emerge naturally: the width of the DAG is the theoretical maximum parallelism, not an agent count chosen arbitrarily.

    The “one-step weighted switch” in L3 is the core of cost control. It does not pursue a globally optimal allocation. Instead, it performs one local reallocation per scheduling cycle: it adds weight to strategies with a high recent pass rate, reduces weight for strategies that fail repeatedly, and the switch happens only once to avoid oscillation.

    1. def one_step_switch(scores, budget, alpha=0.7):
    2. # scores: recent-window pass rate of each strategy; budget: budget allocatable this round
    3. w = [alpha * s + (1 - alpha) / len(scores) for s in scores]
    4. total = sum(w)
    5. return [budget * x / total for x in w]

    3. Key Mechanisms

    1) Intermediate representation and verifiability. Asking agents to write complete proofs directly has a very low success rate. A more reliable approach is to require them to first produce a structured proof skeleton (lemma names, type signatures, dependency lists). Once the skeleton passes type checking, details can be filled in. Candidates rejected at the skeleton layer consume almost no downstream budget.

    2) Division of labor between temperature and diversity. The generation layer needs diversity; the verification layer needs determinism. In engineering terms, the two are decoupled: the generation side uses higher randomness to expand candidates, while the selection side scores with fixed rules, avoiding “the same error being sampled repeatedly.”

    3) Failure samples are the most valuable asset. Every compilation failure should be archived in a structured way as a “failure mode library” containing the error category, the triggering context, and whether the fix succeeded. In the next round, high-frequency failure modes are injected into the prompt as constraints. Improvements in pass rate usually come from here, not from adding agents.

    4) Conflict merging. Multiple agents may produce equivalent proofs that depend on different lemma sets. During merging, the proof with the smaller dependency closure wins; proofs with larger dependency closures are marked as redundant to prevent the DAG from bloating.

    4. How to Estimate the Required Number

    Do not ask “how many are needed.” Instead, work backward with the following formulas:

    1. Required parallelism ≈ (DAG width × average attempts per node) / budget cycle
    2. Average attempts per node ≈ 1 / single-attempt pass rate of a node

    If the single-attempt pass rate of a node in some layer is 10%, an average of 10 attempts is needed; with a DAG width of 20, roughly 200 candidate slots are needed per cycle. These 200 slots can be handled by 20 agents each running 10 rounds, or by 200 lightweight agents each running 1 round. The two are equivalent in total budget; the difference lies only in scheduling overhead and context reuse efficiency. Conclusion: the number should be determined by pass rate and DAG width, with redundancy kept at about 2–3x. Increasing it further only amplifies verification pressure.

    5. Reproducibility and Auditability: Engineering Support

    Formal proof projects fear “it only runs on one particular machine.” It is advisable to externalize all three types of artifacts: put proof source files and dependency lock files under version control; store build and check results in object storage with checksums retained; send scheduling and failure modes to a logging service, with monitoring and alerting thresholds set for sudden drops in pass rate and backlogs in the verification queue. Baidu AI Cloud’s container platform can host parallel generation tasks, object storage can preserve the evidence chain, logging and monitoring services handle observability, and a message queue can smooth out burst pressure on the verification layer—these are combinations of general-purpose capabilities and do not involve any proprietary interfaces.

    6. Common Pitfalls

    • Treating agent count as a capability metric while ignoring pass rate optimization;
    • Allowing the generation side to skip the skeleton layer, so the budget is consumed by invalid candidates;
    • Verification not isolated, so one failure contaminates the global state;
    • No dependency closure management, so the DAG grows out of control across iterations;
    • Keeping only successful artifacts while failure samples are lost, making the next round unable to converge.

    7. Summary

    The feasibility of using multi-agent collaboration to prove the Goldbach Conjecture does not depend on how many agents are piled up. It depends on whether an undecidable intuition search can be compressed into a controllable pipeline of “skeleton first, weighted switching, unique verification, and dependency merging.” First raise the single-node pass rate, then work backward from the DAG width to derive the required parallelism, and combine this with complete evidence retention and monitoring alerts. Only then does the collaboration process acquire the engineering properties of reproducibility and auditability.