warpspec is an open-source formal verification tool that compiles TLA+ specifications into bit-packed, zero-allocation no_std Rust state machines for NVIDIA GPUs and multi-core CPUs. By replacing TLC's dynamic interpretation with fixed-width bit arrays and unified GPU execution paths, warpspec accelerates state-space exploration by up to 4,600×. It validates billion-state models in seconds while matching TLC's exact counterexample traces.
Key Points
Bit-Packed State Representation: The tla-gpu-gen compiler flattens TLA+ variables and types into static [u64; W] arrays, eliminating heap allocations, dynamic value trees, and pointer-chasing overhead.
Extreme Performance Benchmarks: On PaxosCommit (RM = 3) with 1.35 billion distinct states, an NVIDIA RTX 5090 completes the search in 3.65 seconds (4,600× faster than TLC's 4h 40m, and 224× faster than a 24-thread CPU running at 74.9s).
VRAM Memory Optimization: Employs a compact bucketed table requiring only 5.9 bytes per state at 90% capacity, successfully packing 2.12 billion states (EWD998, pending ≤ 5) into 32 GB of VRAM.
GPU Instruction Cache Mitigation: Separates action bitmask identification from a unified emission loop, preventing instruction cache exhaustion and reducing LamportMutex kernel runtimes from 4.21s to 0.568s.
Validation Coverage: Successfully compiles and matches verification verdicts for 152 out of 191 exhaustive-search specifications from the official tlaplus/Examples repository.
Current Constraints: GPU execution is restricted to safety properties (liveness requires CPU fallback or safety-only flags), and state spaces are strictly bounded by VRAM capacity due to a lack of disk-spill support.
Discussion Highlights
FPGA Adaptability: Participants discussed extending similar bit-packed verification architectures to FPGAs, suggesting Spin and Promela-to-Verilog pipelines as viable starting points.
Hardware Utilization: Commenters praised the practical utility of repurposing high-end consumer gaming hardware (such as the RTX 5090) for brute-force formal verification.
AI Tooling Scrutiny: Discussion touched on the heavy utilization of AI assistants (Claude) for both the implementation and the accompanying blog post synthesis.