logoalt Hacker News

iamwil • today at 9:35 PM • 1 reply • view on HN

It is a gap, but the spec is often declarative, on what needs to be true, rather than imperative, about all the exact steps. Hence, less prone to error. You're right that it proves the protocol, but not necessarily the implementation.

A not-quite-there way to close the gap is that you can generate traces from the spec/proof, a sequence of states and events that must hold true. and then you can use that trace to replay back in tests, and if the implementation is correct, then it should mirror the trace.


Replies

dominotw • today at 10:53 PM

> spec is often declarative

ppl always come with weird workarounds to put in loops and if conditions and then throw it all away to use a general purpose programming languge