Definition. A subset of $\mathbb{R}$ is called open if it is a union of open intervals.
Example. Show that $\mathbb{Q}$ is not open.
How can I show to use the definition? Can you give a hint?
Definition. A subset of $\mathbb{R}$ is called open if it is a union of open intervals.
Example. Show that $\mathbb{Q}$ is not open.
How can I show to use the definition? Can you give a hint?
Hint: Suppose that $\mathbb Q$ is a union of open intervals; let $I$ be one of them and let $a,b \in I$. Now construct an irrational number $x$ such that $a < x < b$, so that $x \in I$, a contradiction.
Suppose that $\mathbb{Q}$ is open, so $\mathbb{Q}^c$, the set of irrational numbers, is closed. Consider the sequence $(x_{n})_{n}$ given by $x_{n} = \frac{\sqrt{2}}{n}$. Note that $x_{n} \in \mathbb{Q}^c$ for all $n$, and $x_{n} \to 0$, but $0 \notin \mathbb{Q}^c$, contradiction.