2 ms·
> it turned out that at least for that language, the specifications tended to be lengthier, more difficult to understand and more difficult to map to requiremen
by pron 9y ago
> it turned out that at least for that language, the specifications tended to be lengthier, more difficult to understand and more difficult to map to requirements than program code.
I wrote several TLA+ specifications of a very complex, real-world distributed system. The core of the system is ~50KLOC. The specifications were done at three abstraction levels (to verify refinement). The lowest-level one, which was at a level quite close to the code, was ~2500 lines, the next level up was ~800 lines, and the highest level was just 300 lines long.
I find specifications (at least in TLA+) to be much clearer than code.