2 ms·
> The only way to achieve demonstrable correctness is to rely on mathematical proofs performed mechanically. This is guaranteed to fail. What are you going to
by AnimalMuppet 8y ago
> The only way to achieve demonstrable correctness is to rely on mathematical proofs performed mechanically.
This is guaranteed to fail. What are you going to prove by your mathematical proof performed mechanically? That the program performs correctly? How do you define "correctly"? At bottom, it is defined by an informal specification in peoples' heads. You cannot mathematically prove correspondence to that, even in principle.
At best, you can prove correspondence to the most-high-level formal specification. But how do you prove that that specification is "what the program should do"?
The next problem with this approach is that it has costs. Having to write a mathematically rigorous formal specification for all the behaviors of a program takes non-trivial time and effort. As others have said, that effort could have been put into other things, like more features. Would we rather have more perfect software, or more feature-rich software? Above a certain level of quality, we'd rather have more features. (Yes, software often drops below that level of quality...)
- tathougies 8y agoYou can prove performance properties, memory properties, and formal properties, or any combination of the above. The question of 'what the program should do' is not a mathematical one; it's a philosophical one in the most general sense, and most likely a business one.