Skip to content

An intricate look at the Dafny reads and modifies concepts? #1899

Answered by atomb
lancejpollard asked this question in Q&A
Discussion options

You must be logged in to vote

Your summary is exactly right. The short and more general answer to your question, applicable to many verification tools, is that it's primarily for efficiency: to make a difficult problem feasible. Due to one of Dafny's key design decisions (also made for efficiency, of both human mental resources and computational resources), it turns out to be necessary in the Dafny case to make verification possible at all.

The key reason for this is that Dafny (like many similar tools) verifies each method independently. When analyzing the body of a method, Dafny assumes that the preconditions (requires clauses) hold before execution and tries to prove that the postconditions (ensures clauses) will t…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@lancejpollard
Comment options

@atomb
Comment options

Answer selected by lancejpollard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants