|
|
|
|
|
by wizzwizz4
332 days ago
|
|
Turn your first paragraph on its head: Appropriate abstractions (i.e., "idiomatic code for the language and codebase") make program verification easy. If you are hand-weaving an appropriately-abstracted program, there's little benefit to thinking about loop invariants and pre-post conditions, since they don't exist at that level of generality: correct proofs follow directly from correct code. |
|
I highly recommend reading the book, it explains concept of writing idiomatic code way better than I ever could.