Let $R$ be a commutative ring with unity and $M$ be a finitely presented module over $R$. Then how to show that for any minimal generating set $S$, the cardinality is same?
Edit: Thanks to Martin to bring into notice about $\mathbb{Z}$ case. I guess I should restrict the statement only to the modules over polynomial rings over a field. So the modified statement:
Let $R$ be a polynomial ring over a field and $M$ be a finitely presented module over $R$. Then how to show that for any minimal generating set $S$, the cardinality is same?
This is not true. For example, $\{1\}$ and $\{2,3\}$ are minimal generating sets of the $\mathbb{Z}$-module $\mathbb{Z}$.