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
In type theory the empty type is the type with no term.
In a model by categorical semantics, this is an initial object. In set theory, it is an empty set.
Like all type constructors in type theory, to characterize the empty type we must specify how to build it, how to construct elements of it, how to use such elements, and the computation rules.
The way to build the empty type is trivial: it exists.
The empty type is most naturally presented as a positive type, so that the constructor rules are primary. However, since the empty type is supposed to contain no elements, there are no constructor rules.
The eliminator rules are derived from the constructor rules in the usual way: to use a term , it suffices to specify what should be done for all the (zero) ways that could have been constructed. Thus, we don’t need any hypotheses:
That is, given an element of , we can construct an element of any type . In dependent type theory, we must generalize the eliminator to allow to depend on .
There is no beta-reduction rule, since there are no constructors to compose with the eliminator. However, there is an eta-conversion rule, which says that for any term in a context including a term of type , we have
As with the -conversion rule for the negative presentation of the unit type, this is ill-defined as a reduction (since we cannot determine from ), but makes sense as an expansion.
The positive presentation of the empty type can be regarded as a particular sort of inductive type. In Coq syntax:
Inductive empty : Type :=
.
Coq implements the beta reduction rule, but not the eta (although eta equivalence is provable for the inductively defined identity types, using the dependent eliminator mentioned above).
As for binary sum types, it is possible to present the empty type as a negative type as well, but only if we allow sequents with multiple conclusions. This is common in sequent calculus presentations of classical logic, but not as common in type theory and almost unheard of in dependent type theory.
The two definitions are provably equivalent, but only using the contraction rule and the weakening rule. Thus, in linear logic they become distinct; the positive empty type is “zero” and the negative one is “bottom” .
Last revised on October 4, 2019 at 10:06:51. See the history of this page for a list of all contributions to it.