Proposition (algebraic invariance of dimensions)

Let $R$ be a non-zero ring. If $R^n$ $\isom R^m$ as $R$-modules, then $n=m$.

Proof