On the set $\mathbb N\times \mathbb N$ define $(m,n)\sim(k,l)$ if $m+l=n+k$
- Show that $\sim$ is equivalence relation on $\mathbb N\times \mathbb N$
- Draw a sketch of $\mathbb N\times \mathbb N$ that shows several equivalence classes.
My book does not even explain how to do this kind of problems. I understand that we need to show that it's symmetric, reflexive, and transitive. However, I usually do it with a matrix. How can I put the above problem into matrix form and then draw diagrams from it?
addendum:
This answer is only useful if $\mathbb Z$ (and subtraction) is allready at your disposal. It seems however that you are busy here with constructing $\mathbb Z$. If that is the case then have a look at the direct proof.
Note that $(m,n)\sim(k,l)\iff f(m,n)=f(k,l)$ where $f:\mathbb N\times\mathbb N\rightarrow\mathbb Z$ is defined by $f(m,n)=m-n$. That makes it easy to prove that it is an equivalence relation:
1) $f(m,n)=f(m,n)$ reflexive
2) $f(m,n)=f(m',n')\Rightarrow f(m,n)=f(m',n')$ symmetric
3) $f(m,n)=f(m',n')\wedge f(m',n')=f(m'',n'')\Rightarrow f(m,n)=f(m'',n'')$ transitive
In general if $f:X\rightarrow Y$ is a function then $\sim$ defined by $x\sim x'\iff f(x)=f(x')$ is always an equivalence relation on $X$.
Two (trivial) equivalence relations on any set $X$ are $\{(x,x)\mid x\in X\}$ and $X\times X$.
addendum
Here a direct proof
For convenience I start with $(m,n)\sim(k,l)\iff m+l=k+n$ (instead of $n+k$). Then:
$$m+n=m+n$$ for each pair $(m,n)$ is exactly the statement that $\sim$ is reflexive.
$$m+n=k+l\Rightarrow k+l=m+n$$ deals with symmetry.
$$m+n=k+n\wedge k+q=p+l\Rightarrow m+l+k+q=p+l+k+n\Rightarrow m+q=p+n$$ deals with transitivity.