Index
Formal semantics
Precise models of what programs in a language mean. Every proof is a proof about one of these, so how well a model matches the real language matters.
Stages: 0 Mechanized (written in a form a computer can check), 1 Validated (tested against real implementations, results published), 2 Authoritative (adopted by the language owner, or complete and kept current). See formal semanticsFormal semantics. A precise, mathematical definition of what programs in a language do..
| Semantics | Models | Written in | Usable in | Stage | Last activity |
|---|---|---|---|---|---|
| Sail RISC-V model The official formal model of the RISC-V instruction set, written in Sail and adopted by RISC-V International. From it you can build a RISC-V emulator and definitions for several proof assistants. | RISC-V | Sail | Rocq, Lean 4, Isabelle/HOL, HOL4 | Stage 2 · Authoritative | Release 41 days ago |
| Wasm SpecTec 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. | WebAssembly | SpecTec (a domain-specific language with an OCaml toolchain) | — | Stage 2 · Authoritative | Commit today |
| Cerberus C semantics An executable semantics of a large part of ISO C11 that explores all behaviors a small C program may have, including pointer provenance. CN is built on it. | C | Lem (translated to OCaml) | — | Stage 1 · Validated | Commit 2 days ago |
| EVMYulLean An executable model of the EVM (Cancun fork) and of Yul, the Solidity compiler's intermediate language, in Lean 4 by Nethermind. The EVM part passes almost all Cancun conformance tests. | EVM bytecode | Lean 4 | Lean 4 | Stage 1 · Validated | Commit 14 months ago |
| KEVM An executable formal semantics of the Ethereum Virtual Machine written in the K framework. It runs the Ethereum conformance tests and is the model behind Runtime Verification's Kontrol. | EVM bytecode | K | — | Stage 1 · Validated | Commit 2 months ago |
| Vellvm A formal semantics of LLVM IR in Rocq, with an executable interpreter extracted from the same definitions and used to test the model against clang. | LLVM IR | Rocq (interaction trees) | Rocq | Stage 1 · Validated | Release 5 months ago |
| WasmCert-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). | WebAssembly | Isabelle/HOL | Isabelle/HOL | Stage 1 · Validated | Commit today |
| WasmCert-Rocq 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. | WebAssembly | Rocq | Rocq | Stage 1 · Validated | Release 1 months ago |
| ACL2 x86 ISA model (x86isa) An executable model of x86-64 machine code in the ACL2 theorem prover, from UT Austin. It can run programs, including a lightly modified Linux, and is used to prove properties of x86 machine code. | x86-64 | ACL2 | ACL2 | Stage 0 · Mechanized | Release 8 months ago |
| BRiCk C++ semantics A separation-logic semantics of a large part of C++, written as weakest-precondition rules in Rocq on top of Iris. It is the model behind the BRiCk toolchain. | C++ | Rocq (Iris separation logic) | Rocq | Stage 0 · Mechanized | Commit today |
| CompCert C and Clight semantics The formal semantics of C, written in Rocq, that the CompCert compiler is proved correct against. VST proves programs against its Clight part. | C | Rocq | Rocq | Stage 0 · Mechanized | Release 3 months ago |
| riscv-coq (MIT RISC-V specification in Rocq) A RISC-V model in Rocq (formerly Coq) from MIT, written for proofs rather than as a full reference. It is the target machine of the bedrock2 verified compiler and of MIT's end-to-end verified embedded system. | RISC-V | Rocq | Rocq | Stage 0 · Mechanized | Commit 13 days ago |
| Sail Arm-A model A Sail version of Arm's own machine-readable A-profile specification (written in Arm's ASL), produced by an automatic ASL-to-Sail translator. | AArch64 | Sail (translated from Arm ASL) | Isabelle/HOL, Rocq, Lean 4, HOL4 | Stage 0 · Mechanized | Commit today |
| a-mir-formality An early-stage, executable model of Rust's type system, trait solver and borrow checker, written as inference rules in Rust and maintained by members of the Rust types team. | Rust | Rust (formality-core judgment library) | — | Not staged | Commit 2 days ago |
| MiniRust 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. | Rust | specr lang (Rust-like pseudo-code, transpiled to Rust) | — | Not staged | Commit today |