Binary (co)products

We define a category walking_pair, which is the index category for a binary (co)product diagram. A convenience method pair X Y constructs the functor from the walking pair, hitting the given objects.

We define prod X Y and coprod X Y as limits and colimits of such functors.

Typeclasses has_binary_products and has_binary_coproducts assert the existence of (co)limits shaped as walking pairs.


category_theory.limits.walking_pair

The type of objects for the diagram indexing a binary (co)product.

category_theory.limits.prod.braiding

The braiding isomorphism which swaps a binary product.

category_theory.limits.prod.symmetry

The braiding isomorphism is symmetric.

category_theory.limits.prod.associator

The associator isomorphism for binary products.

category_theory.limits.prod.left_unitor

The left unitor isomorphism for binary products with the terminal object.

category_theory.limits.prod.right_unitor

The right unitor isomorphism for binary products with the terminal object.

category_theory.limits.coprod.braiding

The braiding isomorphism which swaps a binary coproduct.

category_theory.limits.coprod.symmetry

The braiding isomorphism is symmetric.

category_theory.limits.coprod.associator

The associator isomorphism for binary coproducts.

category_theory.limits.coprod.left_unitor

The left unitor isomorphism for binary coproducts with the initial object.

category_theory.limits.coprod.right_unitor

The right unitor isomorphism for binary coproducts with the initial object.