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 dependent type theory, a record type is a type which consists of variadic tuples called records, whose individual elements in the tuples are called fields.
Finitary record types can be defined in terms of the unit type and iterated dependent sum types. Examples of finitary record types include unit types, negative copies, product types, dependent sum types, etc…
Infinitary record types have an infinite number of fields and require something like two-level type theory to be implemented. An example of an infinitary record type is any semi-simplicial type.
Most type-theory based proof assistants include primitive record types, with dependent sum types defined as a particular case of these, rather than requiring general record types to be defined using dependent sum types. This includes:
It is also possible to have “record types” whose fields themselves are types. These are typically types of types with additional structure.
Let be a type and let be a type family.
Traditionally a record type with type fields is a dependent sum types involving a type universe field: suppose we have a Russell universe or a Tarski universe and a function representing the non-type fields of the record type. Then the type of record types with type fields is given by the dependent sum type
for Russell universes and Tarski universes respectively, where is the index type of the family of type fields.
But in a dependent type theory with a separate type judgment, types are not elements of universes. Instead of the above notion of “record type with -small types fields”, we have the notion of “record types with type fields”. Type families , previously functions , are now judged to be types in context . The function which takes types to propostions is now an operator on types and type families, which is defined using inference rules:
Examples of such definable from the existing type formers in dependent type theory, include
The resulting record type with type fields and non-type fields is denoted in this section by .
Care must be taken for which one could use to define the record type with type fields. For example, given unit type and the type family , for and , the resulting always contains itself or its set truncation in addition to the empty type, resulting in Girard's paradox; thus, one cannot form such record types with type fields in the type theory.
Last revised on May 15, 2025 at 15:48:22. See the history of this page for a list of all contributions to it.