ncatlab.org

negative type in nLab

Negative types

Context

Type theory

natural deduction metalanguage, practical foundations

  1. type formation rule
  2. term introduction rule
  3. term elimination rule
  4. computation rule

type theory (dependent, intensional, observational type theory, homotopy type theory)

syntax object language

homotopy levels

semantics

Negative types

Idea

In type theory, a negative type is one whose eliminators are regarded as primary. Its constructors are derived from these by the rule that “to construct an element of a negative type, it is necessary and sufficient to specify how that element behaves upon applying all of the eliminators to it”.

The opposite notion is that of a positive type, forming two polarities of type theory.

In categorical semantics of type theory, negative types correspond to “from the right” universal properties (i.e. for mapping in).

In denotational semantics, negative types behave well with respect to “call-by-name?” and other lazy evaluation? strategies.

Examples

Last revised on May 18, 2024 at 04:11:18. See the history of this page for a list of all contributions to it.