Theorem 211 (Structure Theorem for Finitely Generated Modules) Let M be a finitely generated R-module. Then there exists a non-negative integer r, called the (torsion-free) rank of M and non-zero, non-unit elements $d_i$ $∈$ R, known as the invariant factors such that $d_1|d_2|d_3| · · · |d_k$ and such that $M ∼= R^r ⊕\frac{R}{<d_1>}⊕\frac{R}{<d_2>}⊕ · · · ⊕\frac{R}{<d_k>}$ . The rank r is unique and $d_1, . . . , d_k$ unique up to multiplication by units.
I am kind of OK with this. Then the lecture notes give the examples:
(a) $Z_6 ⊕ Z_{12} ⊕ Z_{16} ∼= Z_2 ⊕ Z_3 ⊕ Z_3 ⊕ Z_4 ⊕ Z_{16} ∼= Z_2 ⊕ Z_{12} ⊕ Z_{48}.$
(b) $\frac{Q[x]}{(x^2 − 4)(x^3 − 8)}$ . This is already cyclic (it is generated by $1$) and so is in the required form.
(c) $\frac{Z[i]}{ 2} ⊕ \frac{Z[i]}{ 4} ⊕ \frac{Z[i]}{ 5} ∼= \frac{Z[i]}{ 2} ⊕ \frac{Z[i]}{ 20}$
I am ok with deriving those. The lecture notes then say that all of the above three modules all have zero rank which I honestly can't see why holds. Can anyone talk me though the explanation of this and generally help me understand better the Structure Theorem, Smith Form and all the definitions such as rank, torsion etc. Though I know the statements I don't feel comfortable with them.