Invariants in Distributed Algorithms
summary
A Python-based language called DistAlgo is presented with a paper semantics, an automatic translator to TLA+, and model checking with TLC plus theorem proving with TLAPS. Writing specs as queries over history variables (sent/received message sets) cuts a basic Paxos spec from 52 to 39 lines and reduces the ~300-line proof proportionally; Multi-Paxos proofs rise to under 1,000 lines and TLAPS checks in ~2 minutes. The translator shrinks TLC state spaces from ~10× larger to within 2× of hand-written specs and surfaces a real liveness bug in a realistic Paxos variant.
AI-written summary · about
chapters (13)
- 0:00Introduction and motivation
- 2:32Distributed algorithm language design
- 6:27Lamport mutual exclusion overview
- 11:04DistAlgo language constructs
- 14:14Formal semantics of DistAlgo
- 17:25Operational semantics rules
- 19:52Formal verification with TLA+
- 26:58History variables in specs
- 32:40TLC model checking results
- 35:15Compiler optimizations and efficiency
- 38:21Algorithm simplification examples
- 40:11Paxos made moderately complex
- 41:00Q&A
