Coproducts in Type #
If F : J → Type max v u (with J : Type v), we show that the coproduct
of F exists in Type max v u and identifies to the sigma type Σ j, F j.
Similarly, the binary coproduct of two types X and Y identifies to
X ⊕ Y, and the initial object of Type u if PEmpty.
Given a functor F : Discrete C ⥤ Type v, this is a "cofan" for F,
but we allow the point to be in Type w for an arbitrary universe w.
Instances For
The cofan given by a sigma type.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Given a cofan of a functor to types, this is a canonical map from the Sigma type to the point of the cofan.
Equations
- CategoryTheory.Limits.CofanTypes.fromSigma F c x = c.inj x.fst x.snd
Instances For
The bijection from the sigma type to the point of a colimit cofan of a functor to types.
Equations
Instances For
If F : C → Type v, then the data of a "type-theoretic" cofan of F
with a point in Type v is the same as the data of a cocone (in a categorical sense).
Equations
- One or more equations did not get rendered due to their size.
Instances For
The category of types has PEmpty as an initial object.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Alias of CategoryTheory.Limits.Types.isInitialPEmpty.
The initial object in Type u is PEmpty.
Instances For
The sum type X ⊕ Y forms a cocone for the binary coproduct of X and Y.
Equations
Instances For
The sum type X ⊕ Y is a binary coproduct for X and Y.
Equations
- CategoryTheory.Limits.Types.binaryCoproductColimit X Y = { desc := fun (s : CategoryTheory.Limits.BinaryCofan X Y) => Sum.elim s.inl s.inr, fac := ⋯, uniq := ⋯ }
Instances For
The category of types has X ⊕ Y,
as the binary coproduct of X and Y.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The categorical binary coproduct in Type u is the sum X ⊕ Y.
Equations
Instances For
Any monomorphism in Type is a coproduct injection.
Equations
Instances For
The category of types has Σ j, f j as the coproduct of a type family f : J → Type.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The categorical coproduct in Type u is the type-theoretic coproduct Σ j, F j.