Martin-Löf type theory

Martin-Löf type theory (MLTT) is a predicative type theory and alternative foundation of mathematics using dependent types.

Implementation

There are several different implementations and variants of MLTT, several of which are Martin-Löf's own. Concrete implementations include Epigram, Agda, and Idris.

Nonetheless, one possible description of MLTT is given here.

e,τ::=xVariable|eeApplication|\TypenuUniverse|λTypexτ. eλ-abstraction|\pitypeTypexτeDependent function space\inference\rulesΓ\Typenu:\Typenu+1[Univ]\inference\rulesΓTypeτ\Typenu\rulesΓ,TypexτTypexτ[Var]\inference\rulesΓTypeσ\Typenu\inferencesep\rulesΓ,Typexσm:τ\rulesΓType(λTypexσ. m)\pitypeTypexστ[Lam]\inference\rulesΓTypeσ\Typenu\inferencesep\rulesΓ,TypexσTypeτ\Typenv\rulesΓType(\pitypeTypexστ)\Typenmax(u,v)[Pi]\inference\rulesΓTypef(\pitypeTypexστ)\inferencesep\rulesΓTypeyσ\rulesΓTypefysubstτxy[App]