I was working through The Borel-Cantelli lemma from Real Analysis problem book and ran into the following comment:
Let $\{E_k\}_{k\geq1}$ is a countable family of measurable subsets of $\mathbb{R}^d$ and that $\sum \limits_{k=1}^{\infty}m(E_k)<\infty$.
Let $$E=\{x\in \mathbb{R}^d: x\in E_k, \text{for infinitely many} \ k\}=\limsup\limits_{k\to \infty}(E_k).$$
I know the notion of $\limsup$ and $\liminf$ for sequences from $[-\infty,+\infty]$. But here $E_k$ are sets (NOT numbers!). How did they get that $$\{x\in \mathbb{R}^d: x\in E_k, \text{for infinitely many} \ k\}=\limsup\limits_{k\to \infty}(E_k)?$$
This equality seems to me quite weird.
Would be very grateful for explanation!
EDIT: Is there some essential difference between $\limsup$ of sequence of sets and reals?
For a sequence of sets $E_{1},E_{2},\ldots$ define their limit superior by $$ \limsup_{n}E_{n}=\bigcap_{n\geq1}\bigcup_{m\geq n}E_{m}. $$ Compare this to the definition of the limit superior of a sequence of numbers $x_{1},x_{2},\ldots$ $$ \limsup_{n}x_{n}=\inf_{n\geq1}\sup_{m\geq n}x_{m}. $$ The definitions above, while similar, are certainly not the same. In particular, $\limsup_{n}E_{n}$ is a set while $\limsup_{n}x_{n}$ is a number.
Let's prove that $\limsup_{n}E_{n}=E$ where $$ E=\left\{ x\colon x\in E_{n}\text{ for infinitely many }n\right\} . $$
Suppose $x$ is in $E$. By definition, there exist positive integers $n_{1}<n_{2}<\cdots$ such that $x$ is in $E_{n_{k}}$ for all $k$. Now, let $n$ be arbitrary. Since $n_n \geq n$ and $x$ is in $E_{n_n}$, it follows that $x$ is in $$\bigcup_{m\geq n} E_{m} = E_n \cup E_{n+1} \cup \cdots \cup E_{n_n} \cup E_{n_n+1} \cup \cdots$$ Since $n$ was arbitrary, $x$ is in $\limsup_{n}E_{n}$.
Can you complete the argument for the converse?