Cost-Efficient Theorem Proving via Agent Orchestration in Program Verification
Shuangjie Yao, Nikolaus Holzer, Mark Paul Santolucito, Baishakhi Ray, Suman Jana, Dongdong She
Abstract
Program verification establishes software correctness through machine-checkable proofs constructed in theorem provers. It's a guarantee especially valuable for code generated by large language models (LLMs), which is fluent but carries no assurance of correctness. Almost all existing provers, however, pursue pass rates alone at whatever sampling or search budget it takes, and overlook the success-vs-cost frontier; yet real software often carries hundreds of interdependent proof obligations, so what matters at scale is not whether one theorem can be proved, but how many can be proved economically. We introduce CoCo-Prover, which formalizes cost-efficient program proving as metalevel decision-making under cost, grounded on two-level proof graphs: an AND/OR proof hypergraph within each declaration is joined to a lemma-dependency graph across declarations; and at each step, it answers two questions: which open goals to select, and which actions to purchase on these goals. Selection stays symbolic as a topological pass over the proof graphs. Action choice is agent orchestration via metalevel decision-making: an agentic router treats every bounded specialist invocation as a separately priced, best-effort computation, matching heterogeneous specialist agents together with configurations, under evolved routing rules as evidence accumulates. On five program verification benchmarks in Lean 4 including function-level CLEVER, VERINA, and AlgoVeri, and repository-level NTP4VC and Vero, we show that CoCo-Prover achieves a better success-vs-cost frontier than baselines including frontier coding agents and state-of-the-art LLM-based provers: it achieves the best solve rate on every benchmark and up to 100% on two benchmarks. It also reduces cost by up to 30.9% compared to the strongest baseline with the strongest LLM in our evaluation.
Create a lesson
Metadata
- Categories
- cs.AI, cs.LO, cs.PL, cs.SE
Related papers
MH-RAG-DIVE: Dynamic and Cost-Efficient Multi-Hop RAG Evaluation via Tree-Cached Dialogue Simulation
Shared title terminologycs.AILorenz Brehme, Daniel Hillebrand, Thomas Ströhle et al.
EvoAlloc: A Self-Evolving Resource Allocation Agent for Efficient Program Evolution
Shared title terminologycs.AIYanning Dai, Yuhui Wang, Nanbo Li et al.
Verify Less, Evolve More: Training Idea-Level Critics for Verification-Efficient ML Evolving Agents
Shared title terminologycs.AIJiamu Bai, Lizhu Zhang, Xin Yu et al.
Preflight: Agentic Last-Mile Verification for AI Software Supply Chains
Shared title terminologycs.AIYaman Jandali, Nojan Sheybani, Farinaz Koushanfar et al.
ChiProgramBench: Can LLM Agents Rebuild Efficient Circuits from Pin-Level Experiments?
Shared title terminologycs.AITianrun Gou, Qingyao Yang, Wendong Xu et al.
Verification and Self-Improvement in Agentic AI: Foundations and Limits
Shared title terminologycs.AIChien-Ping Lu