Formalization of "Programming in Martin-Löf's Type Theory".