Statement: every nonempy open subset $U\subset \mathbb{R}$ is an (at most countable) disjoint union of open intervals.
The proof came from the course notes (page 8) of a measure theory course at the link below
https://people.clas.ufl.edu/pascoej/files/6616notes01dec2017.pdf
Proof
First, verify that if $I$ and $J$ are intervals and $I\cap J\neq \emptyset$, then $I\cup J$ is an interval.
Given $x\in U$, let
$\alpha_x=\sup\{a:[x,a)\subset U\}$,
$\beta_x=\inf\{b:(b,x]\subset U\}$,
$I_x=(\beta_x,\alpha_x)$.
Verify that, for $x,y\in U$ either $I_x=I_y$ or $I_x\cap I_y=\emptyset$.
Indeed $x\sim y$ if $I_x=I_y$ is an equivalence relation on $U$. Hence, $U=\bigcup_{x\in U} I_x$ expresses $U$ as a disjoint union of nonempty intervals, say $U=\bigcup_{p\in P}I_p$ where $P$ is an index set and the $I_p$ are nonempty intervals. For each $q\in \mathbb{Q}\cap U$ there exists a unique $p_q$ such that $q\in I_{p_q}$. On the other hand, for each $p\in P$ there is a $q\in \mathbb{Q}\cap U$ such that $q\in I_p$. Thus, the mapping from $\mathbb{Q}\cap U$ to $P$ defined by $q\rightarrow p_q$ is onto. It follows that $P$ is at most countable.
Questions
I want to check my understanding of the two verifications that the author asked the reader to do. Here are my attempts.
- Verify that if $I$ and $J$ are intervals and $I\cap J\neq \emptyset$, then $I\cup J$ is an interval.
Recall that, for a subset $I$ of the real numbers to be an interval it must satisfy that $$ (\forall a,b \in I)(a<c<b\implies c\in I).$$ If $I\cap J\neq \emptyset$, then there exists $t,a_I,b_I,a_J,b_J$ such that $$ a_I<t<b_I\text{ and }a_J<t<b_J $$ where $a_I,b_I,t$ are all in $I$ and $a_J,b_J,t$ are all in $J$. We will keep such $t$ for later use.
For all $a,b\in I\cup J$, take any $y$ satisfying $a<y<b$, then either $y<t$ or $y>t$. If $y<t$, then $y\in (a_I,t)$. So $y\in I$. If $y>t$, then $y\in (t,b_J)$. So $y\in J$. Therefore, $y\in I\cup J$ and $I\cup J$ is an interval.
- Verify that, for $x,y\in U$ either $I_x=I_y$ or $I_x\cap I_y=\emptyset$.
I will prove that $I_x\cap I_y\neq\emptyset$, then $I_x=I_y$.
If $I_x\cap I_y\neq\emptyset$, then $I_x\cup I_y$ is an interval by we have just shown. Then $$ I_x\cup I_y= \Big(\max(\beta_x,\beta_y),\ \min(\alpha_x,\alpha_y)\Big) $$ By construction, $I_x=I_x\cup I_y =I_y$.
I only know about the basic topology and author clearly tried to avoid the notion of connected set. It would be great if someone could improve my proofs and help me with the terminology. For example, the extended interval will mess up the use of max and min operators.