Dafny is a verification-aware programming language that supports modern programming language features such as:
Here are some ways to get started with Dafny:
- imperative methods
- mathematical functions
- integers, sets, and sequences
- mutable classes and arrays, as well as traits
- inductive and co-inductive datatypes
- lemmas and proofs
Here are some ways to get started with Dafny:
- Online tutorial
- Dafny Quick Reference
- 3-page tutorial notes (from ICSE) with examples
- Videos at Verification Corner
- Language reference for the Dafny type system