Write You Some Proofs for Great Good
summary
Claim: writing machine-checkable proofs gets the compiler to accept precise types. Uses Haskell extensions GADTs and DataKinds, implements examples like Vect (n :: Nat) a and Maybe indexed by Bool, builds propositional equality proofs to convince the type checker (append and index proofs compile but feel brittle). Performance initially suffers at runtime; workarounds include coercion combinators and rewrite rules. Bootstraps GHC naturals to a Peano view for proofs. Code and examples live on the GitHub referenced by the uploader.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 1:28About my employer
- 2:30Agenda
- 5:05Liquid Haskell
- 7:24Interactive Program
- 9:15Recursion
- 16:52Bottom Line
- 18:07Code
- 27:07Explanation
- 29:27Equality of Types
- 32:14Proof
- 35:49Probe
- 40:16Natural Numbers
- 48:09Decidability








