macOS
brew install dafnylocal Homebrew formula metadata
brew
Verification-aware programming language. Version 4.11.0 via Homebrew; verified 2026-06-22.
install
brew install dafnylocal Homebrew formula metadata
nix profile install nixpkgs#dafnynixpkgs package indexes · pkgs/by-name/da/dafny/package.nix · source: api.github.com
sudo apt install dafnyUbuntu 24.04 LTS package indexes · dafny · source: archive.ubuntu.com
scoop install main/dafnyScoop official bucket manifest trees · bucket/dafny.json · source: api.github.com
overview
Verification-aware programming language
history
Dafny is a verification-aware programming language and toolchain. It occupies a special package-manager niche: a single CLI that lets developers write programs, specifications, and proofs together, then verify them and compile to mainstream languages.
The official Dafny README describes Dafny as a verification-ready programming language whose verifier checks code against specifications while the developer writes. The public dafny-lang/dafny repository was created in 2016, and GitHub release metadata records Dafny 1.9.7 in June 2016.
Dafny has grown through language documentation, binary releases for common operating systems, a wiki and issue tracker, and editor-centered workflows such as Visual Studio Code installation. Its README also points to tutorials, reference material, a Zulip channel, and a standard library, which are typical signs of a specialist language moving from research use into practical developer workflows.
Users write Dafny programs with specifications such as preconditions, postconditions, invariants, and proofs; the Dafny verifier checks them, and the compiler can emit C#, Go, Python, Java, or JavaScript. The reference manual is the authoritative source for the language and verification system.
Dafny matters in package history because it packages formal methods as an installable developer tool rather than a one-off theorem-proving environment. It gives package managers a concrete artifact for a verification language, including CLI binaries, documentation, and cross-platform releases.
security posture
generalized runtime or code generation signal.
yellow risk · medium confidence · runtime
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
dafny | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/dafny-lang/dafny
install metadata
| Package key | brew:dafny |
|---|---|
| Version | 4.11.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/dafny |
| Homepage | https://github.com/dafny-lang/dafny/blob/master/README.md |
| Repository | https://github.com/dafny-lang/dafny |
| Upstream docs | https://dafny.org/dafny/DafnyRef/DafnyRef |
| License | MIT |
| Source archive | https://github.com/dafny-lang/dafny/archive/refs/tags/v4.11.0.tar.gz |
| Last updated | 2026-06-22T14:03:07-07:00 |
| Pulse | updated |
| Dependencies | dotnet@8, z3 |
| Build dependencies | gradle@8, openjdk |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | dafny |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
dafny
nix profile install nixpkgs#dafnydafny 2.3.0+dfsg-0.1
programming language with program correctness verifier
https://research.microsoft.com/en-us/projects/dafny/
sudo apt install dafnymain/dafny
scoop install main/dafnysource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.