Verus proves Rust code correct for every possible input

Developing provably correct Rust code with Verus

Verus proves Rust code correct for every possible input

Amazon's Verus is an open-source automated program verifier for Rust that mechanically checks code against formal mathematical specifications for all inputs, catching corner cases that testing misses. Developers annotate source with Rust-like preconditions and postconditions, getting feedback in under a second, and AI agents can often handle proof generation. Verus also verifies unsafe blocks and concurrent code, restoring machine-checked safety guarantees for performance-critical work like AWS's Nitro Isolation Engine.

However, "more correct and secure" is not the same as "actually correct and secure".
  1. 63

    If you found this interesting, you may also be interested to hear about some related projects with similar goals/scopes: Miri[0], Kani[1], and Creusot[2]. There looks to be some significant overlap between Verus, Kani, and Creusot but I've not used any of them so I'll refrain from trying to differentiate them.

    [0]https://github.com/rust-lang/miri

    [1]https://github.com/model-checking/kani

    [2]https://github.com/creusot-rs/creusot

  2. sourdecor

    Verus seems to be exactly what I have been looking for! I discovered AllConcur[0] on HN a while back, and I wanted to port it to Go, but since it used TLA+ and C, and it was very confusing for me to understand how you can trust the implementation unless you can compile TLA+ to C.

    I was talking to Gemini about comparing Verus to TLA+ and it said that TLA+ is usually used (for example) "to prove that a distributed consensus protocol is logically sound" but when I asked if Verus can do that too, it said yes. So Verus can be compiled and integrated with Rust, whereas TLA+ is used more for blueprint development that then guides the implementation in the mind of the implementer.

    Seems awesome!

    [0]: https://news.ycombinator.com/item?id=12357976

  3. nottorp

    Would it help with the bugs in the new and improved ubuntu coreutils?

  4. Meneth

    "Beware of bugs in the above code; I have only proved it correct, not tried it." - Donald Knuth.

  5. lukeify

    Reminds me of Whiley, which was developed by one of my university professors.

More from this day

2026-09-17