cs.AISep 30, 2026

Growing an Agent/Prover Interface: Evolutionary Tool Design for Cost-Efficient Theorem Proving in Rocq and Lean

Authors: Jules Viennot, Guillaume Baudart, Marc Lelarge

Organizations: IRIF, Universit´e Paris Cit´e, Inria, CNRS · DI ENS, PSL University, Inria

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.

Figures & tables

Appendix figures & tables9 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. AIProver: Agentic Auto-Formalization of Mathematical Research via Certificate-Driven Evolving Harness

    Oct 4, 2026Prithwish Jana, Viet Bach Hoang, Logan Luna +9Theorem Proving

  2. Optimizing the Cost-Quality Tradeoff of Agentic Theorem Provers in Lean

    Jun 3, 2026Kári Rögnvaldsson, Chenhao Sun, Jasper Dekoninck +1Theorem ProvingTrade-Off

  3. Prove2Me: An Open Collaborative Platform for Scaling Math Formalization

    Aug 28, 2026Shuze Chen, Kunal Marwaha, Xiaoyang Lu +2Theorem ProvingAutoformalization