[Math] X and Y are infinite countable sets, prove that X × Y is infinite and countable

elementary-set-theory

This is a problem on my maths homework where I don't really know where to start, any help would be appreciated 🙂

For any sets X and Y let
$X\times Y := \left\{(x, y) : x \in X\text{ and} \ y ∈ Y \right\}$
denote the set of all ordered pairs (x, y) with x ∈ X and y ∈ Y . (For example, R × R = R^2)
Show that, if X and Y are countable infinite sets, then also X × Y is countable. (Hint. N →
N × N → X × Y )

Best Answer

Since $X$ and $Y$ are countably infinite sets, their elements can be listed such that $$X=\{x_1,x_2,x_3,x_4, \cdots\}$$ and $$Y=\{y_1,y_2,y_3,y_4, \cdots\}$$

We can then display the elements of $X \times Y$ as a two dimensional array: $$ \begin{array}{c|lcr} &\quad\text{$y_1$}&\text{$y_2$}&\text{$y_3$}&\text{$y_4$}&\text{$y_n$}\\ \hline x_1 & (x_1,y_1) \color{red}\to & (x_1,y_2) & (x_1,y_3) & (x_1,y_4) & \cdots\quad(x_1,y_n) & \cdots & \cdots & \cdots & \cdots & \cdots & \\ x_2 & (x_2,y_1) & (x_2,y_2) & (x_2,y_3) & (x_2,y_4) & \cdots\quad(x_2,y_n) &\cdots & \cdots & \cdots & \cdots & \cdots & \\ x_3 & (x_3,y_1) & (x_3,y_2) & (x_3,y_3) & (x_3,y_4) & \cdots\quad(x_3,y_n) &\cdots & \cdots & \cdots & \cdots & \cdots & \\ x_4 & (x_4,y_1) & (x_4,y_2) & (x_4,y_3) & (x_4,y_4) & \cdots\quad(x_4,y_n)&\cdots & \cdots & \cdots & \cdots & \cdots &\\ \\ x_n & (x_n,y_1) & (x_n,y_2) & (x_n,y_3) & (x_n,y_4) & \cdots\quad(x_n,y_n)&\cdots & \cdots & \cdots & \cdots & \cdots &\\ \\ \end{array} $$

This is known as proof by list and after the first right $\color{red}{\mathrm{red}}$ arrow to $(x_1,y_2)$ you go diagonally to $(x_2,y_1)$ then down to $(x_3,y_1)$ then diagonally to $(x_2,y_2)$ and diagonally to $(x_1,y_3)$ then down to $(x_2,y_3)$ and repeat the pattern in this manner. By continuing this pattern you have shown that $X \times Y$ is countable.

Apologies, for not being able to draw the arrows in here, as there is no way I can format the diagonal ones in, and annoyingly when we prove this on paper the arrows are crucial for a proof by list using a $2D$ array.

Related Question