Agda from Nothing: Order in the Types
summary
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
chapters (10)
- 0:00Agda introduction
- 16:41Agda syntax and types
- 26:56Binary search trees in Agda
- 38:13Tree invariants enforcement
- 55:22Dependent types and proofs
- 1:00:03Inserting with bounds
- 1:16:59Ordered lists construction
- 1:28:25Two-three trees balancing
- 1:37:35Generic programming in Agda
- 1:46:23Summary
related talks
01h 20mA Practical Introduction to Haskell GADTs
55mParallel-by-construction Tree Manipulation with APL (Part 1)
47mIntroduction to FP Using Haskell (Part 2)
46mCorecursion, Codata, and Just a Little Combinatorial Game Theory
45m(Programming Languages) in Agda = Programming (Languages in Agda)
46mChasing Arrows, in categories containing functors and monads
01h 39mIsomorphic Reasoning: Counting with Types Part 1
36mCategory Theory: An Abstraction for Anything
