Direct Sums and Products
Let {Mi|i∈I} be a family of R-modules. Define the direct product by
∏i∈IMi={(xi)i∈I|xi∈Mi}
The direct product inherits an R-module structure by defining the operations coordinatewise.
Direct sums of modules ⊕i∈IMi are defined in the same way except only finitely many of the coordinates of the tuples are nonzero. Thus if I is finite direct sums and products are the same.
We say M is the internal direct sum of the family if M=∑Mi and Mj∩(∑i≠jMi)={0}.