I apologize if this is a super easy question, but there is something fishy about my proof.
I was to show:
$$(p,q) \sim (m,n) \wedge (m,n) \sim (a,b) \implies (p,q) \sim (a,b) $$
under the equivalences relation of rational numbers (i.e. $(a,b) \sim (c,d) \equiv a,b,c,d \in \mathbb{Z}, ad = bc \wedge b,d \neq 0$).
So what I have is that I know that the LHS ($(p,q) \sim (m,n) \wedge (m,n) \sim (a,b)$) of what I want to show means I know by assumption that the following is true:
- $pn=mq$, $q,n \neq 0$
- $mb=an$, $n,b \neq 0$ and we want to show:
- $pb = aq$, $n,b \neq 0$
Its pretty obvious to show $n,b \neq 0$ but I feel I am doing something wrong when trying to apply the cancellation law.
I have $pn=mq$ is true and multiply that by $a$ and $b$ to get:
$$anpb = mbaq$$
since we know $mb=an$ we can use the cancellation law to get:
$$(an)pb = (mb)aq \rightarrow pb = aq$$
Just as I required. However, I don't think this proof is correct, because no where in the assumption did we ever say that $a \neq 0$, so $a$ might not have a multiplicative inverse in the group of integers. Is this proof correct or do I have to handle the case where the "numerators" might be zero separately?