dafny install guide

Get dafny on macOS and Linux Now!

Dafny is a verification-aware programming language

dafny one-command setup card, developer tool, for macOS and Linux, 3.6k stars on the project's repository
★ 3.6k stars macOS and Linux

Get dafny with one command

Pick your system, reveal the step-by-step guide, copy the command, paste it into your terminal and press Enter. This command comes from the project's public source.

PowerShell not published

What dafny does

  • Lecture 0: Pre- and postconditions (19:08)
  • New overview article: Accessible Software Verification with Dafny, IEEE Software, Nov/Dec 2017
  • Dafny libraries, a standard library of useful Dafny functions and lemmas
  • CLU (like its iterators, and inspiration for the out-parameter syntax)
  • Java, C#, and Scala (like the classes and traits, and syntax for functions)
  • Coq and VeriFast (like the ability to include co-inductive datatypes and being able to write inductive and co-inductive proofs)

Summarised from dafny's own documentation.

About dafny

Dafny is a verification-aware programming language

CategoryDeveloper tool
Install methodHomebrew
Windowsno install command published
macOS / Linuxdocumented install command available
PriceFree and open source
Command verifiedFrom project source
Popularity3.6k stars on the project's public repository

On mobile

dafny is a command-line tool, so there is no phone app for it — a phone has no shell to run it in. You'll need a desktop, or a remote shell into a machine that has one.

dafny is developed by its own authors. This page is an independent reference; we are not affiliated with or sponsored by the project. The command shown here was reproduced from the project's public documentation — always check the project's own documentation before running anything.