Replies: 1 comment 6 replies
-
As the warning suggests, Dafny is unable to select a trigger for the existential quantifier. Look here for a little more context. predicate InRange(i: int) {
0 <= i < 2
}
method Main() {
var b := 1;
assert InRange(b);
assert exists a | InRange(a) :: a == b;
} |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dafny version: 3.5.0
Hello, I am currently a tutor for a course where we use Dafny and I was shown a very strange piece of code which should work but does not.
code:
expected result: Assertion should be satisfied and not saying that it might not hold.
How to understand why Dafny does not accept this?
Beta Was this translation helpful? Give feedback.
All reactions