Proving that $$1_{\limsup A_n}=\limsup1_{A_n}$$
$$1_{\limsup A_n}= \begin{cases}1, x \in \bigcap_{n=1}^{+ \infty}\bigcup_{k=n}^{+\infty}A_n \\ 0, x \notin \ldots\end{cases}$$
or that $x$ is in infinitely many $A_n$. And also:
$$\limsup1_{A_n}=\inf_{n\geq1}\{\sup_{k \geq n}\{1_{A_n}\}\}$$ this function seems to be $1$ when $x\in A_n$ (just one set). I clearly am not understanding this $\inf\{\sup\{\ldots\}\}$ definition correctly. Can someone enlighten this for me. I have a test very soon.