# Dafny

> A programming language with built-in specifications and proofs, compiled to mainstream languages after verification.

- Kind: language (verification language)

## Compiles to

| To | Via | Assurance | What is lost |
|---|---|---|---|
| Go | Dafny compiler (Go backend) | trusted | Specifications and proofs are erased. |
| Java | Dafny compiler (Java backend) | trusted | Specifications and proofs are erased. |

## Verify your code directly

| Toolchain | Stage | Effort | Via |
|---|---|---|---|
| [Dafny](/toolchains/dafny-verifier.md) | 1 Usable | Auto-active | — |

## Verify the compiled code

| Toolchain | Stage | Effort | Via |
|---|---|---|---|
| [Gobra](/toolchains/gobra.md) | 1 Usable | Auto-active | Dafny → Go (Dafny compiler (Go backend), trusted) |
| [KeY](/toolchains/key.md) | 1 Usable | Interactive | Dafny → Java (Dafny compiler (Java backend), trusted) |
| [s2n-bignum](/toolchains/s2n-bignum.md) | 1 Usable | Interactive | Dafny → Go (Dafny compiler (Go backend), trusted), Go → x86-64 (gc (the Go compiler), trusted) |
| [Islaris](/toolchains/islaris.md) | 0 Research | Interactive | Dafny → Go (Dafny compiler (Go backend), trusted), Go → AArch64 (gc (the Go compiler), trusted) |
| [LNSym](/toolchains/lnsym.md) | 0 Research | Interactive | Dafny → Go (Dafny compiler (Go backend), trusted), Go → AArch64 (gc (the Go compiler), trusted) |

---
Last checked 2026-11-26. Data: [JSON](/targets/dafny.json) · Page: [HTML](/targets/dafny/) · Methodology v0.1: [/methodology/](/methodology/) · Corrections: [/contribute/](/contribute/)
