In commutative algebra, for a module $M$ over a (possibly unital) commutative ring $R$, when is the number $\mu_R(M)$ well-defined?
For example, if $R$ is a local ring, then (by Nakayama Lemma and elementary linear algebra), any minimal generating set has the same number of elements.
-Rashid