People assume that in an AI doing formal verification world, they can take their existing…
Summary
Hillel argues that AI cannot automatically prove arbitrary existing codebases correct because Rice's theorem prevents proving nontrivial semantic properties for any general-purpose program.
Rice's theorem limits automation.
No general algorithm can determine if an arbitrary program terminates or possesses nontrivial semantic properties, making automatic proofs of existing code impossible.
we can't automatically prove arbitrary things about arbitrary programs
Provable code requires specific styles.
Engineers must use totality, such as Lean's requirement that functions return values, or adopt state machine architectures to make code suitable for verification.
The trick is that we write the code in a style suitable for verification
Rewriting code introduces new risks.
Using AI to transform code into a verifiable shape risks introducing errors that cannot be proven equivalent to the original source.
you don't know if you've introduced errors in the rewrite
Verification creates engineering tradeoffs.
Making software more verifiable often degrades other critical metrics including performance, modifiability, and overall complexity.
Deterministic simulation testing bypasses shape constraints.
Antithesis uses fuzzing and deterministic simulation to verify properties on any code shape without requiring state machine rewrites.
it automatically works on pretty much any code shape
Read the original ↗Save to Sponge
Summarized with Sponge. Quotes are the author’s own words.