- Rating
- 4
- Clarity
- 4
- Confidence
- 4
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
This paper proposes a methodology for agentic verified code generation in Lean 4. Instead of the program-then-proof sequential pipeline adopted by most frameworks, it introduces a planning phase where coding agents are instructed to generate a sketch of decomposed program-generation / proof-elaboration tasks; then both program and proof are generated against the same plan. Additionally, the paper introduces a new set of benchmarks that include real-world programs. Experimental results show the methodology is effective compared to the sequential approach.
Strengths and weaknesses
Strengths:
- Targets a relevant problem: how to orchestrate coding agents for verified code generation.
- Good illustrating examples to motivate the coupling of program generation and proof elaboration.
- Proposes real-world benchmarks.
Weaknesses:
- The proposed method is relatively simple and the improvement compared to the baseline is modest, which limits the novelty of the contribution.
- Missing hints on the reproducibility of the results.
Questions
- When prompting coding agents to produce a plan, what are the key technical/algorithmic insights for instructing the agent to construct a program/proof sketch? Could the authors give more detail on the first paragraph of Section 3.1?
- How many runs per benchmark entry were tried? Could the authors comment on the reproducibility of the results, especially for Table 2?
- I appreciate the case study on the red-black tree. Could the authors share an example from the newly proposed real-world benchmark that is not solvable by plain agent calls or the sequential method, but is solvable using the proposed method?
- Can the authors envision how the proposed method might adapt to languages with a less expressive type system but good deductive-verifier support? The paper mentions Rust and Verus — would the same methodology work in that setting?
Limitations
Yes. The paper discusses limitations (Appendix C), including disclosing that statistical significance testing was infeasible.
Paper formatting concerns
No
Meta-review
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.
Strengths:
The 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.
The 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.
Weaknesses:
The 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.
The 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.
Desired Results in the Author Rebuttal:
The response could materially strengthen the acceptance case by providing:
A Planning → Program → Proof ablation under the same computational budget.
Statistics on plan-selection accuracy and a failure decomposition separating poor plans from failed implementation or proof elaboration.
Clarification of the number of runs, variance, reproducibility resources, and relevant omitted baselines.
A representative Lean4Commit0 example solved only by P³, together with a clearer discussion of scalability.
Overall, 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).