Formal Methods & AI for Reliable Databases
summary
Describes a reproducible workflow that starts with TLA spec → TLC model checking → generated traces and feeds those traces into model‑based tests against the running Dqlite implementation, plus global trace reconstruction (Lamport/Chandy style) to check distributed invariants. Uses deterministic guided testing with Antithesis guided exploration and random failure injection with Jepson, augments proofs with LLMs but limits proofs to deltas against a trusted Raft model, and iterates instrumentation, properties, and fuzzing until behaviors and traces align.
AI-written summary · about
chapters (17)
- 0:00Introduction and speakers
- 1:59Protocol design challenges
- 5:28State machines for protocols
- 11:24Safety and liveness properties
- 12:28TLA specifications
- 14:33Model checking with TLC
- 17:41Global traces and postmortems
- 19:48Development workflow
- 21:13Legacy system testing
- 22:39Limitations of TLC
- 25:48Interesting predicates in testing
- 26:50Guided model checking
- 27:31Antithesis vs Jepsen
- 28:55AI-assisted proofs
- 30:41Proof complexity challenges
- 31:42Legacy system invariants
- 33:06Tool summary and conclusion
