Intermediate representation

WebAssembly

Also known as Wasm

A portable bytecode for browsers, plugins, serverless platforms and blockchains, with an official formal specification.

What do you want to prove about your WebAssembly code?

Where proofs can attach

Toolchains that verify WebAssembly directly, and those that verify what it compiles to. A proof about compiled code also relies on the compiler that produced it.

  1. Compiled from Languages that compile to WebAssembly
    C
    • to LLVM IR via clang trusted
    • to WebAssembly via LLVM WebAssembly backend trusted
    C++
    • to LLVM IR via clang trusted
    • to WebAssembly via LLVM WebAssembly backend trusted
    • to LLVM IR via rustc trusted
    • to WebAssembly via LLVM WebAssembly backend trusted
    F* (Low*) verification language
    • to C via KaRaMeL trusted
    • to LLVM IR via clang trusted
    • to WebAssembly via LLVM WebAssembly backend trusted
    • to WebAssembly via LLVM WebAssembly backend trusted
  2. This IR
    WebAssembly

    No toolchain in the index yet

Formal semantics of WebAssembly

Models that proofs about WebAssembly can be stated against. See formal semanticsFormal semantics. A precise, mathematical definition of what programs in a language do..

  • Wasm SpecTec Stage 2 · Authoritative

    The language in which the official WebAssembly specification has been written since 2025. From one source it generates the spec document and an interpreter that runs the official tests.

  • WasmCert-Isabelle Stage 1 · Validated

    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).

  • WasmCert-Rocq Stage 1 · Validated

    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.

esc