Misplaced Pages

Coproduct

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
(Redirected from Categorical sum) Category-theoretic construction This article is about coproducts in categories. For "coproduct" in the sense of comultiplication, see Coalgebra. For additional substances that result from the manufacturing of another product, see by-product.

In category theory, the coproduct, or categorical sum, is a construction which includes as examples 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 "least specific" 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 seemingly innocuous change in the name and notation, coproducts can be and typically are dramatically different from products within a given category.

Definition

Let C {\displaystyle C} be a category and let X 1 {\displaystyle X_{1}} and X 2 {\displaystyle X_{2}} be objects of C . {\displaystyle C.} An object is called the coproduct of X 1 {\displaystyle X_{1}} and X 2 , {\displaystyle X_{2},} written X 1 X 2 , {\displaystyle X_{1}\sqcup X_{2},} or X 1 X 2 , {\displaystyle X_{1}\oplus X_{2},} or sometimes simply X 1 + X 2 , {\displaystyle X_{1}+X_{2},} if there exist morphisms i 1 : X 1 X 1 X 2 {\displaystyle i_{1}:X_{1}\to X_{1}\sqcup X_{2}} and i 2 : X 2 X 1 X 2 {\displaystyle i_{2}:X_{2}\to X_{1}\sqcup X_{2}} satisfying the following universal property: for any object Y {\displaystyle Y} and any morphisms f 1 : X 1 Y {\displaystyle f_{1}:X_{1}\to Y} and f 2 : X 2 Y , {\displaystyle f_{2}:X_{2}\to Y,} there exists a unique morphism f : X 1 X 2 Y {\displaystyle f:X_{1}\sqcup X_{2}\to Y} such that f 1 = f i 1 {\displaystyle f_{1}=f\circ i_{1}} and f 2 = f i 2 . {\displaystyle f_{2}=f\circ i_{2}.} That is, the following diagram commutes:

The unique arrow f {\displaystyle f} making this diagram commute may be denoted f 1 f 2 , {\displaystyle f_{1}\sqcup f_{2},} f 1 f 2 , {\displaystyle f_{1}\oplus f_{2},} f 1 + f 2 , {\displaystyle f_{1}+f_{2},} or [ f 1 , f 2 ] . {\displaystyle \left.} The morphisms i 1 {\displaystyle i_{1}} and i 2 {\displaystyle i_{2}} are called canonical injections, although they need not be injections or even monic.

The definition of a coproduct can be extended to an arbitrary family of objects indexed by a set J . {\displaystyle J.} The coproduct of the family { X j : j J } {\displaystyle \left\{X_{j}:j\in J\right\}} is an object X {\displaystyle X} together with a collection of morphisms i j : X j X {\displaystyle i_{j}:X_{j}\to X} such that, for any object Y {\displaystyle Y} and any collection of morphisms f j : X j Y {\displaystyle f_{j}:X_{j}\to Y} there exists a unique morphism f : X Y {\displaystyle f:X\to Y} such that f j = f i j . {\displaystyle f_{j}=f\circ i_{j}.} That is, the following diagram commutes for each j J {\displaystyle j\in J} :

The coproduct X {\displaystyle X} of the family { X j } {\displaystyle \left\{X_{j}\right\}} is often denoted j J X j {\displaystyle \coprod _{j\in J}X_{j}} or j J X j . {\displaystyle \bigoplus _{j\in J}X_{j}.}

Sometimes the morphism f : X Y {\displaystyle f:X\to Y} may be denoted j J f j {\displaystyle \coprod _{j\in J}f_{j}} to indicate its dependence on the individual f j {\displaystyle f_{j}} s.

Examples

The coproduct in the category of sets is simply the disjoint union with the maps ij being the inclusion maps. Unlike direct products, coproducts in other categories are not all obviously based on the notion for sets, because unions don't behave well with respect to preserving operations (e.g. the union of two groups need not be a group), and so coproducts in different categories can be dramatically different from each other. For example, the coproduct in the category of groups, called the free product, is quite complicated. On the other hand, in the category of abelian groups (and equally for vector spaces), the coproduct, called the direct sum, consists of the elements of the direct product which have only finitely many nonzero terms. (It therefore coincides exactly with the direct product in the case of finitely many factors.)

Given a commutative ring R, the coproduct in the category of commutative R-algebras is the tensor product. In the category of (noncommutative) R-algebras, the coproduct is a quotient of the tensor algebra (see free product of associative algebras).

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).

The concept of disjoint union secretly underlies the above examples: 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. This pattern holds for any variety in the sense of universal algebra.

The coproduct in the category of Banach spaces with short maps is the l sum, which cannot be so easily conceptualized as an "almost disjoint" sum, but does have a unit ball almost-disjointly generated by the unit ball is the cofactors.

The coproduct of a poset category is the join operation.

Discussion

The coproduct construction given above is actually a special case of a colimit in category theory. The coproduct in a category C {\displaystyle C} can be defined as the colimit of any functor from a discrete category J {\displaystyle J} into C {\displaystyle C} . Not every family { X j } {\displaystyle \lbrace X_{j}\rbrace } will have a coproduct in general, but if it does, then the coproduct is unique in a strong sense: if i j : X j X {\displaystyle i_{j}:X_{j}\rightarrow X} and k j : X j Y {\displaystyle k_{j}:X_{j}\rightarrow Y} are two coproducts of the family { X j } {\displaystyle \lbrace X_{j}\rbrace } , then (by the definition of coproducts) there exists a unique isomorphism f : X Y {\displaystyle f:X\rightarrow Y} such that f i j = k j {\displaystyle f\circ i_{j}=k_{j}} for each j J {\displaystyle j\in J} .

As with any universal property, the coproduct can be understood as a universal morphism. Let Δ : C C × C {\displaystyle \Delta :C\rightarrow C\times C} be the diagonal functor which assigns to each object X {\displaystyle X} the ordered pair ( X , X ) {\displaystyle \left(X,X\right)} and to each morphism f : X Y {\displaystyle f:X\rightarrow Y} the pair ( f , f ) {\displaystyle \left(f,f\right)} . Then the coproduct X + Y {\displaystyle X+Y} in C {\displaystyle C} is given by a universal morphism to the functor Δ {\displaystyle \Delta } from the object ( X , Y ) {\displaystyle \left(X,Y\right)} in C × C {\displaystyle C\times C} .

The coproduct indexed by the empty set (that is, an empty coproduct) is the same as an initial object in C {\displaystyle C} .

If J {\displaystyle J} is a set such that all coproducts for families indexed with J {\displaystyle J} exist, then it is possible to choose the products in a compatible fashion so that the coproduct turns into a functor C J C {\displaystyle C^{J}\rightarrow C} . The coproduct of the family { X j } {\displaystyle \lbrace X_{j}\rbrace } is then often denoted by

j J X j {\displaystyle \coprod _{j\in J}X_{j}}

and the maps i j {\displaystyle i_{j}} are known as the natural injections.

Letting Hom C ( U , V ) {\displaystyle \operatorname {Hom} _{C}\left(U,V\right)} denote the set of all morphisms from U {\displaystyle U} to V {\displaystyle V} in C {\displaystyle C} (that is, a hom-set in C {\displaystyle C} ), we have a natural isomorphism

Hom C ( j J X j , Y ) j J Hom C ( X j , Y ) {\displaystyle \operatorname {Hom} _{C}\left(\coprod _{j\in J}X_{j},Y\right)\cong \prod _{j\in J}\operatorname {Hom} _{C}(X_{j},Y)}

given by the bijection which maps every tuple of morphisms

( f j ) j J j J Hom ( X j , Y ) {\displaystyle (f_{j})_{j\in J}\in \prod _{j\in J}\operatorname {Hom} (X_{j},Y)}

(a product in Set, the category of sets, which is the Cartesian product, so it is a tuple of morphisms) to the morphism

j J f j Hom ( j J X j , Y ) . {\displaystyle \coprod _{j\in J}f_{j}\in \operatorname {Hom} \left(\coprod _{j\in J}X_{j},Y\right).}

That this map is a surjection follows from the commutativity of the diagram: any morphism f {\displaystyle f} is the coproduct of the tuple

( f i j ) j J . {\displaystyle (f\circ i_{j})_{j\in J}.}

That it is an injection follows from the universal construction which stipulates the uniqueness of such maps. The naturality of the isomorphism is also a consequence of the diagram. Thus the contravariant hom-functor changes coproducts into products. Stated another way, the hom-functor, viewed as a functor from the opposite category C op {\displaystyle C^{\operatorname {op} }} to Set is continuous; it preserves limits (a coproduct in C {\displaystyle C} is a product in C op {\displaystyle C^{\operatorname {op} }} ).

If J {\displaystyle J} is a finite set, say J = { 1 , , n } {\displaystyle J=\lbrace 1,\ldots ,n\rbrace } , then the coproduct of objects X 1 , , X n {\displaystyle X_{1},\ldots ,X_{n}} is often denoted by X 1 X n {\displaystyle X_{1}\oplus \ldots \oplus X_{n}} . 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

X ( Y Z ) ( X Y ) Z X Y Z {\displaystyle X\oplus (Y\oplus Z)\cong (X\oplus Y)\oplus Z\cong X\oplus Y\oplus Z}
X 0 0 X X {\displaystyle X\oplus 0\cong 0\oplus X\cong X}
X Y Y X . {\displaystyle X\oplus Y\cong Y\oplus X.}

These properties are formally similar to those of a commutative monoid; a category with finite coproducts is an example of a symmetric monoidal category.

If the category has a zero object Z {\displaystyle Z} , then we have a unique morphism X Z {\displaystyle X\rightarrow Z} (since Z {\displaystyle Z} is terminal) and thus a morphism X Y Z Y {\displaystyle X\oplus Y\rightarrow Z\oplus Y} . Since Z {\displaystyle Z} is also initial, we have a canonical isomorphism Z Y Y {\displaystyle Z\oplus Y\cong Y} as in the preceding paragraph. We thus have morphisms X Y X {\displaystyle X\oplus Y\rightarrow X} and X Y Y {\displaystyle X\oplus Y\rightarrow Y} , by which we infer a canonical morphism X Y X × Y {\displaystyle X\oplus Y\rightarrow X\times 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 proper epimorphism while in Set* (the category of pointed sets) it is a proper monomorphism. 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 a semiadditive category.

If all families of objects indexed by J {\displaystyle J} have coproducts in C {\displaystyle C} , then the coproduct comprises a functor C J C {\displaystyle C^{J}\rightarrow C} . Note that, like the product, this functor is covariant.

See also

References

  1. Qiaochu Yuan (June 23, 2012). "Banach spaces (and Lawvere metrics, and closed categories)". Annoying Precision.

External links

Category theory
Key concepts
Key concepts
Universal constructions
Limits
Colimits
Algebraic categories
Constructions on categories
A simple triangular commutative diagram
Higher category theory
Key concepts
  • Categorification
  • Enriched category
  • Higher-dimensional algebra
  • Homotopy hypothesis
  • Model category
  • Simplex category
  • String diagram
  • Topos
  • n-categories
    Weak n-categories
    Strict n-categories
    Categorified concepts
    Category: