Let $\mathbb{I}$ be the set of all irrational real numbers and $\mathbb{Q}$ be the set of all rational numbers as usual. As a subspace of the Euclidean plane $\mathbb{R}^2$, is the set $\mathbb{Q} \times \mathbb{Q} \cup \mathbb{I} \times \mathbb{I}$ disconnected?
The story is the following.
I was making a typical undergraduate level topology problem which concerns connectedness. The question which I concerned is the following. As a subspace of the Euclidean plane $\mathbb{R}^2$, is the set $\mathbb{Q} \times \mathbb{I} \cup \mathbb{I} \times \mathbb{Q}$ connected? What about the set $\mathbb{Q} \times \mathbb{Q} \cup \mathbb{I} \times \mathbb{I}$ ?
The former is relatively well known. For second, the solution which I had in mind turned out to be wrong. I guess lines of the form $y=qx$ where $q$ is some positive rationals will connect the set which is apparently wrong. Now I have no solution. Please give some help to resolve this problem.
The set is connected.
Suppose that the set is disconnected by disjoint open sets $U$ and $V$. So, we assume that $\mathbb{Q}\times\mathbb{Q} \cup \mathbb{I}\times\mathbb{I}\subseteq U\cup V$ and $U\cap V=\phi$.
Find open balls $B_U \subseteq U$ and $B_V\subseteq V$. Then we can find a line of the form $y=q_1x + q_2$ with $q_1\in \mathbb{Q}-\{0\}$, $q_2\in\mathbb{Q}$ such that the line goes through both balls. Note that this line takes rational to rational, irrational to irrational. Thus, $\{(x,y)|y=q_1x+q_2\}\subseteq\mathbb{Q}\times\mathbb{Q} \cup \mathbb{I}\times\mathbb{I}$.
However, since $U$ and $V$ disconnects the set $\mathbb{Q}\times\mathbb{Q} \cup \mathbb{I}\times\mathbb{I}$, so we can find a point on the line that does not belong to any of $U$ or $V$. This is a contradiction.