everystate
A Rust TLA+ model checker with no Java dependency that reads .tla specs and TLC .cfg files and reports results in TLC's format.
At a Glance
everystate, a TLA+ model checker written in Rust, is released under the MIT License and is free to use, copy, modify and distribute.
Engagement
Available On
Listed Nov 2026
About everystate
everystate is an open-source TLA+ model checker written in Rust by mattzcarey. It reads ordinary .tla specs and TLC .cfg files, checks every reachable state, and reports results in TLC's format. It ships as a native binary, an npm package, and a WebAssembly build for Node, Bun and workers.
What It Is
everystate is a formal verification engine that replaces the Java-based TLC workflow for TLA+ specifications. It checks safety and liveness properties, fairness, symmetry, VIEW and ALIAS, and prints TLC-compatible text output, exit codes, -tool framing and -dump state graphs. A -json mode returns a single structured result object for scripts and agents.
Checking Models and Code
Beyond exhaustive search, it offers random simulation (-simulate) for models too large to enumerate, with seeded, reproducible runs. Parallel search (-workers N) is available in the native binary and gives the same state counts, depth, verdict and counterexample as one worker. The everystate conform command checks a JSONL log of a real system's behaviour against the spec, naming the first step the spec does not allow. The everystate pcal command translates PlusCal algorithms, with output that the README says matches the Java translator (pcal.trans 1.12).
Agent Skill
The repository includes a formal-verification skill that teaches a coding agent to choose a property, model the steps, run the check, and report a counterexample in the code's terms. It can be copied into an agent's skills directory such as .claude/skills/.
Compatibility and Limits
The README reports conformance against TLC on the tlaplus/Examples models and TLC's test-model suite. Documented limits: state storage is in memory only (no disk-backed storage), Java module overrides, labels and subexpression selectors are unsupported, and TLAPS proofs are parsed and skipped. The WebAssembly build is single-threaded and about 2x slower than native.
Community Discussions
Be the first to start a conversation about everystate
Share your experience with everystate, ask questions, or help others learn from your insights.
Pricing
Open Source
everystate, a TLA+ model checker written in Rust, is released under the MIT License and is free to use, copy, modify and distribute.
- TLA+ model checker with no Java dependency
- Safety and liveness checking, fairness, symmetry, VIEW, ALIAS
- TLC-compatible output and exit codes
- Random simulation (-simulate)
- Trace conformance (everystate conform)
Capabilities
Key Features
- TLA+ model checking of safety and liveness properties
- Fairness, symmetry, VIEW and ALIAS support
- TLC-compatible output, exit codes, -tool framing and -dump
- Random simulation with seeded reproducible runs
- Trace conformance checking against real system logs
- Parallel search with -workers
- PlusCal translator
- Built-in standard and community modules
- JSON output for scripts and agents
- WebAssembly build for Node, Bun and workers
- Agent skill for formal verification
