When we say set of rationals $\mathbb{Q}$, which of the following does it refer to?
$$\left\{\frac{p}{q}~|~p,q\in\mathbb{Z},q\neq 0\right\}$$
or
$$\left\{\left[\frac{p}{q}\right]~|~p,q\in\mathbb{Z},q\neq 0\right\}$$
where $[a]$ denote the equivalence class under the equivalence relation: $$\frac{p}{q}\sim \frac{r}{s}\qquad \text{if}~ps=qr.$$
In other words, the second set is just the fractions with $\gcd(p,q)=1$.
The equivalent question can be: are $\frac{1}{2}$ and $\frac{2}{4}$ distinct rational numbers?
While showing $\mathbb{Q}$ is countable, using snake diagram arguments, they use first set, i.e. all expressions of the form $\frac{p}{q}$. And then an enumeration of these expressions is done. This is acceptable proof of countability if our definition is the first set. However if we take the second definition, then I feel these proofs (of countability) are incomplete: one also needs to show that
- Each of the equivalence class $\left[\frac{p}{q}\right]$ is countable. -- follows as one can give a one-to-one correspondence with $\mathbb{Z}$.
- Countable union of countable sets us countable -- a proof for this is similar to the snake diagram argument.
$\Bbb Q$ is indeed the equivalence classes of fractions, where two fractions are equivalent iff they can both be expanded / simplified to the same fraction. So yes, $\frac12$ and $\frac24$, while distinct fractions, are considered the same rational number.