Library UniMath.CategoryTheory.categories.Type.Limits
Limits in the precategory of types
Contents:
- Terminal object (TerminalType)
- Binary products (BinProductsType)
Require Import UniMath.Foundations.PartA.
Require Import UniMath.Foundations.PartD.
Require Import UniMath.CategoryTheory.Core.Categories.
Require Import UniMath.CategoryTheory.Core.Functors.
Require Import UniMath.CategoryTheory.limits.terminal.
Require Import UniMath.CategoryTheory.limits.binproducts.
Require Import UniMath.CategoryTheory.categories.Type.Core.
Lemma TerminalType : Terminal type_precat.
Proof.
apply (make_Terminal (unit : ob type_precat)).
exact iscontrfuntounit.
Defined.
Proof.
apply (make_Terminal (unit : ob type_precat)).
exact iscontrfuntounit.
Defined.
Lemma BinProductsType : BinProducts type_precat.
Proof.
intros X Y.
use tpair.
- exact ((X × Y),, dirprod_pr1,, dirprod_pr2).
- apply isBinProduct'_to_isBinProduct.
intro; apply (weqfuntoprodtoprod _ X Y).
Defined.
Proof.
intros X Y.
use tpair.
- exact ((X × Y),, dirprod_pr1,, dirprod_pr2).
- apply isBinProduct'_to_isBinProduct.
intro; apply (weqfuntoprodtoprod _ X Y).
Defined.