F* with Low* (KaRaMeL to C)
Also known as Low*, LowStar, KaRaMeL, KReMLin
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.
Use it if
- You maintain or extend existing Low* code, such as HACL* cryptography or EverParse parsers.
- You need verified C that fits into an existing C code base, with memory safety, correctness and secret-independence proofs.
- You can work with an F* release from before April 2026, or the separate LowStar repository.
Look elsewhere if
- You are starting new low-level F* work; Low* was removed from F* in April 2026, and F* now ships Pulse as its built-in language for imperative code.
- Your code needs closures, recursive data types in C or concurrency; Low* targets sequential, first-order C-like code.
- You need the proof checked by a small proof kernel; F* relies on its type checker and Z3.
How it works
From your code to an accepted proof. Each step either has to be trusted or is checked by something else.
- Input F* (Low*) code
- Front end F* parser and type checker Trusted F* checks the same source it later extracts; there is no separate translator from another language.
- Semantics Low* libraries (HyperStack memory model, LowStar.Buffer) Trusted Moved out of F* into the FStarLang/LowStar repository in 2026. The Low* language and its compilation to C are formalized on paper in the ICFP 2017 paper.
- Translation F* verification-condition generation (SMT encoding) Trusted
- Checker Z3 Trusted
- Compiler KaRaMeL (Low* to C), then a C compiler Trusted KaRaMeL's translation has a paper proof relating Low* to CompCert's Clight; the tool itself is not verified.
Verified or checked: outside the trusted base Validated per run or by tests Trusted without proof
- F* (Low*): Code written in the Low* subset of F*; it is then compiled to C by KaRaMeL.
Trust
What a proof from this toolchain relies on: the trusted computing baseTrusted computing base (TCB). Everything that must be correct for a proof to mean what it says., one part at a time. How these are rated.
- Checker What has the final word on a proof?Partial
F*'s type checker and the Z3 SMT solver decide; no small kernel, no proof certificates.
- Semantics Is the tool's model of the language the real language?Partial
Low*'s memory model is a library inside F*; formalized on paper, not validated against C.
- Frontend How does your source get into the model?Strong
F* checks the same source it compiles; no separate translator is involved.
- Binary gap Does the proof cover what actually runs?Weak
KaRaMeL (paper proof only) and the C compiler that builds the binary are not verified.
- Escape hatches Can a proof silently rest on unchecked assumptions?Partial
assume, admit and assume val skip proofs; found by searching the source.
What it can prove
Kinds of guarantees, not how easy they are to get.
| Feature | Support | Notes |
|---|---|---|
| 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. | SupportedSupported.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 | 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 |
| Functional correctness The code meets a written specification of its results, for example “returns the sorted list” or “implements this RFC”. | SupportedSupported.Full functional specifications in F*; HACL* proves its code correct against mathematical specifications. Source | Full functional specifications in F*; HACL* proves its code correct against mathematical specifications. source |
| Equivalence Two programs (an optimized and a reference version, or code before and after a change) are proved to behave the same, or one refines the other. | PartialPartial.No dedicated equivalence mode; you prove Low* code equal to a pure F* specification function by hand, which is how HACL* is structured. | No dedicated equivalence mode; you prove Low* code equal to a pure F* specification function by hand, which is how HACL* is structured. |
| Information flow Secrets do not influence public outputs, timing or memory access patterns (constant-time code, non-interference). | PartialPartial.HACL* proves secret independence (a defense against some timing side channels) by using abstract secret integer types in its libraries; this is a library discipline, not a built-in F* check. Source | HACL* proves secret independence (a defense against some timing side channels) by using abstract secret integer types in its libraries; this is a library discipline, not a built-in F* check. source |
| Concurrency Correctness of code with threads or shared memory: absence of data races, deadlock freedom, linearizability of concurrent data structures. | Not supportedNot supported.Low* is for sequential, C-like code. F*'s Pulse language covers concurrency, but it is not part of Low*. Source | Low* is for sequential, C-like code. F*'s Pulse language covers concurrency, but it is not part of Low*. source |
| Termination and liveness Every run finishes, or the system keeps making progress (liveness). | SupportedSupported.F* proves that total functions terminate, using a measure that must decrease on each recursive call. Source | F* proves that total functions terminate, using a measure that must decrease on each recursive call. source |
Language coverage
Which parts of F* (Low*) it handles. Hover or focus a mark for details.
Common features
| Feature | Support | Notes |
|---|---|---|
| Machine integers Fixed-width integer arithmetic, overflow and bit operations. | SupportedSupported.Machine integers are Low*'s base types, with both wrapping and checked operations. Source | Machine integers are Low*'s base types, with both wrapping and checked operations. source |
| Floating point IEEE 754 floating-point arithmetic, including rounding and NaNs. | UnknownUnknown.Floating point is not mentioned in the Low* manual. | Floating point is not mentioned in the Low* manual. |
| Heap and pointers Dynamically allocated memory, pointers or references, and aliasing. | SupportedSupported.Stack and heap allocation through the HyperStack memory model, with modifies clauses. Source | Stack and heap allocation through the HyperStack memory model, with modifies clauses. source |
| Arrays and buffers Indexed memory such as arrays, slices, vectors and byte buffers. | SupportedSupported.Buffers with pointer arithmetic within bounds (LowStar.Buffer). Source | Buffers with pointer arithmetic within bounds (LowStar.Buffer). source |
| Loops Unbounded loops, which need invariants or bounds to verify. | SupportedSupported.Ordinary control flow is supported; loops can be written as tail-recursive functions, which C compilers turn into loops. Source | Ordinary control flow is supported; loops can be written as tail-recursive functions, which C compilers turn into loops. source |
| Recursion Functions that call themselves, directly or through others. | SupportedSupported.Recursive functions are allowed and compiled to C functions. Source | Recursive functions are allowed and compiled to C functions. source |
| Higher-order code Function pointers, closures and callbacks. | PartialPartial.Function pointers work to some extent; local closures are not supported because they have no natural C equivalent. Source | Function pointers work to some extent; local closures are not supported because they have no natural C equivalent. source |
| Threads and shared memory Concurrent threads with locks, atomics or message passing. | Not supportedNot supported.Low* covers sequential code only. Source | Low* covers sequential code only. source |
| I/O and system calls Files, network, system calls and foreign-function calls. | PartialPartial.C library functions are reached through Low* system libraries and assumed declarations, whose specifications are trusted. Source | C library functions are reached through Low* system libraries and assumed declarations, whose specifications are trusted. source |
| Standard library Specifications or models for the language's standard library. | PartialPartial.Low* libraries cover buffers, endianness, C strings and parts of the C standard library. Source | Low* libraries cover buffers, endianness, C strings and parts of the C standard library. source |
Stage
Computed from the evidence below; see the criteria.
- Met: Released or updated in the last 12 months Latest release: F* v2026.03.24 (last F* release with Low*), 2026-03-24. evidence
- Met: Installs and runs on current platforms F* v2026.03.24 (Linux, macOS, Windows binaries) is the last F* release that includes Low*. F* removed Low* in April 2026 (pull request 4161); the libraries now live in the FStarLang/LowStar repository, which pins an older F* branch, and HACL* builds with a frozen F* version. Whether Low* works with current F* releases is not documented. evidence
- Met: User documentation or tutorial evidence
- Met: Used by a group other than its authors Nomadic Labs integrated HACL* (Low* code) into the Tezos Octez implementation. evidence
- Met: Verified code in production at two or more independent organizations 2 recorded: Mozilla, Python (CPython).
- Met: Checker axis is not red
- Met: Semantics axis is not red
- Met: Public channel for soundness bugs Public F* issues with a 'kind/unsoundness' label. evidence
In use
Verified code in production, and notable verification projects.
In production
Projects
- HACL* verified cryptographic library — In maintenance mode; builds with a frozen F* version from before Low* was removed.
- Curve25519 in the Linux kernel — Generated from HACL* and then tweaked by hand for the kernel.
- Tezos Octez cryptography
Facts and sources
- Effort
- Auto-active: You write specifications and hints; a solver does the proving.
- Licence
- Open source, Apache-2.0
- Maintained by
- Microsoft Research and the F* community
- Latest release
- F* v2026.03.24 (last F* release with Low*) (24 Mar 2026) source
- Last checked
- 26 Nov 2026
Further sources
- Merge fstar2 into master (removes Low* and monotonic heap modules), April 2026 · accessed 26 Nov 2026
- LowStar repository (Low* libraries moved out of F*) · accessed 26 Nov 2026
- F* README (Custard extraction, Pulse) · accessed 26 Nov 2026
- KaRaMeL README · accessed 26 Nov 2026
- The Low* subset of F* · accessed 26 Nov 2026
- HACL* README (maintenance mode, frozen F*) · accessed 26 Nov 2026
- F* homepage (F* in production) · accessed 26 Nov 2026