{
  "id": "dafny",
  "name": "Dafny",
  "aka": [],
  "kind": "language",
  "summary": "A programming language with built-in specifications and proofs, compiled to mainstream languages after verification.",
  "verification_language": true,
  "feature_groups": [
    "core"
  ],
  "compiles_to": [
    {
      "target": "go",
      "via": "Dafny compiler (Go backend)",
      "assurance": "trusted",
      "loses": [
        "Specifications and proofs are erased."
      ],
      "source": "https://dafny.org/latest/Compilation/Go"
    },
    {
      "target": "java",
      "via": "Dafny compiler (Java backend)",
      "assurance": "trusted",
      "loses": [
        "Specifications and proofs are erased."
      ],
      "source": "https://dafny.org/latest/DafnyRef/DafnyRef#sec-compilation"
    }
  ],
  "links": {
    "homepage": "https://dafny.org/"
  },
  "order": 70,
  "last_checked": "2026-11-26",
  "attestation": "maintainer",
  "claimed_by_authors": false,
  "sources": [],
  "computed": {
    "kind": "targets",
    "methodology_version": "0.1",
    "built": "2026-11-26",
    "links": {
      "html": "/targets/dafny/",
      "json": "/targets/dafny.json",
      "markdown": "/targets/dafny.md"
    },
    "toolchains": [
      {
        "toolchain": "dafny-verifier",
        "relation": "native",
        "verifies": "dafny",
        "paths": []
      },
      {
        "toolchain": "gobra",
        "relation": "downstream",
        "verifies": "go",
        "paths": [
          [
            {
              "from": "dafny",
              "to": "go",
              "via": "Dafny compiler (Go backend)",
              "assurance": "trusted"
            }
          ]
        ]
      },
      {
        "toolchain": "s2n-bignum",
        "relation": "downstream",
        "verifies": "x86-64",
        "paths": [
          [
            {
              "from": "dafny",
              "to": "go",
              "via": "Dafny compiler (Go backend)",
              "assurance": "trusted"
            },
            {
              "from": "go",
              "to": "x86-64",
              "via": "gc (the Go compiler)",
              "assurance": "trusted"
            }
          ]
        ]
      },
      {
        "toolchain": "islaris",
        "relation": "downstream",
        "verifies": "aarch64",
        "paths": [
          [
            {
              "from": "dafny",
              "to": "go",
              "via": "Dafny compiler (Go backend)",
              "assurance": "trusted"
            },
            {
              "from": "go",
              "to": "aarch64",
              "via": "gc (the Go compiler)",
              "assurance": "trusted"
            }
          ]
        ]
      },
      {
        "toolchain": "lnsym",
        "relation": "downstream",
        "verifies": "aarch64",
        "paths": [
          [
            {
              "from": "dafny",
              "to": "go",
              "via": "Dafny compiler (Go backend)",
              "assurance": "trusted"
            },
            {
              "from": "go",
              "to": "aarch64",
              "via": "gc (the Go compiler)",
              "assurance": "trusted"
            }
          ]
        ]
      },
      {
        "toolchain": "key",
        "relation": "downstream",
        "verifies": "java",
        "paths": [
          [
            {
              "from": "dafny",
              "to": "java",
              "via": "Dafny compiler (Java backend)",
              "assurance": "trusted"
            }
          ]
        ]
      }
    ],
    "semantics": [],
    "isa_grid": null
  }
}