AI Surfaces Implicit Invariants for Formal Proofs
The author argues that while formal verification proves code matches a specification, it cannot detect what the specification forgot, leaving implicit invariants as a primary source of bugs. Drawing on historical studies of verified compilers and distributed systems, the author demonstrates that language models are effective at surfacing these implicit invariants from code. The author concludes that developers should use AI to generate candidate specifications, domain experts to review them, and proofs to enforce them. Open article →