~/talk

Sealing Pointer-Based Optimizations Behind Pure Functions

Talkat ICFP 2020 · 2020-08-23..08-26· [compilers-and-language-design]
links:none on file
links:none on file
links:none on file
slides:none on file

Shows how dependent types seal pointer tricks behind pure interfaces to turn exponential tree traversals into linear-time algorithms, implemented for Lean v4 and used on Mathlib where a 20,000-node DAG can expand to ~2 billion tree nodes. Combines withPtrEq (recursive pointer-equality short-circuiting), intrusive constant-time hashing, and a runtime shareCommon primitive to canonicalize equal subterms, plus withPtrAddr for address-based primitives. Claims negligible extra trust and reports practical, large speedups in real libraries.

AI-written summary · about

  1. 0:00Intro
  2. 0:37FP shines for ITP
  3. 1:46Purity's Achilles Heal
  4. 3:45Our contribution
  5. 6:33Recursive pointer equality tests
  6. 7:28Traversing terms in linear time
  7. 8:14Intrusive hashing
  8. 9:35Semi-naive traversal
  9. 10:33Sharing the common data
  10. 12:24Sealing other low-level optimizations
~/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.