{
  "id": "wasmcert-rocq",
  "name": "WasmCert-Rocq",
  "aka": [
    "WasmCert-Coq",
    "wasm_coq",
    "WasmRef-Coq"
  ],
  "summary": "A model of WebAssembly 2.0 (plus tail calls and subtyping) in Rocq, with a type soundness proof and a verified interpreter that is extracted to OCaml and run on the official tests.",
  "target": "wasm",
  "fragment": "Wasm 2.0 typing, execution and module instantiation, plus tail calls and the subtyping rules of the function-references and GC proposals. Integer and float operations come from CompCert's integer and float libraries (built on Flocq). SIMD instructions are opaque: their execution calls the official reference interpreter. The binary parser is unverified (experimental). Wasm 3.0 GC structs and arrays, exceptions, multiple memories and 64-bit memories are not listed as covered.",
  "version": "WebAssembly 2.0, plus tail calls and subtyping",
  "framework": "Rocq",
  "provers": [
    "rocq"
  ],
  "open": "open-source",
  "license": "MIT (files in src/Parray are LGPL-2.1-or-later)",
  "maintainers": [
    "Xiaojia Rao",
    "Martin Bodin"
  ],
  "links": {
    "repo": "https://github.com/WasmCert/WasmCert-Coq",
    "paper": "https://link.springer.com/chapter/10.1007/978-3-030-90870-6_4"
  },
  "validation": "The extracted interpreter (WasmRef-Coq) is proved sound with respect to the Rocq semantics. It runs the official conformance test suite (a WasmCert copy of it, included as a submodule) in CI, and the README says it is expected to pass all core tests. Tail calls are not tested this way.",
  "stage_evidence": {
    "mechanized": {
      "met": true,
      "evidence": "https://github.com/WasmCert/WasmCert-Coq"
    },
    "scope_stated": {
      "met": true,
      "evidence": "https://github.com/WasmCert/WasmCert-Coq/blob/master/README.md",
      "note": "The README states Wasm 2.0 plus subtyping and tail calls, and how SIMD is handled."
    },
    "executable": {
      "met": true,
      "evidence": "https://github.com/WasmCert/WasmCert-Coq/blob/master/README.md",
      "note": "An interpreter extracted to OCaml runs .wasm and .wat files."
    },
    "validated": {
      "met": true,
      "evidence": "https://github.com/WasmCert/WasmCert-Coq/blob/master/README.md",
      "note": "The conformance suite runs in CI (make run_wast). No published pass counts were found; the README says all core tests are expected to pass."
    },
    "adopted_by_owner": {
      "met": false,
      "note": "Not adopted by the WebAssembly Community Group."
    },
    "full_coverage": {
      "met": false,
      "evidence": "https://webassembly.org/news/2025-09-17-wasm-3.0/",
      "note": "Covers Wasm 2.0 plus some later features. The current version, Wasm 3.0 (September 2025), adds GC, exceptions, multiple memories and 64-bit memories, which are not covered."
    },
    "tracks_versions": {
      "met": false,
      "note": "No stated schedule for following new Wasm versions was found."
    }
  },
  "features": {
    "wasm.control": {
      "status": "full",
      "note": "Includes tail calls.",
      "source": "https://github.com/WasmCert/WasmCert-Coq/blob/master/README.md"
    },
    "wasm.memory": {
      "status": "full",
      "note": "Wasm 2.0 memory instructions, including bulk memory.",
      "source": "https://github.com/WasmCert/WasmCert-Coq/blob/master/README.md"
    },
    "wasm.tables": {
      "status": "full",
      "source": "https://github.com/WasmCert/WasmCert-Coq/blob/master/README.md"
    },
    "wasm.simd": {
      "status": "partial",
      "note": "SIMD instructions are parsed as opaque opcodes and executed by calling the reference implementation. Their meaning is not defined in Rocq.",
      "source": "https://github.com/WasmCert/WasmCert-Coq/blob/master/README.md"
    },
    "wasm.gc": {
      "status": "partial",
      "note": "Wasm 2.0 reference types plus the subtyping rules from the function-references and GC proposals. GC structs and arrays are not covered.",
      "source": "https://github.com/WasmCert/WasmCert-Coq/blob/master/README.md"
    }
  },
  "last_release": {
    "version": "v2.2.1",
    "date": "2026-10-12",
    "source": "https://github.com/WasmCert/WasmCert-Coq/releases/tag/v2.2.1"
  },
  "last_checked": "2026-11-26",
  "attestation": "maintainer",
  "claimed_by_authors": false,
  "sources": [
    {
      "url": "https://github.com/WasmCert/WasmCert-Coq",
      "title": "WasmCert-Coq repository and README",
      "accessed": "2026-11-26"
    },
    {
      "url": "https://github.com/WasmCert/WasmCert-Coq/blob/master/LICENSE.txt",
      "title": "License (MIT with LGPL parts)",
      "accessed": "2026-11-26"
    },
    {
      "url": "https://github.com/WasmCert/WasmCert-Coq/releases/tag/v2.2.1",
      "title": "Release 2.2.1 notes",
      "accessed": "2026-11-26"
    },
    {
      "url": "https://www.cl.cam.ac.uk/~jp622/two_wasm.pdf",
      "title": "Watt et al., Two Mechanisations of WebAssembly 1.0 (FM 2021), author copy",
      "accessed": "2026-11-26"
    },
    {
      "url": "https://github.com/WasmCert/WasmCert-Coq/tree/iris-wasm-opam",
      "title": "Iris-Wasm program logic branch",
      "accessed": "2026-11-26"
    }
  ],
  "computed": {
    "kind": "semantics",
    "methodology_version": "0.1",
    "built": "2026-11-26",
    "links": {
      "html": "/semantics/wasmcert-rocq/",
      "json": "/semantics/wasmcert-rocq.json",
      "markdown": "/semantics/wasmcert-rocq.md"
    },
    "stage": {
      "stage": 1,
      "name": "Validated",
      "criteria": [
        {
          "key": "mechanized",
          "stage": 0,
          "label": "Machine-checked or machine-readable definition",
          "met": true,
          "evidence": "https://github.com/WasmCert/WasmCert-Coq",
          "computed": false
        },
        {
          "key": "scope_stated",
          "stage": 0,
          "label": "Fragment and version are stated",
          "met": true,
          "evidence": "https://github.com/WasmCert/WasmCert-Coq/blob/master/README.md",
          "note": "The README states Wasm 2.0 plus subtyping and tail calls, and how SIMD is handled.",
          "computed": false
        },
        {
          "key": "executable",
          "stage": 1,
          "label": "Can be executed or tested",
          "met": true,
          "evidence": "https://github.com/WasmCert/WasmCert-Coq/blob/master/README.md",
          "note": "An interpreter extracted to OCaml runs .wasm and .wat files.",
          "computed": false
        },
        {
          "key": "validated",
          "stage": 1,
          "label": "Published results against conformance tests or real implementations",
          "met": true,
          "evidence": "https://github.com/WasmCert/WasmCert-Coq/blob/master/README.md",
          "note": "The conformance suite runs in CI (make run_wast). No published pass counts were found; the README says all core tests are expected to pass.",
          "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://webassembly.org/news/2025-09-17-wasm-3.0/",
          "note": "Adopted by the owner: no; full coverage: no; tracks new versions: no. Not adopted by the WebAssembly Community Group. Covers Wasm 2.0 plus some later features. The current version, Wasm 3.0 (September 2025), adds GC, exceptions, multiple memories and 64-bit memories, which are not covered. No stated schedule for following new Wasm versions was found.",
          "computed": true
        }
      ],
      "missing_for_next": [
        "authoritative"
      ]
    },
    "used_by": []
  }
}