Whiley / WhileyTheoremProver

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.
Apache License 2.0
8 stars 2 forks source link

Support Bounded Quantifiers #52

Open DavePearce opened 7 years ago

DavePearce commented 7 years ago

Adding support for bounded quantification would be quite useful. Initially, this could be limited to integer variables only (since this matches Whiley). Possible syntax could be:

assert:
    forall(int i in 0..5, int j in 0..10):
        if:
           i < j
        then:
           i <= j

There are several key advantages of bounded quantifiers: