Let $S$ be an abelian semigroup generated by a nonempty set $X$. Suppose $\sim$ is an equivalence relation on $S$ satisfying the condition:
"If $x \sim x'$ and $y \sim y'$ then $x+y \sim x'+y'$ for all $x, x', y, y' \in X$."
Does it follow that $\sim~$ induces a semigroup congruence on S?
To prove this, I thought to define the height of an element s in S as the minimal number of generators it takes to express s. We could then induct on heights somehow, but I'm not sure how to set this up.
Any input would be appreciated.