Visualise the set $\mathbb{Z}\times \mathbb{Z}$ as points on the complex plane, and take origin as the center of a circle of radius $r$. With $r$ going from $0$ to $\infty$ - as you encounter points on the circle, write them down in counterclockwise order. This way you have a bijective mapping, thus $\mathbb{Z}\times \mathbb{Z}$ is countable.
This proof about the countability of $\mathbb{Z}\times \mathbb{Z}$ doesn't look rigorous enough to me. It was proposed by one of my colleagues. The proposal is to write down elements of $Z[i]$ as we encounter them in some sort of a spiral order.
I need help making this more rigorous.
Is there an explicit bijection for this? It'd be great if someone could help me construct the same.
Perhaps we must show that every such circle has only a countable number of such points and that only countably many such circles, i.e. values of $r$ matter. Thanks!
I came up with this - does it look fine enough?
Consider $z = x+iy \in \mathbb{Z}[i]$, with $x^2 + y^2 = r^2$. As $r^2$ goes from zero to $\infty$, we cover the entire complex plane. If $x,y\in\mathbb{Z}$ then $r^2 \in \mathbb{Z}$. Define $P = \{ r^2: r\in \mathbb{R}^{\geq 0}, r^2 \in\mathbb{Z}\}$. Since $\mathbb{Z}$ is countable, so is $P$. Now, for some fixed $r_1$such that $r_1^2\in P$, think about $x^2 + y^2 = r_1^2$. This gives $|x| \le r_1, |y| \le r_1$. Since $r_1$ is finite, the set of values $(x,y) $ such that $x^2 + y^2 = r_1^2$ holds, is finite. Knowing that a countable union of countable sets is countable, we see that the set $\mathbb{Z}[i]$ is countable. As a result, $\mathbb{Z} \times \mathbb{Z}$ is also countable.