Induction-induction
In intuitionistic type theory (ITT), some discipline within mathematical logic, induction-induction is for simultaneously declaring some inductive type and some inductive predicate over this type.
An inductive definition is given by rules for generating elements of some type. One can then define some predicate on that type by providing constructors for forming the elements of the predicate , such inductively on the way the elements of the type are generated. Induction-induction generalizes this situation since one can simultaneously define the type and the predicate, because the rules for generating elements of the type [math]\displaystyle{ A : \mathsf{Type} }[/math] are allowed to refer to the predicate [math]\displaystyle{ B : A \to \mathsf{Type} }[/math].
Induction-induction can be used to define larger types including various universe constructions in type theory.[1] and limit constructions in category/topos theory.
Example 1
Present the type [math]\displaystyle{ A }[/math] as having the following constructors , note the early reference to the predicate [math]\displaystyle{ B }[/math] :
- [math]\displaystyle{ aa : A }[/math]
- [math]\displaystyle{ \ell\ell : \sum_{x : A} B(x) \to A ; }[/math]
and-simultaneously present the predicate [math]\displaystyle{ B }[/math] as having the following constructors :
- [math]\displaystyle{ \mathsf{Tru} : B(aa) }[/math]
- [math]\displaystyle{ \mathsf{Fal} : B(aa) }[/math]
- if [math]\displaystyle{ x : A }[/math] and [math]\displaystyle{ y : B(x) }[/math] then [math]\displaystyle{ \mathsf{Zer} : B(\ell\ell(x,y)) }[/math]
- if [math]\displaystyle{ x : A }[/math] and [math]\displaystyle{ y : B(x) }[/math] and [math]\displaystyle{ z : B(\ell\ell(x,y)) }[/math] then [math]\displaystyle{ \mathsf{Suc}(z) : B(\ell\ell(x,y)) }[/math].
Example 2
A simple common example is the Universe à la Tarski type former. It creates some inductive type [math]\displaystyle{ U : \mathsf{Type} }[/math] and some inductive predicate [math]\displaystyle{ T : U \to \mathsf{Type} }[/math]. For every type in the type theory (except [math]\displaystyle{ U }[/math] itself!), there will be some element of [math]\displaystyle{ U }[/math] which may be seen as some code for this corresponding type ; The predicate [math]\displaystyle{ T }[/math] inductively encodes each possible type to the corresponding element of [math]\displaystyle{ U }[/math] ; and constructing new codes in [math]\displaystyle{ U }[/math] will require referring to the decoding-as-type of earlier codes , via the predicate [math]\displaystyle{ T }[/math] .
See also
- Induction-recursion – for simultaneously declaring some inductive type and some recursive function on this type .
References
- ↑ Dybjer, Peter (June 2000). "A general formulation of simultaneous inductive-recursive definitions in type theory". Journal of Symbolic Logic 65 (2): 525–549. doi:10.2307/2586554. http://www.cse.chalmers.se/~peterd/papers/Inductive_Recursive.pdf.
External links
Original source: https://en.wikipedia.org/wiki/Induction-induction.
Read more |