GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - lavaleri/dafny: Dafny is a verification-aware programming language

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

3,637 Commits
3,637 Commits

Folders and files

NameName
Last commit message
Last commit date
Binaries
Binaries
 
 
Docs
Docs
 
 
Source
Source
 
 
Test
Test
 
 
Util
Util
 
 
third_party/Coco
third_party/Coco
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
INSTALL.md
INSTALL.md
 
 
LICENSE.txt
LICENSE.txt
 
 
NOTICES.txt
NOTICES.txt
 
 
README.md
README.md
 
 
dafny-banner.png
dafny-banner.png
 
 
package.py
package.py
 
 

Repository files navigation

Build Status Gitter

Dafny

Dafny is a programming language with a program verifier. As you type in your program, the verifier constantly looks over your shoulders and flags any errors. Dafny is currently spread across 3 sites:

  • This site, including
    • sources
    • binary downloads for Windows, Mac, GNU/Linux, and FreeBSD
    • the issue tracker (old issues are on codeplex)
    • the wiki, including frequently asked questions
  • The Rise4fun site, including a tutorial, where you can verify Dafny programs in your web browser.

Community

You can ask questions about Dafny on Stack Overflow or participate in general discussion on Dafny's Gitter.

Try Dafny

The easiest way to get started with Dafny is to use rise4fun, where you can write and verify Dafny programs without having install anything. On rise4fun, you will also find the online Dafny tutorial. It is also easy to install Dafny on your own machine in VS Code, which gives you a much better user experience than in the web browser.

Setup

See installation instructions on the wiki and instructions for installing the Dafny mode for Emacs.

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 Power User
  • Videos at Verification Corner

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

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

License

Dafny itself is licensed under the MIT license. (See LICENSE.txt in the root directory for details.) The subdirectory third_party contains third party material; see NOTICES.txt for more details.

About

Dafny is a verification-aware programming language

Resources

Readme
License
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.