P$^{3}$: Joint Program-and-Proof Planning for Verified Code Generation
Update NeurIPS 2026 submission hIC9ua4c4q: 5 notes
@openreview[bot] · 2026-11-24 15:54 UTC · 6e2bc650e946 ·
reviews/openreview/hic9ua4c4q/notes/ds3v68y7g5.json added
+++ b/reviews/openreview/hic9ua4c4q/notes/ds3v68y7g5.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "DS3v68Y7g5",+ "replyTo": "tCU9Fr9Pia",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer KMDX",+ "comment": "### Q1. Ablation study\nWe thank the reviewer for pointing to this ablation. To isolate the contribution of joint program-and-proof planning from generic implementation planning, we add a budget-matched PLAN-SEQ baseline. PLAN-SEQ plans only the program side—algorithm, data representation, program decomposition, termination argument, auxiliary functions, and program-side library choices—and completes the full implementation before any proof generation begins. Crucially, it is not permitted to anticipate proof invariants, proof decomposition, induction strategies, auxiliary lemmas, or the anticipated proof burden. All other settings and budgets match P³.\n\nAs shown in the table below, P³ outperforms PLAN-SEQ on all three benchmarks by 3.3–8.3 percentage points. PLAN-SEQ itself improves over SEQ on Verina (+1.5) and AlgoVeri (+4.5), confirming that generic planning helps, but it drops 3.7 points on Lean4Commit0. We attribute this to Lean4Commit0's relational specifications, which connect multiple APIs: a program-only plan may commit to implementations that are locally reasonable yet difficult to relate to one another in the subsequent proof. By planning implementations jointly with their shared proof obligations, P³ avoids this trap and achieves its largest gain over PLAN-SEQ precisely on Lean4Commit0 (+8.3).\n\n| Benchmark (Claude-Opus-4.7) | PLAIN (%) | SEQ (%) | PLAN-SEQ (%) | P³ (%) | Δ vs. PLAN-SEQ (pp) |\n|---|---|---|---|---|---|\n| Verina | 68.8 | 68.3 | 69.8 | 74.6 | +4.8 |\n| AlgoVeri | 39.0 | 40.3 | 44.8 | 48.1 | +3.3 |\n| Lean4Commit0 | 13.9 | 17.6 | 13.9 | 22.2 | +8.3 |\n\n### Limitations\nWe thank the reviewer for this comment and will move a condensed limitations paragraph into the main paper. It will cover four points: (i) our experiments currently span only Lean 4 and frontier closed-source models; (ii) Lean4Commit0 models core APIs rather than complete repositories and is skewed toward Python; (iii) our specification checks cannot rule out every form of underconstraint; and (iv) the single-run evaluation does not estimate within-task stochastic variance. The fuller discussion will remain in Appendix C."+ },+ "createdAt": "2026-07-28T15:02:53.340Z",+ "modifiedAt": "2026-11-19T16:53:06.214Z",+ "url": "https://openreview.net/forum?id=hIC9ua4c4q¬eId=DS3v68Y7g5",+ "license": "CC-BY-4.0"+}
reviews/openreview/hic9ua4c4q/notes/fq4cpkbjqv.json added
+++ b/reviews/openreview/hic9ua4c4q/notes/fq4cpkbjqv.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "Fq4CPKbjqV",+ "replyTo": "oknxI0JSfV",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Reviewer ANin",+ "content": {+ "comment": "Thanks for your response and new evaluation results (to my and to other reviewers). Please include the revision plan in the next version. I will increase my score."+ },+ "createdAt": "2026-08-04T03:34:11.743Z",+ "modifiedAt": "2026-11-19T16:53:06.807Z",+ "url": "https://openreview.net/forum?id=hIC9ua4c4q¬eId=Fq4CPKbjqV",+ "license": "CC-BY-4.0"+}
reviews/openreview/hic9ua4c4q/notes/oknxi0jsfv.json added
+++ b/reviews/openreview/hic9ua4c4q/notes/oknxi0jsfv.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "oknxI0JSfV",+ "replyTo": "zK62qXv9dN",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer ANin",+ "comment": "We thank the reviewer for recognizing the research gap, the motivation, and P³'s consistent solve-rate gains and cost reductions. We address each concern below.\n\n### W1. Other comparison methods\n\nTo our knowledge, no existing method targets the same problem, i.e., end-to-end verified code generation, where both the program and its correctness proof must be synthesized under a controlled orchestration order. Existing systems address different problem formulations: WybeCoder and Goedel-Code-Prover generate proofs for given Lean programs and specifications; AutoVerus, VeruSAGE, and ExVerus generate or repair annotations for existing Verus/Rust programs; and Clever, VeriSoftBench, and VeriCodeBench are benchmarks rather than verified code generation methods. Accordingly, we include only PLAIN and SEQ as directly comparable baselines.\n\nIn addition, in response to reviewer KMDX, we added a new PLAN-SEQ baseline that isolates generic implementation planning from joint program-and-proof planning. The results are clear: P³ outperforms PLAN-SEQ on all three benchmarks by 3.3–8.3 percentage points, confirming that its gains stem specifically from planning the program and its proof jointly, rather than from planning in general. We will make this scope explicit in the revision.\n\n\n### W2 & Q1. Plan-selection accuracy\n\nWe agree this capability should be measured rather than assumed. Because a task may admit multiple valid plans, we report structural plan retention as an observable proxy rather than a direct measure of proof-burden prediction accuracy. Among the 141 successful Verina P³ runs (backend Claude-Opus-4.7), 131 (92.9%) retained the initially selected plan through completion, while 10 (7.1%) required replacement after the original route proved infeasible. The selected route thus usually remained viable through successful elaboration, though retention does not imply a perfect estimate of proof difficulty.\n\n### Q2. Failure analysis for P³\n\nAcross the 48 failed Verina P³ runs, the cause was an inadequate plan in 4 cases (8.3%), program elaboration in 3 (6.3%), proof elaboration under an otherwise viable plan in 15 (31.3%), and timeout or tool failure in 26 (54.2%). Only 4 of 48 failures were therefore attributable to plan inadequacy; most arose from proof elaboration or from execution-time and tool limits. We will add this breakdown, along with representative examples from the two largest categories.\n\n### W3. Scalability to large-scale software systems\n\nWe agree that our current evidence does not establish whole-system scalability. That said, Lean4Commit0 already goes beyond single functions: each task represents a library with multiple implementations and relational theorems, totaling 1,030 jointly constrained placeholders across 108 libraries. It nonetheless models core APIs rather than complete builds, and omits very long dependency chains and dynamic features. We will therefore describe it consistently as a repository-derived, library-level evaluation.\n\nA plausible route to larger systems is hierarchical planning: derive an API dependency-and-contract graph, plan modules separately, and use verified interfaces to make completed modules opaque while jointly planning code and proof within each remaining obligation. We will present this as future work rather than as an empirically established capability."+ },+ "createdAt": "2026-07-28T15:03:34.827Z",+ "modifiedAt": "2026-11-19T16:53:06.212Z",+ "url": "https://openreview.net/forum?id=hIC9ua4c4q¬eId=oknxI0JSfV",+ "license": "CC-BY-4.0"+}
reviews/openreview/hic9ua4c4q/notes/si5rcq1les.json modified
+++ b/reviews/openreview/hic9ua4c4q/notes/si5rcq1les.json@@ -5,11 +5,12 @@"kind": "meta_review","invitation": "Meta_Review","signature": "Area Chair d8Ya","content": {- "metareview": "This paper proposes P³, an agentic workflow for verified code generation that plans the program and its correctness proof jointly before elaborating either component. The shared plan is intended to avoid programs that are functionally plausible but unnecessarily difficult to verify. The paper also introduces Lean4Commit0, a benchmark derived from real repositories and including relational specifications across library APIs. Across Verina, AlgoVeri, and Lean4Commit0 with four LLM backends, P³ achieves the highest solve rate in every reported benchmark–model setting, improving over the stronger sequential baseline by 4.6–11.2 percentage points while reducing cost and runtime on difficult subsets.\n\n**Strengths**:\n\nThe problem is important and clearly motivated: program synthesis and proof construction are tightly coupled, yet existing workflows typically handle them sequentially. The joint-planning formulation is simple but sensible and appears broadly applicable.\n\nThe evaluation is a notable strength. Results are consistent across three benchmarks and four models, and the improvements include both solve rate and computational efficiency. Lean4Commit0 is also a useful contribution because it moves evaluation toward repository-derived APIs and cross-functional specifications. The manuscript is reportedly clear and supported by informative examples.\n\n**Weaknesses**:\n\nThe central weakness is that the evaluation does not fully isolate why P³ works. In particular, the paper lacks a planning-only baseline such as Planning → Program → Proof, making it unclear whether gains arise from joint program–proof reasoning or simply from adding a planning stage.\n\nThe method also assumes that the model can accurately estimate proof difficulty when selecting a plan, but no statistics are provided on plan quality, incorrect plan selection, or where failed runs break down. Baseline coverage is relatively limited, and details concerning repeated runs, variance, and reproducibility should be strengthened. Finally, the current experiments involve relatively small Lean tasks, leaving scalability to larger software systems uncertain.\n\n**Desired Results in the Author Rebuttal**:\n\nThe response could materially strengthen the acceptance case by providing:\n\n1. A Planning → Program → Proof ablation under the same computational budget.\n\n2. Statistics on plan-selection accuracy and a failure decomposition separating poor plans from failed implementation or proof elaboration.\n\n3. Clarification of the number of runs, variance, reproducibility resources, and relevant omitted baselines.\n\n4. A representative Lean4Commit0 example solved only by P³, together with a clearer discussion of scalability.\n\nOverall, the method is technically straightforward, but the consistent empirical gains and useful benchmark contribution outweigh the current evaluation. Hereby my initial assessment leans toward the acceptance (Poster)."+ "metareview": "This paper proposes P³, an agentic workflow for verified code generation that plans the program and its correctness proof jointly before elaborating either component. The shared plan is intended to avoid programs that are functionally plausible but unnecessarily difficult to verify. The paper also introduces Lean4Commit0, a benchmark derived from real repositories and including relational specifications across library APIs. Across Verina, AlgoVeri, and Lean4Commit0 with four LLM backends, P³ achieves the highest solve rate in every reported benchmark–model setting, improving over the stronger sequential baseline by 4.6–11.2 percentage points while reducing cost and runtime on difficult subsets.\n\n**Strengths**:\n\nThe problem is important and clearly motivated: program synthesis and proof construction are tightly coupled, yet existing workflows typically handle them sequentially. The joint-planning formulation is simple but sensible and appears broadly applicable.\n\nThe evaluation is a notable strength. Results are consistent across three benchmarks and four models, and the improvements include both solve rate and computational efficiency. Lean4Commit0 is also a useful contribution because it moves evaluation toward repository-derived APIs and cross-functional specifications. The manuscript is reportedly clear and supported by informative examples.\n\n**Weaknesses**:\n\nThe central weakness is that the evaluation does not fully isolate why P³ works. In particular, the paper lacks a planning-only baseline such as Planning → Program → Proof, making it unclear whether gains arise from joint program–proof reasoning or simply from adding a planning stage.\n\nThe method also assumes that the model can accurately estimate proof difficulty when selecting a plan, but no statistics are provided on plan quality, incorrect plan selection, or where failed runs break down. Baseline coverage is relatively limited, and details concerning repeated runs, variance, and reproducibility should be strengthened. Finally, the current experiments involve relatively small Lean tasks, leaving scalability to larger software systems uncertain.\n\n**Desired Results in the Author Rebuttal**:\n\nThe response could materially strengthen the acceptance case by providing:\n\n1. A Planning → Program → Proof ablation under the same computational budget.\n\n2. Statistics on plan-selection accuracy and a failure decomposition separating poor plans from failed implementation or proof elaboration.\n\n3. Clarification of the number of runs, variance, reproducibility resources, and relevant omitted baselines.\n\n4. A representative Lean4Commit0 example solved only by P³, together with a clearer discussion of scalability.\n\nOverall, the method is technically straightforward, but the consistent empirical gains and useful benchmark contribution outweigh the current evaluation. Hereby my initial assessment leans toward the acceptance (Poster).",+ "final_justification": "After the rebuttal and discussion, the reviews are consistently positive. Therefore, the AC decides to accept the paper."},"createdAt": "2026-07-23T16:46:56.804Z",- "modifiedAt": "2026-11-18T15:26:00.578Z",+ "modifiedAt": "2026-11-19T05:03:48.155Z","url": "https://openreview.net/forum?id=hIC9ua4c4q¬eId=si5rcQ1Les","license": "CC-BY-4.0"}
reviews/openreview/hic9ua4c4q/notes/zxjf0572gw.json added
+++ b/reviews/openreview/hic9ua4c4q/notes/zxjf0572gw.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "zxjF0572gw",+ "replyTo": "4esf4oXrr3",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer GpuC",+ "comment": "We thank the reviewer for the positive assessment of the motivation, examples, and real-world benchmark. We address the requested methodological and reproducibility details below.\n\n### W1 & Q1. Technical insights behind P³\n\nThe planner is not merely instructed to \"think first.\" It must produce an inspectable plan artifact with four explicit commitments:\n\n 1. the formal specification, together with any algorithmic or asymptotic instruction;\n 2. the program decomposition: recursion variable, branch structure, data representation, auxiliary routines, and termination measure;\n 3. the concrete library functions and existing lemmas that elaboration will rely on; and\n 4. the proof obligations: the bridging predicate or invariant, the induction/case structure, and the statements of any required auxiliary lemmas.\n\nThe plan gate then checks that the program sketch satisfies the algorithmic instruction, that the chosen decomposition preserves the bridging predicate, that the predicate entails the postcondition, and that any required strengthening is stated before code generation. During elaboration, local syntax or type errors may be repaired only while the plan remains unchanged; if a new structural lemma, invariant, or algorithm becomes necessary, the workflow records a plan failure and replans rather than continuing local repair. We will add this schema and compact pseudocode to Section 3.1; the complete executable prompt remains in Appendix E.\n\n\n### W2 & Q2. Reproducibility of the results\n\nEach (task, model, method) configuration in the original Table 2 was run once, owing to the high cost of evaluation. We therefore do not report formal significance tests or within-task variance, and we will state this limitation more prominently.\n\nThe anonymized agent harness, prompts, Lean4Commit0 benchmark, and evaluation scripts are already available in the Figshare snapshot cited in Appendix E (https://figshare.com/s/2ab7020cacaffcf0d258). We will make this link more prominent in Section 5.1 and consolidate, in one place, the exact model, API, and CLI versions, sampling settings, Lean 4.28.0 Docker environment, task instructions, and per-run cost, time, and feedback limits needed to reproduce Table 2.\n\n\n### Q3. A Lean4Commit0 case solved only by P³\n\nWe will release the complete traces for Memchr, a Lean4Commit0 task that P³ solves but neither PLAIN nor SEQ does under the same backend and budget. The task comprises three APIs (`memchr`, `memmem`, and `memrchr`) and four theorems, including the relational requirement that forward and reverse search agree on whether the target byte occurs. PLAIN could not connect the `List.idxOf` lemmas to the optional-index specification and timed out; SEQ committed to an unbounded search and failed final evaluation.\n\nP³ instead made the finite witness domain explicit and aligned the first- and last-occurrence proofs with `Nat.find` and `Nat.findGreatest`. The relational theorem then follows compositionally from `memchr_spec` and `memrchr_spec`:\n\n```lean\nhave hi := (memchr_spec needle haystack).1 i hmemchr\nexact ((memrchr_spec needle haystack).2\n hmemrchr i hi.1 hi.2.1).elim\n```\n\nThe converse direction is symmetric. Lean accepted all three implementations and all four proofs without `sorry` or custom axioms.\n\n### Q4. Generalizability to other formal languages (e.g., Rust/Verus)\n\nThe scheduling principle is not tied to dependent types; only the contents of the shared proof sketch are verifier-specific. In Rust/Verus, the plan would pair the Rust control and data structures with preconditions, postconditions, loop invariants, decreases clauses, ghost state, and SMT-facing auxiliary lemmas. Code and annotations would then be elaborated under this plan: local verifier errors could be repaired in place, whereas failures that invalidate the shared invariant or decomposition would trigger replanning. Dafny admits an analogous mapping. We will add this concrete discussion, while making clear that transfer beyond Lean remains a hypothesis requiring empirical validation."+ },+ "createdAt": "2026-07-28T15:04:48.490Z",+ "modifiedAt": "2026-11-19T16:53:06.208Z",+ "url": "https://openreview.net/forum?id=hIC9ua4c4q¬eId=zxjF0572gw",+ "license": "CC-BY-4.0"+}