← All news

Warpspec runs TLA+ model checking on a GPU, reported 4,600x faster than TLC

Praveen Perera

A Show HN post presents Warpspec, a TLA+ model checker that runs on a GPU, claimed to be 4,600 times faster than the standard TLC checker. It drew 60 points on Hacker News.

Source: praveenperera.com ↗ · +1 more ↓ · By CapyLaunch

MakerPraveen Perera
LicenseApache-2.0
PaxosCommit, RM = 3TLC 4 h 40 min; warpspec RTX 5090 3.65 s
Distinct states, PaxosCommit1,357,590,081
Other GPU runsEWD998 N=4 0.121 s; LamportMutex N=4 0.473 s

Warpspec is an open source TLA+ model checker that runs on an NVIDIA GPU or on every core of a CPU. It compiles a TLA+ spec and its .cfg file into a fixed-size, bit-packed Rust state machine, then searches the state graph. It is released under the Apache-2.0 license.

The compiler works out a fixed type for each variable from TypeOK, or from Init and Next when there is no TypeOK. It flattens sets into bitsets, records into fields, and integers into bit ranges. Each state becomes a small fixed array of 64-bit words, so adding or checking a message is a single bitwise operation. The same generated code runs on the CPU and the GPU.

Checking distributed protocol specs means walking millions or billions of states, and much of that work can run in parallel. The author reports that on the models both checkers finish, warpspec matches TLC's distinct state, generated state and depth counts, and runs much faster. The reported speedups are 4,600 times faster than TLC on PaxosCommit with RM = 3, measured on an RTX 5090.

For builders: If you write formal specs for distributed systems or protocols, a GPU-based checker could cut verification time, but check the benchmark details before relying on the speedup.

For: Developers and founders who write formal specs for distributed systems or protocols and want faster model checking.

Try:

https://praveenperera.com/blog/tla-model-checking-4600x-faster-on-a-gpu/

Are the speedups measured the same way?

CPU and GPU times are search time. TLC times are its reported totals. The author did not run TLC on the two largest rows, and those models do not fit in RAM on the CPU checker.

Do the results match TLC?

On every model both checkers finish, warpspec reports the same distinct states, generated states and search depth. The author says any difference would be a bug.

How does it compare to other Rust checkers?

On single-threaded PaxosCommit with RM = 2, tla-mc and everystate take around 26 seconds, while warpspec's generated CPU code finishes in half a second.

All 28 Developer tools stories →

Spotted a mistake? Email hello@capylaunch.com and we will correct it. How we make CapyLaunch TLDR News.

Get CapyLaunch Weekly

New indie launches and the week in AI tools and models, every Monday. Free, and you can unsubscribe anytime.

We send a confirm link first. Privacy