202506161406

Tags : Homotopy Type Theory

Inductive Types


An inductive type is meant to be a type that is freely generated by a finite collection of functions (which can have 0 inputs) whose codomain is the type. For example

  • The Unit Type is generated by a single constructor .
  • The Product Type is generated by the constructor .
  • The type of Natural Numbers is created by 2 constructors
    • , which is a value

And so on.

Note

The constructors are allowed to have the inductive type as their domain.

Another such type is , which can be defined as

These inductive types are meant to be Freely generated and that is expressed using their elimination rule, or the induction principle.

Example

For example the induction principle for the type :

  • When proving a statement , it suffices to prove it for and .

Thus there is a function , that takes a type family , then then , then we get such that:

We usually call this case analysis.


References