https://github.com/dafny-lang/dafny
Dafny is a verification-aware programming language
Science Score: 36.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
14 of 121 committers (11.6%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.8%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
Dafny is a verification-aware programming language
Basic Info
- Host: GitHub
- Owner: dafny-lang
- License: other
- Language: C#
- Default Branch: master
- Homepage: https://dafny.org
- Size: 313 MB
Statistics
- Stars: 3,149
- Watchers: 81
- Forks: 282
- Open Issues: 1,316
- Releases: 52
Topics
Metadata Files
README.md
Dafny
Dafny is a verification-ready programming language. As you type in your program, Dafny's verifier constantly looks over your shoulder, flags any errors, shows you counterexamples, and congratulates you when your code matches your specifications. When you're done, Dafny can compile your code to C#, Go, Python, Java, or JavaScript (more to come!), so it can integrate with your existing workflow.

Dafny will give you assurance that your code meets the specifications you write, while letting you write both code and specifications in the Dafny programming language itself. Since verification is an integral part of development, it will thus reduce the risk of costly late-stage bugs that are typically missed by testing.
Dafny has support for common programming concepts such as classes and trait inheritance, inductive datatypes that can have methods and are suitable for pattern matching, lazily unbounded datatypes, subset types e.g. for bounded integers, lambdas, and immutable and mutable data structures.
Dafny also offers an extensive toolbox for mathematical proofs, such as unbounded and bounded quantifiers, calculational proofs, pre- and post-conditions, termination conditions, loop invariants, and read/write specifications.

This github site contains these materials:
- sources
- binary downloads for Windows, macOS, GNU/Linux, and FreeBSD
- the issue tracker
- the wiki, including frequently asked questions
Documentation about the Dafny language and tools is located here. A reference manual is available both online and as pdf. (A LaTeX version can be produced if needed.)
Community
Feel free to report issues here on GitHub or to ask for questions on our :speech_balloon: Zulip channel.
Try Dafny
The easiest way to try out Dafny is to install Dafny on your own machine in Visual Studio Code and follow along with the Dafny tutorial. You can also download and install the Dafny CLI if you prefer to work from the command line.
Read more
Here are some ways to get started with Dafny:
- 4-part course on the Basics of specification and verification of code:
- Lecture 0: Pre- and postconditions (19:08)
- Lecture 1: Invariants (20:56)
- Lecture 2: Binary search (21:14)
- Lecture 3: Dutch National Flag algorithm (20:33)
- New overview article: Accessible Software Verification with Dafny, IEEE Software, Nov/Dec 2017
- Online tutorial, focusing mostly on simple imperative programs
- 3-page tutorial notes with examples (ICSE 2013)
- Dafny Quick Reference
- Language reference for the Dafny type system, which also describes available expressions for each type
- Cheatsheet: basic Dafny syntax on two pages
- Dafny Reference Manual [html] [pdf]
- Dafny libraries, a standard library of useful Dafny functions and lemmas
- Dafny Power User
- Videos at Verification Corner
- Blog
The language itself draws pieces of influence from:
- Euclid (from the mindset of a designing a language whose programs are to be verified),
- Eiffel (like the built-in contract features),
- CLU (like its iterators, and inspiration for the out-parameter syntax),
- Java, C#, and Scala (like the classes and traits, and syntax for functions),
- ML (like the module system, and its functions and inductive datatypes), and
- Coq and VeriFast (like the ability to include co-inductive datatypes and being able to write inductive and co-inductive proofs).
External contributions
- Haskell-to-Dafny translator, by Duncan White
- Vim-loves-Dafny mode for vim, by Michael Lowell Roberts
- Boogie-Friends Emacs mode
Contributors
Information and instructions for potential contributors are provided here.
License
Dafny itself is licensed under the MIT license. (See LICENSE.txt in the root
directory for details.) The subdirectory Source/Dafny/Coco contains third
party material; see Source/DafnyCore/Coco/LICENSE.txt for more details.
Committers
Last synced: 9 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Rustan Leino | l****o@m****m | 1,210 |
| Rustan Leino | l****o@a****m | 811 |
| Remy Willems | r****s@a****m | 572 |
| David Cok | d****k@g****m | 418 |
| Mikaël Mayer | M****r | 349 |
| Clément Pit--Claudel | c****l@l****m | 257 |
| Robin Salkeld | s****r@a****m | 236 |
| Valentin Wuestholz | w****z@g****m | 212 |
| qunyanm | q****m@h****m | 197 |
| Fabio Madge | f****e@a****m | 159 |
| Aaron Tomb | a****b@a****m | 142 |
| Prathamesh Bang | p****g@a****m | 131 |
| Luke Maurer | l****r@g****m | 129 |
| davidcok | d****k@a****m | 121 |
| Daniel Matichuk | d****k@g****m | 105 |
| Jack Sturtevant | j****e@a****m | 105 |
| Jason Koenig | j****g@s****u | 88 |
| Bryan Parno | p****o@m****m | 79 |
| Aleksandar Milicevic | a****s@c****u | 60 |
| Markus Schaden | m****n@g****m | 57 |
| Nadia Polikarpova | n****a@g****m | 47 |
| James Wilcox | j****2@c****u | 47 |
| Alex Chew | a****w | 47 |
| davidcok | d****k@g****m | 47 |
| Aleksandr Fedchin | s****n@g****m | 39 |
| dependabot[bot] | 4****] | 38 |
| Samuel Gruetter | k****t@a****m | 35 |
| Bryan Parno | p****o@c****u | 29 |
| Shadaj Laddad | s****j | 28 |
| Dan Rosen | d****r@c****e | 26 |
| and 91 more... | ||
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 1,203
- Total pull requests: 1,847
- Average time to close issues: 7 months
- Average time to close pull requests: 15 days
- Total issue authors: 146
- Total pull request authors: 52
- Average comments per issue: 1.47
- Average comments per pull request: 0.53
- Merged pull requests: 1,361
- Bot issues: 0
- Bot pull requests: 44
Past Year
- Issues: 224
- Pull requests: 637
- Average time to close issues: 7 days
- Average time to close pull requests: 6 days
- Issue authors: 58
- Pull request authors: 26
- Average comments per issue: 0.74
- Average comments per pull request: 0.39
- Merged pull requests: 447
- Bot issues: 0
- Bot pull requests: 12
Top Authors
Issue Authors
- MikaelMayer (151)
- robin-aws (144)
- keyboardDrummer (140)
- RustanLeino (90)
- cpitclaudel (48)
- erniecohen (40)
- atomb (36)
- dafny-lang-bot (35)
- davidcok (34)
- aws-crypto-tools-ci-bot (31)
- hmijail (25)
- fabiomadge (22)
- seebees (21)
- ajewellamz (19)
- sorawee (15)
Pull Request Authors
- keyboardDrummer (573)
- MikaelMayer (300)
- RustanLeino (168)
- atomb (152)
- robin-aws (115)
- fabiomadge (112)
- alex-chew (54)
- dependabot[bot] (44)
- davidcok (41)
- shadaj (30)
- Dargones (29)
- jtristan (26)
- olivier-aws (25)
- stefan-aws (19)
- ssomayyajula (19)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 3
-
Total downloads:
- pypi 49,723 last-month
- homebrew 91 last-month
-
Total dependent packages: 0
(may contain duplicates) -
Total dependent repositories: 1
(may contain duplicates) - Total versions: 94
- Total maintainers: 1
proxy.golang.org: github.com/dafny-lang/dafny
- Homepage: https://github.com/dafny-lang/dafny
- Documentation: https://pkg.go.dev/github.com/dafny-lang/dafny#section-documentation
- License: MIT
-
Latest release: v4.11.0+incompatible
published 6 months ago
Rankings
formulae.brew.sh: dafny
Verification-aware programming language
- Homepage: https://github.com/dafny-lang/dafny/blob/master/README.md
- License: MIT
-
Latest release: 4.11.0
published 6 months ago
Rankings
pypi.org: dafnyruntimepython
Dafny runtime for Python
- Homepage: https://github.com/dafny-lang/dafny
- Documentation: https://dafnyruntimepython.readthedocs.io/
- License: MIT License
-
Latest release: 4.11.0
published 6 months ago
Rankings
Maintainers (1)
Dependencies
- actions/checkout v3 composite
- actions/github-script v6 composite
- actions/checkout v3 composite
- actions/setup-dotnet v3 composite
- actions/checkout v3 composite
- actions/setup-dotnet v3 composite
- actions/setup-java v3 composite
- actions/setup-node v3 composite
- actions/setup-python v4 composite
- actions/upload-artifact v3 composite
- actions/checkout v3 composite
- actions/download-artifact v3 composite
- actions/setup-dotnet v3 composite
- actions/upload-artifact v3 composite
- irongut/CodeCoverageSummary v1.3.0 composite
- actions/checkout v3 composite
- actions/setup-dotnet v3 composite
- actions/setup-java v3 composite
- actions/setup-node v3 composite
- actions/setup-python v4 composite
- actions/upload-artifact v3 composite
- softprops/action-gh-release v1 composite
- battila7/get-version-action v2 composite
- actions/checkout v3 composite
- actions/setup-dotnet v3 composite
- actions/upload-artifact v3 composite
- actions/setup-python v4 composite
- actions/checkout v3 composite
- actions/setup-dotnet v3 composite
- actions/setup-java v3 composite
- pozetroninc/github-action-get-latest-release v0.5.0 composite
- actions/setup-java v3 composite
- dsaltares/fetch-gh-release-asset master composite
- actions/checkout v3 composite
- actions/setup-java v3 composite
- actions/checkout v3 composite
- dorny/test-reporter v1 composite
- actions/checkout v3 composite
- actions/setup-dotnet v3 composite
- actions/upload-artifact v3 composite
- autocfg 1.1.0
- either 1.9.0
- itertools 0.11.0
- num 0.4.1
- num-bigint 0.4.3
- num-complex 0.4.4
- num-integer 0.1.45
- num-iter 0.1.43
- num-rational 0.4.1
- num-traits 0.2.16
- once_cell 1.18.0
- paste 1.0.14
- org.junit.jupiter:junit-jupiter-engine 5.5.2 testImplementation
- org.dafny:DafnyRuntime 4.2.0 implementation
- org.junit.jupiter:junit-jupiter-api 5.9.2 testImplementation
- org.junit.jupiter:junit-jupiter-engine * testRuntimeOnly
- Microsoft.Build 17.0.0
- Microsoft.Build.Framework 17.0.0
- Microsoft.Build.Locator 1.4.1
- Microsoft.Build.Tasks.Core 17.0.0
- Microsoft.Build.Utilities.Core 17.0.0
- Microsoft.CodeAnalysis 4.0.1
- Microsoft.CodeAnalysis.CSharp 4.0.1
- Microsoft.CodeAnalysis.CSharp.Workspaces 4.0.1
- Microsoft.CodeAnalysis.Workspaces.MSBuild 4.0.1
- System.CommandLine 2.0.0-beta4.22272.1
- Microsoft.NET.Test.Sdk 16.11.0
- coverlet.collector 3.2.0
- xunit 2.4.2
- xunit.runner.visualstudio 2.4.3
- Boogie.ExecutionEngine 3.0.4
- JetBrains.Annotations 2021.1.0
- Microsoft.CodeAnalysis.CSharp 3.7.0
- Microsoft.Extensions.FileSystemGlobbing 5.0.0
- Microsoft.Extensions.Logging.Abstractions 5.0.0
- System.Collections.Immutable 1.7.0
- System.CommandLine 2.0.0-beta4.22272.1
- System.Runtime.Numerics 4.3.0
- Tomlyn 0.16.2
- Microsoft.NET.Test.Sdk 17.1.0
- coverlet.collector 3.2.0
- xunit 2.4.1
- xunit.runner.visualstudio 2.4.3
- Microsoft.TestPlatform.Extensions.TrxLogger 17.0.0
- Microsoft.TestPlatform.TestHost 16.11.0
- Newtonsoft.Json 13.0.1
- System.Collections 4.3.0
- System.Diagnostics.Debug 4.3.0
- System.IO.FileSystem.Primitives 4.3.0
- System.Runtime.Handles 4.3.0
- System.Runtime.InteropServices 4.3.0
- System.Security.Principal.Windows 4.6.0
- System.Text.Encoding.Extensions 4.3.0
- System.Threading 4.3.0
- Microsoft.NET.Test.Sdk 17.1.0
- OmniSharp.Extensions.JsonRpc 0.19.5
- OmniSharp.Extensions.LanguageProtocol 0.19.5
- coverlet.collector 3.2.0
- xunit 2.4.2
- xunit.extensibility.core 2.4.2
- xunit.runner.visualstudio 2.4.3
- Microsoft.Extensions.Configuration.CommandLine 5.0.0
- Microsoft.Extensions.Configuration.Json 5.0.0
- Microsoft.Extensions.Logging 5.0.0
- Newtonsoft.Json 13.0.1
- OmniSharp.Extensions.LanguageServer 0.19.5
- RangeTree 3.0.1
- Serilog 2.10.0
- Serilog.Extensions.Logging 3.0.1
- Serilog.Settings.Configuration 3.1.0
- Serilog.Sinks.Debug 2.0.0
- Serilog.Sinks.File 5.0.0
- System.Collections 4.3.0
- System.Diagnostics.Debug 4.3.0
- System.IO.FileSystem.Primitives 4.3.0
- DiffPlex 1.7.0
- Microsoft.CodeAnalysis.CSharp 3.7.0
- Microsoft.Extensions.Logging.Console 5.0.0
- Microsoft.NET.Test.Sdk 17.1.0
- Moq 4.16.1
- OmniSharp.Extensions.LanguageProtocol.Testing 0.19.5
- Serilog.Sinks.InMemory 0.11.0
- Xunit.AssertMessages 2.4.0
- coverlet.collector 3.2.0
- xunit 2.4.2
- xunit.extensibility.core 2.4.2
- xunit.runner.visualstudio 2.4.3
- DiffPlex 1.7.0
- Microsoft.NET.Test.Sdk 17.1.0
- coverlet.collector 3.2.0
- xunit 2.4.2
- xunit.runner.visualstudio 2.4.3
- System.Collections.Immutable 1.7.0
- System.Runtime.Numerics 4.3.0
- System.Collections.Immutable 1.7.0
- System.Runtime 4.3.1
- Microsoft.NET.Test.Sdk 16.11.0
- coverlet.collector 3.2.0
- xunit 2.4.2
- xunit.runner.visualstudio 2.4.3
- Microsoft.NET.Test.Sdk 17.1.0
- coverlet.collector 3.2.0
- xunit 2.4.2
- xunit.extensibility.core 2.4.2
- xunit.runner.visualstudio 2.4.3
- Microsoft.NET.Test.Sdk 16.11.0
- coverlet.collector 3.2.0
- xunit 2.4.2
- xunit.runner.visualstudio 2.5.1
- CommandLineParser 2.9.1
- xunit 2.4.2
- xunit.runner.visualstudio 2.4.3
- CommandLineParser 2.8.0
- DiffPlex 1.7.0
- Microsoft.Extensions.FileSystemGlobbing 5.0.0
- Microsoft.NET.Test.Sdk 16.9.4
- Xunit.SkippableFact 1.4.8
- coverlet.collector 3.2.0
- xunit 2.4.2
- xunit.runner.visualstudio 2.4.3
- Antlr4.CodeGenerator 4.6.6
- antlr4.runtime 4.6.6
- github-pages ~> 228 development
- jekyll-numbered-headings >= 0
- kramdown >= 2.3.1
- minima ~> 2.5
- tzinfo ~> 2.0
- tzinfo-data >= 0
- wdm ~> 0.1.1
- activesupport 7.0.7.2
- addressable 2.8.4
- bundler 2.4.13
- coffee-script 2.4.1
- coffee-script-source 1.11.1
- colorator 1.1.0
- commonmarker 0.23.10
- concurrent-ruby 1.2.2
- dnsruby 1.70.0
- em-websocket 0.5.3
- ethon 0.16.0
- eventmachine 1.2.7
- execjs 2.8.1
- faraday 2.7.5
- faraday-net_http 3.0.2
- ffi 1.15.5
- forwardable-extended 2.6.0
- gemoji 3.0.1
- github-pages 228
- github-pages-health-check 1.17.9
- html-pipeline 2.14.3
- http_parser.rb 0.8.0
- i18n 1.14.1
- jekyll 3.9.3
- jekyll-avatar 0.7.0
- jekyll-coffeescript 1.1.1
- jekyll-commonmark 1.4.0
- jekyll-commonmark-ghpages 0.4.0
- jekyll-default-layout 0.1.4
- jekyll-feed 0.15.1
- jekyll-gist 1.5.0
- jekyll-github-metadata 2.13.0
- jekyll-include-cache 0.2.1
- jekyll-mentions 1.6.0
- jekyll-numbered-headings 0.1.1
- jekyll-optional-front-matter 0.3.2
- jekyll-paginate 1.1.0
- jekyll-readme-index 0.3.0
- jekyll-redirect-from 0.16.0
- jekyll-relative-links 0.6.1
- jekyll-remote-theme 0.4.3
- jekyll-sass-converter 1.5.2
- jekyll-seo-tag 2.8.0
- jekyll-sitemap 1.4.0
- jekyll-swiss 1.0.0
- jekyll-theme-architect 0.2.0
- jekyll-theme-cayman 0.2.0
- jekyll-theme-dinky 0.2.0
- jekyll-theme-hacker 0.2.0
- jekyll-theme-leap-day 0.2.0
- jekyll-theme-merlot 0.2.0
- jekyll-theme-midnight 0.2.0
- jekyll-theme-minimal 0.2.0
- jekyll-theme-modernist 0.2.0
- jekyll-theme-primer 0.6.0
- jekyll-theme-slate 0.2.0
- jekyll-theme-tactile 0.2.0
- jekyll-theme-time-machine 0.2.0
- jekyll-titles-from-headings 0.5.3
- jekyll-watch 2.2.1
- jemoji 0.12.0
- kramdown 2.3.2
- kramdown-parser-gfm 1.1.0
- liquid 4.0.4
- listen 3.8.0
- mercenary 0.3.6
- mini_portile2 2.8.2
- minima 2.5.1
- minitest 5.19.0
- nokogiri 1.14.3
- octokit 4.25.1
- pathutil 0.16.2
- public_suffix 4.0.7
- racc 1.6.2
- rb-fsevent 0.11.2
- rb-inotify 0.10.1
- rexml 3.2.5
- rouge 3.26.0
- ruby2_keywords 0.0.5
- rubyzip 2.3.2
- safe_yaml 1.0.5
- sass 3.7.4
- sass-listen 4.0.0
- sawyer 0.9.2
- simpleidn 0.2.1
- terminal-table 1.8.0
- typhoeus 1.4.0
- tzinfo 2.0.6
- tzinfo-data 1.2023.3
- unf 0.1.4
- unf_ext 0.0.8.2
- unicode-display_width 1.8.0
- wdm 0.1.1
- actions/checkout v3 composite