# counterexamples for products and coproduct

## 1 Direct sum is not always a coproduct

For groups the notion of a direct sum (http://planetmath.org/DirectProductAndRestrictedDirectProductOfGroups) is in conflict with the categorical direct sum. For this reason a categorical direct sum is often called a coproduct instead. The following example illustrates the difference.

Let $\sqcup$ denote the disjoint union of sets.

The direct product of a family of groups $\{G_{i}~{}:i\in I\}$ is the set of all functions $f:I\rightarrow\sqcup_{i\in I}G_{i}$ such that $f(i)\in G_{i}$. We usually denote this by

 $\prod_{i\in I}G_{i}.$

This is a product in the category of all groups. This is a group under pointwise operations: $(fg)(i)=f(i)g(i)$ and all the group properties follow.

The direct sum is a subgroup of $\prod_{i\in I}G_{i}$ consisting of all $f:I\rightarrow\sqcup_{i\in I}G_{i}$ with the added property that

 $Supp~{}f=\{i\in I:f(i)\neq 1\}$

is a finite set, that is, $f$ has finite support. The notation for direct sums is experiencing a shift from the historical sigma notation to the modern circled plus; thus it is common to see any of the following two notations

 $\sum_{i\in I}G_{i}\textnormal{ or }\bigoplus_{i\in I}G_{i}.$
###### Proposition 1.

The direct sum and direct product are equal whenever $I$ is a finite set. That is, for any family $\{G_{i}:i\in I\}$ with $I$ finite, then

 $\prod_{i\in I}G_{i}=\bigoplus_{i\in I}G_{i}.$
###### Remark 2.

The ‘$=$’ here means an honest set equality even more than naturally isomorphic.

###### Proof.

Certainly $Supp~{}f$ is a subset of $I$ and so $Supp~{}f$ is finite. ∎

Claim: The direct sum is not a coproduct in the category of all groups.

Example. Let $G_{1}=S_{3}$ and $G_{2}=\mathbb{Z}_{2}$. We observe that $S_{3}\oplus\mathbb{Z}_{2}$ and is a group of order (http://planetmath.org/OrderGroup) 12. Now suppose that $\oplus$ is a coproduct for the category of groups. The canonical inclussion maps are

 $\iota_{1}:S_{3}\rightarrow S_{3}\oplus\mathbb{Z}_{2}:\sigma\mapsto(\sigma,0)$

and

 $\iota_{2}:\mathbb{Z}_{2}\rightarrow S_{3}\times\mathbb{Z}_{2}:n\mapsto(1,n).$

Take the homomorphisms $f_{1}:S_{3}\rightarrow S_{4}$ – the natural inclusion map of $S_{3}=\langle(123),(12)\rangle$ treated as permutations on 4 letters fixing 4 – and $f_{2}:\mathbb{Z}_{2}\rightarrow S_{4}$ given by $1\mapsto(14)$.

If indeed $\oplus$ is a coproduct in the category of groups then their exists a unique homomorphism $f:S_{3}\oplus\mathbb{Z}_{2}\rightarrow S_{4}$ such that $f_{i}=f\iota_{i}$, $i=1,2$. This means that

 $(123)=f_{1}((123))=f(\iota_{1}(123))=f((123),0),\quad(14)=f_{2}(1)=f(\iota_{2}% (1))=f(1,1).$

Notice then that the image of $f$ in $S_{4}$ is all of $S_{4}$ since $\langle(123),(14)\rangle=S_{4}$. But this is impossible since $|S_{4}|=24$ and $|S_{3}\oplus\mathbb{Z}_{2}|=12$. Hence there cannot exist such a homomorphism $f$ and so $\oplus$ is not a categorical coproduct. $\Box$

## 2 Infinite products and coproducts

In an abelian category, for example the category of abelian groups or a category of modules, the direct sum is the categorical coproduct. Thus a common misreading of Proposition 1 is to declare

“ In an abelian category the product and coproduct are equivalent. ”

Indeed, this is true only if the index set $I$ of the family of objects is finite. A simple cardinality test demonstrates the flaw.

Example. Suppose that $I=\mathbb{N}$ and $G_{i}=\mathbb{Z}_{2}$. Then the product of $\prod_{i\in\mathbb{N}}\mathbb{Z}_{2}$ can be equated with the set of all functions $f:\mathbb{N}\rightarrow\mathbb{Z}_{2}$ – that is, all infinite sequences of binary digits. This has cardinality $2^{\aleph_{0}}$ which is uncountable.

On the other hand, the direct sum (coproduct in this context) of this family is the set of all finite binary strings, which is countable. Therefore these two objects cannot be isomorphic in the category. $\Box$

## 3 Common categories without (co)products

Let FinGrp be the category of all finite groups. This category does not inherit the standard products and coproduct of the category of all groups Grp. For example,

 $\prod_{\mathbb{N}}\mathbb{Z}_{2}\textnormal{ and }\coprod_{\mathbb{N}}\mathbb{% Z}_{2}$

are both infinite groups and so they do not lie in the category FinGrp. Indeed, this example could be done with the category of finite sets FinSet inside the category of all sets Set, and many other such categories.

However, we have not yet demonstrated that no alternate product and/or coproduct for the category FinGrp, FinSet, etc does not exist.

## 4 Common subcategories with different (co)products

Consider once again the category of all groups Grp. Inside this category lies the category of all abelian groups AbGrp. However, the coproduct for groups is the free product $(*)$ but the coproduct for abelian groups is direct sum $(\oplus)$. These are inequivelent.

Example. $\mathbb{Z}*\mathbb{Z}$ is the free group on two elements – and so non-abelian – while $\mathbb{Z}\oplus\mathbb{Z}$ is abelian. $\Box$

Title counterexamples for products and coproduct CounterexamplesForProductsAndCoproduct 2013-03-22 15:52:31 2013-03-22 15:52:31 Algeboy (12884) Algeboy (12884) 16 Algeboy (12884) Example msc 16B50