Extending Apalache to Symbolically Reason about Temporal Properties of TLA+
summary
Apalache extends its SMT‑backed TLA+ bounded model checking (using Z3) by reducing liveness to safety via an automated preprocessor that adds history and prophecy variables to encode lassos and future claims, and rewrites enabled using Apalache’s symbolic transition finder. The implementation typically needs 10 and 16 extra variables for simple and compound formulas, doubles the symbolic transitions (so checks get harder but variables cost little), and demonstrates counterexamples with stuttering allowed and no error when progress (no stuttering) is enforced.
AI-written summary · about
chapters (18)
- 0:00Introduction to Apalache
- 2:12Apalache's capabilities and use cases
- 4:40Transforming liveness to safety properties
- 7:05Counterexamples to liveness properties
- 12:51History and prophecy variables
- 16:32Handling double priming in TLA+
- 19:45Encoding temporal properties with loops
- 22:35Complex liveness property example
- 24:02Demo: Running Apalache on a traffic light
- 27:41Fixing stuttering in specifications
- 28:42Variable overhead in encoding
- 30:30Performance impact of encoding
- 31:11Alternative: Büchi automata
- 32:36Alternative: Trace invariants
- 34:42Bounded model checking limits
- 35:47Handling fairness constraints
- 37:12Pre-processing enabled predicates
- 41:06Conclusion and resources
