Lean4Agent: Formal Modeling and Verification for Agent Workflow and Trajectory
Update NeurIPS 2026 submission HBViYASFJz: 6 notes
@openreview[bot] · 2026-11-24 15:48 UTC · c52dd468f848 ·
reviews/openreview/hbviyasfjz/notes/4nzob96911.json added
+++ b/reviews/openreview/hbviyasfjz/notes/4nzob96911.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "4NZOb96911",+ "replyTo": "UpaMBcgHTT",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Looking forward for your post-rebuttal feedback",+ "comment": "Dear Reviewer KYu6,\n\nThank you so much for recognizing our work and for your constructive comments.\n\nWe understand you may have a busy schedule, but as the discussion deadline approaches, we would like to hear your response to our rebuttal. We would greatly appreciate it if you could read our rebuttal and let us know if you have any further questions or concerns.\n\nThank you again for your work!\n\nBest regards,\n\nSubmission #11044 Author Team"+ },+ "createdAt": "2026-08-03T01:25:15.654Z",+ "modifiedAt": "2026-11-19T17:09:33.662Z",+ "url": "https://openreview.net/forum?id=HBViYASFJz¬eId=4NZOb96911",+ "license": "CC-BY-4.0"+}
reviews/openreview/hbviyasfjz/notes/6izvh5x1qj.json added
+++ b/reviews/openreview/hbviyasfjz/notes/6izvh5x1qj.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "6IzVH5X1Qj",+ "replyTo": "RpGSfjhR44",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Thank you for your review",+ "comment": "Thank you so much for your review and for recognizing our work. We are pleased that the rebuttal has resolved most of your concerns and welcome the increase in rating. We are also glad to address any further questions you may have."+ },+ "createdAt": "2026-07-29T23:31:44.411Z",+ "modifiedAt": "2026-11-19T17:09:33.688Z",+ "url": "https://openreview.net/forum?id=HBViYASFJz¬eId=6IzVH5X1Qj",+ "license": "CC-BY-4.0"+}
reviews/openreview/hbviyasfjz/notes/fedmqpf1sd.json added
+++ b/reviews/openreview/hbviyasfjz/notes/fedmqpf1sd.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "FedmQPf1SD",+ "replyTo": "Xi4N7BTn4F",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Reviewer MuLx",+ "content": {+ "comment": "Thanks for the rebuttal! Please do remember to include the manual evaluation results and the clarification of error families in the next version of the paper. I am happy with the response and I'll keep my rating."+ },+ "createdAt": "2026-08-02T01:51:09.429Z",+ "modifiedAt": "2026-11-19T17:09:33.662Z",+ "url": "https://openreview.net/forum?id=HBViYASFJz¬eId=FedmQPf1SD",+ "license": "CC-BY-4.0"+}
reviews/openreview/hbviyasfjz/notes/rpgsfjhr44.json added
+++ b/reviews/openreview/hbviyasfjz/notes/rpgsfjhr44.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "RpGSfjhR44",+ "replyTo": "8gLV9y7Rts",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Reviewer PKw6",+ "content": {+ "title": "Response to the Authors",+ "comment": "Thanks for the detailed rebuttal. The predicate audit and the new before/after repair results address most of my concerns and make the causal story much stronger. I also appreciate the clearer explanation that Lean verifies the workflow abstraction under explicit assumptions, rather than the behavior of the black-box LLM itself.\n\nSome limitations remain around predicate completeness and the LLMExec assumption, but the response is convincing overall. I am updating my rating from 3 to 4!:)"+ },+ "createdAt": "2026-07-29T18:14:30.511Z",+ "modifiedAt": "2026-11-19T17:09:33.691Z",+ "url": "https://openreview.net/forum?id=HBViYASFJz¬eId=RpGSfjhR44",+ "license": "CC-BY-4.0"+}
reviews/openreview/hbviyasfjz/notes/srgnfqm4jp.json modified
+++ b/reviews/openreview/hbviyasfjz/notes/srgnfqm4jp.json@@ -5,11 +5,12 @@"kind": "meta_review","invitation": "Meta_Review","signature": "Area Chair heJQ","content": {- "metareview": "**Summary of claims and findings** The paper proposes Lean4Agent, which the authors claim is the first framework to use Lean4, a\ndependent-type formal language, to model and verify LLM-agent workflows and execution trajectories. It comprises FormalAgentLib, a Lean4 library with a three-layer verification stack, and LeanEvolve, which uses verification feedback to revise workflows. Verification-passing workflows outperform failing ones by 11.94% on average.\n\n**Main strengths** Reviewers agree the direction of bringing formal specification/verification to increasingly complex agent workflows is meaningful. The three-layer architecture is well-designed as it cleanly transfers a program-verification decomposition to the agent setting, and dependent types offer expressiveness beyond temporal-logic or SMT approaches. The empirical results are solid with the improvements most pronounced on weaker models.\n\n**Main weaknesses**\nFirst, the \"formal verification\" framing may be overstated. The semantic layer rests on the LLMExec assumption (if a step's preconditions hold, the LLM produces postconditions), a strong assumption for black-box agents. Lean thus verifies the consistency of a workflow abstraction under assumptions, not that the LLM actually follows the intended semantics. The trajectory layer partially compensates but then falls back on external tools and an LLM-as-judge. PKw6 asks that the paper cleanly separate \"verification of a workflow abstraction under assumptions\" from \"verification of actual agent behavior\" and tone down guarantee language.\n\nSecond, the semantic predicates are LLM-generated. If predicates are wrong, weak, or incomplete, Lean will certify the wrong abstraction. No quantitative analysis of predicate quality or LLMExec violation rates is provided.\n\nThird, the evaluation focuses on comparison between passing vs. failing workflows, but these groups may differ in general quality for reasons unrelated to Lean verification. The paper lacks the controlled experiment that would isolate the verification signal e.g. repairing the specific failed predicates and measure before/after.\n\nOther points: contribution differentiation from prior structured-workflow and tool-verification work (LangChain graphs, PDL, AgentSPEX, ToolGate, VeriGuard) and what dependent types uniquely provide is underdeveloped.\n\n**What could shift the recommendation**\n1. Reframe the guarantees. Explicitly state what is proved in Lean vs. assumed.\n2. Isolate the verification signal. Add a causal experiment to show the 11.94% is not just selecting better workflows.\n3. Quantify predicate reliability. Report an error rate for LLM-generated predicates and an ablation to show whether the framework detects misspecification or propagates it.\n4. Sharpen positioning and scope: differentiate from prior workflow/tool-verification work and state what dependent types uniquely enable; clarify when Lean suffices vs. when the LLM-as-judge is invoked and how often they disagree."+ "metareview": "**Summary of claims and findings** The paper proposes Lean4Agent, which the authors claim is the first framework to use Lean4, a\ndependent-type formal language, to model and verify LLM-agent workflows and execution trajectories. It comprises FormalAgentLib, a Lean4 library with a three-layer verification stack, and LeanEvolve, which uses verification feedback to revise workflows. Verification-passing workflows outperform failing ones by 11.94% on average.\n\n**Main strengths** Reviewers agree the direction of bringing formal specification/verification to increasingly complex agent workflows is meaningful. The three-layer architecture is well-designed as it cleanly transfers a program-verification decomposition to the agent setting, and dependent types offer expressiveness beyond temporal-logic or SMT approaches. The empirical results are solid with the improvements most pronounced on weaker models.\n\n**Main weaknesses**\nFirst, the \"formal verification\" framing may be overstated. The semantic layer rests on the LLMExec assumption (if a step's preconditions hold, the LLM produces postconditions), a strong assumption for black-box agents. Lean thus verifies the consistency of a workflow abstraction under assumptions, not that the LLM actually follows the intended semantics. The trajectory layer partially compensates but then falls back on external tools and an LLM-as-judge. PKw6 asks that the paper cleanly separate \"verification of a workflow abstraction under assumptions\" from \"verification of actual agent behavior\" and tone down guarantee language.\n\nSecond, the semantic predicates are LLM-generated. If predicates are wrong, weak, or incomplete, Lean will certify the wrong abstraction. No quantitative analysis of predicate quality or LLMExec violation rates is provided.\n\nThird, the evaluation focuses on comparison between passing vs. failing workflows, but these groups may differ in general quality for reasons unrelated to Lean verification. The paper lacks the controlled experiment that would isolate the verification signal e.g. repairing the specific failed predicates and measure before/after.\n\nOther points: contribution differentiation from prior structured-workflow and tool-verification work (LangChain graphs, PDL, AgentSPEX, ToolGate, VeriGuard) and what dependent types uniquely provide is underdeveloped.\n\n**What could shift the recommendation**\n1. Reframe the guarantees. Explicitly state what is proved in Lean vs. assumed.\n2. Isolate the verification signal. Add a causal experiment to show the 11.94% is not just selecting better workflows.\n3. Quantify predicate reliability. Report an error rate for LLM-generated predicates and an ablation to show whether the framework detects misspecification or propagates it.\n4. Sharpen positioning and scope: differentiate from prior workflow/tool-verification work and state what dependent types uniquely enable; clarify when Lean suffices vs. when the LLM-as-judge is invoked and how often they disagree.",+ "final_justification": "I read the authors' response and the full discussion. The authors clarified that Lean verifies the\nworkflow abstraction under explicit assumptions, rather than guaranteeing the behavior of the\nblack-box LLM, and agreed to revise the framing accordingly. They added controlled repair\nexperiments in which fixing the diagnosed workflow defects improved performance on both SWE-Bench\nand ELAIP-Bench, providing stronger evidence that the verification signal is useful rather than\nmerely selecting better workflows. They also manually audited the predicate annotations, and\ncorrecting the identified errors did not change any verification outcome. The\nresponse further clarified the advantages of dependent types, the distinction from prior workflow\nand tool-verification systems, and the roles of formal checks, external tools, and LLM-based\njudgments. The main remaining limitation is that the guarantees still depend on the quality and\ncompleteness of the predicates and on the LLMExec assumption.\n\nOverall, Lean4Agent presents a well-designed use of\nformal methods for agent workflows. Although the framework does not\nverify the behavior of the underlying LLM itself, this boundary is now clearly stated and does not\nundermine the value of verifying workflow structure, information flow, and execution trajectories."},"createdAt": "2026-07-23T04:30:08.273Z",- "modifiedAt": "2026-11-18T15:20:28.357Z",+ "modifiedAt": "2026-11-19T05:00:18.355Z","url": "https://openreview.net/forum?id=HBViYASFJz¬eId=srgnFQm4Jp","license": "CC-BY-4.0"}
reviews/openreview/hbviyasfjz/notes/tt553odonw.json added
+++ b/reviews/openreview/hbviyasfjz/notes/tt553odonw.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "tT553ODonw",+ "replyTo": "FedmQPf1SD",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Thank you for your response",+ "comment": "We sincerely appreciate your constructive review and recognition of our work. We are glad you are happy with the response, and we will certainly include the results of the additional experiments and clarification of error families in the next version of our paper."+ },+ "createdAt": "2026-08-02T01:56:18.935Z",+ "modifiedAt": "2026-11-19T17:09:33.657Z",+ "url": "https://openreview.net/forum?id=HBViYASFJz¬eId=tT553ODonw",+ "license": "CC-BY-4.0"+}