Formal semanticsmodels WebAssembly

WasmCert-Isabelle

Also known as WasmRef-Isabelle

A model of WebAssembly 2.0 in Isabelle/HOL with a machine-checked type soundness proof, a verified type checker and a verified interpreter (WasmRef-Isabelle).

Stage 1 · Validated Written in Isabelle/HOL Open source · BSD-2-Clause Last commit · today

What it covers

Models
WebAssembly, WebAssembly 2.0
Fragment
Wasm 2.0 typing, execution and module instantiation, including reference types and bulk memory. Floating-point and SIMD lane operations and binary decoding are left abstract (the PLDI 2023 work fully mechanised the integer operations). The extracted interpreter takes parsing and numeric operations from the official OCaml reference interpreter. Wasm 3.0 features (GC, exceptions, tail calls, multiple memories, 64-bit memories) are not covered.
Written in
Isabelle/HOL
Usable in
Isabelle/HOL
Validation
The FM 2021 paper reports that the extracted interpreter passes the official Wasm 1.0 test suite (about 17,810 tests) without error. The WasmRef-Isabelle interpreter, proved correct against this model (PLDI 2023), was adopted as a fuzzing oracle for the Wasmtime runtime; Wasmtime removed that spec-interpreter fuzzer in November 2026. No published test results for the Wasm 2.0 version were found.
Maintained by
Conrad Watt and contributors (WasmCert)

Stage

Computed from the evidence below; see the criteria. MechanizedMechanized. Written in a form a computer can check, rather than on paper. means a computer can check the definition.

Stage 0 Mechanized Met
  • Met: Machine-checked or machine-readable definition evidence
  • Met: Fragment and version are stated The README does not name a version; a 2025 WebAssembly Workshop talk says the updated model covers Wasm 2.0. evidence
Stage 1 Validated Met
  • Met: Can be executed or tested A verified interpreter is extracted to OCaml; parsing and numeric operations come from the reference interpreter. evidence
  • Met: Published results against conformance tests or real implementations Published results are for the Wasm 1.0 version (official test suite, about 17,810 tests, all passing). Differential fuzzing inside Wasmtime is described in the PLDI 2023 WasmRef-Isabelle paper. evidence
Stage 2 Authoritative Next
  • Not met: Adopted by the language or ISA owner, or covers the full current version and tracks new ones Adopted by the owner: no; full coverage: no; tracks new versions: no. Not adopted by the WebAssembly Community Group. The FM 2021 paper notes that the Wasm 1.0 standard cites Watt's earlier mechanisation as the source of its type soundness proof. Covers Wasm 2.0. The current version, Wasm 3.0 (September 2025), adds GC, exceptions, tail calls, multiple memories and 64-bit memories, which are not covered. No stated schedule for following new Wasm versions was found. evidence

Coverage

Which parts of WebAssembly the model defines.

WebAssembly-specific features

WebAssembly-specific features
FeatureSupportNotes
Structured control flow Blocks, loops, branches and the operand stack. SupportedSupported.
Source
source
Linear memory Loads, stores and memory growth. SupportedSupported.Wasm 2.0 memory instructions including bulk memory (fill, copy, init). One memory per module, as in Wasm 2.0.
Source
Wasm 2.0 memory instructions including bulk memory (fill, copy, init). One memory per module, as in Wasm 2.0. source
Tables and indirect calls Function tables and call_indirect. SupportedSupported.Wasm 2.0 table instructions and call_indirect.
Source
Wasm 2.0 table instructions and call_indirect. source
SIMD 128-bit vector instructions. PartialPartial.Vector instructions are in the syntax and the reduction rules, but the lane operations are uninterpreted functions in Isabelle. The extracted interpreter uses the reference interpreter's OCaml code for them.
Source
Vector instructions are in the syntax and the reduction rules, but the lane operations are uninterpreted functions in Isabelle. The extracted interpreter uses the reference interpreter's OCaml code for them. source
GC and reference types The garbage-collection and reference-types proposals. PartialPartial.Only the Wasm 2.0 reference types (funcref and externref). The Wasm 3.0 GC types are not covered.
Source
Only the Wasm 2.0 reference types (funcref and externref). The Wasm 3.0 GC types are not covered. source

Used by

Toolchains in this index whose proofs are about this model.

No toolchain in the index refers to it yet.

Sources

esc