coproduct
A coproduct in category theory is a general construction that captures the idea of a “sum” of objects. Given a family of objects {A_i} in a category, a coproduct is an object ⨿A_i together with morphisms i_i: A_i → ⨿A_i for each i, such that for any object X and any family of morphisms f_i: A_i → X, there exists a unique morphism u: ⨿A_i → X with f_i = u ∘ i_i for all i. This universal property is dual to that of a product, where arrows go in the opposite direction.
Examples help illustrate the concept. In the category Set, the coproduct of a family of sets is
Coproducts are examples of colimits: they are the colimit of a discrete diagram. They provide a flexible