Lune

FSE2026顶会

Event-B Agent: Towards LLM Agent for Formal Model Synthesis and Repair

Hongshu Wang, Xinyue Zuo, Yuhan Sun, Qin Li, Yamine Aït-Ameur, Jin Song Dong

摘要

Building software that is correct by construction is a long-standing goal in software engineering, as it ensures reliability during design and development rather than after deployment. Formal methods realize this vision by enabling the expression of system behavior and requirements in mathematics, thereby guaranteeing correctness through formal verification, including theorem proving and model checking. However, the steep learning curve and demand for mathematical expertise hinder the widespread adoption of formal methods. Large language models (LLMs) have recently shown promise in bridging this gap through autoformalization. However, existing LLM-based approaches are largely limited to isolated tasks, such as theorem proving without formalization or model synthesis with insufficient verification. While valuable, these efforts do not fully exploit the potential of a more comprehensive framework in which models and proofs evolve together, a process that closely reflects real-world development practice. To address this gap, we propose Event-B Agent, a novel framework inspired by the interleaved nature of software design. Given natural language requirements, Event-B Agent constructs an initial model and iteratively repairs and refines it using formal verification feedback. Refinement simplifies proof discharge, while repair of models and proofs ensures the soundness of each refinement step. Together, these two components reinforce each other to progressively improve the model quality. Evaluation across systems of varying complexity demonstrates that Event-B Agent substantially outperforms baselines in end-to-end formal model synthesis and repair, while maintaining reasonable efficiency. These results suggest that Event-B Agent is a promising step toward correct-by-construction formal model synthesis and repair.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

可以从这些问题问起

Lune 可以查阅

全文 · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Enchanting Program Specification Synthesis by Large Language Models Using Static Analysis and Program Verification 引用了 Lemur: Integrating Large Language Models in Automated Program Verification
  • Enchanting Program Specification Synthesis by Large Language Models Using Static Analysis and Program Verification 引用了 Baldur: Whole-Proof Generation and Repair with Large Language Models
  • Lemur: Integrating Large Language Models in Automated Program Verification 引用了 Baldur: Whole-Proof Generation and Repair with Large Language Models
  • Proving Theorems Recursively 引用了 Magnushammer: A Transformer-Based Approach to Premise Selection
  • Proving Theorems Recursively 引用了 Baldur: Whole-Proof Generation and Repair with Large Language Models
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

它引用的 Paper9

  1. Baldur: Whole-Proof Generation and Repair with Large Language ModelsEmily First, Markus N. Rabe, Talia Ringer, Yuriy BrunFSE 2023 · 89 次引用
  2. Lemur: Integrating Large Language Models in Automated Program VerificationHaoze Wu, Clark W. Barrett, Nina NarodytskaICLR 2024 · 67 次引用
  3. Magnushammer: A Transformer-Based Approach to Premise SelectionMaciej Mikula, Szymon Tworkowski, Szymon Antoniak, Bartosz Piotrowski 等ICLR 2024 · 62 次引用
  4. Enchanting Program Specification Synthesis by Large Language Models Using Static Analysis and Program VerificationCheng Wen, Jialun Cao, Jie Su, Zhiwu Xu 等CAV 2024 · 60 次引用
  5. Proving Theorems RecursivelyHaiming Wang, Huajian Xin, Zhengying Liu, Wenda Li 等NeurIPS 2024 · 34 次引用

相关 Paper

  1. PAT-Agent: Autoformalization for Model CheckingXinyue Zuo, Yifan Zhang, Hongshu Wang, Yufan Cai 等ASE 2025 · 1 次引用
  2. PATCHAGENT: A Practical Program Repair Agent Mimicking Human ExpertiseZheng Yu, Ziyi Guo, Yuhang Wu, Jiahao Yu 等USENIX Security 2025
  3. RLEF: Grounding Code LLMs in Execution Feedback with Reinforcement LearningJonas Gehring, Kunhao Zheng, Jade Copet, Vegard Mella 等ICML 2025
  4. Towards Iterative End-to-End Software Development: A Feature-Driven Multi-agent FrameworkJunwei Liu, Chen Xu, Chong Wang, Tong Bai 等ISSTA 2026 · 1 次引用
  5. ExVerus: Verus Proof Repair via Counterexample ReasoningJun Yang, Yuechun Sun, Yi Wu, Rodrigo Caridad 等ICML 2026 · 3 次引用
黄昏的海面,两侧是细线勾勒的悬崖