In category theory, the coproduct, or categorical sum, is the category-theoretic construction which subsumes the disjoint union of sets and of topological spaces, the free product of groups, and the direct sum of modules and vector spaces. The coproduct of a family of objects is essentially the "most general" object to which each object in the family admits a morphism. It is the category-theoretic dual notion to the categorical product, which means the definition is the same as the product but with all arrows reversed. Despite this innocuous-looking change in the name and notation, coproducts can be dramatically different from products.
The coproduct of the family {Xj} is often denoted
Sometimes the morphism f may be denoted
If the family of objects consists of only two members the product is usually written X1 ∐ X2 or X1 ⊕ X2 or sometimes simply X1 + X2, and the diagram takes the form:
The unique arrow f making this diagram commute is then correspondingly denoted f1 ∐ f2 or f1 ⊕ f2 or f1 + f2.
In the case of topological spaces coproducts are disjoint unions with their disjoint union topologies. That is it is a disjoint union of the underlying sets, and the open sets are sets open in each of the spaces, in a rather evident sense. In the category of pointed spaces, fundamental in homotopy theory, the coproduct is the wedge sum (which amounts to joining a collection of spaces with base points at a common base point).
Despite all this dissimilarity, there is still, at the heart of the whole thing, a disjoint union: the direct sum of abelian groups is the group generated by the "almost" disjoint union (disjoint union of all nonzero elements, together with a common zero), similarly for vector spaces: the space spanned by the "almost" disjoint union; the free product for groups is generated by the set of all letters from a similar "almost disjoint" union where no two elements from different sets are allowed to commute.
The coproduct construction given above is actually a special case of a colimit in category theory. The coproduct in category C can be defined as the colimit of any functor from a discrete category J into C. Not every family {Xj} will have a coproduct in general, but if it does, then the coproduct is unique in a strong sense: if ij : Xj → X and kj : Xj → Y are two coproducts of the family {Xj}, then (by the definition of coproducts) there exists a unique isomorphism f : X → Y such that ij = kj f for each j in J.
As with any universal property, the coproduct can be understood as a universal morphism. Let Δ: C → C×C be the diagonal functor which assigns to each object X the ordered pair (X,X) and to each morphism f:X → Y the pair (f,f). Then the product X×Y in C is given by a universal morphism to the functor Δ from the object (X,Y) in C×C.
The coproduct indexed by the empty set (that is, an empty coproduct) is the same as an initial object in C.
If J is a set such that all coproducts for families indexed with I exist, then it is possible to choose the products in a compatible fashion so that the coproduct turns into a functor CJ → C. The coproduct of the family {Xj} is then often denoted by ∐j Xj, and the maps ij are known as the natural injections.
Letting HomC(U,V) denote the set of all morphisms from U to V in C (that is, a hom-set in C), we have a natural isomorphism
If J is a finite set, say J = {1,...,n}, then the product of objects X1,...,Xn is often denoted by X1⊕...⊕Xn. Suppose all finite coproducts exist in C, coproduct functors have been chosen as above, and 0 denotes the initial object of C corresponding to the empty coproduct. We then have natural isomorphisms
If the category has a zero object Z, then we have unique morphism X → Z (since Z is terminal) and thus a morphism X ⊕ Y → Z ⊕ Y. Since Z is also initial, we have a canonical isomorphism Z ⊕ Y ≅ Y as in the preceding paragraph. We thus have morphisms X ⊕ Y → X and X ⊕ Y → Y, by which we infer a canonical morphism X ⊕ Y → X×Y. This may be extended by induction to a canonical morphism from any finite coproduct to the corresponding product. This morphism need not in general be an isomorphism; in Grp it is a a proper monomorphism while in Set* it is a proper epimorphism. In any preadditive category, this morphism is an isomorphism and the corresponding object is known as the biproduct. A category with all finite biproducts is known as an additive category.
Coproducts are actually special cases of colimits in category theory. The coproduct can be defined as the colimit of a discrete subcategory in C. It follows that if coproducts exists in a given category (they need not) they are unique up to a unique isomorphism that respect the injections.
If all families of objects indexed by J have coproducts in C, then the coproduct comprises a functor CJ → C. Note that, like the product, this functor is covariant.
This article is licensed under the GNU Free Documentation License.
It uses material from the
"Coproduct".
Home Page • arts • business • computers • games • health • hospitals • home • kids & teens • news • physicians • recreation• reference • regional • science • shopping • society • sports • world