Proof (Borel-Cantelli lemma)

$A$ is an event

"$\omega\in A_n$ infinitely often" means that for all $n\in\N$, there exists $n\geq N$ where $\omega\in A_n$. Converting this into set, $$ A = \bigcap_N \bigcup_{n\geq N} A_n, $$ which only makes countable set operation so $A$ is an event.

First lemma

Suppose $\sum_{n=1}^\infty \prob(A_n) = L$. $$\begin{align*} \prob(A) &= \prob\bigg(\bigcap_N \bigcup_{n\geq N} A_n\bigg) \\ &\leq \prob\bigg(\bigcup_{n\geq k} A_n\bigg) &&\text{for any }k\in\N \\ &\leq \sum_{n=k}^\infty\prob(A_n) &&\text{union bound} \\ &= L-\sum_{n=1}^{k-1} \prob(A_n) \\ &\to L-L=0 \end{align*}$$ so $\prob(A) = 0$.

Second lemma

First we will show $\prob(\bigcup_{n\geq N} A_n) = 1$. $$\begin{align*} \prob\bigg(\for\bigcup nNk A_n\bigg) &= 1-\prob\bigg(\for\bigcap nNk A_n^\complement\bigg) \\ &= 1-\for\prod nNk\prob(A_n^\complement) &&\text{independence} \\ &= 1-\for\prod nNk(1-\prob(A_n)) \\ &\geq 1-\for\prod nNk e^{\prob(A_n)} &&e^x \geq 1+x \\ &=1-e^{\fsum nNk \prob(A_n)} \\ &\to 1 &&\text{as }k\to\infty \end{align*}$$ as required.

Then it suffices to show that $\prob(\bigcap_N C_N)=1$ if $\prob(C_N)=1$. $$\begin{align*} \prob\bigg(\bigcap_N C_N\bigg) &= 1 - \prob\bigg(\bigcup_N C_N^\complement\bigg) \\ &\geq 1-\sum_N \prob(C_N^\complement) &&\text{union bound} \\ &= 1. \end{align*}$$