Planning to Hammer: Difficulty-Aware Decomposition for Automating Rocq Proofs

📅 2026-06-16
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This work addresses the limited scalability of formal verification due to the inefficiency of generating machine-checkable proofs in interactive theorem provers such as Coq. The authors propose Quarry, a novel framework that synergistically integrates neural planning with symbolic execution. Quarry leverages large language models to produce multi-level proof decompositions containing sub-lemmas, employs a difficulty-aware model to assess and prioritize subgoal solvability, and recursively invokes CoqHammer under resource constraints to complete proofs. This approach automates the construction of long-range proof structures while preserving local rigor and enhancing high-level strategic reasoning. Evaluated on three Coq benchmarks, Quarry improves proof success rates by 7%–13% over the strongest baseline within a 10-minute time limit, substantially advancing automation capabilities at manageable computational cost.
📝 Abstract
As AI-generated code proliferates, formal verification, particularly through interactive theorem provers such as Rocq and Isabelle, becomes increasingly important for ensuring software correctness. However, producing machine-checked proofs in such provers remains a bottleneck. Existing solutions bring complementary strengths to proof automation: large language models (LLMs) can propose high-level proof strategies but lack local rigor, while automated tactics such as CoqHammer can reliably discharge many local goals but lack long-range planning capabilities. To combine the best of both worlds, we present Quarry, a planning-based proof synthesis framework that separates proof planning from proof execution. Specifically, Quarry asks an LLM to actively propose multiple proof decompositions with arbitrary sublemmas, type-checks them in Rocq under temporarily admitted sublemmas, and ranks candidates using a proof-state-based difficulty model that estimates hammer solvability. It then recursively proves sublemmas within a bounded budget, effectively turning long proofs into sequences of hammer-solvable obligations. We implement Quarry on top of SerAPI and CoqHammer and evaluate it using multiple frontier LLMs across multiple benchmarks. The experimental results show that planning-based decomposition with solvability-aware ranking substantially improves automation while maintaining predictable cost. Under a uniform 10-minute wall-clock budget, Quarry improves over the strongest baseline by 7% to 13% in success rate across three Rocq benchmarks. These results demonstrate that reliable proof automation can be achieved by coordinating neural planning with symbolic execution rather than replacing either.
Problem

Research questions and friction points this paper is trying to address.

formal verification
interactive theorem proving
proof automation
large language models
automated reasoning
Innovation

Methods, ideas, or system contributions that make the work stand out.

proof planning
difficulty-aware decomposition
LLM-guided theorem proving
CoqHammer integration
sublemma synthesis
🔎 Similar Papers
No similar papers found.