The Whiley Theorem Prover (WyTP) is an automatic and interactive theorem prover designed to discharge verification conditions generated by the Whiley Compiler. WyTP operates over a variant of first-order logic which includes integer arithmetic, arrays and quantification.
The following verifies which it shouldn't really:
The generated proof is:
The problem is presumably that
-1 >= 0
is being generated byArrIdx-I
... ?Hmmmm, maybe this isn't a problem since we are assuming that the formula is well-formed? That is, the invalid array access should be caught elsewhere?