mlsanityData to 7 Oct 2026

P3: Joint Program-and-Proof Planning for Verified Code Generation

arXiv 2608.09277 ↗First posted 10 Aug 2026cs.AI cs.PLcited by 1

Not on the map. Why?

Abstract (arXiv)

Verified code generation asks a large language model (LLM) to generate both an executable program and a machine-checkable proof that the program meets a formal specification, promising software that is correct by construction. The de facto workflow decouples the two halves of the problem: first synthesize a program, then attempt to prove it correct. We observe that this sequential pipeline can be both ineffective and inefficient in practice. A program generated without anticipating its proof can be subtly incorrect or structurally difficult to verify, forcing the LLM into brittle repair loops that alternate between patching the code and patching the proof. Inspired by Dijkstra's view that a program and its correctness argument should be developed hand in hand, we propose P3, an LLM-based agentic workflow that first derives a unified program-and-proof plan from the specification, then elaborates the implementation and proof scaffold under this shared plan. To evaluate verified code generation in realistic settings, we further introduce Lean4Commit0, a repository-derived, library-level benchmark built by extracting core APIs from real-world software repositories and translating their requirements, including relational specifications across APIs, into Lean tasks. Using four frontier LLM backends, we evaluate P3 on Verina, AlgoVeri, and our Lean4Commit0 benchmark, where it achieves the highest solve rate in every benchmark--model setting. Compared with the stronger baseline, it improves solve rates by 4.6--11.2 percentage points and reduces per-task API cost by up to roughly 40% and wall-clock time by up to roughly 37% on the difficult subset of each benchmark. A targeted ablation further shows gains of 3.3--8.3 points over implementation-only planning, isolating the benefit of planning the program and proof jointly.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 29 of its 47 references that are in the map. First posted on arXiv 10 Aug 2026.

Builds on

29 of 47 references.

References · 29

  1. 2024A Survey on Large Language Models for Code Generationcited by 646
  2. 2023Plan-and-Solve Prompting: Improving Zero-Shot Chain-of-Thought Reasoning by Large Language Modelscited by 550
  3. 2023Llemma: An Open Language Model For Mathematicscited by 385
  4. 2025DeepSeek-Prover-V2: Advancing Formal Mathematical Reasoning via Reinforcement Learning for Subgoal Decompositioncited by 270
  5. 2024DeepSeek-Prover: Advancing Theorem Proving in LLMs through Large-Scale Synthetic Datacited by 225
  6. 2024Large Language Model-Based Agents for Software Engineering: A Surveycited by 173
  7. 2023Self-planning Code Generation with Large Language Modelscited by 121
  8. 2023Baldur: Whole-Proof Generation and Repair with Large Language Modelscited by 118
  9. 2025A Survey on Code Generation with LLM-based Agentscited by 104
  10. 2023An In-Context Learning Agent for Formal Theorem-Provingcited by 78
  11. 2024DafnyBench: A Benchmark for Formal Software Verificationcited by 54
  12. 2023Verus: Verifying Rust Programs using Linear Ghost Types (extended version)cited by 50
17 more
  1. 2024Commit0: Library Generation from Scratchcited by 50
  2. 2024AutoVerus: Automated Proof Generation for Rust Codecited by 46
  3. 2025VERINA: Benchmarking Verifiable Code Generationcited by 30
  4. 2025CLEVER: A Curated Benchmark for Formally Verified Code Generationcited by 27
  5. 2015Program Synthesis from Polymorphic Refinement Typescited by 20
  6. 2025Proving the Coding Interview: A Benchmark for Formally Verified Code Generationcited by 18
  7. 2025A benchmark for vericoding: formally verified program synthesiscited by 16
  8. 2025VeruSAGE: A Study of Agent-Based Verification for Rust Systemscited by 11
  9. 2026AlgoVeri: An Aligned Benchmark for Verified Code Generation on Classical Algorithmscited by 11
  10. 2026Goedel-Code-Prover: Hierarchical Proof Search for Open State-of-the-Art Code Verificationcited by 10
  11. 2025Growing Mathlib: maintenance of a large scale mathematical librarycited by 5
  12. 2026CSLib: The Lean Computer Science Librarycited by 4
  13. 2026Learning to Disprove: Formal Counterexample Generation with Large Language Modelscited by 4
  14. 2026WybeCoder: Verified Imperative Code Generationcited by 4
  15. 2026Planning to Hammer: Difficulty-Aware Decomposition for Automating Rocq Proofscited by 4
  16. 2026Neuro-Symbolic Proof Generation for Scaling Systems Software Verificationcited by 1
  17. 2026ExVerus: Verus Proof Repair via Counterexample Reasoningcited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026SWE-Proof: Can Language Models Resolve Real-World Issues with Machine-Checked Proofs?
  2. 2026Automating Formal Verification with Agent-Guided Tree Search
  3. 2026AxDafny: Agentic Verified Code Generation in Dafny
  4. 2024AlphaVerus: Bootstrapping Formally Verified Code Generation through Self-Improving Translation and Treefinement
  5. 2026LiveFMBench: Unveiling the Power and Limits of Agentic Workflows in Specification Generation
  6. 2026Harnessing Code Agents for Automatic Software Verification
  7. 2026Beyond Type-checking: Towards Holistic Evaluation of Formal Specification Generation
  8. 2024Planning-Driven Programming: A Large Language Model Programming Workflow