Idea
This idea is the functor analage to strictly positive types.
Definition
A strictly positive endofunctor is an endofunctor formed built up from functors where the variable appears only in strictly positive positions. In the context of dependent type theory and Agda, this restriction is syntactic and ensures the consistency of Inductive Type.
For a type constructor , occurs strictly positively if it never appears to the left of an arrow in the domain of a constructor argument. Formally, the class of strictly positive functors is the smallest class such that:
- If is a type not containing , then the constant functor is in .
- The identity functor is in .
- If , then their coproduct and product are in .
- If and is a type not containing , then the exponentiation is in .
Properties
Strict positivity excludes occurrences of in the domain of a function argument. This constraint prevents the construction of paradoxes such as the Russell paradox or violations of Cantor’s theorem within the type system.
In extensional type theory and HoTT, strictly positive endofunctors correspond to containers. Every strictly positive functor is natural isomorphism to a functor of the form:
where is a type of shapes and is a type of positions for each shape .