natural deduction metalanguage, practical foundations
type theory (dependent, intensional, observational type theory, homotopy type theory)
computational trinitarianism =
propositions as types +programs as proofs +relation type theory/category theory
A type theory where types behave like sets, i.e. in which all types are h-sets. Thus, it is a form of set-level foundations. This includes:
Any (definitionally) extensional type theory, where there is an equality reflection rule for identity types or path types which turns their inhabitants into judgmental equalities. This includes Martin-Löf type theory with equality reflection and cubical type theory with equality reflection.
Any intensional type theory with an axiom like UIP or axiom K, or rules which prove said axioms such as strong pattern matching? or boundary separation, which makes all identity types or path types valued in propositions/subsingletons. Examples of the latter include MLTT with UIP, Lean, the default type theory of Agda, observational type theory, and XTT.
Set-level type theory contrasts with higher-level type theory such as homotopy type theory or plain intensional type theory, where types behave (at least potentially) like n-groupoids or even infinity-groupoids. In the other direction, it contrasts with type theories where types behave like propositions (type theories of this sort are often called logics).
In a set-level but intensional type theory, we distinguish definitional and propositional equality (unlike in extensional type theory), but no two terms can be propositionally equal in more than one way (up to propositional equality). In the language of homotopy type theory, this means that all types are h-sets. There are a number of equivalent ways to force this to be true by adding axioms to type theory.
We can add as an axiom the “uniqueness of identity proofs” (axiom UIP) property that any two inhabitants of the same identity type are themselves equal (in the corresponding higher identity type).
We can add Streicher’s axiom K which says that any inhabitant of a self-equality type is (propositionally) equal to the identity/reflexivity equality . (Axiom K is so named because comes after , and usually denotes the eliminator for identity types.)
In the presence of dependent sum types, we can add an axiom saying that if and are pairs in a dependent sum with the same first component, and the identity type is inhabited, then so is .
Given the circle type , we can add any of the equivalent axioms which state respectively that is a set ; is a proposition or a contractible type , which are the same condition as being a set because is provably a pointed connected type; and there is an identification .
We can allow definition of functions by a strong form of pattern matching, as in unmodified Agda. The relevant “extra strength” is to allow output types of a pattern match which are only well-defined after the pattern has been matched.
In cubical type theory (with glue types? removed, since univalence is incompatible with set-level-ness), we can add a boundary separation rule, leading to XTT.
Last revised on December 6, 2023 at 00:30:29. See the history of this page for a list of all contributions to it.