Companion code for "Why Dependent Types Matter" paper.