Quotient Types + Behavioral Reflection = ?
summary
Combines quotient types with behavioral reflection and claims quotient types can tame behavioral reflection so reify/reflect become safe and composable. Shows a CEK machine interpreter with reify/reflect that exposes environment and continuation to implement call/cc, mutable state, and quote-eval. Gives concrete quotient examples: unordered pairs, rationals, multisets, free groups and effective equivalence relations. Producing a quotient value is trivial; consuming one requires functions that respect the equivalence relation, enabling runtime optimization and controlled intercession without breaking semantics.
AI-written summary · about
chapters (11)
- 0:00Introduction to the talk
- 1:08Understanding quotient types
- 2:10Behavioral reflection basics
- 3:47Invariants and subset types
- 7:42Quotient types in practice
- 11:48Examples of quotient types
- 14:43Implementing algebraic concepts
- 18:06Software engineering benefits
- 19:14Interpreter state reflection
- 22:36Reify and reflect operations
- 26:15Combining types and reflection
