DAFNY is a programming language that allows specifications and comes equipped with a program verifier. See the Dafny page for various resources, including quick references, tutorials, videos, etc.
You can use Dafny in different ways: you can try it online at Rise4Fun/Dafny or you can install it on your machine. We encourage you to install it on your machine for this course.
You can use Dafny in different ways: you can try it online at Rise4Fun/Dafny or you can install it on your machine. We encourage you to install it on your machine for this course.
Go to this page on the Dafny Github site and follow instructions to install the binary directly (Z3 will automtically get installe).
Executing Dafny
./Dafny.exe /compile:0 filename.dfy
First install mono:
Installation Guides for macOS, Linux and Windows are provided in the following website: http://www.mono-project.com/docs/getting-started/install/.
Then install Dafny:
Download and unzip the latest release of Dafny corresponding to your OS from the Dafny project website:
https://github.com/Microsoft/dafny/releases/tag/v1.9.8
Executing Dafny
mono Dafny.exe /compile:0 filename.dfy