-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugs in Dafny tutorial #385
Comments
Nice suggestions. Thank you! Once the PR gets approved and merged, the changes will go out on rise4fun with the next release there (which will probably coincides with the next binary release of Dafny). |
RustanLeino
added a commit
to RustanLeino/dafny
that referenced
this issue
Oct 23, 2019
Merged
RustanLeino
added a commit
that referenced
this issue
Oct 24, 2019
It has been over a year, more than two years for some of the older fixes. Is the rise4fun update still planned? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found a few bugs (and other opportunities for mild improvements) in the Dafny tutorial that I thought it might be useful to report.
"If statements require parentheses around the boolean condition" -> should say "do not require".
In the spec for
Abs
, you haveensures 0 <= x ==> x == y
andensures x < 0 ==> y == -x
. These could be made more symmetric if the first clause saidensures 0 <= x ==> y == x"
"What precondition doe you need" -> typo
"Dafny will complain that our post condition doesn't hold" -> should be "postcondition"
"repairing it relatively easy" -> missing "is"
"But the crucial step from the loop to the postcondition wouldn't hold." -- I don't think this sentence is true. I think that the reasoning itself still holds, it's just that it doesn't tell us that the loop terminates.
The text was updated successfully, but these errors were encountered: