In our real analysis class we are working through 'Real and Complex Analysis' by Rudin and covered topological spaces (but not bases, subbases and other ways of generating topologies, so I can't use these in the exercise).
Let $\tau =$ the collection of sets $(a,b),[-\infty,a),(a,\infty]$ and any union of these types. Show that $\tau$ is a topology.
Here's my approach:
- $\mathbb{R} \in \tau$ since $\mathbb{R} = [-\infty,a)\cup(a,\infty]$. $\emptyset \in \tau$.
- For any $A_1,A_2,\ldots \in \tau,$ we have $\bigcup_{i \in I} A_i = \bigcup_{i \in I} (a_i,b_i) \in \tau.$
- For any $A_1,\ldots,A_n \in \tau$, we have $\bigcap_{i=1}^n (a_i,b_i) \in \tau.$
However, I feel like my approach is too naive and I'm missing some details.