🛡️ Security · ⏱️ 2 min Cappuccino ●●●○○
What is Formal verification?
📖 The slightly longer version
Normally, people check software by testing it: they try many inputs and see if anything breaks. But tests only cover the cases someone thought of. Formal verification is different. You write down, in exact math, what the code must do. Then you build a proof, a chain of logical steps, that the code always does it, for every possible input.
A human can make mistakes in a proof, so a special program called a proof checker reads every step and refuses anything that does not follow. Lean is one such language: you write the proof in it, and the computer checks the math. Writing these proofs is slow and hard work for people. That is why it is big news when AI agents, small AI programs that work on a task by themselves, write them.
How formal verification works
- Write the rulesPeople describe in exact math what the code must always do.
- Build a proofA human or an AI writes logical steps showing the code follows the rules.
- Computer checksA proof checker like Lean tests every single step and rejects mistakes.
- Proof acceptedThe code is proven to match the rules for every possible input.
Google DeepMind says its AlphaProof Code agents wrote three million lines of Lean proofs to verify Signal's core encryption, the math that keeps your messages private. If AI can make this kind of checking cheap, the apps you trust with secrets could become much safer. This is the good side of AI and code, the opposite of fast agents shipping apps nobody checks.
⚠️ What to watch out for
A proof only shows the code matches the written description, called the specification. If the description is wrong or misses something, the proof can be perfect and the software still unsafe. Also, three million lines is far too much for humans to read, so we trust the proof checker and the specification, and we only have Google's own blog post on the details so far.
📰 Where it showed up
This notion came up in A trillion-dollar IPO, a new safety law, and 35,000 open doors. More lessons: Learn.
🎯 Keep learning
Sources
Written on 2026-11-11. This explanation was accurate on that day. AI changes fast, so check the sources and the date before you rely on it.
Get The AI Daily Grind by email, every morning, in simple words.