Definition
In type theory, a type is a primitive notion representing a collection of mathematical objects, called terms, which share a common structure or behavior. We denote that a term belongs to a type with the judgment . Types serve as the foundational building blocks for formal logic and computation, where the Curry-Howard correspondence relates types to propositions and terms to proofs.
Example
An common example is that of function types. The type represents the collection of mappings from domain to codomain . For the addition operation on natural numbers , the type signature is:
This signature specifies that is a curried function taking two arguments of type and producing a result of type . In dependent type theory, types may also depend on terms, generalizing the function type to the Pi type .