Cost-Efficient Theorem Proving via Agent Orchestration in Program Verification
cs.AI, cs.LO, cs.PL, cs.SE
Submitted: 2026-10-07
Updated: 2026-10-07
Code: https://github.com/humanfia/humanize
License: http://creativecommons.org/licenses/by-sa/4.0/
The gist: Program verification establishes software correctness through machine-checkable proofs constructed in theorem provers.
Terminology
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.
Sources
- Aristotle: IMO-level Automated Theorem Proving
- FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performance
- Seed-Prover: Deep and Broad Reasoning for Automated Theorem Proving
- Goedel-Architect: Streamlining Formal Theorem Proving with Blueprint Generation and Refinement
- WybeCoder: Verified Imperative Code Generation
- Spend Less, Reason Better: Budget-Aware Value Tree Search for LLM Agents
- Goedel-Prover: A Frontier Model for Open-Source Automated Theorem Proving
- Danus: Orchestrating Mathematical Reasoning Agents with Fact-Graph Memory
- Numina-Lean-Agent: An Open and General Agentic Reasoning System for Formal Mathematics
- OProver: A Unified Framework for Agentic Formal Theorem Proving
- RouteLLM: Learning to Route LLMs with Preference Data
- DeepSeek-Prover-V2: Advancing Formal Mathematical Reasoning via Reinforcement Learning for Subgoal Decomposition
- A Minimal Agent for Automated Theorem Proving
- Why Agentic Theorem Prover Works: A Statistical Provability Theory of Mathematical Reasoning Models
- Agentic Proving for Program Verification
- Formal Mathematical Reasoning: A New Frontier in AI
- DreamProver: Evolving Transferable Lemma Libraries via a Wake-Sleep Theorem-Proving Agent
- AlgoVeri: An Aligned Benchmark for Verified Code Generation on Classical Algorithms
- Automated Lemma Discovery in Agentic Program Verification
Related papers
- MAVEN-T: Reinforced Heterogeneous Distillation for Real-Time Multi-Agent Trajectory Prediction
- Model Discovery Agent: LLM-assisted Bayesian experiment design for data-efficient discovery of mechanistic world models
- Agents' Last Exam
- The Clinician's Veto: Navigating Trust, Liability, and Uncertainty in Autonomous AI Prescribing
- MindHelper: Closed-Loop Embodied Mental-State Reasoning for Precision Intervention
- Incumbent Advantage: Brand Bias and Cognitive Manipulation Dynamics in LLM Recommendation Systems