# Biproduct

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.

## Definition

Let C be a category with zero morphisms. Given a finite (possibly empty) collection of objects A$_1$, ..., A$_n$ in C, their biproduct is an object A$_1$⊕⋯⊕A$_n${\textstyle A_{1}\oplus \dots \oplus A_{n}} in C together with morphisms
* p$_k$:A$_1$⊕⋯⊕A$_n$→A$_k${\textstyle p_{k}\!:A_{1}\oplus \dots \oplus A_{n}\to A_{k}} in C (the projection morphisms)
* i$_k$:A$_k$→A$_1$⊕⋯⊕A$_n${\textstyle i_{k}\!:A_{k}\to A_{1}\oplus \dots \oplus A_{n}} (the embedding morphisms)
satisfying
* p$_k$∘i$_k$=1$_{Ak}${\textstyle p_{k}\circ i_{k}=1_{A_{k}}}, the identity morphism of $A_{k},$ and
* p$_l$∘i$_k$=0{\textstyle p_{l}\circ i_{k}=0}, the zero morphism $A_{k}\to A_{l},$ for $k\neq l,$
and such that
* (A$_1$⊕⋯⊕A$_n$, p$_k$){\textstyle \left(A_{1}\oplus \dots \oplus A_{n}, p_{k}\right)} is a product for the A$_k$, {\textstyle A_{k}, } and
* (A$_1$⊕⋯⊕A$_n$, i$_k$){\textstyle \left(A_{1}\oplus \dots \oplus A_{n}, i_{k}\right)} is a coproduct for the A$_k$.{\textstyle A_{k}.}
If C is preadditive and the first two conditions hold, then each of the last two conditions is equivalent to i$_1$∘p$_1$+⋯+i$_n$∘p$_n$=1$_{A1⊕⋯⊕An}${\textstyle i_{1}\circ p_{1}+\dots +i_{n}\circ p_{n}=1_{A_{1}\oplus \dots \oplus A_{n}}} when n > 0. An empty, or nullary, product is always a terminal object in the category, and the empty coproduct is always an initial object in the category. Thus an empty, or nullary, biproduct is always a zero object.

## Examples

In the category of abelian groups, biproducts always exist and are given by the direct sum. The zero object is the trivial group.
Similarly, biproducts exist in the category of vector spaces over a field. The biproduct is again the direct sum, and the zero object is the trivial vector space.
More generally, biproducts exist in the category of modules over a ring.
On the other hand, biproducts do not exist in the category of groups. Here, the product is the direct product, but the coproduct is the free product.
Also, biproducts do not exist in the category of sets. For, the product is given by the Cartesian product, whereas the coproduct is given by the disjoint union. This category does not have a zero object.
Block matrix algebra relies upon biproducts in categories of matrices.

## Properties

If the biproduct A⊕B{\textstyle A\oplus B} exists for all pairs of objects A and B in the category C, and C has a zero object, then all finite biproducts exist, making C both a Cartesian monoidal category and a co-Cartesian monoidal category.
If the product A$_1$×A$_2${\textstyle A_{1}\times A_{2}} and coproduct A$_1$∐A$_2${\textstyle A_{1}\coprod A_{2}} both exist for some pair of objects A$_1$, A$_2$ then there is a unique morphism f:A$_1$∐A$_2$→A$_1$×A$_2${\textstyle f:A_{1}\coprod A_{2}\to A_{1}\times A_{2}} such that
* $p_{k}\circ f\circ i_{k}=1_{A_{k}},\ (k=1,2)$
* $p_{l}\circ f\circ i_{k}=0$ for k≠l.{\textstyle k\neq l.}
It follows that the biproduct A$_1$⊕A$_2${\textstyle A_{1}\oplus A_{2}} exists if and only if f is an isomorphism.
If C is a preadditive category, then every finite product is a biproduct, and every finite coproduct is a biproduct. For example, if A$_1$×A$_2${\textstyle A_{1}\times A_{2}} exists, then there are unique morphisms i$_k$:A$_k$→A$_1$×A$_2${\textstyle i_{k}:A_{k}\to A_{1}\times A_{2}} such that
* $p_{k}\circ i_{k}=1_{A_{k}},\ (k=1,2)$
* $p_{l}\circ i_{k}=0$ for k≠l.{\textstyle k\neq l.}
To see that A$_1$×A$_2${\textstyle A_{1}\times A_{2}} is now also a coproduct, and hence a biproduct, suppose we have morphisms f$_k$:A$_k$→X, k=1, 2{\textstyle f_{k}:A_{k}\to X, \ k=1, 2} for some object X{\textstyle X}. Define f:=f$_1$∘p$_1$+f$_2$∘p$_2$.{\textstyle f:=f_{1}\circ p_{1}+f_{2}\circ p_{2}.} Then f{\textstyle f} is a morphism from A$_1$×A$_2${\textstyle A_{1}\times A_{2}} to X{\textstyle X}, and f∘i$_k$=f$_k${\textstyle f\circ i_{k}=f_{k}} for k=1, 2{\textstyle k=1, 2}.
In this case we always have
* i$_1$∘p$_1$+i$_2$∘p$_2$=1$_{A1×A2}$.{\textstyle i_{1}\circ p_{1}+i_{2}\circ p_{2}=1_{A_{1}\times A_{2}}.}
An additive category is a preadditive category in which all finite biproducts exist. In particular, biproducts always exist in abelian categories.