Proving that your F* (Low*) code is correct under concurrency
Correctness of code with threads or shared memory: absence of data races, deadlock freedom, linearizability of concurrent data structures.
Change the question
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.
- Verified Software Toolchain (Verifiable C) on compiled code: C
Prove in the Rocq proof assistant that a C program meets its specification; compiled with CompCert, the proof carries down to the assembly code.
Partial.Supports threads synchronized with locks and with sequentially consistent atomics, using Iris-style reasoning. Weaker (relaxed) atomics are not supported. CompCert's proof is for sequential code; extending it to concurrent programs is a separate research result.
Source Partial — Supports threads synchronized with locks and with sequentially consistent atomics, using Iris-style reasoning. Weaker (relaxed) atomics are not supported. CompCert's proof is for sequential code; extending it to concurrent programs is a separate research result.- Effort
- Interactive
- Covers
- 7 of 10 common features
- Relies on
- Rocq Admitted and Axiom exist; Print Assumptions lists them.
Stage 1 · Usable 4/5 strong - 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.Threads (pthreads or __CPROVER_ASYNC) are explored up to the unwinding bound; sequential consistency by default, with --mm and goto-instrument options for weak memory models and race checks. AWS reported that code using concurrency was outside the scope of their CBMC proofs.
Source Partial — Threads (pthreads or __CPROVER_ASYNC) are explored up to the unwinding bound; sequential consistency by default, with --mm and goto-instrument options for weak memory models and race checks. AWS reported that code using concurrency was outside the scope of their CBMC proofs.- 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 0/5 strong
No option matches this effort level.
Verify F* (Low*), but not this property
- F* with Low* (KaRaMeL to C) — Low* is for sequential, C-like code. F*'s Pulse language covers concurrency, but it is not part of Low*.
- Alive2 — Atomic and volatile loads and stores, atomicrmw, cmpxchg and fence are rejected as unsupported by the LLVM-to-Alive2 converter.
- Frama-C WP — WP's manual describes no model of threads or atomics. Frama-C's Mthread tool analyzes concurrent code, but it is not part of WP.
- s2n-bignum — The machine model is sequential and single-core.
- CN — The 2026 PLDI paper says the specification language and tools do not yet support concurrency.
- Islaris — The paper states Islaris assumes single-threaded execution.
- LNSym — The machine state is a single sequential processor.
Ask something else about F* (Low*)
- Everything
- No undefined behavior
- Functional correctness
- Equivalence
- Information flow
- Termination and liveness
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..