~/talk

Type Checking with Rewriting Rules

Talkat SLE 2024 · 2024-10-20..10-21· [compilers-and-language-design]
slides:none on file

Claims that recursive type-class constraints are undecidable are addressed by encoding constraints as term rewriting rules and using Knuth-Bendix completion to semi-decide type equalities. The implementation in Hylo normalizes encoded types to answer equality and conformance queries, uses prefix trees to find overlaps for performance, and enforces a pragmatic 1,000-rule cutoff so compilation terminates; it succeeds on real code but remains inherently semi-decidable and can reject overly complex trait signatures.

AI-written summary · about

  1. 0:00Type checking intro
  2. 1:00Hylo language overview
  3. 3:54Traits and generics
  4. 6:24Recursive type constraints
  5. 8:11Undecidable type equality
  6. 10:17Free monoids explained
  7. 13:07Undecidability in type systems
  8. 14:52Rewriting rules for equality
  9. 20:24Fixing non-confluent systems
  10. 22:33Universal quantification
  11. 24:18Summary and future
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.