-
Notifications
You must be signed in to change notification settings - Fork 254
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
strange assertion failure #5435
Comments
This is a classic symptom of the fact that Dafny verification is extremely powerful but fundamentally incomplete: there will always be assertions that are in fact true but where Dafny cannot prove they are true without help. https://dafny.org/dafny/DafnyRef/DafnyRef#sec-verification has lots of information about how to debug failing verification and add assertions as necessary to fix it (as you did by accident when trying to debug it :) |
If we had changed "assertion might not hold" to "assertion could not be proved", how would you have reacted? Same or differently? |
Dafny version
4.6.0
Code to produce this issue
Command to run and resulting output
What happened?
the assertion fails but it should be true. Print the expression in the assertion and the result is true. when I add some assertion using the component of expression in the failed assertion, it suddenly stops failing.
What type of operating system are you experiencing the problem on?
Windows
The text was updated successfully, but these errors were encountered: