3 ms·
"We suck really hard at proving code correct that was written explicitly with the goal in mind to be formally verified." That is why I am not a huge fan of pro
by hutzlibu 6y ago
"We suck really hard at proving code correct that was written explicitly with the goal in mind to be formally verified."
That is why I am not a huge fan of proving code in the first place.
If you have a really complicated proof of formal correctness, then who guarantees you, there is no misstake in the proof itself? At least this is what I have seen in university, lots of complicated stuff on the whiteboard, with a result. And then someone figured out, it was wrong.
So I rather do lots of testing, for all known test cases.
- adrianN 6y agoYour automatic proof checker guarantees that there is no mistake in the proof. That's the easy part! The real question is who guarantees that your specification is what you actually want?
- infinity0 6y agoAutomatic proof checkers still have bugs in them. However, one nice characteristic is that, since its algorithms are so general, i.e. about the language rather than about the problem you're solving (e.g. sorting), any bugs in the checker are either so common they hit every problem solution and are easily discovered and fixed, or so rare that it affects no real-world problem solutions.
- adrianN 6y agoThe kernel of an automatic proof checker is much easier to test and verify than the programs you verify using a proof checker though.
- chrisandchips 6y ago+1 verification tends to be the easy part.
- infinity0 6y agoSure, not all bugs are kernel bugs though.
- louthy 6y ago> So I rather do lots of testing, for all known test cases. How is this any different? You can still make mistakes in your test code, test data, omit cases that would fail, etc. I think I'd be less confident in a set of unit tests than I would with an automated proof checker.
- hutzlibu 6y agoTests are simple to unterstand. Complicated proofs I do not understand, without much effort. And I surely know that you can make mistakes with test cases as well. So I surely do not claim my way to be superior. But it works way better for me.
- eru 6y agoTest cases are not necessarily simple to understand. Especially the test cases needed to trigger some deep bug.
- gnufx 6y agoAnd so aphyr gets paid, for instance. You may not even be able realistically to run a test case. The laws of life say your 10000 core compute job will fail non-deterministically only after a day or so. It would clearly be helpful to have at least some formal guarantees, such as liveness at some level.