What are the equivalence classes of the following equivalence relation $$S=\{(x,y) \in \mathbb{R} \times \mathbb{R} \mid x - y \in \mathbb{Q} \}$$?
I know that an equivalence relation $R$ on a set $A$ induces a partition $P$ on that set. This partition $P$ contains all the equivalence classes of $A$ defined on the equivalence relation $R$.
An equivalence class is a set of that partition $P$, which contains sets that are pairwise disjoint (each element belongs exactly to just 1 set of the partition). All sets or equivalence classes of $P$ are non empty. The union of this sets of $P$ should be equal to $A$.
That said, how would you go about searching the equivalence classes for the equivalence relation $S$ that I gave above as an example?
The notation for all equivalence classes should be something like this:
$$\mathbb{R}/S = \{ \text{equivalence classes} \}$$
How do I specify the equivalence classes, how can I find them?
I found also this notation:
$$[a]/S = \{ x \in R : aSx \}$$
which would mean the equivalence class where $[a]$ is: all $x$ in the same set of $a$ (in this case $\mathbb{R}$), such that $a$ is related to $x$ with the equivalence relation $S$.
Summarising, my problem consists of how to find and discover the equivalence classes for a equivalence relation $R$ defined on a $A$? What is the notation to represent them? How can I know it's correct?