26 ms·
> The existence of such programs contradicts Mr Evans statement. Yes, but only if you insist on a very strict interpretation of "correctness" as some Platonic
by pron 10y ago
> The existence of such programs contradicts Mr Evans statement.
Yes, but only if you insist on a very strict interpretation of "correctness" as some Platonic ideal that doesn't exist. If that's what the author meant, then you're right that it is unattainable.
> Ethereum's creators had an informal spec of the "code _IS_ the contract"
I don't know if the word spec as it is used in formal methods is the right one here, just as I don't know if saying "they created the empty test suite" makes sense. That is a decision to treat the code as the contract, basically a decision to declare any sequence of bits as correct by definition. However, a specification as understood in formal verification is an expression of what you want the code to do. Obviously, the authors of said contract felt it failed to meet what they had in mind in writing this particular program, hence it did not conform to their imagined spec. And this is the whole point of techniques like testing or formal verification: making sure that the program does what you want it to do as much as possible.