A shallow dive into formal verification
Over the last couple of months, a new programming paradigm has been rapidly gaining traction within Ethereum's frontier research and development circles, and many other corners of computing: writing code directly either in very low-level languages (eg. EVM bytecode, assembly language) or in Lean, and verifying its correctness with automatically-checkable mathematical proofs written in Lean. If done right, this has potential to both output extremely efficient code, and be far more secure than the way programming has been done before. Yoichi Hirai calls this the "final form of software development". This post will attempt to demystify the basics of what is going on here, what formal verification of software can do, and where its weaknesses and limits are, in Ethereum and beyond. Formal verification refers to writing proofs of mathematical theorems in such a way that these theorems can be checked automatically. To give a reasonably simple but still interesting example, let's take a basic
Dark Mode Toggle A shallow dive into formal verification 2026 May 18 See all posts A shallow dive into formal verification Special thanks to Yoichi Hirai, Justin Drake, Nadim Kobeissi and Alex Hicks for feedback and review Over the last couple of months, a new programming paradigm has been rapidly gaining traction within Ethereum's frontier research and development circles, and many other corners of computing: writing code directly either in very low-level languages (eg. EVM bytecode, assembly language) or in Lean, and verifying its correctness with automatically-checkable mathematical proofs
Explore this link on the map →saved by
related reading
- When AI Writes the World's Software, Who Verifies It? — Leonardo de Mouraleodemoura.github.io
- lf-lean: The frontier of verified software engineering | Theoremtheorem.dev
- Formally Verifying WebAssembly - A Soroban Case Studycertora.com
- What the Proofs Assume | seL4sel4.systems
- Automatic Formal Verification for Code Generationlogicalintelligence.com
- Verified Machine Learning Infrastructure: Formal Methods for Trustworthy Artificial Intelligence Deployment | RANDrand.org
- Asymmetry of verification and verifier’s rule - Jason Weijasonwei.net
- Prediction: AI will make formal verification go mainstream - Martin Kleppmann's blogmartin.kleppmann.com
- Jane Street Blog - Formal methods and the future of programmingblog.janestreet.com
- Dear Agent: Prove it. • Rijnard van Tonderrijnard.com
- seL4 - Wikipediaen.wikipedia.org
- [2602.22631] TorchLean: Formalizing Neural Networks in Leanarxiv.org