Specification Driven Development With TLA+
summary
Toolkit claims to make implementations a provable refinement of TLA+ designs by emitting concrete traces from an input/output automaton and replaying them deterministically against instrumented code. It uses TraceGen to extract traces, a safeValue TLC operator to batch IO and persist action variables, and a deterministic player plus action-anchor macros injected into Rust code to enforce trace order and check state. The workflow generates over 40 million design states and 8+ million test cases, finds both design and implementation bugs, and leaves macros empty in production.
AI-written summary · about
chapters (12)
- 0:00Introduction and outline
- 0:51Motivation and methodology
- 3:30Toolkit architecture
- 4:41Testing workflow
- 6:34System formalization
- 8:04Generating test traces
- 9:01Optimizing model checking
- 11:54Trace generation algorithm
- 14:18Deterministic testing
- 17:05Detecting inconsistencies
- 19:37Error analysis examples
- 22:20Case study and conclusion
