Dafny: What does no terms found to trigger on mean?
问题 I am getting a warning in Dafny which says that my quantifiers have No terms found to trigger on. What I am trying to do for my code is to find the largest number that has a square value that is less than or equal to the given natural number 'n'. Here is the code I came up with so far: method sqrt(n : nat) returns (r: int) // square less than or equal to n ensures (r * r) <= n // largest number ensures forall i :: 0 <= i < r ==> (i * i) < (r * r) { var i := 0; // increasing number r := 0;