Invariant basis number for a commutative ring (source code)

= Invariant basis number for a commutative ring

If $R$ is a nonzero commutative ring and $R^m\cong R^n$, reduction modulo a maximal ideal produces isomorphic vector spaces of dimensions $m$ and $n$. Hence $m=n$.