Interactive symbolic testing with TLA+, Apalache, and LLMs
summary
Apalache exposes a JSON‑RPC API that lets external scripts pick transitions, query symbolic states and ask Z3 for data, enabling randomized symbolic simulation (fix schedules, solve payloads) that runs ~1,000 trials in ~10 minutes vs bounded checking which hits 10 steps ≈15 minutes and 12 steps ≈27 hours. A Python harness generated with Copilot/Claude/Codex requires manual fixes but found 15 deviations in a TFTP spec and uncovered a real implementation bug. Also prototypes include a symbolic AFL-style fuzzer and a reinforcement‑learning action scheduler.
AI-written summary · about
chapters (9)
- 0:00Introduction and overview
- 1:34Apalache and symbolic model checking
- 7:56Randomized symbolic execution
- 10:03Programmatic API for custom search
- 12:09Experiment with TFTP and LLMs
- 18:54Conformance testing challenges
- 19:15Experiment with ZooKeeper and LLMs
- 22:23Symbolic fuzzing with Apalache
- 24:10Key takeaways and conclusion
