I've seen the following theorem
Let $R$ be a PID (principal ideal domain), If now $M$ is a free $R$-module of rank $n$ and $N\leq M$ a submodule then $N$ is a free $R$-module of rank $\leq n$.
I would like to see the dependence on the PID through a counterexample.
Can I build some counterexample with $(2,x) \trianglelefteq \mathbb{Z}[x]$?
Could anything of the following be used?
Let $R=\mathbb{Z}[x]$ and $M=\mathbb{Z}[x]$ be a $R$-module then $\{1\}$ is a basis of $M$. Because, choose a $f\in M$, then it is possible to create it through choosing $\phi = f \in R$ and considering $\phi \cdot 1 = f$. Now consider $N=(2,x)$ which is submodule of $M$ (right?)
I'm somewhat confused of the rank of $N$ now. $\{1\}$ still seems to be a generator for the module? But this generates to much?
{1} can't generate $N$ because $1 \not\in N$. No single element of $N$ generates $N$, so this counterexample should work.