RISC-V
Also known as RV64, RV32
An open, modular instruction set used in embedded cores, accelerators and zkVMs; its official reference model is formal.
What do you want to prove about your RISC-V code?
Where proofs can attach
Toolchains that verify RISC-V directly, and those that verify what it compiles to. A proof about compiled code also relies on the compiler that produced it.
- Compiled from Languages that compile to RISC-V
- Machine codeRISC-V
Verify RISC-V directly
Ranked by stage, feature coverage and trust.
| Toolchain | Stage | Trust | Effort | Feature coverage |
|---|---|---|---|---|
| Islaris Prove Arm or RISC-V machine code correct in Rocq, against the full official Sail ISA models, using Isla symbolic execution and an Iris separation logic. | Stage 0 · Research | 2/5 | Interactive | 2/6full |
Feature coverage
Which language features each toolchain handles. Hover or focus a mark for the note and source. Toolchains on compiled code are shown for common features only.
| Feature | Islaris |
|---|---|
| ISA-level features | |
| User-level instructionsThe ordinary integer, memory and branch instructions programs use. | Islaris, User-level instructions: Supported.Any instruction in the Sail model can be turned into a trace by Isla; examples include memcpy and binary search. Source |
| Floating-point instructionsScalar floating-point instructions. | Islaris, Floating-point instructions: Unknown.No floating-point examples in the paper or repository. |
| Vector / SIMD instructionsVector and SIMD extensions. | Islaris, Vector / SIMD instructions: Unknown.No vector or SIMD examples in the paper or repository. |
| Privileged modePrivilege levels, control registers, traps and exceptions. | Islaris, Privileged mode: Supported.Examples install exception vectors, perform hypercalls, handle an unaligned-access fault and use dozens of system registers (pKVM handler). Source |
| Virtual memoryPage tables and address translation. | Islaris, Virtual memory: Not supported.The paper states address translation is not supported (the ISA model has it, but Islaris does not reason about it). Source |
| Concurrency memory modelThe multiprocessor memory model (for example x86-TSO, Arm, RVWMO). | Islaris, Concurrency memory model: Not supported.Single-threaded only; relaxed-memory concurrency is future work per the paper. Source |
Supported Partial Not supported Unknown
Formal semantics of RISC-V
Models that proofs about RISC-V can be stated against. See formal semanticsFormal semantics. A precise, mathematical definition of what programs in a language do..
- riscv-coq (MIT RISC-V specification in Rocq) Stage 0 · Mechanized
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.
- Sail RISC-V model Stage 2 · Authoritative
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.