Event-B Agent: Towards LLM Agent for Formal Model Synthesis and Repair
On the map: LLM agents and tool use → Educational agents and math problem solving
Abstract (arXiv)
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.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Placed in Educational agents and math problem solving, one of 16 directions in LLM agents and tool use. Builds on 25 of its 48 references that are in the map. First posted on arXiv 17 May 2026.
Builds on
25 of 48 references.
References · 25
- 2023GPT-4 Technical Reportcited by 18,132
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2023LeanDojo: Theorem Proving with Retrieval-Augmented Language Modelscited by 414
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2023Baldur: Whole-Proof Generation and Repair with Large Language Modelscited by 118
- 2024Lean-STaR: Learning to Interleave Thinking and Provingcited by 64
- 2024Enchanting Program Specification Synthesis by Large Language Models using Static Analysis and Program Verificationcited by 55
- 2023Magnushammer: A Transformer-Based Approach to Premise Selectioncited by 50
- 2023Lemur: Integrating Large Language Models in Automated Program Verificationcited by 49
- 2018TacticToe: Learning to Prove with Tacticscited by 43
- 2024LeanAgent: Lifelong Learning for Formal Theorem Provingcited by 34
- 2024Proving Theorems Recursivelycited by 25
13 more
- 2020The Tactician (extended version): A Seamless, Interactive Tactic Learner and Prover for Coqcited by 23
- 2025Four Principles for Physically Interpretable World Modelscited by 10
- 2018PaMpeR: Proof Method Recommendation System for Isabelle/HOLcited by 7
- 2025On the Effectiveness of Large Language Models in Writing Alloy Formulascited by 7
- 2016A Proof Strategy Language and Proof Script Generation for Isabelle/HOLcited by 5
- 2024CoqPyt: Proof Navigation in Python in the Era of LLMscited by 5
- 2025Provably Correct Automata Embeddings for Optimal Automata-Conditioned Reinforcement Learningcited by 4
- 2023Learning Formal Specifications from Membership and Preference Queriescited by 3
- 2024Learning Minimal Neural Specificationscited by 3
- 2025Formally Verified Neurosymbolic Trajectory Learning via Tensor-based Linear Temporal Logic on Finite Tracescited by 3
- 2025PAT-Agent: Autoformalization for Model Checkingcited by 3
- 2025Do AI assistants help students write formal specifications? A study with ChatGPT and the B-Methodcited by 2
- 2016Code Generation for Event-Bcited by 1
Built on by
Citing papers per year: 2026: 3.
3 papers.
- 2026Specula: Scaling formal specifications for autonomous model checking of system codecited by 0
- 2026Self-evolving network verifierscited by 0
- 2026CAPRI: Contract-Aware Proof Repair for Isabellecited by 0
- 2026CAPRI: Contract-Aware Proof Repair for Isabelle13 Aug 2026
- 2026Self-evolving network verifiers11 Aug 2026
- 2026Specula: Scaling formal specifications for autonomous model checking of system code28 Jul 2026
Similar, not cited
Close in wording, no citation either way
- 2026Harnessing Code Agents for Automatic Software Verification
- 2026Formal Model Construction Guided by Model-Based Proof Sketches ↗
- 2024Agentless: Demystifying LLM-based Software Engineering Agents
- 2025MM-Agent: LLM as Agents for Real-world Mathematical Modeling Problem
- 2026Beyond the Library: An Agentic Framework for Autoformalizing Research Mathematics
- 2024Large Language Model-Based Agents for Software Engineering: A Survey
- 2026Automating Formal Verification with Agent-Guided Tree Search
- 2026ProofCouncil: An LLM Agent for Solving Open Mathematical Problems