# Verus proves Rust code correct for every possible input

Original title: Developing provably correct Rust code with Verus

> Hacker News story 49700153 · language: en · submitted 2026-09-14
> Web version: https://zeli.app/story/49700153
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 160 · by [Betelbuddy](<https://news.ycombinator.com/user?id=Betelbuddy>) · 💬 78
[original](<https://www.amazon.science/blog/developing-provably-correct-rust-code-with-verus>) · [HN discussion](<https://news.ycombinator.com/item?id=49700153>)

## Summary

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.

## Key quote

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

## HN discussion (78 comments)

### [63](<https://news.ycombinator.com/item?id=49740906>)

> 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

### [sourdecor](<https://news.ycombinator.com/item?id=49735627>)

> 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

### [nottorp](<https://news.ycombinator.com/item?id=49738910>)

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

### [Meneth](<https://news.ycombinator.com/item?id=49738659>)

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

### [lukeify](<https://news.ycombinator.com/item?id=49739063>)

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

---

## Cite

- Page: https://zeli.app/story/49700153
- Date: 2026-09-14
- Source: amazon.science (https://www.amazon.science/blog/developing-provably-correct-rust-code-with-verus)
- Hacker News: https://news.ycombinator.com/item?id=49700153

## Other languages

- zh: https://zeli.app/zh/story/49700153 · markdown: https://zeli.app/zh/story/49700153.md
- ja: https://zeli.app/ja/story/49700153 · markdown: https://zeli.app/ja/story/49700153.md
- ko: https://zeli.app/ko/story/49700153 · markdown: https://zeli.app/ko/story/49700153.md
- de: https://zeli.app/de/story/49700153 · markdown: https://zeli.app/de/story/49700153.md
- es: https://zeli.app/es/story/49700153 · markdown: https://zeli.app/es/story/49700153.md
- ru: https://zeli.app/ru/story/49700153 · markdown: https://zeli.app/ru/story/49700153.md
