Binary (co)products #
We define prod X Y and coprod X Y as limits and colimits of walking-pair diagrams.
Typeclasses HasBinaryProducts and HasBinaryCoproducts assert the existence
of (co)limits shaped as walking pairs.
We include lemmas for simplifying equations involving projections and coprojections, and define braiding and associating isomorphisms, and the product comparison morphism.
References #
An abbreviation for HasLimit (pair X Y).
Equations
Instances For
An abbreviation for HasColimit (pair X Y).
Equations
Instances For
If we have a product of X and Y, we can access it using prod X Y or X ⨯ Y.
Equations
- (X ⨯ Y) = CategoryTheory.Limits.limit (CategoryTheory.Limits.pair X Y)
Instances For
If we have a coproduct of X and Y, we can access it using coprod X Y or X ⨿ Y.
Equations
- (X ⨿ Y) = CategoryTheory.Limits.colimit (CategoryTheory.Limits.pair X Y)
Instances For
Notation for the product
Equations
- One or more equations did not get rendered due to their size.
Instances For
Notation for the coproduct
Equations
- One or more equations did not get rendered due to their size.
Instances For
The projection map to the first component of the product.
Equations
Instances For
The inclusion map from the first component of the coproduct.
Equations
Instances For
The projection map to the second component of the product.
Equations
Instances For
The inclusion map from the second component of the coproduct.
Equations
Instances For
The binary fan constructed from the projection maps is a limit.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The binary cofan constructed from the coprojection maps is a colimit.
Equations
- One or more equations did not get rendered due to their size.
Instances For
If the product of X and Y exists, then every pair of morphisms f : W ⟶ X and g : W ⟶ Y
induces a morphism prod.lift f g : W ⟶ X ⨯ Y.
Equations
Instances For
If the coproduct of X and Y exists, then every pair of morphisms f : X ⟶ W and
g : Y ⟶ W induces a morphism coprod.desc f g : X ⨿ Y ⟶ W.
Equations
Instances For
diagonal arrow of the binary product in the category fam I
Equations
Instances For
codiagonal arrow of the binary coproduct
Equations
Instances For
If the product of X and Y exists, then every pair of morphisms f : W ⟶ X and g : W ⟶ Y
induces a morphism l : W ⟶ X ⨯ Y satisfying l ≫ Prod.fst = f and l ≫ Prod.snd = g.
Equations
Instances For
If the coproduct of X and Y exists, then every pair of morphisms f : X ⟶ W and
g : Y ⟶ W induces a morphism l : X ⨿ Y ⟶ W satisfying coprod.inl ≫ l = f and
coprod.inr ≫ l = g.
Equations
Instances For
If the products W ⨯ X and Y ⨯ Z exist, then every pair of morphisms f : W ⟶ Y and
g : X ⟶ Z induces a morphism prod.map f g : W ⨯ X ⟶ Y ⨯ Z.
Equations
Instances For
If the coproducts W ⨿ X and Y ⨿ Z exist, then every pair of morphisms f : W ⟶ Y and
g : W ⟶ Z induces a morphism coprod.map f g : W ⨿ X ⟶ Y ⨿ Z.
Equations
Instances For
Alias of CategoryTheory.Limits.coprod.codiag_comp.
If the products W ⨯ X and Y ⨯ Z exist, then every pair of isomorphisms f : W ≅ Y and
g : X ≅ Z induces an isomorphism prod.mapIso f g : W ⨯ X ≅ Y ⨯ Z.
Equations
- CategoryTheory.Limits.prod.mapIso f g = { hom := CategoryTheory.Limits.prod.map f.hom g.hom, inv := CategoryTheory.Limits.prod.map f.inv g.inv, hom_inv_id := ⋯, inv_hom_id := ⋯ }
Instances For
If the coproducts W ⨿ X and Y ⨿ Z exist, then every pair of isomorphisms f : W ≅ Y and
g : W ≅ Z induces an isomorphism coprod.mapIso f g : W ⨿ X ≅ Y ⨿ Z.
Equations
- CategoryTheory.Limits.coprod.mapIso f g = { hom := CategoryTheory.Limits.coprod.map f.hom g.hom, inv := CategoryTheory.Limits.coprod.map f.inv g.inv, hom_inv_id := ⋯, inv_hom_id := ⋯ }
Instances For
A category HasBinaryProducts if it has all limits of shape Discrete WalkingPair,
i.e. if it has a product for every pair of objects.
Equations
Instances For
A category HasBinaryCoproducts if it has all colimit of shape Discrete WalkingPair,
i.e. if it has a coproduct for every pair of objects.
Equations
Instances For
If C has all limits of diagrams pair X Y, then it has all binary products
If C has all colimits of diagrams pair X Y, then it has all binary coproducts
The braiding isomorphism which swaps a binary product.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The braiding isomorphism which swaps a binary coproduct.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The braiding isomorphism can be passed through a map by swapping the order.
The braiding isomorphism can be passed through a map by swapping the order.
The braiding isomorphism is symmetric.
The braiding isomorphism is symmetric.
The braiding isomorphism is symmetric.
The braiding isomorphism is symmetric.
The associator isomorphism for binary products.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The associator isomorphism for binary coproducts.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The left unitor isomorphism for binary products with the terminal object.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The left unitor isomorphism for binary coproducts with the initial object.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The right unitor isomorphism for binary products with the terminal object.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The right unitor isomorphism for binary coproducts with the initial object.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Alias of CategoryTheory.Limits.coprod.leftUnitor_hom_naturality.
Alias of CategoryTheory.Limits.coprod.rightUnitor_hom_naturality.
Alias of CategoryTheory.Limits.prod.rightUnitor_inv_naturality.
Alias of CategoryTheory.Limits.prod.rightUnitor_inv_naturality_assoc.
The binary product functor.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The binary coproduct functor.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The product functor can be decomposed.
Equations
Instances For
The coproduct functor can be decomposed.
Equations
Instances For
Construct HasBinaryProduct Y X from HasBinaryProduct X Y.
This can't be an instance, as it would cause a loop in typeclass search.
Auxiliary definition for Over.coprod.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A category with binary coproducts has a functorial sup operation on over categories.
Equations
- One or more equations did not get rendered due to their size.