Skip to content

tchajed/dafny-syntax-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 

Repository files navigation

Introduction to Dafny

Short introduction to Dafny as a vehicle for proofs, as well as a reference for Dafny syntax. Focuses on mathematical objects, so no executable functions, loops, or heap reasoning.

If you'd prefer a video version, we have a series of YouTube lectures based on this code. The comments in the Dafny files are intended to be standalone if you prefer text (or if you want to reference something).

Outline

Lecture 1 (logic): lemmas, functions, and assertions

Lecture 2 (sequences): the built-in sequence data type

Lecture 3 (algebraic datatypes): algebraic datatypes for user-defined data

Lecture 4 (advanced topics): an assortment of advanced topics: opacity/revealing, recursion, and assign-such-that.


This tutorial was originally written for a VMware protocol verification course, but we hope it's useful to others!

The text of this tutorial is licensed under CC-BY-4.0. The code is licensed under the MIT license.

About

Short introduction to Dafny

Topics

Resources

License

Stars

Watchers

Forks

Languages