Hacker News new | ask | show | jobs
by cjfd 3 days ago
You are not in the same place because the specification does not have to run on a computer. For instance, it could be horribly slow if it were actually executed. In the realm of optimization formal specification really shines because it is the situation where something relatively simple can be specified but the implementation is very complex. Furthermore, a specification does not in all case have to specify everything but instead can specify the essential properties that a system has. For instance, a permission system could have the property that a user who lacks a certain permission can never obtain information that he does not have the right to see but the detail of how that is implemented are not in the specifications. Also, for instance, specify that a system cannot crash or leak memory.

In situations where the specification is as complex as the program one should really wonder if one is doing the right thing.