An explanation of an Agda mechanization of hereditary substitution by Keller and Altenkirch.