Prompt Engineering for Multi-Agent Math Conjecture Solving: A Technical Breakdown

    This article analyzes the prompt engineering behind a multi-agent system that generated a proof for an open graph theory conjecture. It explains why open problems are difficult for large language models, breaks down the reusable prompt design into six modules, and outlines a layered architecture for building similar systems. Readers will learn how to define problem boundaries, reduce model avoidance behavior, coordinate parallel sub-agents, and apply cross-checking and formal verification before treating any output as correct.

    1. What Happened: A High-Intensity Automated Reasoning Experiment

    In July 2026, a research team publicly reported that its newly released large model capability had generated a complete proof for a long-standing open conjecture in graph theory in under an hour. The system coordinated dozens of parallel sub-agents, and the team published both the proof document and the full set of prompts used to produce it. The result triggered broad discussion in developer communities. As of now, however, the proof has neither passed peer review nor completed formal verification.

    The focus of this article is not the “stunning result” itself, but the transferable engineering method behind it: how to turn an open math problem into a task a large model can execute, how to use multi-agent coordination to broaden the search, and how to grade the trustworthiness of generated output through engineering means.

    The conjecture in question belongs to the class of cycle double cover problems. In plain terms, it asks whether every bridgeless graph admits a set of cycles such that every edge is covered by exactly two cycles. Two mathematicians independently proposed it in the 1970s, and no general conclusion has been reached in the more than fifty years since. Problems of this type share a common trait: the statement is extremely simple, but the search space grows rapidly with graph size. They are typical “easy to describe, hard to verify” problems.

    2. Why This Kind of Task Is Especially Unfriendly to Large Models

    Large models exhibit three typical failure modes on open problems. Understanding them is a prerequisite for designing prompts.

    The first is premise substitution. The model tends to simplify the problem into a version it is more familiar with, for example treating a multigraph as a simple graph by default, and then producing a “proof” that only holds for a special case. Such output is often fluent and well-structured, which makes it highly misleading.

    The second is difficulty avoidance. When the model judges that a problem may be unsolvable or beyond its capability, it shifts to “explaining why the problem is hard” and outputs survey-style text instead of a constructive argument. This is not a lack of capability, but a side effect of the training objective to “avoid making false assertions” when applied to open problems.

    The third is pseudo-rigor. The model generates lemma numbering, case analysis, and boundary conditions that appear to follow mathematical writing conventions, yet key steps rely on circular reasoning or hidden assumptions. Without external checking, these flaws are extremely hard for non-expert readers to detect.

    3. Six Key Modules of the Prompt Design

    The published two-page prompt is extremely dense in information. It can be abstracted into six modules that form a directly reusable template.

    Module 1: Lock Down the Problem Boundary

    The prompt opens with a few lines that fix the definitions of the mathematical objects: the graph is finite, loopless, and undirected, and is a multigraph; parallel edges are allowed and are distinguishable from one another; two parallel edges form a special cycle of length two; disconnected graphs are also in scope; and the empty cover of the empty graph is considered valid.

    The value here is eliminating ambiguity. In engineering terms, this is equivalent to explicitly declaring the input domain and the valid output domain for the model, so that all subsequent reasoning is not built on silently substituted premises. In general tasks, this module corresponds to making the input-output contract explicit.

    A schematic structure looks like this:

    1. [Definition Block]
    2. Objects: <precise math/data object definitions>
    3. Allowed: <explicitly list permitted edge cases>
    4. Forbidden: <explicitly list default assumptions prone to misuse>
    5. Valid output: <formal description>

    Module 2: Plant an Existence Assumption

    The prompt contains one very short but critical constraint: assume that within the scope of this task, a complete affirmative proof does exist.

    The mechanism is to close off the “difficulty assessment” escape route. The model no longer needs to judge whether the problem is solvable; it only takes on the search responsibility. This technique transfers to engineering practice: when the reachability of a goal has been confirmed externally, explicitly telling the model “a solution exists, just construct it” can significantly reduce idle spinning and survey-style output.

    Module 3: Explicit Task Decomposition

    The overall proof is split into several sub-goals, such as structural reduction, key lemmas, constructive steps, and boundary case handling, with acceptance criteria defined for each sub-goal. The point of decomposition is to convert a large goal that cannot be verified as a whole into multiple small goals that can be checked locally.

    Module 4: Parallel Sub-Agent Scheduling

    Dozens of sub-agents work in parallel, each responsible for a different proof path or a different lemma attempt, while the main agent handles aggregation, deduplication, and conflict resolution. This essentially expands the search from single-chain reasoning to tree-shaped exploration, trading sampling diversity for coverage.

    Scheduling typically requires controlling three things: context isolation between sub-agents to prevent errors from propagating along the chain; a unified intermediate result format to enable mechanical merging; and budget limits to prevent exhausting compute on invalid paths.

    Module 5: Cross-Checking and Adversarial Review

    An independent reviewer role is introduced at the aggregation stage, dedicated to finding circular reasoning, unproven assertions, and missed boundary cases. In engineering terms, a role separation strategy can be adopted: the generator does not also serve as the reviewer, and the reviewer only outputs a list of problems rather than rewriting the proof.

    Module 6: Formal Verification Loop

    The natural language proof is transcribed into a formal language and checked line by line by a theorem prover. This is currently the only means of upgrading “looks correct” to “is correct.” Without this step, any conclusion should be treated as a draft pending verification.

    4. Engineering Implementation Recommendations

    To reproduce similar capability in your own system, a layered design can be referenced. The model layer handles reasoning and generation; the orchestration layer handles task decomposition, parallel scheduling, and result merging; the verification layer handles formal conversion and automated checking; and the observability layer records the path, elapsed time, and failure reason of each attempt through logging services and monitoring alerts, which facilitates later root-cause analysis. Intermediate artifacts are best stored in object storage, a message queue is used for distributing subtasks and collecting results, and a container platform hosts the parallel stateless execution units.

    For quality assessment, three levels of labels are recommended: draft, passed automated checks, and passed formal verification. The three should be strictly distinguished in external communication, to avoid treating generation speed as evidence of correctness.

    5. Conclusion

    The real value of this event lies not in the narrative of “completing a proof in one hour,” but in the fact that it fully demonstrates a method for engineering open problems: first define the boundary clearly, then use an existence assumption to eliminate the avoidance tendency, and then converge layer by layer through decomposition, parallelism, adversarial review, and formal verification. For developers, what is reusable is this process, not any single result. Keeping the conclusion open until formal verification is complete is a sign of sound technical judgment.