# Warpspec checks TLA+ specs on a GPU: 1.36B PaxosCommit states in 3.65s vs TLC's 4h40m. What it does, and the catches

> Warpspec is a new Apache-2.0 tool that compiles a TLA+ spec into Rust and searches every state on an Nvidia GPU or all CPU cores, matching TLC's state counts. Its author reports runs that are thousands of times faster than TLC, but the headline ratio mixes measurements, and it's still an early alpha with a limited TLA+ subset.

Published Dec 3, 2026 by TechMeasured Staff · Repos · Canonical: https://techmeasured.com/repos/warpspec-tla-plus-model-checker-gpu-paxoscommit-3-65-seconds-vs-tlc-what-it-does-limits

**Warpspec is a new open-source model checker for TLA+, the specification language engineers use to find bugs in distributed-system designs before they write code.** It turns a spec and its config into a fixed-size Rust state machine, then searches every reachable state on an Nvidia GPU or across all CPU cores. Its author, Praveen Perera, reports that it checked the classic PaxosCommit spec's 1.36 billion distinct states in 3.65 seconds on an RTX 5090. TLC, the standard TLA+ checker, took 4 hours 40 minutes on the same spec. The project is Apache-2.0 licensed. Perera wrote it up on Dec. 1 and posted it as a Show HN on Dec. 2, where it had 56 points when we checked.

Why it matters: exhaustive model checking often stalls on state-space size. Teams shrink their models to keep TLC runs to hours. If checks this large finish in seconds, engineers can test bigger configurations and rerun them on every change. The catch is that Warpspec only handles part of the TLA+ language so far.

## The numbers (author's benchmarks)

From Perera's post, on a machine with 24 CPU cores, 56 GB of RAM and a 32 GB RTX 5090. TLC ran with 24 workers.

| Model | Distinct states | TLC | Warpspec CPU (24 threads) | Warpspec RTX 5090 |
|---|---|---|---|---|
| EWD998, N=4 | 248,006,200 | 401.5 s | 5.93 s | 0.121 s |
| LamportMutex, N=4, maxClock=5 | 561,679,480 | 1,824 s | 16.55 s | 0.473 s |
| PaxosCommit, RM=3 | 1,357,590,081 | 4 h 40 min | 74.9 s | 3.65 s |
| EWD998, N=4, pending ≤ 5 | 2,127,805,446 | not run | not run | 3.91 s |

**How to read the 4,600× figure.** It compares TLC's reported total time for PaxosCommit (about 16,800 s) with Warpspec's GPU *search* time. The post says the Warpspec columns are search time and the TLC column is TLC's total, so the comparison isn't like for like. The wpnews summary makes the same point. Warpspec also has to compile each spec first. The post puts that at about 1.5 s for PaxosCommit once dependencies are built, after a roughly 6-second first build. Even with that added, the gap is huge. The author's CPU path alone ran PaxosCommit in 74.9 s.

Correctness is the main claim. Perera says Warpspec's distinct-state, generated-state and depth counts match TLC 1.8.0 on every model both tools finished. Across 191 exhaustive-search configs in the tlaplus/Examples repository, he says it compiles 152 with no wrong counts or verdicts and refuses the other 39 at compile time. The 2.13-billion-state run was not checked against TLC.

## What it does

- Compiles `Spec.tla` plus its `.cfg` into bit-packed Rust (`no_std`). The CPU and GPU run the same generated code.
- Prints counterexample traces in TLC's format, and its exit codes follow TLC 1.8.0's.
- `--json` output, plus a bundled skill file so coding agents can drive it.
- Install: `npx warpspec check Spec.tla`, `npm install -g warpspec`, `cargo binstall` or an install script. A Rust toolchain is needed because each check compiles generated code.

## The limits

Per the post and the README:

- **Early alpha (v0.1.0).** The CLI, generated code and supported TLA+ subset are still changing.
- **GPU = safety only (in the release).** The post says liveness and fairness checks run on the CPU only. The repo's unreleased changelog adds liveness on Apple's Metal backend and a CUDA path that doesn't need cuda-oxide. Neither is in v0.1.0.
- **Must fit in memory.** In the version benchmarked, the seen-state table and frontier must fit in GPU memory or RAM. The unreleased changelog adds spilling to RAM and disk for some backends.
- **Restricted language.** Every variable needs a fixed type from a TypeOK-style invariant or Init. Infinite sets such as `Seq(S)` and `Int`, `VIEW`, and recursion on runtime values are refused, and sequences need a length bound. It uses tla-mc's parser rather than SANY, TLA+'s standard parser.
- **Fingerprint collisions.** States wider than 64 bits are stored as 64-bit fingerprints, so collisions are possible in theory. The tool doesn't report a collision probability.
- **Prebuilt GPU code targets RTX 50-series (sm_120)** in the release described in the post.

## The repo

We cloned it: 199 commits since the first one on Nov. 6, all by Perera, with a `v0.1.0` tag dated Dec. 1. It holds about 260,000 lines of Rust, including generated and test models. None of the commit messages carries an AI co-author trailer, though that doesn't rule out AI help. One HN commenter suggested the code and post were AI-written, and Perera hadn't replied when we checked. We did not build or run Warpspec, so the speed figures above are the author's.

## Who should try it

Teams that already keep TLA+ specs and wait hours for TLC runs, especially with an Nvidia RTX 50-series card on hand. Use it alongside TLC, not instead of it. Perera himself treats TLC as the reference, and a refused spec or an untyped variable means falling back to TLC anyway.


## Sources

1. [GitHub — praveenperera/warpspec (README, CHANGELOG, commit history and tags)](https://github.com/praveenperera/warpspec)
2. [Praveen Perera — TLA+ Model Checking 4,600× Faster on a GPU: PaxosCommit in 3.65 Seconds](https://praveenperera.com/blog/tla-model-checking-4600x-faster-on-a-gpu/)
3. [Hacker News — Show HN: Warpspec – TLA+ model checking on a GPU, 4,600× faster than TLC](https://news.ycombinator.com/item?id=50730725)
4. [wpnews — Warpspec checks 1.36 billion PaxosCommit states in 3.65 seconds on an RTX 5090](https://wpnews.pro/news/warpspec-checks-1-36-billion-paxoscommit-states-in-3-65-seconds-on-an-rtx-5090)
