Toolchain verifies Rust

Aeneas (with Charon)

Also known as Aeneas, Charon

Translate safe Rust into pure functions in Lean 4 (or F*, Rocq, HOL4) and prove properties there; the Lean kernel checks every proof.

Trust: Checker strong, Semantics partial, Frontend partial, Binary gap weak, Escape hatches partial CheckerSemanticsFrontendBinary gapEscape hatches 1 of 5 strong, 1 weak

Use it if

  • Your Rust code is safe, sequential code such as cryptography, parsers or data structures.
  • You want every proof checked by a small proof kernel (Lean's), including proofs written by AI tools.
  • You prefer reasoning about pure functions over reasoning about pointers and memory.

Look elsewhere if

  • Your code uses unsafe, raw pointers, interior mutability (Cell, RefCell) or threads; these are not supported yet.
  • You want push-button checking; proofs are written interactively in Lean.
  • You need calls into the standard library or other crates that have no model yet; you would have to write the models by hand.

How it works

From your code to an accepted proof. Each step either has to be trusted or is checked by something else.

  1. Input
    Rust code
  2. Front end
    Charon (rustc driver that exports MIR as LLBC) Trusted Charon uses rustc to compile the crate and translates its MIR into the LLBC format; the translator is not verified.
  3. Translation
    Aeneas (symbolic execution of LLBC into pure functional code) Trusted The ICFP 2024 paper proves on paper that LLBC and its symbolic semantics are sound with respect to a lower-level pointer-based model; the Aeneas implementation itself is not verified.
  4. Checker
    Lean 4 kernel Trusted Lean is the most mature backend. F*, Rocq (Coq) and HOL4 backends exist but receive less attention.
  5. Automation
    Aeneas Lean tactics (progress / step and others) Checked The tactics build proofs that the Lean kernel then checks.
  6. Compiler
    rustc / LLVM Trusted

Verified or checked: outside the trusted base Validated per run or by tests Trusted without proof

  • Rust: A subset of safe, sequential Rust; see the README's list of current limitations.

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.

  1. Checker What has the final word on a proof?
    Strong

    The Lean 4 kernel checks every proof, including those built by tactics or AI tools.

    source

  2. Semantics Is the tool's model of the language the real language?
    Partial

    Aeneas's own model of Rust (LLBC); proved sound on paper, no published validation.

    The soundness proof relates LLBC to a lower-level pointer model; it does not compare the tool with rustc's behavior.

    source

  3. Frontend How does your source get into the model?
    Partial

    Charon, a separate unverified translator from rustc's MIR to LLBC.

    source

  4. Binary gap Does the proof cover what actually runs?
    Weak

    The binary comes from rustc and LLVM, which are not verified.

  5. Escape hatches Can a proof silently rest on unchecked assumptions?
    Partial

    Hand-written models of external code and Lean axioms; #print axioms lists axioms.

    Lean's "#print axioms" command lists every axiom a theorem depends on. Hand-written models of external functions (kept in files such as FunsExternal.lean) are trusted and must be reviewed by hand.

    source

What it can prove

Kinds of guarantees, not how easy they are to get.

Properties
FeatureSupportNotes
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.For the safe Rust it supports. Panics and integer overflow become failures in the generated model, so proving a function returns a result shows it does not panic or overflow. Unsafe code is not supported.
Source
For the safe Rust it supports. Panics and integer overflow become failures in the generated model, so proving a function returns a result shows it does not panic or overflow. Unsafe code is not supported. source
Functional correctness The code meets a written specification of its results, for example “returns the sorted list” or “implements this RFC”. SupportedSupported.Properties are stated and proved as Lean theorems about the generated functions.
Source
Properties are stated and proved as Lean theorems about the generated functions. 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. Because each Rust function becomes a pure function, you can prove it equal to a reference or specification function by hand. No dedicated equivalence mode. Because each Rust function becomes a pure function, you can prove it equal to a reference or specification function by hand.
Information flow Secrets do not influence public outputs, timing or memory access patterns (constant-time code, non-interference). Not supportedNot supported.No documented support for information-flow or constant-time properties.
Source
No documented support for information-flow or constant-time properties. source
Concurrency Correctness of code with threads or shared memory: absence of data races, deadlock freedom, linearizability of concurrent data structures. Not supportedNot supported.Concurrency is not supported; the README says support is planned through ongoing separation-logic work.
Source
Concurrency is not supported; the README says support is planned through ongoing separation-logic work. source
Termination and liveness Every run finishes, or the system keeps making progress (liveness). SupportedSupported.Loops and recursion become possibly diverging Lean definitions; the Lean and HOL4 backends support proving termination separately.
Source
Loops and recursion become possibly diverging Lean definitions; the Lean and HOL4 backends support proving termination separately. source

Language coverage

Which parts of Rust it handles. Hover or focus a mark for details.

Common features

Common features
FeatureSupportNotes
Machine integers Fixed-width integer arithmetic, overflow and bit operations. SupportedSupported.Machine integers with overflow checks; an overflow makes the model fail.
Source
Machine integers with overflow checks; an overflow makes the model fail. source
Floating point IEEE 754 floating-point arithmetic, including rounding and NaNs. UnknownUnknown.Floating point is not mentioned in the documentation or the test suite. Floating point is not mentioned in the documentation or the test suite.
Heap and pointers Dynamically allocated memory, pointers or references, and aliasing. PartialPartial.References and owned data (including Box) become plain values; raw pointers are not supported.
Source
References and owned data (including Box) become plain values; raw pointers are not supported. source
Arrays and buffers Indexed memory such as arrays, slices, vectors and byte buffers. SupportedSupported.Arrays, slices and Vec are covered by tests and standard-library models.
Source
Arrays, slices and Vec are covered by tests and standard-library models. source
Loops Unbounded loops, which need invariants or bounds to verify. PartialPartial.Loops become recursive helper functions. A return inside nested loops, or a break/continue to an outer loop, is not supported yet.
Source
Loops become recursive helper functions. A return inside nested loops, or a break/continue to an outer loop, is not supported yet. source
Recursion Functions that call themselves, directly or through others. SupportedSupported.Recursive functions become recursive Lean definitions; termination may need a separate proof.
Source
Recursive functions become recursive Lean definitions; termination may need a separate proof. source
Higher-order code Function pointers, closures and callbacks. PartialPartial.Simple closures work in the Lean backend; closures that capture mutable state are still commented out as TODO in the tests.
Source
Simple closures work in the Lean backend; closures that capture mutable state are still commented out as TODO in the tests. source
Threads and shared memory Concurrent threads with locks, atomics or message passing. Not supportedNot supported.Not supported (README limitations).
Source
Not supported (README limitations). source
I/O and system calls Files, network, system calls and foreign-function calls. PartialPartial.I/O and other external functions are not translated; you write a model for each one by hand, and Aeneas trusts it.
Source
I/O and other external functions are not translated; you write a model for each one by hand, and Aeneas trusts it. source
Standard library Specifications or models for the language's standard library. PartialPartial.Aeneas ships Lean models for part of the Rust standard library; missing items need hand-written models.
Source
Aeneas ships Lean models for part of the Rust standard library; missing items need hand-written models. source

Rust-specific features

Rust-specific features
FeatureSupportNotes
References and borrowing Shared and mutable references checked by the borrow checker. PartialPartial.Shared and mutable borrows, including functions returning mutable borrows, are supported. Instantiating a generic type with a mutable reference is not supported yet.
Source
Shared and mutable borrows, including functions returning mutable borrows, are supported. Instantiating a generic type with a mutable reference is not supported yet. source
Traits and generics Generic functions and types with trait bounds. SupportedSupported.Traits become Lean type classes.
Source
Traits become Lean type classes. source
Closures Anonymous functions that capture their environment. PartialPartial.Closures without mutable captures, Lean backend only.
Source
Closures without mutable captures, Lean backend only. source
unsafe and raw pointers Code inside unsafe blocks, raw pointer dereferences and FFI. Not supportedNot supported.Unsafe code is not supported; planned through separation-logic work.
Source
Unsafe code is not supported; planned through separation-logic work. source
Interior mutability Cell, RefCell, UnsafeCell and other mutation through shared references. Not supportedNot supported.The Aeneas paper excludes programs that rely on interior mutability.
Source
The Aeneas paper excludes programs that rely on interior mutability. source
Trait objects dyn Trait values with dynamic dispatch. PartialPartial.Simple Box<dyn Trait> cases are in the test suite (Lean backend only); the extent of support is not documented.
Source
Simple Box<dyn Trait> cases are in the test suite (Lean backend only); the extent of support is not documented. source
Iterators Iterator chains such as map, filter and for loops over collections. PartialPartial.Tests cover iterators over ranges, arrays, slices and Vec and some adapters; there is no documented list of supported iterator methods.
Source
Tests cover iterators over ranges, arrays, slices and Vec and some adapters; there is no documented list of supported iterator methods. source
Panics Panicking operations (unwrap, indexing, overflow in debug builds) and their absence. SupportedSupported.Panics, overflow and out-of-bounds accesses are modeled as failures that proofs must rule out.
Source
Panics, overflow and out-of-bounds accesses are modeled as failures that proofs must rule out. source
async / await Asynchronous functions and futures. UnknownUnknown.Not mentioned in the documentation. Not mentioned in the documentation.

Stage

Computed from the evidence below; see the criteria. 1criterion is missing for Stage 2.

Stage 0 Research Met
  • Met: Publicly available evidence
  • Met: At least one published verification uses it ICFP 2022 paper with a verified resizing hash table; later, SHA-3 and ML-KEM in Microsoft's SymCrypt (arXiv 2609.15648). evidence
Stage 1 Usable Met
  • Met: Released or updated in the last 12 months Latest release: nightly-2026.11.26-69280e0, 2026-11-26. evidence
  • Met: Installs and runs on current platforms Nightly binaries for Linux (x86-64, Arm) and macOS (Arm); also builds with Nix or from source. evidence
  • Met: User documentation or tutorial Getting-started guide, overview, tactics reference and a Lean tutorial. evidence
  • Met: Used by a group other than its authors Runtime Verification used Charon and Aeneas to verify parts of Plonky3 and RISC Zero in Lean (CAV 2026 AIMACS workshop). evidence
Stage 2 Production Next
  • Not met: Verified code in production at two or more independent organizations None recorded.
  • Met: Checker axis is not red
  • Met: Semantics axis is not red
  • Met: Public channel for soundness bugs Public GitHub issue tracker; there is no dedicated soundness label. evidence

In use

Verified code in production, and notable verification projects.

In production

None recorded. Know one? Add it with a source.

Projects

Facts and sources

Effort
Interactive: You write proofs step by step in a proof assistant.
Licence
Open source, Apache-2.0
Maintained by
AeneasVerif team (Microsoft Azure Research, Inria, Google, Beneficial AI Foundation)
Latest release
nightly-2026.11.26-69280e0 (26 Nov 2026) source
Last checked
26 Nov 2026

Further sources

esc