Tackling State Space Explosion In TLA+ Visualizations
summary
Visualization of a two‑phase commit spec shows 1 resource manager → 30 states, 3 RMs → ~1,400 states and the full model >50,000 states while the transaction manager projected space is 129 states. The method builds per‑actor graphs by comparing projected pre/post states, uses actor projection or aggregated cardinality projection (count of prepared RMs) to collapse exponential blowup to linear growth, and exports the state dump as JSON for fast iteration. Limitations: projection functions must be supplied and JSON dumps hit browser issues above ~50 MB.
AI-written summary · about
chapters (10)
- 0:00Introduction to state space explosion
- 1:28Two-phase commit protocol example
- 2:55Actor model in TLA+ specs
- 4:24Actor-specific state diagrams
- 6:50Transaction manager state analysis
- 8:17Projecting state spaces further
- 10:47Algorithm for actor projections
- 12:10Implementing projection functions
- 13:53Limitations and scalability
- 14:55Summary and conclusion
