The Borel–Cantelli lemmas
Statement
Let \((\Omega,\mathcal{F},\mathbb{P})\) be a probability space and let \((A_n)_{n\ge1}\) be a sequence of events in \(\mathcal{F}\). Define the event "infinitely many \(A_n\) occur" by \(\limsup_n A_n := \bigcap_{N=1}^{\infty}\bigcup_{n=N}^{\infty}A_n = \{\omega\in\Omega : \omega\in A_n \text{ for infinitely many } n\}\). First lemma (convergence part). If \(\sum_{n=1}^{\infty}\mathbb{P}(A_n) \lt \infty\), then \(\mathbb{P}(\limsup_n A_n)=0\). No independence hypothesis is required. Second lemma (divergence part). If, in addition, the events \((A_n)_{n\ge1}\) are mutually independent and \(\sum_{n=1}^{\infty}\mathbb{P}(A_n)=\infty\), then \(\mathbb{P}(\limsup_n A_n)=1\).
Why it matters
The Borel–Cantelli lemmas are the primary tool for turning a statement about a whole infinite sequence of events into a statement with probability exactly \(0\) or exactly \(1\) — a zero–one dichotomy that recurs throughout probability. They are the engine behind the strong law of large numbers, almost–sure convergence proofs for random series, extreme–value theory (records, longest head–runs), and the theory of recurrence/transience of Markov chains and random walks.
Their appeal is that they require almost no structure: the first lemma needs nothing beyond countable additivity, and the second needs only independence, yet together they pin down the almost–sure behaviour of \(\limsup_n A_n\) completely whenever independence holds and the borderline case \(\sum \mathbb{P}(A_n)=\infty\) versus \(\lt\infty\) is the exact threshold. This "0 or 1 with no shades in between" phenomenon is the visible face of the Kolmogorov zero–one law for tail events built from independent components.
Hypotheses
Proof
Part I — convergence implies null.
Part II — divergence plus independence implies almost sure.
Result
Reading. If the "sizes" of the events are summable, only finitely many of them occur, almost surely. If the events are independent and their sizes are not summable, infinitely many of them occur, almost surely — the tail sum is the exact dial that decides between "eventually never" and "forever recurring".
Scope. The first lemma holds on any probability space for any sequence of measurable events, with no independence assumption. The second lemma requires mutual independence of the whole sequence \((A_n)_{n\ge1}\); pairwise independence alone is not enough (see Fails without). Together they classify \(\mathbb{P}(\limsup_n A_n)\) as exactly \(0\) or exactly \(1\) whenever independence holds, but for dependent sequences with \(\sum_n\mathbb{P}(A_n)=\infty\) the probability can be anything in \([0,1]\).
Corollaries & converses
- Almost-sure finiteness of a random series' support. If \(\sum_n\mathbb{P}(A_n)\lt\infty\) then almost surely only finitely many \(A_n\) occur; equivalently \(\liminf_n A_n^c\) occurs almost surely, i.e. eventually \(A_n\) fails forever.
- Kolmogorov's zero–one law consistency check. For independent \((A_n)\), \(\limsup_n A_n\) is a tail event, so Kolmogorov's law already forces \(\mathbb{P}(\limsup_n A_n)\in\{0,1\}\); Borel–Cantelli identifies *which* value it takes via the series \(\sum_n\mathbb{P}(A_n)\).
- Second Borel–Cantelli–Erdős–Rényi refinement. Full mutual independence can be weakened to pairwise independence together with a variance (second-moment) bound on \(\sum_{n\le N}\mathbf{1}_{A_n}\), still giving \(\mathbb{P}(\limsup_n A_n)=1\) when \(\sum_n\mathbb{P}(A_n)=\infty\) — this is a genuinely different, harder theorem, not a restatement.
- Converse of the first lemma fails. \(\mathbb{P}(\limsup_n A_n)=0\) does not imply \(\sum_n\mathbb{P}(A_n)\lt\infty\); e.g. disjoint events with \(\mathbb{P}(A_n)=1/n\) diverge in sum yet if instead one uses \(\mathbb{P}(A_n)=1/n\) with the \(A_n\) shrinking nested sets rather than independent ones, no general implication back to summability holds. A clean counterexample: on \([0,1]\) with Lebesgue measure let \(A_n=[0,1/n]\); then \(\limsup_n A_n=\{0\}\) has measure \(0\) although \(\sum_n \mathbb{P}(A_n)=\sum 1/n=\infty\).
- Converse of the second lemma fails without independence — see the constant-event counterexample above; divergence of \(\sum_n\mathbb{P}(A_n)\) alone never forces \(\mathbb{P}(\limsup_n A_n)=1\).
Fails without
- Drop summability in Lemma 1: let \(A_n=[0,1/n]\subset([0,1],\mathcal{B},\text{Leb})\); \(\mathbb{P}(A_n)=1/n\), \(\sum_n\mathbb{P}(A_n)=\infty\) (not summable), and indeed \(\limsup_n A_n=\bigcap_N\bigcup_{n\ge N}[0,1/n]=\{0\}\) has measure \(0\) here — showing the *implication* direction, not that summability was needed for this particular example, but the standard sharp counterexample uses independent \(A_n\): with \((A_n)\) independent, \(\mathbb{P}(A_n)=1/n\), Lemma 2 applies since \(\sum 1/n=\infty\), forcing \(\mathbb{P}(\limsup_n A_n)=1\), the opposite conclusion from Lemma 1 — demonstrating the sharp threshold role of summability.
- Drop independence in Lemma 2: on a single fair coin toss \(X\), set \(A_n=\{X=\text{H}\}\) for all \(n\). Then \(\sum_n\mathbb{P}(A_n)=\infty\) but \(\limsup_n A_n=\{X=\text{H}\}\) has probability \(\tfrac12\ne1\); total dependence lets one "reuse" the same probability mass forever without ever guaranteeing infinitely many *distinct* occurrences forces the event.
- Drop countable additivity: replace \(\mathbb{P}\) by a finitely additive but not countably additive set function on \((\mathbb{N},2^{\mathbb{N}})\) with \(\mathbb{P}(\{n\})=0\) for every \(n\) yet \(\mathbb{P}(\mathbb{N})=1\) (a "free ultrafilter" type charge). Both proofs use continuity from above at an essential step (Steps 3 and 11); this fails for merely finitely additive charges, and indeed \(\limsup\) statements can become vacuous or false.
- Pairwise-only independence in Lemma 2 without a second-moment bound: there exist sequences of pairwise independent events with \(\sum_n\mathbb{P}(A_n)=\infty\) yet \(\mathbb{P}(\limsup_n A_n)\lt1\) (constructions based on pairwise-independent but not mutually independent random variables, e.g. via Latin-square type constructions); mutual independence in Step 8's product formula cannot be replaced by pairwise independence alone.
Common errors
- Applying the second lemma to a sequence that is only pairwise, not mutually, independent — the factorisation \(\mathbb{P}(\bigcap A_n^c)=\prod(1-\mathbb{P}(A_n))\) in Step 8 genuinely requires full mutual independence of the finite collection, not just independence of each pair.
- Confusing \(\limsup_n A_n\) ("infinitely many \(A_n\) occur") with \(\liminf_n A_n\) ("all but finitely many \(A_n\) occur", i.e. \(A_n\) occurs eventually forever) — these are different events and the lemmas say nothing directly about \(\liminf_n A_n\), whose probability is governed by the complementary events \(A_n^c\).
- Believing the two lemmas are logical converses of one another. They are not: they have disjoint hypotheses (summable vs. divergent) and neither can be run "backwards" to deduce something about \(\sum_n\mathbb{P}(A_n)\) from a known value of \(\mathbb{P}(\limsup_n A_n)\) (see Corollaries).
- Forgetting that the first lemma needs no independence at all, and hunting for an independence argument (or worse, assuming independence silently) when only summability is available and needed.
- Sign/direction slip in the \(1-x\le e^{-x}\) bound of Step 9, e.g. writing \(1-x\ge e^{-x}\) and thereby "proving" the product stays bounded away from \(0\), which reverses the conclusion of Lemma 2.
- Treating \(\bigcup_{n\ge N}A_n\) as though its probability were \(\sum_{n\ge N}\mathbb{P}(A_n)\) exactly (equality) rather than merely bounded above by it (Boole's inequality, Step 4) — the bound is generally strict unless the \(A_n\) are disjoint.
Discussion
Émile Borel proved the summable case in 1909 while studying normal numbers, and Francesco Paolo Cantelli supplied the general subadditivity argument shortly after; the divergence half under independence was clarified over the following two decades and is now attributed jointly to both names even though Cantelli's original 1917 note already handles much of the independent case. The pairing of the two lemmas is one of the earliest clean instances of a "zero–one law" in probability, predating Kolmogorov's general 1933 tail-event theorem, which the second lemma can be seen as a special, constructive case of: it does not merely assert the probability is \(0\) or \(1\), it tells you *which one* from the value of a single series.
The lemmas are the standard machine for proving almost-sure convergence and almost-sure limiting behaviour of sequences of random variables. For example, to show \(X_n\to0\) almost surely it is often enough to show \(\sum_n\mathbb{P}(|X_n|\gt\varepsilon)\lt\infty\) for every \(\varepsilon\gt0\) and invoke Lemma 1; this is the mechanism inside the standard proof of the strong law of large numbers via truncation and a series of independent bounded pieces. Likewise, for a simple random walk on \(\mathbb{Z}\), independence of increments and a divergent series of return probabilities via Lemma 2 is the route to proving recurrence, while a summable such series (as occurs in \(\mathbb{Z}^3\) and above) proves transience.
The sharpness of the independence hypothesis in Lemma 2 is itself a rich research topic: the Erdős–Rényi and Kochen–Stone generalisations replace independence by a second-moment (correlation) condition of the form \(\liminf_N \dfrac{\big(\sum_{n\le N}\mathbb{P}(A_n)\big)^2}{\sum_{i,j\le N}\mathbb{P}(A_i\cap A_j)} \gt 0\), which still forces \(\mathbb{P}(\limsup_n A_n)\gt0\) (and, with a further argument, \(=1\) in the ergodic/tail-trivial setting) — a genuinely more delicate statement whose proof uses the Cauchy–Schwarz inequality rather than the exponential bound used here, and lies beyond the present theorem.
Common misconception: students often think the lemmas are exhaustive, i.e. that every sequence of events falls under one or the other. They do not: a dependent sequence with \(\sum_n\mathbb{P}(A_n)=\infty\) is covered by neither lemma, and \(\mathbb{P}(\limsup_n A_n)\) can then take any value in \([0,1]\), as the constant-event counterexample shows.
Worked examples
Reading. Any fixed finite string, however long, appears infinitely often almost surely in an infinite i.i.d.\ random text — the "infinite monkey theorem".
Reading. For i.i.d.\ standard normal variables, \(|X_n|\) eventually stays below \(c\sqrt{\log n}\) forever, for any fixed \(c\gt\sqrt2\); this pins down the almost-sure growth rate of the running maximum of Gaussian noise, a first step toward the law of the iterated logarithm.
Problems
- Let \((A_n)_{n\ge1}\) be events (not assumed independent) with \(\mathbb{P}(A_n)=1/n^2\). Show \(\mathbb{P}(\limsup_n A_n)=0\), and state which lemma you used and why independence was not needed.
Solution
\(\sum_{n=1}^\infty \mathbb{P}(A_n)=\sum_{n=1}^\infty 1/n^2 = \pi^2/6 \lt\infty\), a convergent \(p\)-series with \(p=2\gt1\). This is exactly the hypothesis of the first Borel–Cantelli lemma, which requires no independence — only countable subadditivity of \(\mathbb{P}\), which holds unconditionally. Hence \(\mathbb{P}(\limsup_n A_n)=0\): almost surely only finitely many \(A_n\) occur. - Let \((Y_n)_{n\ge1}\) be i.i.d.\ Bernoulli\((p)\) with \(p\in(0,1)\), and let \(A_n=\{Y_n=1\}\). Determine \(\mathbb{P}(\limsup_n A_n)\) and justify fully.
Solution
The events \((A_n)\) are mutually independent (i.i.d. sequence) with \(\mathbb{P}(A_n)=p\) constant. Since \(p\gt0\), \(\sum_n \mathbb{P}(A_n)=\sum_n p=\infty\). Both hypotheses of the second lemma (mutual independence, divergent series) hold, so \(\mathbb{P}(\limsup_n A_n)=1\): almost surely infinitely many \(Y_n\) equal \(1\), regardless of how small \(p\gt0\) is. - Construct a sequence of dependent events \((A_n)\) with \(\sum_n \mathbb{P}(A_n)=\infty\) but \(\mathbb{P}(\limsup_n A_n)=0\), showing the divergence hypothesis alone (without independence) is not enough for Lemma 2's conclusion.
Solution
Work on \(([0,1],\mathcal B,\mathrm{Leb})\). Let \(A_n = [0, 1/n]\). Then \(\mathbb{P}(A_n)=1/n\) and \(\sum_n \mathbb{P}(A_n)=\sum_n 1/n=\infty\) (harmonic series). But the \(A_n\) are nested decreasing sets, so \(\bigcup_{n\ge N}A_n = A_N=[0,1/N]\) for every \(N\), giving \(\limsup_n A_n = \bigcap_N [0,1/N] = \{0\}\), which has Lebesgue measure \(0\). So \(\mathbb{P}(\limsup_n A_n)=0\) despite \(\sum_n\mathbb{P}(A_n)=\infty\): the \(A_n\) here are maximally dependent (nested), violating the independence hypothesis of Lemma 2, and the conclusion of Lemma 2 fails. - Let \((A_n)_{n\ge1}\) be independent with \(\mathbb{P}(A_n) = \dfrac{1}{n\log n}\) for \(n\ge2\). Decide whether \(\mathbb{P}(\limsup_n A_n)\) is \(0\) or \(1\), with full justification including any integral test used.
Solution
Consider \(\sum_{n=2}^\infty \frac{1}{n\log n}\). By the integral test, compare with \(\int_2^\infty \frac{dx}{x\log x}\); substituting \(u=\log x\), \(du=dx/x\), this equals \(\int_{\log2}^\infty \frac{du}{u} = \infty\) (divergent, as \(\int du/u\) is a divergent log-integral). So \(\sum_n \mathbb{P}(A_n)=\infty\). Since the \((A_n)\) are given as independent and the series diverges, the second Borel–Cantelli lemma applies directly: \(\mathbb{P}(\limsup_n A_n)=1\). - (Harder, uses the discussion.) Let \((A_n)\) be pairwise independent (but not assumed mutually independent) events with \(\mathbb{P}(A_n)=p_n\) and \(\sum_n p_n=\infty\). Suppose additionally the Kochen–Stone/Erdős–Rényi second-moment condition \(\liminf_{N\to\infty} \dfrac{\big(\sum_{n\le N}p_n\big)^2}{\sum_{i,j\le N}\mathbb{P}(A_i\cap A_j)} = 1\) holds (as it would automatically if the \(A_n\) were in fact mutually independent, since then off-diagonal terms are \(p_ip_j\)). Explain, without reproving the Kochen–Stone theorem, why this scenario is genuinely outside the scope of the theorem proved above, and what extra tool would be needed.
Solution
The proof given above (Steps 7–12) uses mutual independence essentially once: in Step 8, to factorise \(\mathbb{P}\big(\bigcap_{n=N}^M A_n^c\big)\) as the product \(\prod_{n=N}^M(1-p_n)\). Pairwise independence alone does not license this factorisation for three or more events simultaneously (a classical fact: pairwise independence does not imply joint/mutual independence, e.g.\ via constructions based on independent fair coins where XOR relations create pairwise-but-not-mutual independence). Hence the exponential bound of Step 9 and everything downstream (Steps 10–12) is unavailable, and one cannot conclude \(\mathbb{P}(\limsup_n A_n)=1\) from the argument in this theorem. Reaching that conclusion under only pairwise independence plus a second-moment condition requires a genuinely different technique — a second-moment (Paley–Zygmund / Cauchy–Schwarz) argument applied to the partial-sum random variables \(S_N=\sum_{n\le N}\mathbf{1}_{A_n}\), which is the content of the Kochen–Stone theorem referenced in the Discussion, not a corollary of the Borel–Cantelli lemma proved here.