An Interactive Proof Mode for Dafny
-
Install
dafny-ipmfromgithub.com/dafny-ipm(follow the usual installation instructions for Dafny). -
Set a new virtual environment:
python3 -m venv . -
Activate the environment:
source bin/activate -
Install the following packages:
pip install pyyaml
pip install z3-solver
pip install colorama
pip install pip install prompt_toolkit
pip install pip install sexpdata
pip install pip install textual
-
Set the right paths in
dafny-ipm.yaml -
Run
python3 dafny-ipm.py database/ite_ex3.dfyand type in the following:
check (x * (x + 1) % 2 == (x % 2) * ((x + 1) % 2))
:quit