Here are some specifications written in TLA+ and a docker container for running the TLC model checker.
The repository layout is as follows:
.
├── container - Container definition for TLA+ tools
│ └── run.sh - Builds and runs the TLA+ container in interactive mode
└── src
├── video_exercises - Exercises based on Lamport's video lectures
└── own_problems - My own (various) specifications.
tlc $SPECruns the model checker on$SPEC.tlawith the configuration in$SPEC.cfgtla2pdf $SPECconverts$SPEC.tlainto a PDF document,$SPEC.pdf, via Latexanimate_tlc_trace $SPECconverts the TLC trace output of a failing$SPEC.tlainto an SVG-based animation in$SPEC.html- It expects the associated configuration
$SPEC.cfgto define aVIEWwhere thatVIEWmaps each state onto an SVG group. Seesrc/own_problems/StateTransferAnimated.tlafor example.
- It expects the associated configuration