# Give examples of clopen (open and closed) sets

I was wondering if someone could help with the following problems:

(a) Give an example of a topological space $(X,\mathcal{T})$ and a subset $A$ of $X$ which is both open and closed.

(b) Give another example where $A$ is neither empty nor the whole of $X$.

(c) Give an example of a topological space $(X,\mathcal{T})$ and a subset $A$ of $X$ which is neither open nor closed.

(a) Let $X$ be any set with any topology $\mathcal{T}$, let $A=\emptyset$.

(b) Let $X=(1,2)\cup(3,4)$, $A=(1,2)$ and $\mathcal{T}$ be the relative topology inherited from the usual topology on $\mathbb{R}$.

(c) Let $X=\mathbb{R}$ with the usual metric and let $U_{n}=(0,1+\frac{1}{n})$.Then take $A=\displaystyle\bigcap_{n=1}^{\infty} U_{n}=(0,1]$.

• Your answers are all correct. – user99914 Sep 14 '15 at 2:53
• (b) discrete topology (c) consider a ball whose upper boundary is closed and lower boundary is open. And Oh there is an answer.. – Rubertos Sep 14 '15 at 2:53
• As @John said, your answers are all correct. You’re working harder than necessary for (c), however, as you could simply set $A=(0,1]$ directly. – Brian M. Scott Sep 14 '15 at 2:54

To prove that $A = (0,1]$ is not open, it suffices to show that $1$ has no open neighborhood in $A$. To prove that $A$ is closed, it suffices to show that $0$ has no open neighborhood outside of $A$.