A construction extensively used in theories of mathematical structures which form categories similar to an Abelian category. In the non-Abelian case the direct sum is usually called the discrete direct product. Let $ \mathfrak A $
be a class of single-sorted algebraic systems which contain the one-element (zero) subsystems. The direct sum, or (discrete) direct product, of systems $ X _ {i} $,
$ i \in I $,
in $ \mathfrak A $
is the subsystem of the direct product $ X = \prod _ {i \in I } X _ {i} $
consisting of those functions $ f : I \rightarrow X $
for which all values, except for a finite number, belong to the corresponding zero subsystem. A direct sum is denoted by one of the following symbols:
$$ \prod _ {i \in I } {} ^ \otimes X _ {i} ,\ \ \prod _ {i \in I } {} ^ \oplus X _ {i} ,\ \ \sum _ {i \in I } X _ {i} ,\ \ \oplus _ {i \in I } X _ {i} $$
For a finite number of terms one also uses the notation:
$$ X _ {1} \dot{+} \dots \dot{+} X _ {n} . $$
The coincidence of the direct sum and the direct product in the case of a finite number of terms follows immediately from the definitions.
For each term of a direct sum $ X = \prod _ {i \in I } X _ {i} $ there exists a canonical imbedding $ q _ {i} : X _ {i} \rightarrow X $ that assigns to an element $ x \in X _ {i} $ the function $ q _ {i} ( x) : I \rightarrow X $, where $ q _ {i} ( x) $ takes the value $ x $ at the argument $ i $ and vanishes elsewhere. Hence it can be said that a direct sum contains its terms. In the case of an $ \Omega $- group (in particular, for groups, Abelian groups, vector spaces, and rings) one can give an "intrinsic" characterization of a direct sum. An $ \Omega $- group $ G $ is the direct sum of a family of $ \Omega $- subgroups $ G _ {i} $, $ i \in I $, if: a) $ G $ is generated by the $ G _ {i} $, $ i \in I $; b) each $ G _ {i} $ is an ideal in $ G $; and c) the intersection of $ G _ {i} $ with the $ \Omega $- subgroup generated by the remaining ideals is the trivial subgroup, for each $ i $. Cf. also Multi-operator group.
Every vector space is a direct sum of one-dimensional subspaces. Every free Abelian group is a direct sum of infinite cyclic groups. Every finite Abelian group is a direct sum of cyclic groups of prime-power order. Every semi-simple associative ring with a unit element and satisfying the minimum condition for ideals is the direct sum of a finite number of complete rings of linear transformations of appropriate finite-dimensional vector spaces.
In the theories of groups, lattices and categories, the isomorphism problem for direct decompositions has been extensively developed. Its origin is in the Remak–Schmidt theorem on central isomorphism of direct decompositions of groups having a principal series (cf. Krull–Remak–Schmidt theorem).
In category theory, the concept dual to that of a product, i.e. that of a coproduct, is sometimes called the direct sum.
As already noted the direct sum is also called the discrete direct product (cf. Direct product).
In category theory the direct sum or coproduct is defined by a universal property: Given objects $ X _ {i} $, $ i \in I $, in a category $ \mathfrak C $. The direct sum $ Y = \oplus _ {i} X _ {i} $ is an object of $ \mathfrak C $ together with morphisms $ \alpha _ {i} : X _ {i} \rightarrow Y $ such that for each object $ Z $ of $ \mathfrak C $ and family of morphisms $ \beta _ {i} : X _ {i} \rightarrow Z $ there is a unique morphism $ \gamma : Y \rightarrow Z $ such that $ \gamma \alpha _ {i} = \beta _ {i} $ for all $ i \in I $. In many categories, e.g. those of Abelian groups and modules over a ring, the categorical direct sum is given by the construction outlined above.
The direct sum is a special case of the restricted direct product.