~/talk

Implementing parametricity in Rocq-ELPI

Talkat RocqPL 2026 · on Saturday, 2026-01-17· [compilers-and-language-design]
links:none on file
links:none on file
slides:none on file

Implements a sequent-calculus style binary parametricity as a logic program inside Rocq-ELPI, translating each inference rule to an ELPI clause that produces both the related term and its relation witness. Uses HOAS (Hokep) to avoid manual freshness and binder plumbing, handles lambdas by universally quantifying three fresh variables in the clause body, inserts trivial matches to make fixpoints constructor-headed, and generates shims to translate records; core implementation ships in the standard distribution but indexed/mutual-record support is still pending.

AI-written summary · about

  1. 0:00Parametricity implementation
  2. 1:03Parametricity as code generation
  3. 3:54Challenges in implementation
  4. 5:20ELPI and HOAS for binders
  5. 6:24Sequent-style parametricity rules
  6. 7:46ELPI predicates for rules
  7. 8:50Scaling to Rocq features
  8. 10:37Records and inductive types
  9. 12:01Status and limitations
  10. 12:42Q&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.