Dafny for loop is inconsistent with forall
assert (forall i, j :: 0 <= i <= j <= end==>monotonic(arr,i,j)==>j-i<=endFinal-startFinal)by{ for i := 0 to end { for j := i to end { if monotonic(arr, i, j) { assert j – i <= endFinal – startFinal; // Ensures largest condition } } } } Even though Dafny verifies the for loop, it […]