Encode the Cake and Eat It Too: Controlling Computation in Type Theory, Locally
summary
Claims a type theory LRTT that adds local rewrite rules via prenex abstraction over computation rules and a prototype implemented as a Rocq extension with all results formalised in Rocq. It shows a conservative embedding into Martin‑Löf type theory by a definition inlining (monomorphisation) procedure, encapsulates dangerous global rewrites, hides implementations (W‑types, quotients), and works in the prototype while relying on rewrite termination and confluence checks (prototype uses a triangle criterion). Artifacts and a planned Rocq 9.3 integration are provided.
AI-written summary · about
chapters (14)
- 0:00Local computation control
- 1:26Definitional equality limits
- 3:53Rewrite rules for control
- 6:45Dangers of global rewrites
- 7:26Local rewriting theory
- 9:11Hiding with LRT
- 10:36Strictifications and encodings
- 12:04LRT typing rules
- 14:34LRT properties and conservativity
- 17:05Rewrite rules challenges
- 18:10Rocq implementation
- 18:51Quotient types with LRT
- 19:55Conclusion and future
- 21:04Q&A
