~/talk

Agda from Nothing: Order in the Types

Talkat LambdaConf Winter Retreat 2017 · 2017-01-08..01-11· [machine-learning]
links:none on file
slides:none on file

Claims how to build binary search tree implementations in Agda that are correct-by-construction, following Conor McBride’s paper and using literate Agda (TeX) and Agda + Emacs live coding from a GitHub repo. Workshop implements insert, from-list and flatten, then generalizes to a universe of ordered containers and 2–3 trees; the type-level trick stores ordering proofs in leaves so only about n+1 proofs appear for n values. Code runs (normalizes) and produces ordered lists as shown.

AI-written summary · about

  1. 0:00Agda introduction
  2. 16:41Agda syntax and types
  3. 26:56Binary search trees in Agda
  4. 38:13Tree invariants enforcement
  5. 55:22Dependent types and proofs
  6. 1:00:03Inserting with bounds
  7. 1:16:59Ordered lists construction
  8. 1:28:25Two-three trees balancing
  9. 1:37:35Generic programming in Agda
  10. 1:46:23Summary
~/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.