{
  "id": "rocq",
  "name": "Rocq",
  "aka": [
    "Coq",
    "Rocq Prover"
  ],
  "summary": "A proof assistant based on dependent type theory, formerly called Coq. You write programs, statements and proofs in one language; tactics build proof terms, and a kernel checks every one.",
  "kind": "proof-assistant",
  "logic": "Dependent type theory (the calculus of inductive constructions, with universe polymorphism and primitive types)",
  "open": "open-source",
  "license": "LGPL-2.1",
  "links": {
    "homepage": "https://rocq-prover.org/",
    "repo": "https://github.com/rocq-prover/rocq",
    "docs": "https://rocq-prover.org/doc/master/refman/"
  },
  "trust_card": {
    "kernel": {
      "summary": "De Bruijn-style kernel written in OCaml (the kernel/ directory). Besides type checking it contains the guard checker for recursive definitions, universe checking, the module system and primitive types (machine integers, floats, arrays, strings). Using vm_compute or native_compute adds a bytecode machine or compilation to native code through OCaml to what you trust. No published line count found. The project keeps a public list of critical bugs.",
      "source": "https://github.com/rocq-prover/rocq/blob/master/dev/doc/critical-bugs.md"
    },
    "independent_checkers": [
      {
        "name": "rocqchk (formerly coqchk)",
        "url": "https://rocq-prover.org/doc/master/refman/practical-tools/coq-commands.html",
        "note": "Standalone checker shipped with Rocq that re-type-checks compiled .vo libraries, so custom tactics cannot affect it; `-o` lists the axioms used. Not fully independent of the kernel: many entries in the critical-bugs list also affected it."
      },
      {
        "name": "MetaRocq SafeChecker",
        "url": "https://github.com/MetaRocq/metarocq",
        "note": "Type checker for PCUIC (a model of Rocq's core theory) proved correct in Rocq and extracted to OCaml; runs inside Rocq with `MetaRocq SafeCheck`. Its proof assumes strong normalization."
      }
    ],
    "axioms": {
      "summary": "None by default: the core logic is axiom-free. Excluded middle, functional extensionality, proof irrelevance, choice and others are opt-in modules in the standard library's Logic directory. `Print Assumptions` and `rocqchk -o` list the axioms a proof uses.",
      "source": "https://github.com/rocq-prover/rocq/wiki/The-Logic-of-Coq"
    },
    "certificates": {
      "summary": "Yes. Compiled .vo files contain the checked definitions and proofs, and rocqchk can re-check them on another machine, outside the session that produced them.",
      "source": "https://rocq-prover.org/doc/master/refman/practical-tools/coq-commands.html"
    },
    "soundness_issues": [
      {
        "date": "2026-11",
        "title": "Primitive array literals longer than max_length were not rejected, giving a proof of False",
        "url": "https://github.com/rocq-prover/rocq/issues/22716",
        "fixed": true,
        "note": "Fix merged in November 2026; the critical-bugs list names 9.3.1 and 9.4 as fixing releases, not yet out on 2026-11-26."
      },
      {
        "date": "2026-08",
        "title": "Non-injective naming of module paths gave an axiom-free proof of False with native_compute",
        "url": "https://github.com/rocq-prover/rocq/issues/22364",
        "fixed": true,
        "note": "Only affects native_compute. Fix merged in September 2026."
      },
      {
        "date": "2026-03",
        "title": "Module subtyping forgot elimination constraints",
        "url": "https://github.com/rocq-prover/rocq/issues/21750",
        "fixed": true,
        "note": "Risk rated high when module subtyping is combined with sort polymorphism. Fixed in 9.2.0."
      },
      {
        "date": "2025-09",
        "title": "Bug in the guard checker allowed a proof of False assuming univalence",
        "url": "https://github.com/rocq-prover/rocq/issues/21053",
        "fixed": true,
        "note": "Fixed in 9.0.1."
      },
      {
        "date": "2024-01",
        "title": "Primitives were considered convertible to anything by module subtyping",
        "url": "https://github.com/rocq-prover/rocq/issues/18503",
        "fixed": true,
        "note": "Fixed in 8.19.0."
      },
      {
        "date": "2023-07",
        "title": "native_compute with primitive floats gave a proof of False",
        "url": "https://github.com/rocq-prover/rocq/issues/17871",
        "fixed": true,
        "note": "Fixed in 8.18.0."
      },
      {
        "date": "2022-10",
        "title": "Inconsistent handling of products in the native-code machine",
        "url": "https://github.com/rocq-prover/rocq/issues/16645",
        "fixed": true,
        "note": "Fixed in 8.16.1."
      }
    ],
    "soundness_channel": "https://github.com/rocq-prover/rocq/issues?q=label%3A%22kind%3A+inconsistency%22"
  },
  "checker_level": "green",
  "last_release": {
    "version": "9.3.0",
    "date": "2026-09-19",
    "source": "https://github.com/rocq-prover/rocq/releases/tag/V9.3.0"
  },
  "last_checked": "2026-11-26",
  "attestation": "maintainer",
  "claimed_by_authors": false,
  "sources": [
    {
      "url": "https://github.com/rocq-prover/rocq/blob/master/dev/doc/critical-bugs.md",
      "title": "Rocq critical bugs list (component, affected versions, fix version and risk for each bug)",
      "accessed": "2026-11-26"
    },
    {
      "url": "https://github.com/rocq-prover/rocq/issues?q=label%3A%22kind%3A+inconsistency%22",
      "title": "Issues labelled 'kind: inconsistency' (58 issues opened between 2021-11-26 and 2026-11-26)",
      "accessed": "2026-11-26"
    },
    {
      "url": "https://github.com/MetaRocq/metarocq",
      "title": "MetaRocq README (Safe Checker section)",
      "accessed": "2026-11-26"
    }
  ],
  "computed": {
    "kind": "provers",
    "methodology_version": "0.1",
    "built": "2026-11-26",
    "links": {
      "html": "/provers/rocq/",
      "json": "/provers/rocq.json",
      "markdown": "/provers/rocq.md"
    },
    "used_by": [
      "brick",
      "frama-c-wp",
      "islaris",
      "vst"
    ],
    "semantics_available": [
      "brick-cpp",
      "compcert-c",
      "riscv-coq",
      "sail-arm",
      "sail-riscv",
      "vellvm",
      "wasmcert-rocq"
    ]
  }
}