Empty type

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

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).[1] It may also be defined as the polymorphic type t.t[2]

For any type P, the type ¬P is defined as P𝟘. As the notation suggests, by the Curry–Howard correspondence, a term of type 𝟘 is a false proposition, and a term of type ¬P is a disproof of proposition P.[1]

A type theory need not contain an empty type. Where it exists, an empty type is not generally unique.[2] For instance, T𝟘 is also uninhabited for any inhabited type T.

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 .

References

[edit | edit source]
  1. ^ a b Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  2. ^ a b Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).