PAT-Agent: Autoformalization for Model Checking
On the map: LLM agents and tool use → General LLM agent frameworks and benchmarks
Abstract (arXiv)
Recent advances in large language models (LLMs) offer promising potential for automating formal methods. However, applying them to formal verification remains challenging due to the complexity of specification languages, the risk of hallucinated output, and the semantic gap between natural language and formal logic. We introduce PAT-Agent, an end-to-end framework for natural language autoformalization and formal model repair that combines the generative capabilities of LLMs with the rigor of formal verification to automate the construction of verifiable formal models. In PAT-Agent, a Planning LLM first extracts key modeling elements and generates a detailed plan using semantic prompts, which then guides a Code Generation LLM to synthesize syntactically correct and semantically faithful formal models. The resulting code is verified using the Process Analysis Toolkit (PAT) model checker against user-specified properties, and when discrepancies occur, a Repair Loop is triggered to iteratively correct the model using counterexamples. To improve flexibility, we built a web-based interface that enables users, particularly non-FM-experts, to describe, customize, and verify system behaviors through user-LLM interactions. Experimental results on 40 systems show that PAT-Agent consistently outperforms baselines, achieving high verification success with superior efficiency. The ablation studies confirm the importance of both planning and repair components, and the user study demonstrates that our interface is accessible and supports effective formal modeling, even for users with limited formal methods experience.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Placed in General LLM agent frameworks and benchmarks, one of 16 directions in LLM agents and tool use. Builds on 21 of its 42 references that are in the map. First posted on arXiv 28 Sep 2025.
Builds on
21 of 42 references.
Closest ancestors · 1
Same direction, newest first
Other references · 20
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2022Survey of Hallucination in Natural Language Generationcited by 2,075
- 2021Measuring Coding Challenge Competence With APPScited by 902
- 2023LeanDojo: Theorem Proving with Retrieval-Augmented Language Modelscited by 427
- 2019Neural Probabilistic Logic Programming in DeepProbLogcited by 394
- 2020ProofWriter: Generating Implications, Proofs, and Abductive Statements over Natural Languagecited by 324
- 2023LLM Lies: Hallucinations are not Bugs, but Features as Adversarial Examplescited by 177
- 2023Self-planning Code Generation with Large Language Modelscited by 124
- 2023Baldur: Whole-Proof Generation and Repair with Large Language Modelscited by 119
- 2023nl2spec: Interactively Translating Unstructured Natural Language to Temporal Logics with Large Language Modelscited by 60
- 2024Enchanting Program Specification Synthesis by Large Language Models using Static Analysis and Program Verificationcited by 58
8 more
- 2023Lemur: Integrating Large Language Models in Automated Program Verificationcited by 49
- 2022Compilable Neural Code Generation with Compiler Feedbackcited by 47
- 2024FVEL: Interactive Formal Verification Environment with Large Language Models via Theorem Provingcited by 22
- 2024Proof Automation with Large Language Modelscited by 22
- 2025On the Effectiveness of Large Language Models in Writing Alloy Formulascited by 7
- 2024CoqPyt: Proof Navigation in Python in the Era of LLMscited by 5
- 2025Do AI assistants help students write formal specifications? A study with ChatGPT and the B-Methodcited by 2
- 2019Sharing and Learning Alloy on the Webcited by 1
Built on by
Citing papers per year: 2025: 1; 2026: 2.
3 papers.
- 2025Agentic Verification of Software Systemscited by 6
- 2026Event-B Agent: Towards LLM Agent for Formal Model Synthesis and Repaircited by 3
- 2026Automated Lemma Discovery in Agentic Program Verificationcited by 2
- 2026Event-B Agent: Towards LLM Agent for Formal Model Synthesis and Repair17 May 2026
- 2026Automated Lemma Discovery in Agentic Program Verification23 Mar 2026
- 2025Agentic Verification of Software Systems21 Nov 2025
Similar, not cited
Close in wording, no citation either way
- 2026Automating Formal Verification with Agent-Guided Tree Search
- 2026Formal Model Construction Guided by Model-Based Proof Sketches ↗
- 2026MANTRA: Synthesizing SMT-Validated Compliance Benchmarks for Tool-Using LLM Agents
- 2026Verification as an Architectural Layer for LLM Agents: A V-Model Design, and a Pilot Study of Its Deterministic Core
- 2025LMR-BENCH: Evaluating LLM Agent's Ability on Reproducing Language Modeling Research
- 2026Can Large Language Models Implement Agent-Based Models? An ODD-based Replication Study
- 2026Harnessing Code Agents for Automatic Software Verification
- 2026Beyond LLM Judge: Mechanical Verification for Agentic Autoformalization