warpspec
Early alpha explicit-state TLA+ model checker that compiles a spec and TLC config to Rust and runs BFS on an NVIDIA GPU or all CPU cores.
At a Glance
warpspec is open source under Apache-2.0; free to use, self-hosted. Early alpha.
Engagement
Available On
Alternatives
Listed Dec 2026
About warpspec
warpspec is an explicit-state model checker for TLA+ written by Praveen Perera. It compiles a spec and its TLC .cfg file into Rust, then runs breadth-first search on an NVIDIA GPU or across every CPU core. The README describes it as early alpha, with the CLI, generated code, and supported TLA+ subset still changing.
What It Is
warpspec is a TLA+ model checker aimed at exhaustive checks of models that are too slow to run often in TLC. A generator, tla-gpu-gen, turns the spec and config into a fixed-size, bit-packed no_std Rust state machine. The same generated code drives both the multi-core CPU search and the CUDA GPU search. It reports distinct states, generated states, and search depth in TLC-style output, and the README states these match TLC 1.8.0 on the models compared.
How the Workflow Runs
warpspec check Spec.tla finds the .cfg beside the spec, compiles the spec into a cached native runner, and runs the search. It uses the GPU when CUDA and cuda-oxide are installed and falls back to the CPU otherwise. On safety or deadlock violations it prints a shortest counterexample trace, and on liveness violations it prints the lasso. Exit codes follow TLC, and --json gives machine-readable output. The repository also includes an agent skill file for use with coding agents.
Benchmarks and Compatibility
The author reports, on one RTX 5090 against TLC 1.8.0 with 24 workers, PaxosCommit RM = 3 (about 1.36 billion distinct states) going from 4 h 40 min in TLC to 74.9 s on 24 CPU threads and 3.65 s on the GPU. The README says warpspec compiles 152 of the 191 exhaustive-search models in tlaplus/Examples and gives no wrong counts or verdicts on them.
Limits to Know
Liveness, fairness, and action properties run on the CPU only, and GPU runs check safety only. The generator has no SANY front end yet, and each variable needs a type from a TypeOK-style invariant or from Init values. The visited set and frontier must fit in GPU memory, or in RAM on the CPU, unless the optional spill mode is used. Unsupported constructs fail at generation time.
Collections
Popular collections
- Let Your Agents Talk to Each Other
Collection by @leftchannel
- See What Your Agent Is Doing remix
Collection by @joemseifi
- Let Your AI Read the Document, Not Just the Words
Collection by @priyashah
- Local-First Databases
Collection by @joemseifi
Add warpspec to one of your collections.
Community Discussions
Be the first to start a conversation about warpspec
Share your experience with warpspec, ask questions, or help others learn from your insights.
Pricing
Open Source
warpspec is open source under Apache-2.0; free to use, self-hosted. Early alpha.
- Apache License 2.0 core product
- Compiles TLA+ spec and TLC config to Rust
- BFS on NVIDIA GPU or all CPU cores
- TLC-format counterexample traces
- Early alpha: CLI, generated code and supported TLA+ subset are still changing
Capabilities
Key Features
- Compiles TLA+ specs and TLC configs to bit-packed no_std Rust
- Breadth-first search on NVIDIA GPU or all CPU cores
- Matches TLC on distinct states, generated states, and search depth
- TLC-format shortest counterexample traces
- Liveness and fairness checking on CPU
- SYMMETRY support
- Compact bucketed hash table and optional spill to host memory and files
- JSON output and TLC-compatible exit codes
- Built-in CommunityModules, TLCExt, and Randomization
- Agent skill for coding agents
