202503272203

Tags : Homotopy Type Theory

Sum Types


Given types we introduce the type which is the disjoint union in set theory. This must be a fundamental construct because there is no notion of union of types in type theory. We also define a unit type for this operation that we will call , the empty type.

There are 2 constructors of the type :

  • These are called “left injection” and “right injection”.

There are no ways to construct elements of the empty type.

Recursion Principle

To construct a non-dependent function one needs 1 functions of type and respectively, now we can define as:

That is, the function is defined by case-analysis and the recursor has the type:

with defining equation

The recursor for will have the type:

This can be constructed without giving any definition as does not have any elements.

Induction Principle

To construct a dependent function out of a sum type, we assume we are given the family , then we require 2 functions:

  • this gives the following definition for :

Packaging the above construction into the induction operator we get

And there is also an induction operator on the emtpy that has the type:


References

Coproducts in Category Theory Dependent Pair Types