What TLA+ can and can't check
TLA+ checks invariants and liveness, but not reachability or hyperproperties over behaviors.
Hillel Wayne responds to claims that Claude Opus, via Claude Code, used TLA+ to find race conditions, cautioning that formal methods will not solve agentic software development. He explains behaviors and the temporal operators always, next, and eventually, which support invariants, action properties, and liveness checks such as leads-to. He says TLA+ cannot verify a requirement that cannot be formalized, cannot natively express multi-step, floating-point, or real-time properties, and cannot state reachability or hyperproperties that compare sets of behaviors.
- Claude Opus reportedly used TLA+ to find race conditions in code.
- Usual checks are invariants, action properties, and liveness formulas.
- Native checks omit multi-step, real-time, and floating-point properties.
- Reachability and hyperproperties over behavior sets cannot be expressed.
- Products
- TLA+Claude Code
- AI models
- Claude Opus
From the original article
7 min read at buttondown.comLast week Boris Cherny, the inventor of Claude Code, mentioned that Opus was able to use TLA+ 1 to find race conditions in code. And now everybody on the internet is talking about formal verification. As a long-time educator ( 1 2 ) and advocate of TLA+, this is really exciting!
By b-man · buttondown.com
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.