I encounter the following problem when doing a problem on measure theory.
Every open subset of $\mathbb{R} = (-\infty, \infty)$, the real line, is a countable union of open intervals. Use this fact to show that $\mathcal{B}(\mathbb{R})$ is generated by the collection of all open intervals.
Certainly, the complement of (a, b) is not an open interval in the normal definition of interval since it is $(-\infty, a] \cup [b, \infty)$. What am I misunderstanding here? Is this considered an interval in measure theory?
This is not really an answer to your question, but what they mean is that - if every open interval is an element of a $\sigma$-algebra $\mathcal A$ - then automatically every countable union of open intervals will be an element of $\mathcal A$, since a $\sigma$-algebra is closed under countable unions. In case of $\mathbb R$ that means that every open set will be an element of $\mathcal A$ simply because every open set in $\mathbb R$ is a countable union of open intervals.
Consequently $\mathcal B=\sigma(\tau)\subseteq\mathcal A$.