I saw an example in a book where $X_n \sim^{iid} Bern(\frac{1}{n})$. The book claims that since $\sum_{n=1}^{\infty}P(\{X_n = 1\}) = \infty$, the event $\{X_n = 1\}$ happens infinitely often with probability 1 (by Borel-Cantelli). Why can't $X_n \overset{a.s.}\to 1$? It seems very obvious to me but I cannot get it to work by the book's definition of almost sure convergence, that $X_n \overset{a.s.}\to X$ means:
$$ P(\{\omega \in \Omega: \lim_{n \to \infty}X_n(\omega) = X(\omega)\})=1. $$
Is there a way to show this using this very definition of almost sure convergence? Thanks!
Assuming the $X_n$ are independent, then it follows from the second Borel-Cantelli lemma that $$\mathbb P\left(\limsup_{n\to\infty} \{X_n=1\}\right)=1. $$ (See for example here for a proof of the Borel-Canelli lemmas.) However, $$\mathbb P\left(\liminf_{n\to\infty}\{X_n=1\} \right) = \mathbb P\left(\bigcup_{n=1}^\infty\bigcap_{k=n}^\infty \{X_k=1\}\right)=0, $$ since for any $n$, $$\mathbb P\left(\bigcap_{k=n}^\infty \{X_k=1\} \right)=\prod_{k=n}^\infty\mathbb P(X_k=1)=\prod_{k=n}^\infty\frac1k=0 $$ and hence $$P\left(\bigcup_{n=1}^\infty\bigcap_{k=n}^\infty \{X_k=1\}\right)\leqslant \sum_{n=1}^\infty\mathbb P\left(\bigcap_{k=n}^\infty \{X_k=1\}\right)=0. $$ Since $$\mathbb P\left(\liminf_{n\to\infty} \{X_n=1\}\right) \ne \mathbb P\left(\limsup_{n\to\infty}\{X_n=1\}\right), $$ it is clear that $$\mathbb P\left(\lim_{n\to\infty}\{X_n=1\}\right) $$ does not exist, and so $X_n$ does not converge almost surely to $1$.
By similar computations we find that $$\mathbb P\left(\liminf_{n\to\infty}\{X_n=0\}\right)=0<1=P\left(\limsup_{n\to\infty}\{X_n=0\}\right), $$
so $X_n$ does not converge almost surely to $0$.
Footnote: Recall that
Since in this case $\mathbb P(X_n\in\{0,1\})=1$ for all $n$, taking $\varepsilon<\frac12$ justifies the use of e.g. $\limsup_{n\to\infty}\{X_n=1\}$ as opposed to $\{\limsup_{n\to\infty} X_n\}=1$.