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.

Anneal lets users state and prove specifications about Rust programs by extracting MIR directly from the Rust compiler. Its verification machinery is proven sound relative to its model of MIR semantics, making the semantic model itself one of the few components that must be trusted. Gaining confidence in the accuracy of this model is therefore central to Anneal's approach.

lean-miri provides an independently developed, executable formalization of MIR semantics against which Anneal can check its own model.

Integrating an executable interpreter into real proofs exposed a clear gap: running an operation is different from proving properties about it (zerocopy issue #4009). Anneal needed specification and frame lemmas for memory operations—such as how written bytes change and that untouched ranges stay intact—without repeatedly unfolding the interpreter’s internal representation. Josh contributed those lemmas upstream in lean-miri PR #91, and driving improvements through real downstream use cases like this is a great way for the project to evolve.

I originally developed lean-miri as a standalone verification tool for Rust programs. Seeing it serve as a reference semantics for another verification tool was an unexpected and welcome development. I hope lean-miri will continue to be useful not only as a verifier in its own right, but also as a shared semantic foundation for other Rust verification tools.

What makes this particularly exciting to me is that Anneal started using lean-miri less than three weeks after its public announcement. lean-miri was developed almost entirely by AI, with its implementation validated through differential testing against Miri.

AI-generated software is often associated with slop, and for good reason. But when AI-driven development is backed by a rigorous validation harness, it can produce software that is not only technically credible but also genuinely useful to others. I see Anneal's adoption of lean-miri as a concrete example of this: software developed almost entirely by AI, independently recognized as valuable and put to use by another project within a matter of weeks.

If you are building verification tooling for Rust and need a formal baseline, try out lean-miri and let us know what is missing. Thanks to Josh for the contribution.