I'm being introduced to $\sigma$-algebra's and I came across the following definition:
Let $\mathcal{B}(\overline{\mathbb{R}})$ be the $\sigma$-algebra generated by the sets $\{-\infty\}$,$\{\infty\}$ and $B\in\mathcal{B}(\mathbb{R})$. This $\sigma$-algebra $\mathcal{B}(\overline{\mathbb{R}})$ will be called the Borel algebra of $\overline{\mathbb{R}}$.
This definition got me confused as I've never heard of the sets $\{-\infty\}$ and $\{\infty\}$. I always thought that infinity wasn't a number.
Question: What should one think of or imagine when trying to understand the meaning of the (singleton?) $\{\infty\}$?
I know that something similar has been asked here, but I think my question goes a little bit further into what $\{\infty\}$ actually means.
Edit: I want to give an example that explains my confusion. In school I learned that $[a,\infty] = [a,\infty)$.
Thanks in advance!