If $M$ is a free $R$-module of finite rank $n$ and $R$ is a PID, do proper submodules of $M$ have strictly less rank than $M$?
I know that in this case, every submodule of $M$ is free and has finite rank $m\leq n$, but can we guarantee that if the submodule is proper, its rank will be strictly less than the rank of $M$? In other words,
does the rank of a submodule $N$ of $M$ equals $n$ if and only if $N=M$?
I think this is not necessarily true, but I can't find a counter-example. Some help would be very appreciated. Thanks!
Both $2\mathbb{Z}$ and $\mathbb{Z}$ are free rank $1$ $\mathbb{Z}$-modules, with $2\mathbb{Z}\subsetneq \mathbb{Z}$.