The TL;DR is that proofs only show that the program matches a spec, not that the spec matches the world. The gap between "what you can model" and "the real world" is generally too large for formal methods to be useful (outside of narrow domains, where they are highly useful).
In other words, computing is closer to an empirical science than a formal one.
The program matching the spec matters a great deal for security purposes. If we achieve nothing other than that, we’re in a much better position than we are today with C and PHP.
Yeah, it's very possible that mainstream formal verification will look more like a test case that takes arbitrary input and asserts over how that input behaves.
That won't cover all behavior, but it's more thorough than fuzzing, and even more than unit testing.
But yes: it'll just be another tool in the toolbox.
I recommend reading Cantwell Smith's "The Limits of Correctness" https://dl.acm.org/doi/pdf/10.1145/379486.379512
The TL;DR is that proofs only show that the program matches a spec, not that the spec matches the world. The gap between "what you can model" and "the real world" is generally too large for formal methods to be useful (outside of narrow domains, where they are highly useful).
In other words, computing is closer to an empirical science than a formal one.
Replies (6)
Of course you may have still written incorrect spec, and once you have IO you probably won't model the whole Linux kernel in the proof.
That won't cover all behavior, but it's more thorough than fuzzing, and even more than unit testing.
But yes: it'll just be another tool in the toolbox.