REVIEW 3 major objections 4 minor 1 cited by
A planning-first decomposer that lets an LLM propose sublemmas and a hammer prove them lifts Rocq proof success by 7–13 percentage points.
Reviewed by Pith at T0; open to challenge. T0 means a machine referee read the full paper against a public rubric. the ladder, T0–T4 →
T0 review · deepseek-v4-flash
2026-08-02 11:00 UTC pith:24OAX45K
load-bearing objection A credible planning-then-hammer system with honest ablations; headline margins are plausible but rest on single stochastic runs. the 3 major comments →
Planning to Hammer: Difficulty-Aware Decomposition for Automating Rocq Proofs
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
At the center of the paper is the claim that a goal too hard for automation can be solved by turning it into several easier goals, and that the planner can decide which decomposition is worth trying before spending any proof budget. The system samples up to eight candidate decompositions from an LLM, each listing sublemmas and a target tactic script; Rocq verifies each candidate by type-checking it with the sublemmas temporarily admitted. A linear difficulty model then scores each sublemma from features of its normalized proof state, and the candidate whose hardest sublemma has the lowest predicted difficulty is tried first, recursively, with the same loop applied to any sublemma the hammer
What carries the argument
The load-bearing mechanism is the solvability-aware ranker: a learned linear score over 28 proof-state features. Nineteen features are computed after executing a short normalizing tactic prefix (repeated introductions) on each proposed sublemma, so they describe the proof state the automation backend will actually see; nine come from the raw lemma statement. Weights are learned offline, on traces in which every candidate at every node was attempted, using a pairwise margin-ranking objective that encodes 'the candidate whose hardest sublemma was solved should score lower.' Candidate plans are ranked by the maximum estimated difficulty over their sublemmas — a deliberate bottleneck policy, jus
Load-bearing premise
The load-bearing premise is that every hard proof goal can be split by an LLM into a tree of sublemmas that individual automated-tactic calls can each finish within a recursion depth of five; if a proof is one long sequential chain with no natural split points, the planner has nothing to work with and the method falls back to the hammer's own success level.
What would settle it
Collect about 50 Rocq theorems whose human proofs are single chains of 20 or more rewrites and unfolds with no intermediate assertions. The paper's own failure analysis predicts the system would solve roughly as many as the hammer alone, leaving the planning layer no purchase. If it solves a large share, decomposition is not the active ingredient; a complementary check is to replay recorded traces with the difficulty rankings inverted, which should push success below the unranked baseline if the ranker is doing the work.
If this is right
- Most successful proofs finish under five minutes, with a median of one to two minutes, and solved goals require on average fewer than two sublemmas — so a single level of decomposition usually suffices.
- The framework's gains compound with the execution engine: using a stronger leaf-goal solver in place of the default hammer adds ten more solved theorems across the three benchmark sets.
- Ranking policy matters more than generation volume: bottleneck (maximum) aggregation beats mean and sum aggregations, and normalized proof-state features transfer across benchmark distributions better than raw statement statistics.
- Raising per-node rollout beyond about twelve candidates yields diminishing returns, while swapping in a stronger LLM backend lifts success rates further — performance tracks both planning breadth and model capability.
Where Pith is reading between the lines
- A natural stress test follows from the paper's own failure analysis: on theorems whose human proofs are long sequential rewrite chains with no intermediate assertions, the planner should contribute nothing and performance should sit near the hammer baseline; a system that passes this test would need an execution-feedback loop that the current one-shot pipeline lacks.
- The same Generate–Rank–Solve scaffold is portable: any interactive prover with a trusted local automation could adopt it, with the difficulty model retrained on that backend's traces; the paper's transfer results suggest the normalized proof-state features are relatively backend-agnostic.
- The bottleneck-ranking principle generalizes beyond proving: any synthesis task with a costly recursive step could rank candidates by the hardest sub-obligation, since the convexity argument for splitting tasks into balanced subtasks is not specific to logic.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper presents Quarry, a Rocq proof-synthesis framework that separates planning from execution: an LLM proposes candidate decompositions into sublemmas and a target tactic script; Rocq-side verification (via SerAPI) checks conditional type-correctness of each candidate; a learned linear difficulty model ranks candidates by predicted hammer solvability; and CoqHammer recursively discharges sublemmas under a bounded budget (a Generate–Rank–Solve loop). The difficulty weights are trained offline on 200 CoqGym goals from projects disjoint from the three evaluation benchmarks. Evaluated on CoqGym100, Wigderson100, and a new TransBench58, Quarry reports success rates of 55%, 52%, and 16%, improving over the strongest baseline (PALM) by 7–13 percentage points under a uniform 10-minute budget. Ablations show that ranking and hammer-at-every-node contribute, that rollout budget gains plateau, and that offline replay is used for ranking ablations. The paper honestly acknowledges limitations: sequential proofs lacking decomposition structure remain the main failure mode, the pipeline is one-shot, and the overall ceiling is largely set by CoqHammer.
Significance. If the empirical claims are robust, this is a useful step for proof automation: it combines LLM high-level planning with hammer-style local execution, introduces arbitrary intermediate lemmas rather than only built-in subgoal splitting, and ranks candidates with a lightweight proof-state difficulty model that is not tuned on the test benchmarks. Strengths include project-level disjointness of difficulty-model training data from the test benchmarks, a reproducible artifact, a bounded-cost design, and a modular leaf-solver architecture. The main credibility gap is the empirical evaluation: the headline margins rest on single stochastic runs, some baseline entries are N/A without explanation, and the offline-replay evaluation assumes a strong order-independence property. These issues are load-bearing for the central claim but appear fixable, so the paper warrants major revision rather than rejection.
major comments (3)
- [Section 6.5 / Table 2] The headline margins rest on a single GPT-5.2 run at temperature 1.0. The text states that the reported main results are single runs, so there is no estimate of sampling variability for the claimed +7 to +13 percentage-point gains. The repeated MiniMax-M2.5 runs (at most 1.5 pp standard deviation) are a different backend and cannot be transferred to GPT-5.2. TransBench58 is especially fragile: 16% vs 3% is 9 vs 2 theorems out of 58, so a difference of two or three successful theorems on either side changes the claimed margin. Please report at least three independent GPT-5.2 runs (or a bootstrap over the theorem set) and the per-run success sets, and qualify the central claim accordingly.
- [Table 2 / Section 6.1.2] The text says 'All baselines are re-run under our Rocq toolchain and evaluation budget,' but Table 2 reports N/A for Tactician on CoqGym100 and for Rango on CoqGym100 and Wigderson100. No explanation is given. This is an internal inconsistency that weakens the 'outperforms all baselines' framing. Either run these baselines or state concretely why they are N/A (e.g., version incompatibility) and restrict the claim to the systems actually compared.
- [Section 5.5 / Table 5] The offline-replay evaluation assumes that re-ranking candidates at each node yields the same recursive outcomes as online execution regardless of the original execution order. This is not automatically true: the runner maintains a shared proven-context, so whether a sublemma is already available can depend on which candidates were attempted earlier; wall-clock and LLM-budget consumption also depend on trial order. The assertion that 're-ranking produces valid end-to-end results regardless of the original execution order' is stated without validation. Please either validate replay predictions against live runs on a subsample of theorems or state and justify the order-independence assumption and its limitations.
minor comments (4)
- [Algorithm 2] Lines 5–6 compute scores using the weights θ before θ has been learned. The pseudocode should make clear that the margin objective is parameterized by θ, e.g., define s_i(θ) and s_j(θ) and then optimize over θ.
- [Section 6.2] The Quarry+Cobblestone leaf-solver comparison uses a 20-minute wall-clock budget, whereas Table 2 uses 10 minutes. This should be stated more prominently so the 'additional 10 theorems' result is not read as a controlled comparison under the same budget.
- [Table 2] Consider reporting the raw counts alongside percentages on TransBench58 (e.g., 16% (9/58)) in the table itself, since the percentage is rounded over a small denominator.
- [Section 6.1.4] The per-theorem LLM budget of 60 requests is stated as matching Cobblestone's effective budget, but it is not clear whether all LLM baselines (PALM, ChainOfThought, Rango) are subject to the same 60-request cap or only the 10-minute wall-clock limit. A sentence clarifying this would improve fairness of interpretation.
Circularity Check
No significant circularity: the central claim is an empirical comparison against external baselines, and the only learned component is trained on held-out, project-disjoint goals.
full rationale
The paper's central claim is empirical—Quarry's success rates on three benchmarks versus external baselines—not a derivation from a fitted parameter. The only learned component, the difficulty model, is explicitly trained on held-out data: "The difficulty model weights θ are trained on 200 goals from CoqGym projects disjoint from all three evaluation benchmarks" (Section 5.5/6.1.4), and is "applied without further tuning to the three benchmarks" (Table 5 caption). The training traces are collected in dense-supervision mode where the system "continues to attempt all remaining candidates at each node even after a success," so candidate outcomes are recorded independently of the ranking policy, avoiding a self-fulfilling prediction. The evaluation compares Quarry against external baselines (CoqHammer, Proverbot9001, Tactician, ChainOfThought, PALM, Rango, Cobblestone) under a uniform budget, and the final proofs are checked by the Rocq kernel. Self-citations appear only in related-work positioning (e.g., Goedel-Code-Prover, seL4-prover) and do not carry the argument. No equation reduces a prediction to a fitted input, no uniqueness theorem is imported from the authors' prior work, and no known result is merely renamed. The stated limitations (e.g., "the overall ceiling is largely determined by CoqHammer's capabilities") are honest boundary conditions, not circular steps.
Axiom & Free-Parameter Ledger
free parameters (4)
- difficulty model weights θ (28 features + bias) =
not reported numerically
- search budget hyperparameters =
k=8, B=1, depth=5, LLM cap=60, hammer timeout=30s, LLM timeout=90s
- aggregation function for candidate score =
max over sublemma difficulties
- feature set composition =
28 features (19 intros-state + 9 statement)
axioms (5)
- standard math Rocq kernel and CoqHammer's reconstruction are sound (final proofs are kernel-checked).
- domain assumption The LLM produces at least one valid candidate decomposition for a nontrivial fraction of provable goals.
- domain assumption Sublemma difficulty (hammer solvability) correlates with the 28 hand-chosen proof-state features.
- domain assumption Candidate outcomes in recorded traces are order-independent under re-ranking (shared proven-context does not change success).
- domain assumption TransBench58 translations faithfully represent Rust/Verus verification problems.
read the original 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.
Figures
Forward citations
Cited by 1 Pith paper
-
BlueprintRepair: Typed Local Edits for Failed Lean Proof Blueprints
Typed local edits on Lean proof blueprints match free-form repair coverage on localized defects while using far fewer tokens and lower cost.
Reference graph
Works this paper leans on
-
[7]
InIEEE Symposium on Security and Privacy (S&P)
Simple High-Level Code for Crypto- graphic Arithmetic — With Proofs, Without Compromises. InIEEE Symposium on Security and Privacy (S&P). 1202–1219. doi:10.1109/SP.2019.00005 Proc. ACM Program. Lang., Vol. 1, No. 1, Article . Publication date: June
arXiv 2019
-
[8]
Emily First, Markus N
TacTok: Semantics-aware proof synthesis.Proceedings of the ACM on Programming Languages4, OOPSLA (2020), 1–31. Emily First, Markus N. Rabe, Talia Ringer, and Yuriy Brun
2020
-
[10]
Daniel Huang, Prafulla Dhariwal, Dawn Song, and Ilya Sutskever
Neuro-symbolic proof generation for scaling systems software verification.arXiv preprint arXiv:2603.19715(2026). Daniel Huang, Prafulla Dhariwal, Dawn Song, and Ilya Sutskever
Pith/arXiv arXiv 2026
-
[12]
InProceedings of the 48th IEEE/ACM International Conference on Software Engineering (ICSE)
Cobblestone: A Divide-and-Conquer Approach for Automating Formal Verification. InProceedings of the 48th IEEE/ACM International Conference on Software Engineering (ICSE). Rio de Janeiro, Brazil. doi:10.1145/3744916.3773178 Xavier Leroy
-
[15]
Goedel-code-prover: Hierarchical proof search for open state-of-the-art code verification.arXiv preprint arXiv:2603.19329(2026). Aixin Liu, Aoxue Mei, Bangcai Lin, Bing Xue, Bingxuan Wang, Bingzheng Xu, Bochao Wu, Bowei Zhang, Chaofan Lin, Chen Dong, et al
arXiv 2026
-
[17]
Proof Automation with Large Language Models. In39th IEEE/ACM International Conference on Automated Software Engineering (ASE ’24), October 27-November 1, 2024, Sacramento, CA, USA. ACM, New York, NY, USA, 1509–1520. doi:10.1145/3691620.3695521 Maciej Mikuła, Szymon Tworkowski, Szymon Antoniak, Bartosz Piotrowski, Albert Q. Jiang, Jin Peng Zhou, Christian ...
arXiv 2024
-
[18]
InThe Twelfth International Conference on Learning Representations
Magnushammer: A Transformer-Based Approach to Premise Selection. InThe Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=oYjPk8mqAV MiniMax. 2026.MiniMax M2.5: Built for Real-World Productivity.Technical Report. https://minimaxi.com/news/minimax-m25 Tobias Nipkow, Markus Wenzel, and Lawrence C Paulson. 2002.Isab...
2026
-
[19]
InCompanion Proceedings of the 2023 ACM SIGPLAN International Conference on Systems, Programming, Languages, and Applications: Software Proc
Towards the Formal Verification of Wigderson’s Algorithm. InCompanion Proceedings of the 2023 ACM SIGPLAN International Conference on Systems, Programming, Languages, and Applications: Software Proc. ACM Program. Lang., Vol. 1, No. 1, Article . Publication date: June
2023
-
[20]
for Humanity(Cascais, Portugal)(SPLASH 2023)
26 Zhang et al. for Humanity(Cascais, Portugal)(SPLASH 2023). Association for Computing Machinery, New York, NY, USA, 40–42. doi:10.1145/3618305.3623600 Talia Ringer, RanDair Porter, Nathaniel Yazdani, John Leo, and Dan Grossman
arXiv 2023
-
[22]
Generating Correctness Proofs with Neural Networks. InProceedings of the 4th ACM SIGPLAN International Workshop on Machine Learning and Programming Languages (MAPL ’20), June 15, 2020, London, UK. ACM, New York, NY, USA, 1–10. https://doi.org/10.1145/3394450.3397466 Alex Sanchez-Stern, Emily First, Timothy Zhou, Zhanna Kaufman, Yuriy Brun, and Talia Ringer
arXiv 2020
-
[23]
Passport: Improving Automated Formal Verification Using Identifiers.ACM Trans. Program. Lang. Syst.45, 2, Article 12 (2023), 30 pages. https://doi.org/10.1145/3593374 The Coq Development Team
doi:10.1145/3593374 2023
-
[24]
Hilbert: Recursively building formal proofs with informal reasoning.arXiv preprint arXiv:2509.22819(2025). Haiming Wang, Huajian Xin, Zhengying Liu, Wenda Li, Yinya Huang, Jianqiao Lu, Zhicheng YANG, Jing Tang, Jian Yin, Zhenguo Li, and Xiaodan Liang. 2024a. Proving Theorems Recursively. InThe Thirty-eighth Annual Conference on Neural Information Processi...
arXiv 2025
-
[25]
Chain-of-Thought Prompting Elicits Reasoning in Large Language Models.Advances in Neural Information Processing Systems35 (2022), 24824–24837. James R. Wilcox, Doug Woos, Pavel Panchekha, Zachary Tatlock, Xi Wang, Michael D. Ernst, and Thomas Anderson
2022
-
[26]
Verdi: A Framework for Implementing and Formally Verifying Distributed Systems. InProceedings of the 36th ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI). ACM, New York, NY, USA, 357–368. doi:10.1145/2737924.2737958 Chenyuan Yang, Xuheng Li, Md Rakib Hossain Misu, Jianan Yao, Weidong Cui, Yeyun Gong, Chris Hawblitzel, Shuve...
arXiv 2025
-
[27]
ACM69, 3 (2026), 66–73
Formal reasoning meets llms: Toward ai for mathematics and verification.Commun. ACM69, 3 (2026), 66–73. Kaiyu Yang, Aidan M. Swope, Alex Gu, Rahul Chalamala, Peiyang Song, Shixing Yu, Saad Godil, Ryan Prenger, and Anima Anandkumar
2026
-
[36]
21573–21612. Proc. ACM Program. Lang., Vol. 1, No. 1, Article . Publication date: June 2026
2026
-
[2009]
doi:10.1145/1538788.1538814 Xupeng Li, Xuheng Li, Wei Qiang, Ronghui Gu, and Jason Nieh
Formal verification of a realistic compiler.Communications of the ACM (CACM)52, 7 (2009), 107–115. doi:10.1145/1538788.1538814 Xupeng Li, Xuheng Li, Wei Qiang, Ronghui Gu, and Jason Nieh
arXiv 2009
-
[2014]
doi:10.1007/s10817-013-9286-5 Alexander A
Premise selection for mathematics by corpus analysis and kernel methods.Journal of Automated Reasoning52, 2 (2014), 191–213. doi:10.1007/s10817-013-9286-5 Alexander A. Alemi, François Chollet, Niklas Een, Geoffrey Irving, Christian Szegedy, and Josef Urban
-
[2015]
InProceedings of the 25th ACM Symposium on Operating Systems Principles (SOSP)
Using Crash Hoare Logic for Certifying the FSCQ File System. InProceedings of the 25th ACM Symposium on Operating Systems Principles (SOSP). ACM, New York, NY, USA, 18–37. doi:10.1145/2815400.2815402 Łukasz Czajka and Cezary Kaliszyk
-
[2018]
Hammer for Coq: Automation for Dependent Type Theory.Journal of Automated Reasoning61, 1-4 (2018), 423–453. doi:10.1007/s10817-018-9458-4 Andres Erbsen, Jade Philipoom, Jason Gross, Robert Sloan, and Adam Chlipala
-
[2019]
Learning to Reason in Large Theories without Imitation.arXiv preprint arXiv:1905.10501(2019). Lasse Blaauwbroek, Mirek Olšák, Jason Rute, Fidel Ivan Schaposnik Massolo, Jelle Piepenbrock, and Vasily Pestun
Pith/arXiv arXiv 1905
-
[2020]
InInternational Conference on Intelligent Computer Mathematics
The Tactician: A Seamless, Interactive Tactic Learner and Prover for Coq. InInternational Conference on Intelligent Computer Mathematics. 271–277. doi:10.1007/978-3-030-53518-6_17 Chenrui Cao, Liangcheng Song, Zenan Li, Xinyi Le, Xian Zhang, Hui Xue, and Fan Yang
-
[2021]
Proof Repair Across Type Equivalences. InProceedings of the 42nd ACM SIGPLAN International Conference on Programming Language Design and Implementation (PLDI ’21), June 20-25, 2021, Virtual, Canada. ACM, New York, NY, USA, 112–127. doi:10.1145/3453483.3454033 Alex Sanchez-Stern, Yousef Alhessi, Lawrence Saul, and Sorin Lerner
arXiv 2021
-
[2022]
In Advances in Neural Information Processing Systems
Thor: Wielding Hammers to Integrate Language Models and Automated Theorem Provers. In Advances in Neural Information Processing Systems. 8360–8373. https://proceedings.neurips.cc/paper_files/paper/2022/ file/377c25312668e48f2e531e2f2c422483-Paper-Conference.pdf Albert Qiaochu Jiang, Sean Welleck, Jin Peng Zhou, Timothee Lacroix, Jiacheng Liu, Wenda Li, Ma...
2022
-
[2023]
Baldur: Whole-Proof Generation and Repair with Large Language Models. InProceedings of the 31st ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE ’23), December 3-9, 2023, San Francisco, CA, USA. ACM, New York, NY, USA, 1229–1241. https://doi.org/10.1145/3611643.3616243 Emilio Jesús Galle...
arXiv 2023
-
[2024]
A Survey on Deep Learning for Theorem Proving.arXiv preprint arXiv:2404.09939(2024). Zenan Li, Ziran Yang, Deyuan He, Haoyu Zhao, Andrew Zhao, Shange Tang, Kaiyu Yang, Aarti Gupta, Zhendong Su, and Chi Jin
Pith/arXiv arXiv 2024
-
[2025]
Minghai Lu, Benjamin Delaware, and Tianyi Zhang
Deepseek-v3.2: Pushing the frontier of open large language models.arXiv preprint arXiv:2512.02556 (2025). Minghai Lu, Benjamin Delaware, and Tianyi Zhang
Pith/arXiv arXiv 2025
-
[2026]
Haogang Chen, Daniel Ziegler, Tej Chajed, Adam Chlipala, M
Reviving DSP for advanced theorem proving in the era of reasoning models.Advances in Neural Information Processing Systems38 (2026), 74116– 74154. Haogang Chen, Daniel Ziegler, Tej Chajed, Adam Chlipala, M. Frans Kaashoek, and Nickolai Zeldovich
2026
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.