{
  "id": "creusot",
  "name": "Creusot",
  "aka": [],
  "summary": "Annotate Rust functions with contracts; Creusot translates the code to Why3, whose SMT solvers prove absence of panics and that the contracts hold.",
  "use_if": [
    "You write safe Rust and want proofs that it does not panic or overflow and meets its contracts.",
    "Your code uses mutable borrows, traits, closures or iterators heavily; Creusot has specific support for these.",
    "You are comfortable writing loop invariants and occasional lemmas."
  ],
  "avoid_if": [
    "You need the proof checked by a small proof kernel; Creusot trusts SMT solvers.",
    "Your code is mainly async or relies on unsafe code outside the patterns Creusot's ghost permissions cover.",
    "You need termination by default; total correctness is opt-in per function."
  ],
  "effort": "auto-active",
  "open": "open-source",
  "license": "LGPL-2.1",
  "maintainers": [
    "Laboratoire Méthodes Formelles"
  ],
  "links": {
    "homepage": "https://creusot.rs",
    "repo": "https://github.com/creusot-rs/creusot",
    "docs": "https://guide.creusot.rs",
    "paper": "https://hal.inria.fr/hal-03737878/file/main.pdf",
    "tutorial": "https://github.com/creusot-rs/tutorial"
  },
  "components": [
    {
      "role": "frontend",
      "name": "rustc (Creusot runs as a rustc wrapper and reads MIR and THIR)",
      "assurance": "trusted"
    },
    {
      "role": "translation",
      "name": "Creusot translation to Coma (Why3 intermediate language)",
      "assurance": "trusted",
      "note": "Mutable borrows are encoded with prophecies, an approach justified by the RustHornBelt paper (PLDI 2022)."
    },
    {
      "role": "translation",
      "name": "Why3 verification-condition generator (driven by Why3find)",
      "assurance": "trusted"
    },
    {
      "role": "checker",
      "name": "Alt-Ergo",
      "assurance": "trusted"
    },
    {
      "role": "checker",
      "name": "Z3",
      "ref": "z3",
      "ref_kind": "prover",
      "assurance": "trusted"
    },
    {
      "role": "checker",
      "name": "cvc5",
      "ref": "cvc5",
      "ref_kind": "prover",
      "assurance": "trusted"
    },
    {
      "role": "compiler",
      "name": "rustc / LLVM",
      "assurance": "trusted"
    }
  ],
  "verifies": [
    {
      "target": "rust",
      "note": "Mainly safe Rust; some unsafe patterns through ghost permission tokens."
    }
  ],
  "properties": {
    "no-ub": {
      "status": "partial",
      "note": "Proves code free of panics, overflows and assertion failures. A known gap stated in the guide is that Vec methods that grow the vector can panic on capacity overflow, which the current contracts do not rule out.",
      "source": "https://guide.creusot.rs/limitations.html"
    },
    "functional": {
      "status": "full",
      "note": "Contracts are written in Pearlite, Creusot's specification language.",
      "source": "https://guide.creusot.rs"
    },
    "equivalence": {
      "status": "partial",
      "note": "No dedicated equivalence mode; you write both versions and a contract relating them by hand."
    },
    "info-flow": {
      "status": "none",
      "note": "No documented information-flow or constant-time checking.",
      "source": "https://guide.creusot.rs"
    },
    "concurrency": {
      "status": "partial",
      "note": "creusot-std has specifications for threads and atomics and ghost invariants, but the guide does not document concurrent verification yet.",
      "source": "https://github.com/creusot-rs/creusot/blob/master/creusot-std/src/std/thread.rs"
    },
    "termination": {
      "status": "full",
      "note": "By default Creusot proves partial correctness; adding #[check(terminates)] with variants proves termination. Mutually recursive terminating functions are not supported yet.",
      "source": "https://guide.creusot.rs/termination.html"
    }
  },
  "features": {
    "core.integers": {
      "status": "full",
      "note": "Machine integers with overflow checks.",
      "source": "https://github.com/creusot-rs/creusot/blob/master/README.md"
    },
    "core.floats": {
      "status": "partial",
      "note": "Basic float comparisons appear in the tests, but the test file carries a FIXME note saying that all of it should work.",
      "source": "https://github.com/creusot-rs/creusot/blob/master/tests/should_succeed/lang/float_ops.rs"
    },
    "core.heap": {
      "status": "full",
      "note": "Box and references are supported; raw pointers need ghost permission tokens (see unsafe).",
      "source": "https://guide.creusot.rs/tutorial/linked_list.html"
    },
    "core.arrays": {
      "status": "full",
      "note": "Vec and slices have specifications. The standard vec! macro is not supported; use the replacement in creusot-std.",
      "source": "https://guide.creusot.rs/limitations.html"
    },
    "core.loops": {
      "status": "full",
      "note": "Loop invariants; variants for termination.",
      "source": "https://guide.creusot.rs/basic_concepts/loop_invariants.html"
    },
    "core.recursion": {
      "status": "full",
      "note": "Terminating recursive functions need a variant; mutual recursion is not supported for them.",
      "source": "https://guide.creusot.rs/termination.html"
    },
    "core.higher-order": {
      "status": "full",
      "note": "Closures, including ones with mutable captures, are covered by the test suite.",
      "source": "https://github.com/creusot-rs/creusot/tree/master/tests/should_succeed/closures"
    },
    "core.concurrency": {
      "status": "partial",
      "note": "Specifications for threads and atomics exist in creusot-std; not yet covered by the guide.",
      "source": "https://github.com/creusot-rs/creusot/tree/master/creusot-std/src"
    },
    "core.io": {
      "status": "unknown",
      "note": "creusot-std has an io module, but its coverage is not documented.",
      "source": "https://github.com/creusot-rs/creusot/tree/master/creusot-std/src"
    },
    "core.stdlib": {
      "status": "partial",
      "note": "creusot-std specifies parts of std (Vec, HashMap, Option, iterators, cells, threads and more), not all of it.",
      "source": "https://doc.creusot.rs/creusot_std/"
    },
    "rust.borrows": {
      "status": "full",
      "note": "Mutable borrows are modeled with prophecies (the value at the end of the borrow).",
      "source": "https://guide.creusot.rs/representation_of_types/mutable_borrows.html"
    },
    "rust.traits": {
      "status": "full",
      "note": "Traits with logical contracts are supported; recursive traits are rejected because they could make proofs unsound.",
      "source": "https://guide.creusot.rs/termination.html"
    },
    "rust.closures": {
      "status": "full",
      "source": "https://github.com/creusot-rs/creusot/tree/master/tests/should_succeed/closures"
    },
    "rust.unsafe": {
      "status": "partial",
      "note": "Raw pointers can be used with ghost permission tokens (Perm), as in the guide's linked-list tutorial; other unsafe code is not covered.",
      "source": "https://guide.creusot.rs/tutorial/linked_list.html"
    },
    "rust.interior-mut": {
      "status": "partial",
      "note": "creusot-std provides cells with ghost permissions (PCell, PredCell) and a specification of std's cell module.",
      "source": "https://github.com/creusot-rs/creusot/tree/master/creusot-std/src"
    },
    "rust.dyn": {
      "status": "partial",
      "note": "Only some traits may be used as dyn Trait, to avoid an unsoundness shown in the test suite.",
      "source": "https://github.com/creusot-rs/creusot/blob/master/tests/should_fail/unsound_dyn.rs"
    },
    "rust.iterators": {
      "status": "full",
      "note": "creusot-std specifies the Iterator trait and common adapters (map, filter, zip, enumerate and others).",
      "source": "https://github.com/creusot-rs/creusot/tree/master/creusot-std/src"
    },
    "rust.panics": {
      "status": "full",
      "note": "Absence of panics is proved, except Vec capacity overflow (see no-ub).",
      "source": "https://guide.creusot.rs/limitations.html"
    },
    "rust.async": {
      "status": "unknown",
      "note": "Not mentioned in the guide."
    }
  },
  "trust": {
    "checker": {
      "level": "amber",
      "summary": "SMT solvers (Alt-Ergo, Z3, cvc5) run through Why3 decide; no proof certificates.",
      "source": "https://guide.creusot.rs/installation.html"
    },
    "semantics": {
      "level": "amber",
      "summary": "Rust model built into Creusot's translation; no published validation against rustc.",
      "note": "The prophecy encoding of mutable borrows has a foundational justification in RustHornBelt (PLDI 2022), which is a proof about the method, not about the tool.",
      "source": "https://doi.org/10.1145/3519939.3523704"
    },
    "frontend": {
      "level": "amber",
      "summary": "rustc compiles the code; Creusot's own unverified translation turns MIR into Coma.",
      "source": "https://github.com/creusot-rs/creusot/blob/master/ARCHITECTURE.md"
    },
    "binary_gap": {
      "level": "red",
      "summary": "The binary comes from rustc and LLVM, which are not verified."
    },
    "escape_hatches": {
      "level": "amber",
      "summary": "#[trusted] and #[trusted(...)] skip checks; found by searching the source.",
      "source": "https://guide.creusot.rs/trusted.html"
    }
  },
  "stage_evidence": {
    "public_artifact": {
      "met": true,
      "evidence": "https://github.com/creusot-rs/creusot"
    },
    "published_use": {
      "met": true,
      "evidence": "https://hal.inria.fr/hal-03737878/file/main.pdf",
      "note": "ICFEM 2022 paper; the CreuSAT SAT solver was also verified with Creusot."
    },
    "installs_on_current": {
      "met": true,
      "evidence": "https://guide.creusot.rs/installation.html",
      "note": "Installed from source with an INSTALL script (needs rustup and opam); releases are tagged."
    },
    "user_docs": {
      "met": true,
      "evidence": "https://guide.creusot.rs"
    },
    "external_users": {
      "met": true,
      "evidence": "https://github.com/sarsko/CreuSAT",
      "note": "CreuSAT, a verified SAT solver, and the Krabka Kafka broker are listed in the README as projects built with Creusot."
    },
    "soundness_channel": {
      "met": true,
      "evidence": "https://github.com/creusot-rs/creusot/issues?q=label%3Asoundness",
      "note": "Public GitHub issues with a \"soundness\" label."
    }
  },
  "production_users": [],
  "last_release": {
    "version": "0.15.0",
    "date": "2026-11-20",
    "source": "https://github.com/creusot-rs/creusot/releases/tag/v0.15.0"
  },
  "used_for": [
    {
      "name": "CreuSAT verified SAT solver",
      "url": "https://github.com/sarsko/CreuSAT"
    },
    {
      "name": "Krabka Kafka-compatible broker (key safety algorithms)",
      "url": "https://github.com/krabka-io/krabka-broker"
    }
  ],
  "last_checked": "2026-11-26",
  "attestation": "maintainer",
  "claimed_by_authors": false,
  "sources": [
    {
      "url": "https://github.com/creusot-rs/creusot/blob/master/README.md",
      "title": "Creusot README",
      "accessed": "2026-11-26"
    },
    {
      "url": "https://guide.creusot.rs/limitations.html",
      "title": "Creusot known limitations",
      "accessed": "2026-11-26"
    },
    {
      "url": "https://guide.creusot.rs/termination.html",
      "title": "Creusot termination",
      "accessed": "2026-11-26"
    },
    {
      "url": "https://guide.creusot.rs/trusted.html",
      "title": "Creusot trusted marker",
      "accessed": "2026-11-26"
    },
    {
      "url": "https://github.com/creusot-rs/creusot/blob/master/ARCHITECTURE.md",
      "title": "Creusot architecture",
      "accessed": "2026-11-26"
    },
    {
      "url": "https://devlog.creusot.rs",
      "title": "Creusot devlog",
      "accessed": "2026-11-26"
    }
  ],
  "computed": {
    "kind": "toolchains",
    "methodology_version": "0.1",
    "built": "2026-11-26",
    "links": {
      "html": "/toolchains/creusot/",
      "json": "/toolchains/creusot.json",
      "markdown": "/toolchains/creusot.md"
    },
    "stage": {
      "stage": 1,
      "name": "Usable",
      "criteria": [
        {
          "key": "public_artifact",
          "stage": 0,
          "label": "Publicly available",
          "met": true,
          "evidence": "https://github.com/creusot-rs/creusot",
          "computed": false
        },
        {
          "key": "published_use",
          "stage": 0,
          "label": "At least one published verification uses it",
          "met": true,
          "evidence": "https://hal.inria.fr/hal-03737878/file/main.pdf",
          "note": "ICFEM 2022 paper; the CreuSAT SAT solver was also verified with Creusot.",
          "computed": false
        },
        {
          "key": "recent_release",
          "stage": 1,
          "label": "Released or updated in the last 12 months",
          "met": true,
          "evidence": "https://github.com/creusot-rs/creusot/releases/tag/v0.15.0",
          "note": "Latest release: 0.15.0, 2026-11-20.",
          "computed": true
        },
        {
          "key": "installs_on_current",
          "stage": 1,
          "label": "Installs and runs on current platforms",
          "met": true,
          "evidence": "https://guide.creusot.rs/installation.html",
          "note": "Installed from source with an INSTALL script (needs rustup and opam); releases are tagged.",
          "computed": false
        },
        {
          "key": "user_docs",
          "stage": 1,
          "label": "User documentation or tutorial",
          "met": true,
          "evidence": "https://guide.creusot.rs",
          "computed": false
        },
        {
          "key": "external_users",
          "stage": 1,
          "label": "Used by a group other than its authors",
          "met": true,
          "evidence": "https://github.com/sarsko/CreuSAT",
          "note": "CreuSAT, a verified SAT solver, and the Krabka Kafka broker are listed in the README as projects built with Creusot.",
          "computed": false
        },
        {
          "key": "production_users",
          "stage": 2,
          "label": "Verified code in production at two or more independent organizations",
          "met": false,
          "note": "None recorded.",
          "computed": true
        },
        {
          "key": "checker_not_red",
          "stage": 2,
          "label": "Checker axis is not red",
          "met": true,
          "computed": true
        },
        {
          "key": "semantics_not_red",
          "stage": 2,
          "label": "Semantics axis is not red",
          "met": true,
          "computed": true
        },
        {
          "key": "soundness_channel",
          "stage": 2,
          "label": "Public channel for soundness bugs",
          "met": true,
          "evidence": "https://github.com/creusot-rs/creusot/issues?q=label%3Asoundness",
          "note": "Public GitHub issues with a \"soundness\" label.",
          "computed": false
        }
      ],
      "missing_for_next": [
        "production_users"
      ]
    }
  }
}