reTLA: Towards an Automatic Transpiler from TLA+ to VMT
summary
Automatic pipeline translates a restricted TLA+ fragment (reTLA) into VMT via Apalache→VMT transpiler, then feeds VMT to IC3PO invariant inference to produce quantified inductive invariants. The implementation lives as a transpile mode in Apalache and runs on benchmarks (client‑server, two‑phase commit, key‑value, decentralized lock), finding inductive invariants in seconds; small cutoff sizes suffice (e.g., counterexample search moved from 2×3 to 3×4). The fragment forbids sets-as-values but maps set operations to functions, and the approach is workable though not yet fully automatic for all TLA+.
AI-written summary · about
chapters (20)
- 0:00Introduction to reTLA
- 1:12Client-server protocol example
- 2:57Limitations of TLA+ tools
- 4:00Overview of ic3po technique
- 8:29Goal: TLA+ to VMT translation
- 9:32Introducing reTLA fragment
- 12:42reTLA core language rules
- 17:58Set-function duality principle
- 22:30Appalachia pipeline adaptation
- 25:45Simplified translation rules
- 27:50Example: function application
- 28:10Client-server protocol in reTLA
- 29:15VMT output and ic3po integration
- 30:20Experimental results
- 31:44Manual translation challenges
- 32:28Two-phase commit example
- 35:16Future: automatic translation
- 36:18Tendermint translation status
- 38:03reTLA tool availability
- 39:05Q&A session
