# Coproduct

Last updated

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.

## Definition

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

The unique arrow ${\displaystyle f}$ making this diagram commute may be denoted ${\displaystyle f_{1}\coprod f_{2},}$${\displaystyle f_{1}\oplus f_{2},}$${\displaystyle f_{1}+f_{2},}$ or ${\displaystyle \left[f_{1},f_{2}\right].}$ The morphisms ${\displaystyle i_{1}}$ and ${\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 ${\displaystyle J.}$ The coproduct of the family ${\displaystyle \left\{X_{j}:j\in J\right\}}$ is an object ${\displaystyle X}$ together with a collection of morphisms ${\displaystyle i_{j}:X_{j}\to X}$ such that, for any object ${\displaystyle Y}$ and any collection of morphisms ${\displaystyle f_{j}:X_{j}\to Y}$ there exists a unique morphism ${\displaystyle f:X\to Y}$ such that ${\displaystyle f_{j}=f\circ i_{j}.}$ That is, the following diagram commutes for each ${\displaystyle j\in J}$:

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

Sometimes the morphism ${\displaystyle f:X\to Y}$ may be denoted ${\displaystyle \coprod _{j\in J}f_{j}}$ to indicate its dependence on the individual ${\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).

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 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 ${\displaystyle C}$ can be defined as the colimit of any functor from a discrete category ${\displaystyle J}$ into ${\displaystyle C}$. Not every family ${\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 ${\displaystyle i_{j}:X_{j}\rightarrow X}$ and ${\displaystyle k_{j}:X_{j}\rightarrow Y}$ are two coproducts of the family ${\displaystyle \lbrace X_{j}\rbrace }$, then (by the definition of coproducts) there exists a unique isomorphism ${\displaystyle f:X\rightarrow Y}$ such that ${\displaystyle f\circ i_{j}=k_{j}}$ for each ${\displaystyle j\in J}$.

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

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

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

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

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

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

${\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

${\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

${\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 ${\displaystyle f}$ is the coproduct of the tuple

${\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 ${\displaystyle C^{\operatorname {op} }}$ to Set is continuous; it preserves limits (a coproduct in ${\displaystyle C}$ is a product in ${\displaystyle C^{\operatorname {op} }}$).

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

${\displaystyle X\oplus (Y\oplus Z)\cong (X\oplus Y)\oplus Z\cong X\oplus Y\oplus Z}$
${\displaystyle X\oplus 0\cong 0\oplus X\cong 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 ${\displaystyle Z}$, then we have a unique morphism ${\displaystyle X\rightarrow Z}$ (since ${\displaystyle Z}$ is terminal) and thus a morphism ${\displaystyle X\oplus Y\rightarrow Z\oplus Y}$. Since ${\displaystyle Z}$ is also initial, we have a canonical isomorphism ${\displaystyle Z\oplus Y\cong Y}$ as in the preceding paragraph. We thus have morphisms ${\displaystyle X\oplus Y\rightarrow X}$ and ${\displaystyle X\oplus Y\rightarrow Y}$, by which we infer a canonical morphism ${\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 ${\displaystyle J}$ have coproducts in ${\displaystyle C}$, then the coproduct comprises a functor ${\displaystyle C^{J}\rightarrow C}$. Note that, like the product, this functor is covariant.

## Related Research Articles

In mathematics, especially in category theory and homotopy theory, a groupoid generalises the notion of group in several equivalent ways. A groupoid can be seen as a:

In category theory, a branch of mathematics, the abstract notion of a limit captures the essential properties of universal constructions such as products, pullbacks and inverse limits. The dual notion of a colimit generalizes constructions such as disjoint unions, direct sums, coproducts, pushouts and direct limits.

In category theory and its applications to mathematics, a biproduct of a finite collection of objects, in a category with zero objects, is both a product and a coproduct. In a preadditive category the notions of product and coproduct coincide for finite collections of objects. The biproduct is a generalization of finite direct sums of modules.

In mathematics, specifically in category theory, an additive category is a preadditive category C admitting all finitary biproducts.

In mathematics, specifically in category theory, a pre-abelian category is an additive category that has all kernels and cokernels.

An exact sequence is a sequence of morphisms between objects such that the image of one morphism equals the kernel of the next.

Homological algebra is the branch of mathematics that studies homology in a general algebraic setting. It is a relatively young discipline, whose origins can be traced to investigations in combinatorial topology and abstract algebra at the end of the 19th century, chiefly by Henri Poincaré and David Hilbert.

In category theory, a category is Cartesian closed if, roughly speaking, any morphism defined on a product of two objects can be naturally identified with a morphism defined on one of the factors. These categories are particularly important in mathematical logic and the theory of programming, in that their internal language is the simply typed lambda calculus. They are generalized by closed monoidal categories, whose internal language, linear type systems, are suitable for both quantum and classical computation.

In category theory, the product of two objects in a category is a notion designed to capture the essence behind constructions in other areas of mathematics such as the Cartesian product of sets, the direct product of groups or rings, and the product of topological spaces. Essentially, the product of a family of objects is the "most general" object which admits a morphism to each of the given objects.

In algebraic geometry, motives is a theory proposed by Alexander Grothendieck in the 1960s to unify the vast array of similarly behaved cohomology theories such as singular cohomology, de Rham cohomology, etale cohomology, and crystalline cohomology. Philosophically, a "motif" is the "cohomology essence" of a variety.

In category theory, a branch of mathematics, a pushout is the colimit of a diagram consisting of two morphisms f : ZX and g : ZY with a common domain. The pushout consists of an object P along with two morphisms XP and YP that complete a commutative square with the two given morphisms f and g. In fact, the defining universal property of the pushout essentially says that the pushout is the "most general" way to complete this commutative square. Common notations for the pushout are and .

In mathematics, the derived categoryD(A) of an abelian category A is a construction of homological algebra introduced to refine and in a certain sense to simplify the theory of derived functors defined on A. The construction proceeds on the basis that the objects of D(A) should be chain complexes in A, with two such chain complexes considered isomorphic when there is a chain map that induces an isomorphism on the level of homology of the chain complexes. Derived functors can then be defined for chain complexes, refining the concept of hypercohomology. The definitions lead to a significant simplification of formulas otherwise described by complicated spectral sequences.

In mathematics, a triangulated category is a category with the additional structure of a "translation functor" and a class of "exact triangles". Prominent examples are the derived category of an abelian category, as well as the stable homotopy category. The exact triangles generalize the short exact sequences in an abelian category, as well as fiber sequences and cofiber sequences in topology.

In mathematics, specifically in category theory, an exponential object or map object is the categorical generalization of a function space in set theory. Categories with all finite products and exponential objects are called cartesian closed categories. Categories without adjoined products may still have an exponential law.

This is a glossary of properties and concepts in category theory in mathematics.

In mathematics, specifically in category theory, hom-sets, i.e. sets of morphisms between objects, give rise to important functors to the category of sets. These functors are called hom-functors and have numerous applications in category theory and other branches of mathematics.

In mathematics, a Grothendieck category is a certain kind of abelian category, introduced in Alexander Grothendieck's Tôhoku paper of 1957 in order to develop the machinery of homological algebra for modules and for sheaves in a unified manner. The theory of these categories was further developed in Pierre Gabriel's seminal thesis in 1962.

In mathematics, Grothendieck's six operations, named after Alexander Grothendieck, is a formalism in homological algebra. It originally sprang from the relations in étale cohomology that arise from a morphism of schemes f : XY. The basic insight was that many of the elementary facts relating cohomology on X and Y were formal consequences of a small number of axioms. These axioms hold in many cases completely unrelated to the original context, and therefore the formal consequences also hold. The six operations formalism has since been shown to apply to contexts such as D-modules on algebraic varieties, sheaves on locally compact topological spaces, and motives.

In algebraic geometry, a presheaf with transfers is, roughly, a presheaf that, like cohomology theory, comes with pushforwards, “transfer” maps. Precisely, it is, by definition, a contravariant additive functor from the category of finite correspondences to the category of abelian groups.

In mathematics, derived noncommutative algebraic geometry, the derived version of noncommutative algebraic geometry, is the geometric study of derived categories and related constructions of triangulated categories using categorical tools. Some basic examples include the bounded derived category of coherent sheaves on a smooth variety, , called its derived category, or the derived category of perfect complexes on an algebraic variety, denoted . For instance, the derived category of coherent sheaves on a smooth projective variety can be used as an invariant of the underlying variety for many cases. Unfortunately, studying derived categories as geometric objects of themselves does not have a standardized name.

## References

• Mac Lane, Saunders (1998). Categories for the Working Mathematician . Graduate Texts in Mathematics. 5 (2nd ed.). New York, NY: Springer-Verlag. ISBN   0-387-98403-8. Zbl   0906.18001.