{
  "id": "minirust",
  "name": "MiniRust",
  "aka": [],
  "summary": "An executable specification of what Rust programs do at run time, including exactly which unsafe operations are undefined behavior. It describes an idealized MIR-like core language that Rust is translated into.",
  "details": "MiniRust is written as an interpreter in \"specr lang\", a Rust-like pseudo-code that a tool (specr-transpile) turns into real Rust, so the specification can be run on test programs. A separate tool, minimize, translates real Rust programs (through rustc's MIR) into MiniRust. Type checking, trait resolution and borrow checking happen before MiniRust and are out of scope; a-mir-formality covers those. The README calls the project \"extremely incomplete\".",
  "target": "rust",
  "fragment": "Operational semantics only: evaluation order, data representation, pointers and provenance, and undefined behavior of a MIR-like core language. Traits and pattern matching are resolved before MiniRust, and type checking and borrow checking are out of scope. Floats are missing, and many operators and casts are not yet in the syntax. Two memory models are given: a basic one that ignores aliasing rules, and Tree Borrows.",
  "version": "No Rust version is named; the minimize translator builds against rustc nightly-2026-05-01.",
  "framework": "specr lang (Rust-like pseudo-code, transpiled to Rust)",
  "provers": [],
  "open": "open-source",
  "license": "Apache-2.0 and MIT license files",
  "maintainers": [
    "Ralf Jung and contributors (github.com/minirust)"
  ],
  "links": {
    "repo": "https://github.com/minirust/minirust",
    "docs": "https://github.com/minirust/minirust/blob/master/README.md"
  },
  "validation": "A test suite of about 140 Rust programs (passing programs, panics and programs with undefined behavior) is translated with minimize and run on the MiniRust interpreter, comparing output with expected files. No published conformance or differential-testing results against rustc or Miri were found.",
  "stage_evidence": {
    "mechanized": {
      "met": true,
      "evidence": "https://github.com/minirust/minirust/blob/master/README.md",
      "note": "The specification is code in specr lang, which specr-transpile turns into Rust. It is not available in a proof assistant; the README hopes for a future translation to one."
    },
    "scope_stated": {
      "met": false,
      "evidence": "https://github.com/minirust/minirust/blob/master/README.md",
      "note": "The README states the covered fragment and what is missing, but names no Rust version that the specification describes."
    },
    "executable": {
      "met": true,
      "evidence": "https://github.com/minirust/minirust/blob/master/tooling/README.md",
      "note": "The spec runs as an interpreter; minimize translates Rust programs (via MIR) into MiniRust and executes them."
    },
    "validated": {
      "met": false,
      "evidence": "https://github.com/minirust/minirust/tree/master/tooling/minimize/tests",
      "note": "Has a repository test suite with expected outputs, but no published validation results."
    },
    "adopted_by_owner": {
      "met": false,
      "evidence": "https://github.com/minirust/minirust/blob/master/README.md",
      "note": "Hosted outside the rust-lang organization. The README presents it as the author's vision for a normative specification, not an adopted one."
    },
    "full_coverage": {
      "met": false,
      "evidence": "https://github.com/minirust/minirust/blob/master/README.md",
      "note": "The README says the specification is extremely incomplete (for example, no floats)."
    },
    "tracks_versions": {
      "met": false,
      "note": "No stated policy for following Rust releases."
    }
  },
  "features": {
    "core.integers": {
      "status": "partial",
      "note": "Integer types and arithmetic, including overflow behavior, are modeled; the README says many operators and casts are still missing.",
      "source": "https://github.com/minirust/minirust/blob/master/README.md"
    },
    "core.floats": {
      "status": "none",
      "note": "Floats are entirely missing (README); the type list has no float type.",
      "source": "https://github.com/minirust/minirust/blob/master/spec/lang/types.md"
    },
    "core.heap": {
      "status": "full",
      "note": "Pointers with provenance, allocation and deallocation, and integer-pointer casts, behind a byte-level memory interface.",
      "source": "https://github.com/minirust/minirust/blob/master/spec/mem/interface.md"
    },
    "core.arrays": {
      "status": "full",
      "note": "Array and slice types.",
      "source": "https://github.com/minirust/minirust/blob/master/spec/lang/types.md"
    },
    "core.loops": {
      "status": "full",
      "note": "Loops are control-flow jumps between basic blocks, as in MIR.",
      "source": "https://github.com/minirust/minirust/blob/master/spec/lang/syntax.md"
    },
    "core.recursion": {
      "status": "full",
      "source": "https://github.com/minirust/minirust/blob/master/spec/lang/syntax.md"
    },
    "core.higher-order": {
      "status": "full",
      "note": "Function pointers are modeled; closures are turned into ordinary functions before MiniRust, and tests cover both.",
      "source": "https://github.com/minirust/minirust/tree/master/tooling/minimize/tests/pass"
    },
    "core.concurrency": {
      "status": "partial",
      "note": "Threads (spawn and join), locks and atomic operations with data-race detection exist, but only sequentially consistent atomics; the spec says atomicity is otherwise ignored for now.",
      "source": "https://github.com/minirust/minirust/blob/master/spec/mem/concurrent.md"
    },
    "core.io": {
      "status": "partial",
      "note": "Printing to stdout and stderr and exiting are built-in operations; there is no file or network I/O.",
      "source": "https://github.com/minirust/minirust/blob/master/spec/lang/step/intrinsics.md"
    },
    "core.stdlib": {
      "status": "unknown",
      "note": "The spec defines no standard library; minimize translates the standard-library code a program uses, and how much of it works is not documented."
    },
    "rust.borrows": {
      "status": "partial",
      "note": "References are pointers whose aliasing rules are modeled by the optional Tree Borrows memory model. Borrow checking itself happens before MiniRust and is out of scope.",
      "source": "https://github.com/minirust/minirust/tree/master/spec/mem/tree_borrows"
    },
    "rust.traits": {
      "status": "na",
      "note": "Traits are resolved during translation to MiniRust; dynamic dispatch is covered under trait objects.",
      "source": "https://github.com/minirust/minirust/blob/master/README.md"
    },
    "rust.closures": {
      "status": "full",
      "note": "Closures are desugared before MiniRust; tests cover them.",
      "source": "https://github.com/minirust/minirust/tree/master/tooling/minimize/tests/pass"
    },
    "rust.unsafe": {
      "status": "full",
      "note": "Unsafe operations and exactly when they are undefined behavior are the main subject of the specification.",
      "source": "https://github.com/minirust/minirust/blob/master/README.md"
    },
    "rust.interior-mut": {
      "status": "full",
      "note": "Covered by the Tree Borrows model, with tests for cells inside structs and slices.",
      "source": "https://github.com/minirust/minirust/tree/master/tooling/minimize/tests/pass/tree_borrows"
    },
    "rust.dyn": {
      "status": "full",
      "note": "Trait-object types and vtable pointers are part of the type system.",
      "source": "https://github.com/minirust/minirust/blob/master/spec/lang/types.md"
    },
    "rust.iterators": {
      "status": "full",
      "note": "Iterators are ordinary code after translation; tests cover them.",
      "source": "https://github.com/minirust/minirust/tree/master/tooling/minimize/tests/pass"
    },
    "rust.panics": {
      "status": "full",
      "note": "Unwinding, cleanup blocks and catching panics are modeled.",
      "source": "https://github.com/minirust/minirust/blob/master/spec/lang/syntax.md"
    },
    "rust.async": {
      "status": "unknown",
      "note": "Not mentioned in the specification or tests."
    }
  },
  "last_release": {
    "version": "main@d55ab41",
    "date": "2026-11-26",
    "source": "https://github.com/minirust/minirust/commits/master"
  },
  "last_checked": "2026-11-26",
  "attestation": "maintainer",
  "claimed_by_authors": false,
  "sources": [
    {
      "url": "https://github.com/minirust/minirust/blob/master/README.md",
      "title": "MiniRust README",
      "accessed": "2026-11-26"
    },
    {
      "url": "https://github.com/minirust/minirust/blob/master/tooling/README.md",
      "title": "MiniRust tooling (minimize, minitest)",
      "accessed": "2026-11-26"
    },
    {
      "url": "https://github.com/minirust/minirust/blob/master/rust-toolchain.toml",
      "title": "Pinned rustc nightly for minimize",
      "accessed": "2026-11-26"
    }
  ],
  "computed": {
    "kind": "semantics",
    "methodology_version": "0.1",
    "built": "2026-11-26",
    "links": {
      "html": "/semantics/minirust/",
      "json": "/semantics/minirust.json",
      "markdown": "/semantics/minirust.md"
    },
    "stage": {
      "stage": -1,
      "name": "Not yet staged",
      "criteria": [
        {
          "key": "mechanized",
          "stage": 0,
          "label": "Machine-checked or machine-readable definition",
          "met": true,
          "evidence": "https://github.com/minirust/minirust/blob/master/README.md",
          "note": "The specification is code in specr lang, which specr-transpile turns into Rust. It is not available in a proof assistant; the README hopes for a future translation to one.",
          "computed": false
        },
        {
          "key": "scope_stated",
          "stage": 0,
          "label": "Fragment and version are stated",
          "met": false,
          "evidence": "https://github.com/minirust/minirust/blob/master/README.md",
          "note": "The README states the covered fragment and what is missing, but names no Rust version that the specification describes.",
          "computed": false
        },
        {
          "key": "executable",
          "stage": 1,
          "label": "Can be executed or tested",
          "met": true,
          "evidence": "https://github.com/minirust/minirust/blob/master/tooling/README.md",
          "note": "The spec runs as an interpreter; minimize translates Rust programs (via MIR) into MiniRust and executes them.",
          "computed": false
        },
        {
          "key": "validated",
          "stage": 1,
          "label": "Published results against conformance tests or real implementations",
          "met": false,
          "evidence": "https://github.com/minirust/minirust/tree/master/tooling/minimize/tests",
          "note": "Has a repository test suite with expected outputs, but no published validation results.",
          "computed": false
        },
        {
          "key": "authoritative",
          "stage": 2,
          "label": "Adopted by the language or ISA owner, or covers the full current version and tracks new ones",
          "met": false,
          "evidence": "https://github.com/minirust/minirust/blob/master/README.md",
          "note": "Adopted by the owner: no; full coverage: no; tracks new versions: no. Hosted outside the rust-lang organization. The README presents it as the author's vision for a normative specification, not an adopted one. The README says the specification is extremely incomplete (for example, no floats). No stated policy for following Rust releases.",
          "computed": true
        }
      ],
      "missing_for_next": [
        "scope_stated"
      ]
    },
    "used_by": []
  }
}