Growing an Agent/Prover Interface: Evolutionary Tool Design for Cost-Efficient Theorem Proving in Rocq and Lean
Jules Viennot, Guillaume Baudart, Marc Lelarge
Key points
From the paper's conclusion- We demonstrate the effectiveness of our method by growing, on a curated set of mathematical problems, \rme, a new MCP server for the Rocq prover.
Abstract
Recent achievements in AI-assisted mathematics require intensive interaction of agents with proof assistants to generate machine-checked proof certificates. Agents interact with proof assistants such as Rocq or Lean through an interface that controls what the agent receives from the prover and the cost of these interactions. Today, these interfaces are adapted from tools designed for humans and not optimized for agents. We propose an evolutionary method where a frontier model incrementally proposes new features and only keeps the ones that improve the overall performance of smaller models. We demonstrate the effectiveness of our method by growing, on a curated set of mathematical problems, \rme, a new MCP server for the Rocq prover. On the held-out \texttt{test} split of miniF2F-Rocq, an agent equipped with \rme outperforms both the baseline that only exposes the Rocq compiler and an established MCP server, across four models from two families, in success rate, cost per solve, and time per solve. Although evolved for Rocq, the resulting server transfers to Lean, improving cost and time per solve on a subset of PutnamBench. We release \rme and its port to Lean.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Cost-Efficient Theorem Proving via Agent Orchestration in Program VerificationarXiv · 2026
- RAIN: Agentic Proof Generation for Rocq-based Software VerificationarXiv · 2026
- Lea: An Agent Backbone for Mathematician-Controlled Formalization in LeanarXiv · 2026
- LEVER: Adaptive Cost-Aware Proof Search Over AND/OR GraphsarXiv · 2026
- Cogentic: Multi-Agent Orchestration for Automated Proof DiscoveryarXiv · 2026
- LeanDojo-v2: A Comprehensive Library for AI-Assisted Theorem Proving in LeanarXiv · 2026