Find a tool · F* (Low*)

Proving that your F* (Low*) code has no undefined behavior

Memory safety and absence of runtime errors: no out-of-bounds access, use-after-free, overflow traps, panics or undefined behavior on any input allowed by the precondition.

Change the question

I have code and want to prove

Effort
My code uses

Ranked by: support for this property, stage, coverage of the features you pick, and trust. Tools that work on compiled code rank lower. Ranking as JSON.

  1. Write low-level code in Low*, a C-like subset of F*, prove it safe and correct with F* and Z3, then compile it to readable C with KaRaMeL.

    Supported.Low* code is proved memory safe (buffer bounds and liveness); HACL*'s README describes its code as verified for memory safety, functional correctness and secret independence.
    Source
    Supported — Low* code is proved memory safe (buffer bounds and liveness); HACL*'s README describes its code as verified for memory safety, functional correctness and secret independence.

    Effort
    Auto-active
    Covers
    5 of 10 F* (Low*) features
    Relies on
    F*'s type checker and the Z3 SMT solver decide; no small kernel, no proof certificates. Low*'s memory model is a library inside F*; formalized on paper, not validated against C.
    Stage 2 · Production Trust: Checker partial, Semantics partial, Frontend strong, Binary gap weak, Escape hatches partial 1/5 strong
  2. Prove in the Rocq proof assistant that a C program meets its specification; compiled with CompCert, the proof carries down to the assembly code.

    Supported.A proved function never crashes or hits undefined behavior in CompCert C, given its precondition. Signed integer overflow must be proved absent.
    Source
    Supported — A proved function never crashes or hits undefined behavior in CompCert C, given its precondition. Signed integer overflow must be proved absent.

    Effort
    Interactive
    Covers
    7 of 10 common features
    Relies on
    Rocq Admitted and Axiom exist; Print Assumptions lists them.
    Stage 1 · Usable Trust: Checker strong, Semantics strong, Frontend strong, Binary gap strong, Escape hatches partial 4/5 strong
  3. CBMC on compiled code: C

    Write a test-like harness for your C code; CBMC checks every execution up to a loop bound, giving a counterexample or a bounded proof.

    Partial.Since CBMC 6.0 the default checks cover array bounds, pointer validity, pointer primitives, division by zero, signed overflow and over-wide shifts. Other checks (memory leaks, unsigned and pointer overflow, conversions, NaN) must be switched on. The result is a proof only up to the loop bounds (with unwinding assertions passing) or with loop contracts.
    Source
    Partial — Since CBMC 6.0 the default checks cover array bounds, pointer validity, pointer primitives, division by zero, signed overflow and over-wide shifts. Other checks (memory leaks, unsigned and pointer overflow, conversions, NaN) must be switched on. The result is a proof only up to the loop bounds (with unwinding assertions passing) or with loop contracts.

    Effort
    Push-button
    Covers
    5 of 10 common features
    Relies on
    A SAT or SMT solver decides; its answer is trusted and no proof certificate is kept. C model built into CBMC; tested by its own regression suite.
    Stage 1 · Usable Trust: Checker partial, Semantics partial, Frontend partial, Binary gap weak, Escape hatches partial 0/5 strong
  4. CN on compiled code: C

    Write ownership and correctness specifications as comments in C code; CN checks them with an SMT solver, or turns them into runtime checks for testing.

    Supported.CN checks that code is free of undefined behavior as defined by the Cerberus semantics of ISO C.
    Source
    Supported — CN checks that code is free of undefined behavior as defined by the Cerberus semantics of ISO C.

    Effort
    Auto-active
    Covers
    4 of 10 common features
    Relies on
    Z3 or cvc5 decides each check; no proof certificates by default. Built on the Cerberus C semantics; CN's own model on top is tested by its suite.
    Stage 0 · Research Trust: Checker partial, Semantics partial, Frontend partial, Binary gap weak, Escape hatches partial 0/5 strong
  5. Frama-C WP on compiled code: C

    Write ACSL contracts and loop invariants as comments in your C code; Frama-C's WP plug-in turns them into proof goals for SMT solvers.

    Partial.With -wp-rte, the RTE plug-in adds assertions for runtime errors such as invalid memory access and arithmetic overflow, and WP proves them for all inputs. Guards for pointer alignment and for calls through invalid function pointers are skipped, and code outside the memory model (for example heterogeneous pointer casts) cannot be handled.
    Source
    Partial — With -wp-rte, the RTE plug-in adds assertions for runtime errors such as invalid memory access and arithmetic overflow, and WP proves them for all inputs. Guards for pointer alignment and for calls through invalid function pointers are skipped, and code outside the memory model (for example heterogeneous pointer casts) cannot be handled.

    Effort
    Auto-active
    Covers
    4 of 10 common features
    Relies on
    Alt-Ergo or another SMT solver via Why3 is trusted; no proof certificates. C model built into Frama-C and WP's memory models; no published validation found.
    Stage 1 · Usable Trust: Checker partial, Semantics partial, Frontend partial, Binary gap weak, Escape hatches partial 0/5 strong
  6. s2n-bignum on compiled code: x86-64

    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.

    Partial.Memory-safety proofs (all accesses inside the declared buffers) exist for the functions AWS-LC uses, not yet for the whole library. They do not check accesses below the stack pointer, and the memory model has no unmapped pages, so the caller must pass mapped memory.
    Source
    Partial — Memory-safety proofs (all accesses inside the declared buffers) exist for the functions AWS-LC uses, not yet for the whole library. They do not check accesses below the stack pointer, and the memory model has no unmapped pages, so the caller must pass mapped memory.

    Effort
    Interactive
    Covers
    0 of 0 common features
    Relies on
    Hand-written instruction models; random co-simulation against real CPUs in CI.
    Stage 1 · Usable Trust: Checker strong, Semantics partial, Frontend strong, Binary gap strong, Escape hatches strong 4/5 strong
  7. Islaris on compiled code: AArch64

    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.

    Supported.Proofs show execution never reaches a failure state and only touches memory the specification owns or allows (MMIO).
    Source
    Supported — Proofs show execution never reaches a failure state and only touches memory the specification owns or allows (MMIO).

    Effort
    Interactive
    Covers
    0 of 0 common features
    Relies on
    Isla and its SMT solver are trusted; Rocq checks the separation-logic proofs. Opcodes come from objdump output that the user trims and annotates by hand.
    Stage 0 · Research Trust: Checker partial, Semantics strong, Frontend partial, Binary gap strong, Escape hatches partial 2/5 strong
  8. LNSym on compiled code: AArch64

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

    Unknown.Proofs show no decoding error or unmodeled instruction is reached. The memory-safety part of the GCM init specification is commented out; we found no finished memory-safety proofs.
    Source
    Unknown — Proofs show no decoding error or unmodeled instruction is reached. The memory-safety part of the GCM init specification is commented out; we found no finished memory-safety proofs.

    Effort
    Interactive
    Covers
    0 of 0 common features
    Relies on
    Hand-written AArch64 subset; random co-simulation against real Arm CPUs in CI. Opcodes are pasted from objdump into Lean; not linked to the binary by a proof.
    Stage 0 · Research Trust: Checker strong, Semantics partial, Frontend partial, Binary gap strong, Escape hatches partial 2/5 strong

Verify F* (Low*), but not this property

  • Alive2 — Alive2 does not prove that a program is free of undefined behavior. Its refinement check only guarantees that the optimized version has no undefined behavior the original lacked.

Ask something else about F* (Low*)

New to this? Start with the glossary: auto-activeAuto-active verification. You write specifications and hints in the code; an automatic solver does the proving., interactiveInteractive theorem prover. A proof assistant where you write proofs step by step and the system checks each step., trusted computing baseTrusted computing base (TCB). Everything that must be correct for a proof to mean what it says..

esc