Reproducing in Agda the code in "An introduction to programming and proving in Coq" by Adam Chlipala.