Formal Verification Is Not Verifiable
AI is driving formal verification into the mainstream, but blanket claims of formally verified software are misleading because foundational specifications and models remain hard to verify.
read it An insightful essay dissecting the practical limits and nuances of applying formal verification and AI to software correctness.
summary
The author argues that while AI has accelerated formal verification, calling software 'formally verified' is dangerous because proofs rely on unverified models, specifications, and provers. Testing remains superior for human verifiability and catching concrete bugs, whereas formal methods require massive trusted computing bases. Rather than seeking total correctness, engineers should verify specific properties of well-bounded layers while accepting that complex software will always have bugs.
key points
- Formal verification makes universal claims that depend on hard-to-verify underlying models and specifications, unlike human-reviewable testing.
- Moving verification to the binary level helps bypass compiler bugs and language semantics, though the trusted computing base remains large.
- The industry should abandon the label 'formally verified software' in favor of precise disclosures about what specific properties were proven and what remains trusted.
who should read it
Software engineers and researchers interested in formal methods, program correctness, and AI-assisted development.
discussion positive
consensus
Commenters generally agree that formal verification is useful for specific properties, but debate whether AI can effectively handle the hard part: writing sound, complete formal specifications.
pushback
A dissenting view argues that formal verification will add little value to most projects because detailed specifications are just as complex as code and prone to their own bugs.
Proofs are useful insofar as the formal specification is sound. The problem is that building a sound formal specification is the hard part, and it's not something that LLMs are going to be particularly good at. Yes, they can write a formal specification. But, is this formal specification sound? Is it usable? Is it applicable? Is it complete? This all requires human level reasoning and perhaps beyond to verify.
Once you have a sound formal specification, building proofs that software follows this specification is actually fairly straightforward. LLMs aren't doing any magic here.
It emphasizes that generating proofs is straightforward once you have a sound specification, making specification-building the actual bottleneck.
Generated by an LLM from the article and thread. Check the sources before relying on it.