dafny-lang/dafny

Dafny is a verification-aware programming language

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 1 hour ago
Added to GitGenius on September 19th, 2026
Created on April 16th, 2016
Open Issues & Pull Requests: 1,390 (+1)
GitHub issues: Enabled
Number of forks: 327
Total Stargazers: 3,548 (+0)
Total Subscribers: 75 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 43.9 hours
Mean response time: 161.2 days
90th percentile: 842.6 days
Tracked items: 329

Most active contributors

Sign in to see contributor activity.

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 53% of open issues come from outside the core team, a mix of external reports and the maintainers' own roadmap. Work labelled "kind: enhancement" is answered fastest, typically in about 6 hours, while "status: fixed" waits about 22 months. 73% of tracked open issues have had no activity in three months, so the open count overstates what is actively being worked. Only 13% of issues opened in the past year have been closed.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 293
New in 7 days: 1
Closed in 7 days: 0
Avg open age: 689 days
Stale 30+ days: 285
Stale 90+ days: 259

Recent activity

Opened in 7 days: 1
Closed in 7 days: 0
Comments in 7 days: 1
Events in 7 days: 1

Top labels

  • kind: bug (333)
  • priority: not yet (70)
  • status: fixed (65)
  • kind: enhancement (55)
  • part: verifier (47)
  • during 2: compilation of correct program (45)
  • part: resolver (41)
  • crash (40)

Detailed Description

Dafny is a verification-aware programming language that integrates formal verification into the development process, allowing you to write code and mathematical specifications together and have them checked continuously as you work.

The problem Dafny solves is the gap between what code is supposed to do and what it actually does—a gap that testing alone often fails to catch until late in development. Rather than treating verification as a separate phase, Dafny embeds it into the language itself. As you write, the verifier constantly checks your code against your specifications, flags errors, shows counterexamples, and confirms when your implementation matches your intent. Once verified, your code can be compiled to C#, Go, Python, Java, or JavaScript, making it practical to integrate into existing workflows.

Dafny suits projects where correctness is critical and the cost of bugs is high—financial systems, security-sensitive code, algorithms where correctness is non-obvious, or any codebase where you want mathematical assurance rather than just test coverage. The language supports standard programming constructs like classes, inductive datatypes with pattern matching, lambdas, and both mutable and immutable data structures. For formal reasoning, it provides quantifiers, calculational proofs, pre- and post-conditions, loop invariants, and read/write specifications. This combination makes it suitable for both practical programming and rigorous mathematical proof.

Development on the project is active and sustained, with regular engagement across multiple channels including the issue tracker and a dedicated community Zulip chat. The team maintains comprehensive documentation including an online reference manual and tutorial, and provides binary downloads for Windows, macOS, GNU/Linux, and FreeBSD. The project accepts community contributions and maintains an accessible entry point through Visual Studio Code integration alongside command-line tooling.