How Google's Anneal Uses lean-miri to Validate Its Rust Semantics

lean-miri was recently adopted by Anneal, a Rust verification tool developed as part of Google's zerocopy project. Following this adoption, a pull request from Anneal’s creator, Josh Liebow-Feeser, has already been merged into lean-miri. What makes this especially remarkable is that lean-miri was developed almost entirely by AI and found real-world adoption less than three weeks after its public announcement. lean-miri is a port of Rust’s Miri interpreter to the Lean proof assistant, providing an executable formalization of Rust’s MIR semantics. It is designed to enable formal proofs that Rust programs, including those containing unsafe code, are free of undefined behavior. Rather than running lean-miri directly as an end-to-end verifier, Anneal uses its MIR execution model as a reference semantics. Proofs in Anneal show that individual operations in Anneal’s own model correspond to the matching operations in lean-miri. ...

· Yuichi Nishiwaki

lean-miri: Formally Proving Rust Programs Free of Undefined Behavior with Lean

Miri is an interpreter for Rust’s Mid-level Intermediate Representation (MIR) that detects undefined behavior (UB). It supports a wide range of Rust language features, including advanced traits and raw pointer operations, and implements state-of-the-art memory models. This broad coverage makes Miri a practical and widely used tool for detecting UB in real-world Rust code. While dynamic execution tools like Miri are invaluable for catching bugs during testing, proving that a program is free of Undefined Behavior (UB-freedom) across all valid inputs or thread schedules generally requires formal verification. Tools like Aeneas and Creusot provide such great verification pipelines for Rust, but fully formalizing low-level execution semantics still remains a big challenge. ...

· Yuichi Nishiwaki

Announcing Proofs.rs: A Public Registry for Rust Formal Verification Results

Hi, folks! We’re very happy to introduce proofs.rs, a place to publish and explore formal verification results for Rust crates. Why? There are some great tools for formally verifying Rust code, such as Kani, Verus, and Creusot, but their verification results often stay buried in individual repositories, making them hard to discover when we’re trying to decide whether to trust a library. We wanted to make those results easier to find, examine, and reuse as building blocks for establishing the correctness of larger systems. ...

· Yuichi Nishiwaki