I'm working on a problem that asks the following:
Let $Y$ denote the subset of all points in the plane $\mathbb{R}^2$ both of whose coordinates are rational numbers and let $X$ denote the compliment of $Y$ in the plane. $S$ inherits the subspace topology from the standard topology on the plane; is $X$ connected?
They provide a hint: Choose any $x \in X$, and let $C$ denote the union of all half rays in $\mathbb{R}^2$ which begin a $x$ and are completely contained in $X$. Show that the closure of $C$ in $X$ is equal to $X$.
I have two constradictory arguements I can't distinguish between:
I could use the arguement presented here: Connectedness of points with both rational or irrational coordinates in the plane? to show $\mathbb{Q} \times \mathbb{Q}$ is connected. Then so is $\overline{\mathbb{Q} \times \mathbb{Q}} = \mathbb{R}^2$. $\mathbb{R}^2 = (\mathbb{Q} \times \mathbb{Q}) \bigcup (\mathbb{R-Q} \times \mathbb{R-Q})$ is a separation. But no separation can exist because $\mathbb{R}^2$ is connected so $(\mathbb{R-Q} \times \mathbb{R-Q})$ will be connected.
Alternatively I could produce a separation between any two elements $(p_1,p_2),(p_3,p_4) \in \mathbb{R-Q} \times \mathbb{R-Q}$: between $p_1$ and $p_3$, choose a rational $q_1$ and between $p_2$ and $p_4$, choose a rational $q_2$. The vertical and horizontal lines passing through $(q_1,q_2)$ will contain all rational pts (so it won't hit $(\mathbb{R-Q} \times \mathbb{R-Q})$) and the half plane $A=\{(m,n)|m,n \in \mathbb{Q}, m > q_1, n>q_2\}$ separates our points from the rest of $\mathbb{R-Q} \times \mathbb{R-Q}$, making it completely disconnected.
I want to understand the hint. Part of the confusion is that I don't understand what a "ray" in $\mathbb{R}^2$ is. Is this a ray in each basis element (so an open half plane)?