Empty type
In type theory, a type with no terms
In type theory, an empty type or absurd type, typically denoted is a type with no terms. Such a type may be defined as the nullary coproduct (i.e. disjoint sum of no types). It may also be defined as the polymorphic type
For any type , the type
is defined as
. As the notation suggests, by the Curry-Howard correspondence, a term of type
is a false proposition, and a term of type
is a disproof of proposition P.
A type theory need not contain an empty type. Where it exists, an empty type is not generally unique. For instance, is also uninhabited for any inhabited type
.
If a type system contains an empty type, the bottom type must be uninhabited too, so no distinction is drawn between them and both are denoted .
Sources and credits
This article is adapted from the Wikipedia article “Empty type”, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.
Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.