Formal Verification in the Age of AI
Devcon 8 · 5 Nov 2026 · 7:38
Benjamin Flores (Fricoben) of Verity Labs explains in five minutes what AI has changed in formal verification. Writing the specification is still the main work, but AI now helps formalize it and, above all, writes proofs through reasoning instead of relying on hard-to-manage SMT solvers, which makes verifying smart contracts economically viable. Hard parts remain, such as making sure a specification fully covers a system. Flores points to Verity's Lean-based tooling for writing contracts and proofs in one language and answers questions on checking that AI formalizes the right thing.
Speakers
Topics
From Devcon 8, hosted by Ethereum Foundation.
Transcript
[music] [music] >> Hello everyone. Uh so thank you for the introduction. I'm Ben from Verity and we um secure critical code with formal verification. The goal of this talk today is to explain what did change with AI in formal verification because I'm sure you guys heard about formal verification all the time on X uh but uh but a lot of people like do not understand completely what did change. So the goal of this talk is to explain that and to explain where we headed with the next frontier models.
So uh let's talk about the steps of doing formal verification before AI. So I have only 5 minutes so bunch of imprecision will be will be done here. Uh please forgive me. You I will ask question after if needed. Uh the idea is at the beginning you describe okay at the beginning here you you describe uh your system with a bunch of English specification. Uh in the world of AI we could call that a prompt basically um and then you will try to formalize this uh English specification into mathematical theorems. Um and that was before AI particularly hard because you had to had some notion about um this
about mathematics and about computer science of course. And then the last step is was the hardest is that you had to prove that your mathematical theorem that you did before uh is uh holding on all of the state of your implementation and that was hard because you had to like use uh some tools called SMT solvers and in general these SMT solvers were difficult to manage uh and sometimes most of the times actually impossible uh to prove most of the statements. So it was very very difficult to do formal verification.
After AI same steps. You still write your specification. Now as said it's called a bit a prompt. So is like all of the things you do before actually writing the implementation and this is most of the work now. And then the formalization of your specification is a bit easier because you have a PhD in a data center that costs 20 cents an hour that will help you to to formalize all of your specification. And what the big change about formal verification is the the the proving parts with AI because now it unlocks a new thing, a new way to prove which is reasoning. It it's it permits
I would say we use LLM here to prove mathematically manually writing a proof as a mathematician would when before we used robots or deterministic I would say solvers that were that were proving our theorems. And now we use these LLMs to do that and this permits us to have considerably like make the overall area of possible code to be formally verified considerably bigger and it brings the the cost of formal verification to basically the cost of the LLM which is very very low compared to 20 mathematical PhDs for two years.
And only the very very critical code were formally verified before. So codes in planes, codes in trains, military code. Now we can formally verify smart contracts but we can formally verify almost everything and it's economically viable to do so. And that's why everyone is talking about formal verification on X. And the big big big thing is the proving part that change with AI. Even though all the rest is easier but as software engineer everywhere is easier. What's still hard and what's left for people doing formal verification like me and maybe like you is that ensuring the full coverage of your system with your spec is still difficult.
Um it's still difficult to understand your whole system and describe it in a way where formal verification will prove that the the the guarantee you um you you you want to keep and hold in in your system hold and that's that's still the the most difficult part. Uh now we got access to frontier models that that are unreleased right now thanks to Google um and we we've seen a bit like the the future when it comes to formal verification. Uh this will not hold for long. The models will be better at us to do this. Maybe not for now but in in the future I'm 100% sure they will be better and we saw already the the
next frontier model which is Gemini Carbon is better at finding gaps in the spec. It's better at writing the specs. So we think the future is actually rewriting everything using formal verification native language so you can write the full spec um implementation and proof in the same mathematical language which is lean and we've done a tooling that is like that permits you to do that. It's called VeriDe and you permit you can write smart contracts directly in lean and formally verify them in the in the same pipeline.
>> Very nice. Thank you. You made it on time. Uh so we'll move to the questions. And I'll just pick the first one so if AI writes your formal specification, how do you make sure it formalizes the right thing? >> Uh what do you mean? In the sense that if AI writes your formal spec, well you have to understand the formal spec and make sure it's a good translation of your English spec. So you have to review the spec which is way better than review the implementation and that's also why people are hyped about formal verification is because the the size of the review is way uh
smaller when it comes to like reviewing your code because now you have to review your specification and not your implementation or at least less your implementation. Um so how do you make sure it formalizes the right thing? Well you look at your English spec, you look at your form uh of at your formalized spec and you review it. >> All right, thank you. And we check the second question. Uh so is there a way to reduce the chance of introducing errors in the spec itself?
>> Creating the spec um the idea that that we we come to in general is what you want to do is have very very easy spec that are very very basic like the ultimate spec for Web 3 would be my user doesn't lose money in the process. That's the ultimate meta spec that sits on top of all of these specs and you try to um to I would say formally verify that this spec holds on all of the child the the child run specs. So that's that's the the main challenge right now. It's like again it's a it's a question of specs and even though models are not like the best right now at doing it they will help a lot in the process and I expect that in the last in the next year they will be
100% better and it it will be a it will be a a question of resource allocation and how do you allocate your tokens? >> Okay, thank you very much. Please once again applause for Benjamin. >> [snorts] >> Thank you. >> [music]
Related talks
- DeFi Security Summit 2026: Pearl Room, Day 1
- sig.golf
- Don't Review the Code: Formal Specs First Smart Contract Development
- Securing Ethereum in the age of AI: Challenges & Opportunities
- What Can We Actually Verify? AI and Ethereum Security
- Formal Verification for Ethereum’s Next Scalability Era / FV and LLMs Together
- Using LLM Generated Formal Specs to Prevent the Next DeFi Hack
- Speeding Up Ethereum Client Development with LLMs
- Harnessing LLMs to generate secure code
