Context
Universes
Type theory
Contents
Idea
In dependent type theory, the type of finite types is the type universe which contains the finite types of the type theory, in the sense of finite set in set theory. The type of finite types is important in the field of combinatorics, as well as for defining mathematical structures like finite-dimensional vector spaces.
Definition
In dependent type theory, given a type , there are many different ways of defining the mere proposition which indicates that is a finite type.
- Given a type of propositions , a type is finite if for all subtypes of the power set of , if the empty subtype is in , and for all subtypes and of such that being in , being a singleton subtype, and and being disjoint together imply that the union is in , then the improper subtype is in .
The membership relation and the subtype operations used above are defined in the nLab article on subtypes.
The definitions of the various different types of finite types are agnostic regarding the definition of , as they uses directly rather than a particular definition.
The type of all finite types
Unlike the case for the type of all types , the type of all finite types doesn’t run into Girard's paradox, because neither nor its set truncation is itself a finite type, and so isn’t an element of itself.
The type of all finite types in a dependent type theory could be presented either as a Russell universe or a Tarski universe. The difference between the two is that in the former, every finite type in the type theory is literally an element of the type of finite types, while in the latter, elements of are only indices of a type family ; every finite type in the type theory is only essentially -small for weak Tarski universes or judgmentally equal to an for for strict Tarski universes.
As a strict Tarski universe
As a strict Tarski universe, the type of all finite types is given by the following natural deduction inference rules:
Formation rules for the type of all finite types:
Introduction rules for the type of all finite types:
Elimination rules for the type of all finite types:
Computation rules for the type of all finite types:
- Judgmental computation rules:
Uniqueness rules for the type of all finite types:
Extensionality principle of the type of all finite types:
As a weak Tarski universe
As a weak Tarski universe, the type of all finite types is given by the following natural deduction inference rules:
Formation rules for the type of all finite types:
Introduction rules for the type of all finite types:
Elimination rules for the type of all finite types:
Computation rules for the type of all finite types:
- Judgmental computation rules:
where the equivalence
can always be constructed in a type theory with dependent product types, dependent sum types, identity types, and a type of all propositions, as given types and and an equivalence , it is possible to form the equivalence through application of equivalences to identifications and the typal congruence rules of function types, dependent product types, product types, and dependent sum types.
Uniqueness rules for the type of all finite types:
Extensionality principle of the type of all finite types:
As a Russell universe
As a Russell universe, the type of all finite types is given by the following natural deduction inference rules:
Formation rules for the type of all finite types:
Introduction rules for the type of all finite types:
Elimination rules for the type of all finite types:
Computation rules for the type of all finite types:
- Judgmental computation rules:
Uniqueness rules for the type of all finite types:
Extensionality principle of the type of all finite types:
Type of small finite types
Given an already existing Russell universe , the type of -small finite types is given by the dependent sum type
Similarly, given an already existing Tarski universe , the type of -small finite types is given by the dependent sum type
Properties
The type of finite types is closed under the empty type, the unit type, function types, dependent product types, product types, dependent sum types, and sum types.
Relation to the natural numbers type
The natural numbers type is equivalent to the set truncation of the type of finite types:
This is the type theoretic analogue of the decategorification of the permutation category resulting in the set of natural numbers.
This also means that the axiom of infinity for a type universe could be defined as a resizing axiom similar to propositional resizing, since set truncations could be defined from the type of propositions in :
The arithmetic operations and order relations on the natural numbers type can be defined by induction on set truncation:
For all finite types and and finite families , we have
Categorical semantics
The categorical semantics of the type of finite types is the finite object classifier, the object classifier which classifies finite objects of a category.
References
For the fact that binary sum types, finite dependent sum types, and binary product types of finite types are finite types, see section 16.3 of:
For the fact that function types between finite types are finite types, see Exercise 16.1 of the above reference. These imply that the type of finite types are closed under binary sum types, finite dependent sum types, binary product types, and function types.