# Decomposition of a module

In abstract algebra, a decomposition of a module is a way to write a module as a direct sum of modules. A type of a decomposition is often used to define or characterize modules: for example, a semisimple module is a module that has a decomposition into simple modules. Given a ring, the types of decomposition of modules over the ring can also be used to define or characterize the ring: a ring is semisimple if and only if every module over it is a semisimple module.
An indecomposable module is a module that is not a direct sum of two nonzero submodules. Azumaya's theorem states that if a module has an decomposition into modules with local endomorphism rings, then all decompositions into indecomposable modules are equivalent to each other; a special case of this, especially in group theory, is known as the Krull–Schmidt theorem.
A special case of a decomposition of a module is a decomposition of a ring: for example, a ring is semisimple if and only if it is a direct sum (in fact a product) of matrix rings over division rings (this observation is known as the Artin–Wedderburn theorem).

## Idempotents and decompositions

To give a direct sum decomposition of a module into submodules is the same as to give orthogonal idempotents in the endomorphism ring of the module that sum up to the identity map. Indeed, if M=⨁$_{i∈I}$M$_i${\textstyle M=\bigoplus _{i\in I}M_{i}}, then, for each $i\in I$, the linear endomorphism $e_{i}:M\to M_{i}\hookrightarrow M$ given by the natural projection followed by the natural inclusion is an idempotent. They are clearly orthogonal to each other ($e_{i}e_{j}=0$ for $i\neq j$) and they sum up to the identity map:
    $1_{\operatorname {M} }=\sum _{i\in I}e_{i}$
as endomorphisms (here the summation is well-defined since it is a finite sum at each element of the module). Conversely, each set of orthogonal idempotents $\{e_{i}\}_{i\in I}$ such that only finitely many $e_{i}(x)$ are nonzero for each $x\in M$ and ∑e$_i$=1$_M$\sum e_{i}=1_{M} determine a direct sum decomposition by taking $M_{i}$ to be the images of $e_{i}$.
This fact already puts some constraints on a possible decomposition of a ring: given a ring $R$, suppose there is a decomposition
    $_{R}R=\bigoplus _{a\in A}I_{a}$
of $R$ as a left module over itself, where $I_{a}$ are left submodules; i.e., left ideals. Each endomorphism $_{R}R\to_{R}R$ can be identified with a right multiplication by an element of R; thus, $I_{a}=Re_{a}$ where $e_{a}$ are idempotents of $\operatorname {End} (_{R}R)\simeq R$. The summation of idempotent endomorphisms corresponds to the decomposition of the unity of R: 1$_R$=∑$_{a∈A}$e$_a$∈⨁$_{a∈A}$I$_a${\textstyle 1_{R}=\sum _{a\in A}e_{a}\in \bigoplus _{a\in A}I_{a}}, which is necessarily a finite sum; in particular, $A$ must be a finite set.
For example, take $R=\operatorname {M} _{n}(D)$, the ring of n-by-n matrices over a division ring D. Then $_{R}R$ is the direct sum of n copies of $D^{n}$, the columns; each column is a simple left R-submodule or, in other words, a minimal left ideal.
Let R be a ring. Suppose there is a (necessarily finite) decomposition of it as a left module over itself
    $_{R}R=R_{1}\oplus \cdots \oplus R_{n}$
into two-sided ideals $R_{i}$ of R. As above, $R_{i}=Re_{i}$ for some orthogonal idempotents $e_{i}$ such that $\textstyle {1=\sum _{1}^{n}e_{i}}$. Since $R_{i}$ is an ideal, $e_{i}R\subset R_{i}$ and so $e_{i}Re_{j}\subset R_{i}\cap R_{j}=0$ for $i\neq j$. Then, for each i,
    $e_{i}r=\sum _{j}e_{j}re_{i}=\sum _{j}e_{i}re_{j}=re_{i}.$
That is, the $e_{i}$ are in the center; i.e., they are central idempotents. Clearly, the argument can be reversed and so there is a one-to-one correspondence between the direct sum decomposition into ideals and the orthogonal central idempotents summing up to the unity 1. Also, each $R_{i}$ itself is a ring on its own right, the unity given by $e_{i}$, and, as a ring, R is the product ring $R_{1}\times \cdots \times R_{n}.$
For example, again take $R=\operatorname {M} _{n}(D)$. This ring is a simple ring; in particular, it has no nontrivial decomposition into two-sided ideals.

## Types of decomposition

There are several types of direct sum decompositions that have been studied:
* Semisimple decomposition: a direct sum of simple modules.
* Indecomposable decomposition: a direct sum of indecomposable modules.
* A decomposition with local endomorphism rings (cf. #Azumaya's theorem): a direct sum of modules whose endomorphism rings are local rings (a ring is local if for each element x, either x or 1 − x is a unit).
* Serial decomposition: a direct sum of uniserial modules (a module is uniserial if the lattice of submodules is a finite chain).
Since a simple module is indecomposable, a semisimple decomposition is an indecomposable decomposition (but not conversely). If the endomorphism ring of a module is local, then, in particular, it cannot have a nontrivial idempotent: the module is indecomposable. Thus, a decomposition with local endomorphism rings is an indecomposable decomposition.
A direct summand is said to be maximal if it admits an indecomposable complement. A decomposition $\textstyle {M=\bigoplus _{i\in I}M_{i}}$ is said to complement maximal direct summands if for each maximal direct summand L of M, there exists a subset $J\subset I$ such that
    $M=\left(\bigoplus _{j\in J}M_{j}\right)\bigoplus L.$
Two decompositions $M=\bigoplus _{i\in I}M_{i}=\bigoplus _{j\in J}N_{j}$ are said to be equivalent if there is a bijection $\varphi :I{\overset {\sim }{\to }}J$ such that for each $i\in I$, $M_{i}\simeq N_{\varphi (i)}$. If a module admits an indecomposable decomposition complementing maximal direct summands, then any two indecomposable decompositions of the module are equivalent.

## Azumaya's theorem

In the simplest form, Azumaya's theorem states: given a decomposition $M=\bigoplus _{i\in I}M_{i}$ such that the endomorphism ring of each $M_{i}$ is local (so the decomposition is indecomposable), each indecomposable decomposition of M is equivalent to this given decomposition. The more precise version of the theorem states: still given such a decomposition, if $M=N\oplus K$, then
* if nonzero, N contains an indecomposable direct summand,
* if $N$ is indecomposable, the endomorphism ring of it is local and $K$ is complemented by the given decomposition:
    M=M$_j$⊕K{\textstyle M=M_{j}\oplus K} and so $M_{j}\simeq N$ for some $j\in I$,
* for each $i\in I$, there exist direct summands $N'$ of $N$ and $K'$ of $K$ such that $M=M_{i}\oplus N'\oplus K'$.
The endomorphism ring of an indecomposable module of finite length is local (e.g., by Fitting's lemma) and thus Azumaya's theorem applies to the setup of the Krull–Schmidt theorem. Indeed, if M is a module of finite length, then, by induction on length, it has a finite indecomposable decomposition M=⨁$_{i=1}$$^n$M$_i${\textstyle M=\bigoplus _{i=1}^{n}M_{i}}, which is a decomposition with local endomorphism rings. Now, suppose we are given an indecomposable decomposition M=⨁$_{i=1}$$^m$N$_i${\textstyle M=\bigoplus _{i=1}^{m}N_{i}}. Then it must be equivalent to the first one: so $m=n$ and $M_{i}\simeq N_{\sigma (i)}$ for some permutation $\sigma$ of $\{1,\dots ,n\}$. More precisely, since $N_{1}$ is indecomposable, M=M$_{i1}$⨁(⨁$_{i=2}$$^n$N$_i$){\textstyle M=M_{i_{1}}\bigoplus (\bigoplus _{i=2}^{n}N_{i})} for some $i_{1}$. Then, since $N_{2}$ is indecomposable, M=M$_{i1}$⨁M$_{i2}$⨁(⨁$_{i=3}$$^n$N$_i$){\textstyle M=M_{i_{1}}\bigoplus M_{i_{2}}\bigoplus (\bigoplus _{i=3}^{n}N_{i})} and so on; i.e., complements to each sum ⨁$_{i=l}$$^n$N$_i${\textstyle \bigoplus _{i=l}^{n}N_{i}} can be taken to be direct sums of some $M_{i}$'s.
Another application is the following statement (which is a key step in the proof of Kaplansky's theorem on projective modules):
* Given an element $x\in N$, there exist a direct summand $H$ of $N$ and a subset $J\subset I$ such that $x\in H$ and H≃⨁$_{j∈J}$M$_j${\textstyle H\simeq \bigoplus _{j\in J}M_{j}}.
To see this, choose a finite set $F\subset I$ such that x∈⨁$_{j∈F}$M$_j${\textstyle x\in \bigoplus _{j\in F}M_{j}}. Then, writing $M=N\oplus L$, by Azumaya's theorem, $M=(\oplus _{j\in F}M_{j})\oplus N_{1}\oplus L_{1}$ with some direct summands $N_{1},L_{1}$ of $N,L$ and then, by modular law, $N=H\oplus N_{1}$ with $H=(\oplus _{j\in F}M_{j}\oplus L_{1})\cap N$. Then, since $L_{1}$ is a direct summand of $L$, we can write $L=L_{1}\oplus L_{1}'$ and then $\oplus _{j\in F}M_{j}\simeq H\oplus L_{1}'$, which implies, since F is finite, that $H\simeq \oplus _{j\in J}M_{j}$ for some J by a repeated application of Azumaya's theorem.
In the setup of Azumaya's theorem, if, in addition, each $M_{i}$ is countably generated, then there is the following refinement (due originally to Crawley–Jónsson and later to Warfield): $N$ is isomorphic to $\bigoplus _{j\in J}M_{j}$ for some subset $J\subset I$. (In a sense, this is an extension of Kaplansky's theorem and is proved by the two lemmas used in the proof of the theorem.) According to (Facchini 1998), it is not known whether the assumption "$M_{i}$ countably generated" can be dropped; i.e., this refined version is true in general.

## Decomposition of a ring

On the decomposition of a ring, the most basic but still important observation, known as the Wedderburn-Artin theorem is this: given a ring R, the following are equivalent:
* R is a semisimple ring; i.e., $_{R}R$ is a semisimple left module.
* $R\cong \prod _{i=1}^{r}\operatorname {M} _{m_{i}}(D_{i})$ for division rings $D_{1},\dots ,D_{r}$, where $\operatorname {M} _{n}(D_{i})$ denotes the ring of n-by-n matrices with entries in $D_{i}$, and the positive integers $r$, the division rings $D_{1},\dots ,D_{r}$, and the positive integers $m_{1},\dots ,m_{r}$ are determined (the latter two up to permutation) by R
* Every left module over R is semisimple.
To show 1. $\Rightarrow$ 2., first note that if $R$ is semisimple then we have an isomorphism of left $R$-modules $_R$R≅⨁$_{i=1}$$^r$I$_i$$^{⊕mi}${\textstyle_{R}R\cong \bigoplus _{i=1}^{r}I_{i}^{\oplus m_{i}}} where $I_{i}$ are mutually non-isomorphic minimal left ideals. Then, with the view that endomorphisms act from the right,
    $R\cong \operatorname {End} (_{R}R)\cong \bigoplus _{i=1}^{r}\operatorname {End} (I_{i}^{\oplus m_{i}})$
where each $\operatorname {End} (I_{i}^{\oplus m_{i}})$ can be viewed as the matrix ring over $D_{i}=\operatorname {End} (I_{i})$, which is a division ring by Schur's Lemma. The converse holds because the decomposition of 2. is equivalent to a decomposition into minimal left ideals = simple left submodules. The equivalence 1. $\Leftrightarrow$ 3. holds because every module is a quotient of a free module, and a quotient of a semisimple module is semisimple.