Accessible Smart Contracts Verification: Synthesizing Formal Models with Tamed LLMs
Jan Corazza, Ivan Gavran, Gabriela Moreira, Daniel Neider

TL;DR
This paper introduces a method to automate the creation of formal models for smart contracts using large language models, reducing time and expertise needed for verification and increasing accessibility of formal methods.
Contribution
It presents a novel three-phase model synthesis approach combining transpilation, LLM-based filling, and iterative repair to streamline formal model creation.
Findings
Reduces time to generate formal models for smart contracts.
Increases accessibility of formal verification methods.
Improves accuracy of models through iterative repair.
Abstract
When blockchain systems are said to be trustless, what this really means is that all the trust is put into software. Thus, there are strong incentives to ensure blockchain software is correct -- vulnerabilities here cost millions and break businesses. One of the most powerful ways of establishing software correctness is by using formal methods. Approaches based on formal methods, however, induce a significant overhead in terms of time and expertise required to successfully employ them. Our work addresses this critical disadvantage by automating the creation of a formal model -- a mathematical abstraction of the software system -- which is often a core task when employing formal methods. We perform model synthesis in three phases: we first transpile the code into model stubs; then we "fill in the blanks" using a large language model (LLM); finally, we iteratively repair the generated…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsEuropean and International Contract Law · Artificial Intelligence in Law · Law, Economics, and Judicial Systems
