Aeneas
A verification toolchain that translates Rust programs into pure functional models for proof assistants such as Lean, Coq, F* and HOL4.
At a Glance
About Aeneas
Aeneas is a verification toolchain for Rust programs, developed under the AeneasVerif organization, which describes itself as an umbrella for Rust verification projects. It translates Rust's MIR into a pure lambda calculus so that programs can be verified in proof assistants. Lean is its main backend, and F*, Coq and HOL4 are also supported.
What It Is
Aeneas is a formal verification tool for Rust. It works together with Charon, which compiles Rust crates to an intermediate representation called LLBC. Aeneas takes the resulting LLBC file and generates code for a chosen proof assistant backend, where users state and prove properties about their programs. It is open source under the Apache 2.0 license and is written in OCaml.
How the Workflow Works
- Run
charon cargo --preset=aeneasinside the crate to produce a serialized .llbc file. - Run the aeneas binary with
-backend {fstar|coq|lean|hol4}on that file to generate the translation. - For Lean, the generated files import the Aeneas Lean package, which is added as a dependency in a Lean project.
- For external definitions such as the standard library, the
-split-filesoption generates template files listing the missing definitions, for which the user writes models by hand. Models can instead be added to the Aeneas standard library.
Backends and Proof Support
The README describes Lean and HOL4 as the most mature backends. They support partial functions and extrinsic termination proofs, and have tactics specialized for monadic programs. The project says it would welcome an Isabelle backend.
Targeted Subset and Limitations
Aeneas currently functionalizes a subset of safe Rust. Documented limitations include return inside nested loops, break or continue to outer loops, and instantiating generic types with mutable references. Unsafe code and concurrency are to be addressed by ongoing work on separation logic.
Research Foundations
The translation was formalized and published at ICFP 2022. A proof that its symbolic execution correctly implements a borrow checker was published at ICFP 2024. A Lean tutorial and a Nix quick-start are provided.
Collections
Popular collections
- Give Your AI Agent the Meaning Behind Your Database
Collection by @danielokafor
- See What Your Agent Is Doing
Collection by @evtuff
- Black Friday 2026: AI APIs and Creative Tools
Collection by @priyashah
- Harness Setup
Collection by @joemseifi
Add Aeneas to one of your collections.
Community Discussions
Be the first to start a conversation about Aeneas
Share your experience with Aeneas, ask questions, or help others learn from your insights.
Pricing
Open Source
Aeneas verification toolchain for Rust programs, released under the Apache License 2.0 and self-hosted.
- License: Apache License 2.0 (Apache-2.0)
- Backends for F*, Coq, HOL4 and Lean
- Built from source with OCaml/Dune; used together with Charon
Capabilities
Key Features
- Translates Rust MIR to a pure lambda calculus
- Backends for Lean, F*, Coq and HOL4
- Works with Charon's LLBC output
- Support for partial functions and extrinsic termination proofs in Lean and HOL4
- Tactics specialized for monadic programs
- Split-files option with templates for external definitions
- Extensible Lean standard library models for Rust definitions
- Nix quick-start support
- Lean backend tutorial
