Is $S:=\{x\in\mathbb{Q}:x<\sqrt{2}\}$ closed in $\mathbb{Q}$ when endowed with the inherited topology from $\mathbb{R}$?
One argument for openness is that $S=\mathbb{Q}\cap (-\infty,\sqrt{2})$, which by definition of an open set in subspace topology, would force $S$ to be open.
On the other hand, $\mathbb{Q}\backslash S=\{x\in\mathbb{Q}:x\geq \sqrt{2}\}=\{x\in\mathbb{Q}:x>\sqrt{2}\}$, which by the preceding argument, should be open; ergo, $S$ is closed.
Which argument is correct? If both, $S$ is both open and closed which is unexpected. The context of this question is the determination of whether $\mathbb{Q}$ is connected as a topological space.