Let (*E*_{n}) be a sequence of events in some probability space.
The Borel-Cantelli Lemma states that

if the sum of the probabilities of theE_{n}is finite, then the probability that infinitely many of them occur is 0.

Note that no assumption of independence is required.

For example, suppose (*X*_{n}) is a sequence of random variables, with *P*(*X*_{n} = 0) = 1/*n*^{2} for each *n*. The sum of the *P*(*X*_{n} = 0) is finite (in fact it is π^{2}/6 - see Riemann zeta function), so the Borel-Cantelli Lemma says that the probability of *X*_{n} = 0 occurring for infinitely many *n* is 0. In other words, with probability 1, *X*_{n} is nonzero for all but finitely many *n*.

For general measure spaces, the Borel-Cantelli Lemma takes the following form:

Let μ be a measure on a setX, with σ-algebraF, and let (A_{n}) be a sequence inF. Ifthen μ(lim sup

A_{n}) = 0.

To see that this really is a generalization of the version given earlier,
recall that lim sup *A*_{n} consists of those elements which are in *A*_{n} for infinitely many values of *n*.

A similar result, sometimes called one of two "Borel-Cantelli" lemmas, says that if the events `E _{n}` are independent and the sum of their probabilities diverges to infinity, then the probability that infinitely many of them occur is 1. (The assumption of independence can be weakened to pairwise independence, but in that case the proof is more difficult.)