QED: An Open-Source Multi-Agent System for Generating Mathematical Proofs on Open Problems

Chenyang An, Qihao Ye, Minghao Pan, Jiayun Zhang

TL;DR

This paper introduces QED, an open-source multi-agent system that can automatically generate original mathematical proofs for research-level problems without human guidance. QED tackles the challenge of AI-driven mathematical discovery by decomposing the proof generation process into planning, proving, and verification stages, addressing common failure modes of large language models.

What Problem Does This Paper Address?

The field of AI-assisted mathematics has seen rapid progress, with large language models (LLMs) showing increasing proficiency in solving mathematical problems. However, a significant gap remains in their ability to generate original proofs for open research problems – questions that have not yet been solved and whose solutions would constitute novel contributions to mathematics. Existing AI systems often rely on human guidance, are closed-source, or are evaluated on benchmarks with known solutions, making it difficult to assess their true potential for genuine mathematical discovery. This paper addresses the challenge of creating a fully automated system capable of tackling these frontier research questions, moving beyond benchmark performance to real-world mathematical innovation.

Methods

QED employs a multi-agent, multi-stage pipeline designed to overcome specific failure modes observed in LLMs when attempting complex proofs. The core innovation lies in its structured approach:

  • Decomposition: For harder problems, QED uses a "decomposition mode" that separates proof planning from execution. A "Decomposer" agent creates a structured proof plan (a directed acyclic graph of claims), which is then executed by a "Single Prover." This addresses the issue of LLMs abandoning proof strategies mid-way.
  • Separated Prover and Verifier: To prevent "context contamination" where a model might be biased towards accepting its own flawed reasoning, QED uses distinct agents for proving and verification. The verifier has no access to the prover's internal thought process.
  • Structured Verification Pipeline: QED implements a six-phase verification pipeline divided into two stages:
  • Structural Verification (Phases 1-5): This stage checks problem-statement integrity (ensuring the proof addresses the exact problem), completeness, citation accuracy (preventing "citation hallucination"), subgoal tree validity, and any human-specified rules.
  • Detailed Verification (Phase 6): This stage performs step-by-step logical and mathematical checking of each assertion.
  • <key-original-step> Tagging: To combat "misallocation of proof effort," QED requires provers to tag nontrivial original steps with <key-original-step> tags, demanding maximal detail for these crucial parts. The verifier then checks these tags.
  • Multi-Model Capability: To mitigate the "single-model bottleneck," QED can utilize multiple LLMs in parallel for proof generation and verification, allowing it to leverage diverse strengths.

Datasets

The paper does not use traditional datasets for training. Instead, it is evaluated on 18 "research-level projects" contributed by domain experts. These projects represent open research questions for which no proof was known at the time of the study. The evaluation is framed as case studies rather than benchmark experiments, with expert assessments of the generated proofs.

Key Insights and Ideas

  • Failure Modes Drive Design: The QED architecture is directly motivated by empirically observed failure modes of LLMs in mathematical proof generation. This systematic approach to addressing weaknesses is a core contribution.
  • Decomposition is Crucial for Hard Problems: Separating proof planning from execution (decomposition mode) is essential for tackling complex, multi-step proofs where LLMs tend to abandon strategies. This allows for more systematic progress.
  • Rigorous Verification is Non-Negotiable: The multi-stage verification pipeline, especially the strict checks for problem-statement integrity and citation accuracy, is critical for ensuring the correctness and originality of AI-generated proofs.
  • Structured Output is a Forcing Function: Requiring specific output formats, like the <key-original-step> tags, forces the AI to identify and detail the most critical parts of a proof, preventing superficial reasoning.
  • AI Can Produce Novel Research: The most significant insight is that a well-designed AI system, like QED, can indeed produce original, nontrivial mathematical proofs that are comparable in quality and scope to work published in established journals.

Key Results

QED was evaluated on 18 research-level projects. It successfully produced original, nontrivial, and complete solutions for five of these projects across algebraic geometry, fluid PDEs, probability, and inverse problems. Expert assessments deemed these contributions to be solid specialized research, with three comparable in difficulty and scope to work published in established mathematics venues. The system operated fully automatically, without human guidance during the proof generation runs. The verifier demonstrated high reliability, with no false positives observed in the tested configuration.

Limitations and Future Work

  • Ablation Studies are Difficult: Performing comprehensive ablation studies (removing components to test their impact) is challenging due to the significant effort required from domain experts to review each generated proof. Targeted ablations were performed on specific cases.
  • Open Problems Remain Open: Many of the attempted problems remain unsolved, highlighting the current limitations of AI in tackling the most difficult mathematical challenges.
  • Human-in-the-Loop Option: While QED can run fully automatically, it supports optional human steering (global hints, additional verification rules) for future work.
  • Future Work: The authors suggest that QED's approach could be extended to other scientific discovery domains, particularly in areas requiring complex constructions and rigorous verification. The potential for QED to accelerate the search for admissible weights in areas like Carleman estimates is also highlighted.

Summary updated

BibTeX
@inproceedings{an2026qed,
  author = {Chenyang An and Qihao Ye and Minghao Pan and Jiayun Zhang},
  title = {{QED: An Open-Source Multi-Agent System for Generating Mathematical Proofs on Open Problems}},
  booktitle = {AI4Math @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=EPCNlZRUc3},
}
Figure