Instruction set

AArch64

Also known as Arm64, ARMv8-A, ARMv9-A

The 64-bit Arm instruction set, used in phones, Apple silicon and a growing share of servers.

What do you want to prove about your AArch64 code?

Where proofs can attach

Toolchains that verify AArch64 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 AArch64
    C++
    • to LLVM IR via clang trusted
    • to AArch64 via LLVM backend (llc) trusted
    • to LLVM IR via rustc trusted
    • to AArch64 via LLVM backend (llc) trusted
    Go
    • to AArch64 via gc (the Go compiler) trusted
    Dafny verification language
    • to Go via Dafny compiler (Go backend) trusted
    • to AArch64 via gc (the Go compiler) trusted
    F* (Low*) verification language
    • to C via KaRaMeL trusted
    • to AArch64 via CompCert verified
    • to AArch64 via LLVM backend (llc) trusted
  2. Machine code

Verify AArch64 directly

Ranked by stage, feature coverage and trust.

Toolchain Stage Trust Effort Feature coverage
s2n-bignum

Prove hand-written x86-64 or Arm64 assembly correct in HOL Light, on the exact bytes of the built object file; used for AWS's cryptography code.

Stage 1 · Usable Trust: Checker strong, Semantics partial, Frontend strong, Binary gap strong, Escape hatches strong 4/5 Interactive 0/6full, 2 partial
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 Trust: Checker partial, Semantics strong, Frontend partial, Binary gap strong, Escape hatches partial 2/5 Interactive 2/6full
LNSym

Prove Armv8 (AArch64) machine code correct in Lean 4 by symbolic simulation over a hand-written model; aimed at AWS-LC cryptographic routines.

Stage 0 · Research Trust: Checker strong, Semantics partial, Frontend partial, Binary gap strong, Escape hatches partial 2/5 Interactive 0/6full, 2 partial

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 s2n-bignum Islaris LNSym
ISA-level features
User-level instructionsThe ordinary integer, memory and branch instructions programs use. s2n-bignum, User-level instructions: Partial.Only the user-mode integer, load/store and branch instructions needed so far are modeled ("modeled by need").
Source
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
LNSym, User-level instructions: Partial.A subset of AArch64 instruction classes (branches, data processing, loads and stores) needed for the target code; new instructions are added as needed.
Source
Floating-point instructionsScalar floating-point instructions. s2n-bignum, Floating-point instructions: Not supported.No floating-point arithmetic; on Arm only register moves such as FMOV and FCSEL are modeled.
Source
Islaris, Floating-point instructions: Unknown.No floating-point examples in the paper or repository. LNSym, Floating-point instructions: Not supported.Only FMOV between general and floating-point registers; no floating-point arithmetic.
Source
Vector / SIMD instructionsVector and SIMD extensions. s2n-bignum, Vector / SIMD instructions: Partial.A subset of Arm NEON (including AES, SHA-3 and polynomial-multiply instructions) and of x86 SSE/AVX, added as needed.
Source
Islaris, Vector / SIMD instructions: Unknown.No vector or SIMD examples in the paper or repository. LNSym, Vector / SIMD instructions: Partial.A subset of Advanced SIMD plus AES, SHA-512 and polynomial-multiply crypto instructions; no SVE.
Source
Privileged modePrivilege levels, control registers, traps and exceptions. s2n-bignum, Privileged mode: Not supported.No system registers, privilege levels, interrupts or exceptions.
Source
Islaris, Privileged mode: Supported.Examples install exception vectors, perform hypercalls, handle an unaligned-access fault and use dozens of system registers (pKVM handler).
Source
LNSym, Privileged mode: Not supported.The state has no exception levels or system registers.
Source
Virtual memoryPage tables and address translation. s2n-bignum, Virtual memory: Not supported.Flat address space; no page tables or page faults.
Source
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
LNSym, Virtual memory: Not supported.Memory is a flat map from 64-bit addresses to bytes; no address translation.
Source
Concurrency memory modelThe multiprocessor memory model (for example x86-TSO, Arm, RVWMO). s2n-bignum, Concurrency memory model: Not supported.No caches, memory ordering or multiple cores.
Source
Islaris, Concurrency memory model: Not supported.Single-threaded only; relaxed-memory concurrency is future work per the paper.
Source
LNSym, Concurrency memory model: Not supported.Single processor; no memory ordering.
Source

Supported Partial Not supported Unknown

Formal semantics of AArch64

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

  • Sail Arm-A model Stage 0 · Mechanized

    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.

esc