MathCoPilot: An Interactive System for Human-AI Symbiotic Paradigm of Mathematical Research

Junjie Zhang, Jiayu Liu, Wenbin Liu, Zhenya Huang, Doudou Wang, Yan Jiang, Leiye Xu, Tao Xiong, Wen Huang, Qi Liu, Guoping Hu, Enhong Chen, Mengping Zhang, Xiangdong YearXiv 2026

TL;DR

MathCoPilot introduces a human-in-the-loop paradigm for mathematical research, shifting away from autonomous, black-box AI theorem provers. By combining a mathematician's high-level strategic guidance with an interactive "living proof blueprint" and automated skill orchestration, the system successfully generates verified Lean 4 proofs for complex mathematical problems.

What Problem Does This Paper Address?

Current large language model (LLM) theorem provers typically operate under a rigid, autonomous question-and-answer paradigm. They attempt to output massive, unsegmented, end-to-end formal proofs in a single pass. For a working mathematician, this black-box approach is overwhelming and impractical; it is incredibly difficult to read through unsegmented code, verify its correctness, or inject human insights mid-generation.

Furthermore, autonomous agents fail to support the actual, non-linear workflow of mathematical research, which involves reading existing literature, accumulating long-term personal knowledge, and brainstorming high-level informal sketches before diving into formal code. MathCoPilot addresses this gap by creating a symbiotic human-AI workspace.

Methods

MathCoPilot unifies three core capabilities into a single, interactive framework:

  1. Interactive Human-AI Proof Co-Construction: The system breaks proof generation down into an editable, visual flowchart called a living proof blueprint. It orchestrates five specialized agents: a Brainstorm Agent (proposes natural-language sketches), a Blueprint Agent (decomposes sketches into sub-steps/nodes), a Prover Agent (discharges steps or recurses deeper), a Formalizer Agent (translates informal arguments to Lean 4), and an Aggregation Agent (synthesizes the final proof).
  2. Proving Skill Orchestration: Rather than following a fixed pipeline, a dynamic orchestrator selects and switches between different proving skills (e.g., Natural Language-first vs. Formalization-first) based on real-time error feedback from the Lean 4 verifier.
  3. Automated Knowledge Base Construction: Given a research topic, the system automatically retrieves relevant papers from repositories like arXiv, extracts definitions and theorems, and translates them into a verified, dependency-aware local Lean knowledge base.
Figure 1: Architecture of MATHCOPILOT. The mathematician interacts with three core capabilities, all connected to the Lean 4 verifier and a personal verified knowledge base.

Datasets

The authors evaluated the system using three distinct datasets/subsets:

  • FormalMATH Subset: 21 undergraduate-level problems sampled evenly across seven domains (Algebra, Differentiation, Integral, Multivariable Calculus, Other, Precalculus, and Sequences and Series).
  • GPT-Unsolved Subset: A targeted group of 12 difficult FormalMATH problems that baseline GPT-5.4 failed to solve in a single pass.
  • Real PDE Theorems: Two advanced theorems from numerical partial differential equation (PDE) analysis—the $L^2$ error estimate for the semi-discrete upwind DG method and the Gauss–Radau projection reference-cell estimate.

Key Insights and Ideas

  • The Power of the Sketch: Writing a natural-language proof sketch before attempting formalization roughly doubles the strict pass rate of LLMs. Informal reasoning provides a critical structural scaffold that prevents the model from getting lost in formal syntax.
  • Critique is Easier Than Construction: LLMs excel at acting as mathematical peer reviewers. Even when they struggle to generate a complex proof from scratch, they can successfully identify subtle, deliberately planted logical flaws in natural-language mathematical arguments.
  • The Brittleness of Autoformalization: AI performance is highly sensitive to how a theorem statement is formalized. Minor version mismatches or poor abstraction boundaries in Lean can cause state-of-the-art models to fail completely, reinforcing why human guidance is necessary to steer the high-level formalization boundary.

Key Results

  • Doubling the Pass Rate: On the 21-problem FormalMATH benchmark, the Natural Language-first (NL) strategy achieved a 31.75% overall strict pass rate, exactly doubling the 15.87% pass rate of the Formalization-First (FF) approach.
Table 1: Strict pass rates on the 21-problem FormalMATH subset.
  • Domain-Specific Variations: The NL-first approach provided massive accuracy boosts in domains like Differentiation and Precalculus, though highly complex domains like Advanced Integration remained difficult for all single-turn models due to missing library infrastructure.
Table 2: Domain heatmap for FormalMATH. Darker green indicates higher pass rate.
  • Recovering Baseline Failures: Through its interactive proof-blueprint and recursive lemma refinement, MathCoPilot successfully recovered 10 out of 12 difficult problems that GPT-5.4 originally failed to solve.
Table 3: MATHCOPILOT’s performance on twelve GPT-unsolved FormalMATH cases. “First pass” counts the initial full-system attempt; “after refinement” allows recursive proof-blueprint formalization of unsolved local lemmas.

Limitations and Future Work

While MathCoPilot shows impressive results on undergraduate-level benchmarks, scaling to research-level mathematics remains an open challenge. Advanced fields like PDE analysis suffer from a lack of formal infrastructure in community libraries like Mathlib. As a result, the system must often treat deep analytic ingredients as opaque axioms rather than proving them from first principles.

Moving forward, the authors plan to bootstrap larger knowledge bases from community resources, train the skill orchestrator to learn from historical attempts, support team-level collaborative version control, and expand support to other proof assistants like Coq and Isabelle.

Summary updated

BibTeX
@misc{zhang2026mathcopilot,
  author = {Junjie Zhang and Jiayu Liu and Wenbin Liu and Zhenya Huang and Doudou Wang and Yan Jiang and Leiye Xu and Tao Xiong and Wen Huang and Qi Liu and Guoping Hu and Enhong Chen and Mengping Zhang and Xiangdong Ye},
  title = {{MathCoPilot: An Interactive System for Human-AI Symbiotic Paradigm of Mathematical Research}},
  year = {2026},
  eprint = {2607.14582},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.14582},
}
Figure