I have a quick question
In $\mathbb{R}$ let $$S \subset \mathbb{R}$$
If S is not open then must it be a closed set?
I think no because if it not closed means its complement is open. But how do I show this?
I have a quick question
In $\mathbb{R}$ let $$S \subset \mathbb{R}$$
If S is not open then must it be a closed set?
I think no because if it not closed means its complement is open. But how do I show this?
In $\mathbb R$ the only subsets which are open and closed at the same time are $\varnothing$ and $\mathbb R$. This is due to the fact that $\mathbb R$ is connected.
To show that, say $\varnothing \subsetneq A\subsetneq \mathbb R$, and that $A$ is both open and closed, and say $x\in A$, $y\not\in A$, and assume that $x<y$. Then defined $$ s=\sup\{t\in A : t<y\}. $$ If $t\in A$, then $(t-\varepsilon,t+\varepsilon)\subset A$, for some $\varepsilon>0$, as $A$ is open, and hence $t$ is not the supremum of the set above, a contradiction. If $t\in \mathbb R\smallsetminus A$, then as $\mathbb R\smallsetminus A$ is open, there exists an $\varepsilon>0$, such that $(t-\varepsilon,t+\varepsilon)\subset \mathbb R\smallsetminus A$. Again leads to a contradiction, as in such case $\sup\{t\in A : t<y\}\le t-\varepsilon$.