Prompt Engineering for Multi-Agent Systems: Decomposing the Proof of a Complex Conjecture
This article examines the prompt architecture and multi-agent orchestration behind a system that produced a candidate proof of the Cycle Double Cover Conjecture. It breaks the approach into six prompt layers—boundary definition, existence assumption, decomposition, parallel execution, verification, and output—and explains how each layer reduces ambiguity and unproductive model behavior. The article also covers task isolation, result convergence, disagreement retention, budget control, and adversarial counterexample search, then outlines four practices transferable to software development and the generic cloud components needed to run such a pipeline.
1. The Real Problem: Not Faster Computation, but Tighter Constraints
When a multi-agent system claims to have proved a decades-old graph theory conjecture in a very short time, the technical community’s first reaction is usually amazement at the compute and model capability involved. From an engineering perspective, however, the reusable part is the process design: how to translate an open mathematical problem stated in natural language into a task graph that machines can execute reliably, run in parallel, and verify.
Some background first. The Cycle Double Cover Conjecture was proposed independently by two mathematicians in the 1970s. Its core statement is: for any bridgeless graph, does there exist a set of cycles such that every edge is covered by exactly two cycles? This is a typical existence problem in graph theory—it does not require constructing a unique solution, only proving that a solution must exist. The difficulty lies in the fact that the proof spans a large number of case classifications and structural inductions, which makes it naturally suited to being split across multiple execution units working in parallel.
This article therefore does not discuss any specific model or product. Instead, it abstracts a transferable methodology: prompt architecture for complex reasoning tasks and multi-agent orchestration.
2. The Six-Layer Structure of the Prompt
The original prompt is short, but its information density is high. Organized by function, it falls into six progressive layers.
2.1 Boundary Layer: Pin Down the Definitions
The first paragraph enumerates the boundaries of the mathematical object: the graph is finite, loop-free, and undirected, and it is a multigraph; parallel edges are allowed, and two parallel edges form a cycle of length two; disconnected graphs are equally valid, and the empty cover of the empty graph also counts as valid.
The engineering purpose is to eliminate ambiguity. Without explicit constraints, a large model defaults to the “simple graph” semantics that appear more frequently in its training corpus, and ultimately produces an argument that holds only for simple graphs—formally elegant, but invalid as a conclusion. The boundary layer should be written declaratively and enumerably:
Object definition:- Finite, loop-free, undirected, multigraph- Parallel edges count as distinct edges; two parallel edges form a cycle of length 2- Disconnected graphs allowed; empty cover of the empty graph allowedProhibited: switching to simple graph semantics without declaration
2.2 Existence Layer: Block the “It’s Hard” Escape Route
The second sentence is critical: within the scope of this task, assume that a complete affirmative proof exists.
Its function is not to supply mathematical information but to shift the model’s strategy distribution. Faced with an open problem, a model commonly degrades by first arguing why the problem is difficult, substituting a plausible hardness analysis for an actual construction. Once the existence assumption is added, the search objective changes from “judging feasibility” to “finding a feasible path,” and the proportion of unproductive output drops markedly. In essence, this turns open-ended generation into closed-form search.
2.3 Decomposition Layer: Cut the Proof into Parallel Subgoals
A single context cannot hold a complete proof. The workable approach is to have a planning role first output a list of lemmas and their dependencies, forming a directed acyclic graph, then dispatch them in batches of “no prerequisites” to multiple execution units. A schematic structure:
Goal: Existence of a cycle double cover├─ L1 Reduce to a minimal counterexample├─ L2 Edge-connectivity properties of the minimal counterexample├─ L3 Branch structure decomposition├─ L4 Inductive step└─ L5 Case merging and wrap-up
Each sub-unit receives only: the global definitions, the lemma it owns, the IDs of already-proved lemmas it may cite, and the output format constraints. This avoids context bloat and stops the units from duplicating each other’s work.
2.4 Parallel Layer: Engineering Details of Sub-Agent Orchestration
Parallelism is not simply copying a task several times. Four mechanisms must work together:
- Task isolation: sub-tasks communicate only through lemma IDs and do not share free-text reasoning, preventing error contamination from spreading.
- Result convergence: an aggregation role checks whether references between lemmas are closed and whether circular dependencies appear.
- Disagreement retention: keep multiple distinct proofs of the same lemma and let the verification stage vote or select the best, rather than discarding them early.
- Budget control: set step and length limits for each sub-task so that no single unit exhausts the overall resources.
2.5 Verification Layer: Self-Review Is Not Verification
Three things must be clearly distinguished: model self-checking, programmatic checking, and formal verification. The first can only surface gaps in presentation; the second can validate the legality of data structures; only the third provides certainty in the mathematical sense. In practice, the pipeline should permanently include a “counterexample search” role dedicated to constructing the smallest graph that breaks the current argument, and only advance to the next stage if that attempt fails. Keeping the roles adversarial is more reliable than letting the same context affirm itself.
2.6 Output Layer: Reproducibility and Auditability
The final artifact should contain three parts: the proof body, the list of lemmas it depends on, and the version number of the constraint text used at each step. Missing any one of them makes low-cost third-party review impossible.
3. Why “Not Peer-Reviewed, Not Formalized” Must Be Stated in the Conclusion
Until an argument passes peer review and formal verification, it is only a “candidate awaiting validation.” The value of formal verification is that it makes the assumptions implicit in natural language explicit; any skipped case causes the check to fail. The correct engineering statement is therefore that the system produced a structurally complete candidate proof whose credibility depends on subsequent verification—not that generation speed is evidence of correctness.
4. Four Practices Transferable to Software Development
- Specification first: writing requirements as enumerable boundary conditions is more effective than adding more adjectives.
- Make assumptions explicit: writing premises such as “this path is viable” into the task description reduces strategic avoidance by the model.
- Model work as a task graph: split complex work into sub-tasks with dependencies, and collaborate via IDs rather than free text.
- Adversarial verification: assign an independent role to hunt for counterexamples full-time, and treat verification results as a delivery gate.
To run a similar process in the cloud, only combinations of general-purpose capabilities are typically needed: a container platform to host the parallel execution units, a message queue for task dispatch and result collection, object storage for intermediate artifacts and versions, and logging plus monitoring and alerting to track each sub-task’s success rate and resource consumption. These are common industry categories, and specific choices can follow your own technology stack.
5. Conclusion
The reusable asset from events like this is not one model’s single performance, but a method for engineering open problems: tighten the definitions first, change the objective from “decide whether it can be done” to “find a path,” then decompose, parallelize, and verify adversarially, with formalization and review as the only trusted endpoint. Mastering this structure noticeably improves the controllability of complex reasoning tasks.
