2

Let $U = \mathbb{R}\setminus \mathbb{Z}$. Is $U$ open in $\mathbb{R}$?

My attempt: $U = \mathbb{R}\setminus \mathbb{Z}$ is open in $\mathbb{R}$: Let $x\in U$. Choose $r:=\frac{1}{2}(\text{min}\{x-\lfloor x \rfloor, (\lfloor x \rfloor+1) -x\})$, so $r>0$. Therefore for each $x\in U$ there exist $r>0$ such that $(x-r, x+r)\subset U$. Hence $\mathbb{R}\setminus \mathbb{Z}$ is open in $\mathbb{R}$.

Is my proof correct?

Thomas Andrews
  • 177,126
user1234
  • 286

1 Answers1

4

Another approach: $\mathbb{R}\setminus\mathbb{Z}=\cup_{n=-\infty}^{\infty}(n,n+1)=\cdots \cup(-2,-1) \cup (-1,0)\cup (0,1)\cup (1,2)\cup (2,3)\cdots$, is the countable union of open sets, thus is open