Let $S = \mathbb{Z}^+$. Define $*$ on $\mathbb{Z}$ by $a*b = a+b$. Show $*$ is a binary operation on $\mathbb{Z}^+$.
In our course on Abstract Algebra our book says the following in it.
$*$ is a binary operation on $\mathbb{Z}^+$. Because
- $*$ is well defined: if $(a, b) = (c, d)$, then $a = c$ and $b=d$. Hence we have $$*(a, b)= a+b = c+d = *(c, d)$$
- $\mathbb{Z}^+$ is closed under $*$. If $a, b \in \mathbb{Z}^+$, then $a*b = a+b \in \mathbb{Z}^+$
The above seems wrong to me. I see two errors. Firstly if $*$ is a well-defined function then there is no need to show that $\mathbb{Z}^+$ is closed under $*$ and secondly they haven't actually shown well definedness of $*$, since all they've done is just take two equal elements in $\mathbb{Z}^+ \times \mathbb{Z}^+$ and shown their outputs are equal.
Now the way I see it, all I have to show is that $* : \mathbb{Z}^+ \times \mathbb{Z}^+ \to \mathbb{Z}^+$ defined by $$*(a, b) = a*b = a+b$$ is actually a well-defined function. To do this (in more familiar notation compared to the answer given here: https://math.stackexchange.com/a/313182/266135) I need to show the following
- $*(a, b) = a+b \in \mathbb{Z}^+$ for all $(a, b) \in \mathbb{Z}^+ \times \mathbb{Z}^+$
- $\forall (x, y) \in \mathbb{Z}^+ \times \mathbb{Z}^+$, there exists a $z \in \mathbb{Z}^+$ such that $*(x, y) = x+y =z$
- If $*(a, b) =c$ and $*(a, b)=d$ then $c=d$.
Now 1. above is satisfied easily since we know that by properties of the integers that the addition of any two positive integers is again a positive integer. Since 1. is satisfied 2. is redudant and there's nothing to prove (please correct me if I am wrong on this). So all that's left to prove is 3.
To prove 3. all I'd need to do is suppose that $*(a, b) = c$ and $*(a, b) = d$, then I'd have $a+b=c$ and $a+b=d$, but then trivially I'd have $c=d$ (because if you add the same two positive integers $a, b$ together then you get the same unique result $a+b$ always).
Am I correct in everything I've said?