macOS
brew install dafnylocal Homebrew formula metadata
安装
brew install dafnylocal Homebrew formula metadata
nix profile install nixpkgs#dafnynixpkgs package indexes · pkgs/by-name/da/dafny/package.nix · 来源: api.github.com
sudo apt install dafnyUbuntu 24.04 LTS package indexes · dafny · 来源: archive.ubuntu.com
scoop install main/dafnyScoop official bucket manifest trees · bucket/dafny.json · 来源: api.github.com
概览
Verification-aware programming language
历史
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.
安全态势
generalized runtime or code generation signal.
yellow 风险 · 中 置信度 · runtime
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
dafny | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/dafny-lang/dafny
安装元数据
| 软件包键 | brew:dafny |
|---|---|
| 版本 | 4.11.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/dafny |
| 主页 | https://github.com/dafny-lang/dafny/blob/master/README.md |
| 仓库 | https://github.com/dafny-lang/dafny |
| 上游文档 | https://dafny.org/dafny/DafnyRef/DafnyRef |
| 许可证 | MIT |
| 源码归档 | https://github.com/dafny-lang/dafny/archive/refs/tags/v4.11.0.tar.gz |
| 最后更新 | 2026-06-22T14:03:07-07:00 |
| Pulse | updated |
| 依赖 | dotnet@8, z3 |
| 构建依赖 | gradle@8, openjdk |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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/dafny来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.