Let’s say $f$ maps $R$-module $A$ to $B$, and define $f$ by $f(x) = h(m)$, say, for $x$ in $A$, and $h(m)$ in $B$. The way I know to show this is well-defined is by picking $x$ and $y$ in $A$, where $x = y$, and showing that $f(x) = f(y)$. However, I saw in a snake-lemma proof that the author simply proved the function is well-defined by picking $x$ in $A$, and showing that $f(x)$ is in $B$. So, I want to know if these approaches mean the same? I would be grateful if you could help me shed light on this.
Note: I think if the approaches mean the same, it is because $x$ is arbitrary. However, I am not totally convinced.
Thanks in advance.