~/talk

Contextual Embeddings: Implementing Bound Variables through Instance Resolution

Talkat PLDI 2026 · 2026-06-15..06-19· [compilers-and-language-design]
links:none on file
links:none on file
links:none on file
slides:none on file

Introduces contextual embeddings: an embedding that preserves typing contexts and uses the host's type-class instance-resolution based index reconstruction to compute De Bruijn indices automatically, removing unsafe coercions and producing a provable type-safe un-embedding. Implemented in Haskell with DataKinds and type classes, plus artifacts in Lean and Agda; supports modal and substructural (e.g. linear, Fitch-style) systems and reversible unembedding for superfold optimizations. Reports modest compile/run overheads and reusable, evaluated artifacts.

AI-written summary · about

  1. 0:00Embedded DSLs with binders
  2. 2:07Golden binder representation
  3. 8:05Contextual embeddings solution
  4. 13:03Embeddings vs criteria
  5. 15:29Practical benefits and limits
  6. 16:11Summary and future
  7. 17:12Q&A
~/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.