# Aeneas (with Charon)

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

- Kind: toolchain
- Verifies: Rust (A subset of safe, sequential Rust; see the README's list of current limitations.)
- Effort: Interactive — You write proofs step by step in a proof assistant.
- Stage: 1 (Usable)
- Trust: Checker strong, Semantics partial, Frontend partial, Binary gap weak, Escape hatches partial
- Licence: open-source, Apache-2.0
- Latest release: nightly-2026.11.26-69280e0 (2026-11-26) https://github.com/AeneasVerif/aeneas/releases/tag/nightly-2026.11.26-69280e0
- Links: [homepage](https://aeneasverif.github.io/), [repo](https://github.com/AeneasVerif/aeneas), [docs](https://github.com/AeneasVerif/aeneas/tree/main/documentation), [paper](https://doi.org/10.1145/3547647), [tutorial](https://github.com/AeneasVerif/aeneas/tree/main/tests/lean/Tutorial)

## 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 (pipeline)

| Step | Component | Assurance | Note |
|---|---|---|---|
| frontend | 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. |
| 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. |
| checker | Lean 4 kernel (`lean4`) | trusted | Lean is the most mature backend. F*, Rocq (Coq) and HOL4 backends exist but receive less attention. |
| automation | Aeneas Lean tactics (progress / step and others) | checked | The tactics build proofs that the Lean kernel then checks. |
| compiler | rustc / LLVM | trusted |  |

## Trust

| Axis | Level | Summary | Note |
|---|---|---|---|
| Checker | Strong (green) | The Lean 4 kernel checks every proof, including those built by tactics or AI tools. |  [source](https://github.com/AeneasVerif/aeneas/blob/main/documentation/aeneas-overview.md) |
| Semantics | Partial (amber) | 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](https://doi.org/10.1145/3674640) |
| Frontend | Partial (amber) | Charon, a separate unverified translator from rustc's MIR to LLBC. |  [source](https://github.com/AeneasVerif/charon) |
| Binary gap | Weak (red) | The binary comes from rustc and LLVM, which are not verified. |  |
| Escape hatches | Partial (amber) | 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](https://lean-lang.org/doc/reference/latest/Axioms/) |

## What it can prove

| Property | Support |
|---|---|
| No undefined behavior | Supported — 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](https://github.com/AeneasVerif/aeneas/blob/main/documentation/aeneas-overview.md)) |
| Functional correctness | Supported — Properties are stated and proved as Lean theorems about the generated functions. ([source](https://github.com/AeneasVerif/aeneas/blob/main/documentation/aeneas-overview.md)) |
| Equivalence | Partial — 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 | Not supported — No documented support for information-flow or constant-time properties. ([source](https://github.com/AeneasVerif/aeneas/tree/main/documentation)) |
| Concurrency | Not supported — Concurrency is not supported; the README says support is planned through ongoing separation-logic work. ([source](https://github.com/AeneasVerif/aeneas/blob/main/README.md)) |
| Termination and liveness | Supported — Loops and recursion become possibly diverging Lean definitions; the Lean and HOL4 backends support proving termination separately. ([source](https://github.com/AeneasVerif/aeneas/blob/main/README.md)) |

## Common features

| Feature | Support |
|---|---|
| Machine integers | Supported — Machine integers with overflow checks; an overflow makes the model fail. ([source](https://github.com/AeneasVerif/aeneas/blob/main/documentation/aeneas-overview.md)) |
| Floating point | Unknown — Floating point is not mentioned in the documentation or the test suite. |
| Heap and pointers | Partial — References and owned data (including Box) become plain values; raw pointers are not supported. ([source](https://github.com/AeneasVerif/aeneas/blob/main/README.md)) |
| Arrays and buffers | Supported — Arrays, slices and Vec are covered by tests and standard-library models. ([source](https://github.com/AeneasVerif/aeneas/tree/main/tests/src)) |
| Loops | Partial — Loops become recursive helper functions. A return inside nested loops, or a break/continue to an outer loop, is not supported yet. ([source](https://github.com/AeneasVerif/aeneas/blob/main/README.md)) |
| Recursion | Supported — Recursive functions become recursive Lean definitions; termination may need a separate proof. ([source](https://github.com/AeneasVerif/aeneas/blob/main/documentation/aeneas-overview.md)) |
| Higher-order code | Partial — Simple closures work in the Lean backend; closures that capture mutable state are still commented out as TODO in the tests. ([source](https://github.com/AeneasVerif/aeneas/blob/main/tests/src/closures.rs)) |
| Threads and shared memory | Not supported — Not supported (README limitations). ([source](https://github.com/AeneasVerif/aeneas/blob/main/README.md)) |
| I/O and system calls | Partial — I/O and other external functions are not translated; you write a model for each one by hand, and Aeneas trusts it. ([source](https://github.com/AeneasVerif/aeneas/blob/main/README.md)) |
| Standard library | Partial — Aeneas ships Lean models for part of the Rust standard library; missing items need hand-written models. ([source](https://github.com/AeneasVerif/aeneas/blob/main/documentation/std-models.md)) |

## Rust-specific features

| Feature | Support |
|---|---|
| References and borrowing | Partial — Shared and mutable borrows, including functions returning mutable borrows, are supported. Instantiating a generic type with a mutable reference is not supported yet. ([source](https://github.com/AeneasVerif/aeneas/blob/main/README.md)) |
| Traits and generics | Supported — Traits become Lean type classes. ([source](https://github.com/AeneasVerif/aeneas/blob/main/documentation/aeneas-overview.md)) |
| Closures | Partial — Closures without mutable captures, Lean backend only. ([source](https://github.com/AeneasVerif/aeneas/blob/main/tests/src/closures.rs)) |
| unsafe and raw pointers | Not supported — Unsafe code is not supported; planned through separation-logic work. ([source](https://github.com/AeneasVerif/aeneas/blob/main/README.md)) |
| Interior mutability | Not supported — The Aeneas paper excludes programs that rely on interior mutability. ([source](https://doi.org/10.1145/3547647)) |
| Trait objects | Partial — Simple Box<dyn Trait> cases are in the test suite (Lean backend only); the extent of support is not documented. ([source](https://github.com/AeneasVerif/aeneas/blob/main/tests/src/dyn.rs)) |
| Iterators | Partial — Tests cover iterators over ranges, arrays, slices and Vec and some adapters; there is no documented list of supported iterator methods. ([source](https://github.com/AeneasVerif/aeneas/tree/main/tests/src)) |
| Panics | Supported — Panics, overflow and out-of-bounds accesses are modeled as failures that proofs must rule out. ([source](https://github.com/AeneasVerif/aeneas/blob/main/documentation/aeneas-overview.md)) |
| async / await | Unknown — Not mentioned in the documentation. |

## Stage

**Stage 1: Usable.**

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

Missing for Stage 2: Verified code in production at two or more independent organizations.

## Projects
- [SHA-3 and ML-KEM in Microsoft SymCrypt (Rust)](https://www.microsoft.com/en-us/research/blog/verifying-rust-cryptography-in-symcrypt-from-standards-to-code/) — In July 2026 Microsoft said this code is used in Windows Insider builds, with production versions planned.
- [Resizing hash table (ICFP 2022 case study)](https://doi.org/10.1145/3547647)
- [Plonky3 and RISC Zero components (Runtime Verification)](https://arxiv.org/abs/2605.30106)

## Sources
- [Aeneas README (targeted subset and limitations)](https://github.com/AeneasVerif/aeneas/blob/main/README.md)
- [Aeneas overview for proof engineers](https://github.com/AeneasVerif/aeneas/blob/main/documentation/aeneas-overview.md)
- [AeneasVerif people](https://aeneasverif.github.io/people)
- [Aeneas: Rust verification by functional translation (ICFP 2022)](https://doi.org/10.1145/3547647)
- [Sound Borrow-Checking for Rust via Symbolic Semantics (ICFP 2024)](https://doi.org/10.1145/3674640)
- [Scaling Verification of Cryptographic Software with Aeneas, Rust, and Lean (arXiv, 2026)](https://arxiv.org/abs/2609.15648)
- [Verifying Rust cryptography in SymCrypt (Microsoft Research blog, 2026-07-13)](https://www.microsoft.com/en-us/research/blog/verifying-rust-cryptography-in-symcrypt-from-standards-to-code/)

---
Last checked 2026-11-26. Data: [JSON](/toolchains/aeneas.json) · Page: [HTML](/toolchains/aeneas/) · Methodology v0.1: [/methodology/](/methodology/) · Corrections: [/contribute/](/contribute/)
