# Set-theoretic limit

In mathematics, the **limit** of a sequence of sets *A*_{1}, *A*_{2}, ... (subsets of a common set *X*) is a set whose elements are determined by the sequence in either of two equivalent ways: **(1)** by upper and lower bounds on the sequence that converge monotonically to the same set (analogous to convergence of real-valued sequences) and **(2)** by convergence of a sequence of indicator functions which are themselves real-valued. As is the case with sequences of other objects, convergence is not necessary or even usual.

More generally, again analogous to real-valued sequences, the less restrictive **limit infimum** and **limit supremum** of a set sequence always exist and can be used to determine convergence: the limit exists if the limit infimum and limit supremum are identical. (See below). Such set limits are essential in measure theory and probability.

It is a common misconception that the limits infimum and supremum described here involve sets of accumulation points, that is, sets of *x* = lim_{k→∞}*x*_{k}, where each *x*_{k} is in some *A*_{nk}. This is only true if convergence is determined by the discrete metric (that is, *x*_{n} → *x* if there is *N* such that *x*_{n} = *x* for all *n* ≥ *N*). This article is restricted to that situation as it is the only one relevant for measure theory and probability. See the examples below. (On the other hand, there are more general topological notions of set convergence that do involve accumulation points under different metrics or topologies.)

## Definitions

### The two definitions

Suppose that is a sequence of sets. The two equivalent definitions are as follows.

- Using union and intersection, define[1]

- and
- If these two sets are equal, then the set-theoretic limit of the sequence
*A*_{n}exists and is equal to that common set. Either set as described above can be used to get the limit, and there may be other means to get the limit as well.

- Using indicator functions, let
**1**_{An}(x) equal 1 if*x*is in*A*and 0 otherwise. Define[1]_{n}

- and
- where the expressions inside the brackets on the right are, respectively, the limit infimum and limit supremum of the real-valued sequence
**1**_{An}(x). Again, if these two sets are equal, then the set-theoretic limit of the sequence*A*_{n}exists and is equal to that common set, and either set as described above can be used to get the limit.

To see the equivalence of the definitions, consider the limit infimum. The use of DeMorgan's rule below explains why this suffices for the limit supremum. Since indicator functions take only values 0 and 1, lim inf_{n→∞} **1**_{An}(x) = 1 if and only if **1**_{An}(x) takes value 0 only finitely many times. Equivalently, if and only if there exists *n* such that the element is in *A*_{m} for every *m* ≥ *n*, which is to say if and only if *x* ∉ *A*_{n} for only finitely many *n*.

Therefore, *x* is in the lim inf_{n→∞} *A*_{n} iff *x* is in all except finitely many *A*_{n}. For this reason, a shorthand phrase for the limit infimum is "*x* ∈ *A*_{n} all except finitely often" (or "*x* ∈ *A*_{n} all but finitely often"), typically expressed by "*A*_{n} a.e.f.o." (or by "*A*_{n} a.b.f.o.").

Similarly, an element *x* is in the limit supremum if, no matter how large *n* is there exists *m* ≥ *n* such that the element is in *A*_{m}. That is, *x* is in the limit supremum iff *x* is in infinitely many *A*_{n}. For this reason, a shorthand phrase for the limit supremum is "*x* ∈ *A*_{n} infinitely often", typically expressed by "*A*_{n} i.o.".

To put it another way, the limit infimum consists of elements that "eventually stay forever" (are in *each* set after *some* *n*), while the limit supremum consists of elements that "never leave forever" (are in *some* set after *each* *n*).

### Monotone sequences

The sequence {*A*_{n}} is said to be **nonincreasing** if each *A*_{n+1} ⊂ *A*_{n} and **nondecreasing** if each *A*_{n} ⊂ *A*_{n+1}. In each of these cases the set limit exists. Consider, for example, a nonincreasing sequence {*A*_{n}}. Then

From these it follows that

Similarly, if {*A*_{n}} is nondecreasing then

## Properties

- If the limit of
**1**_{An}(x), as*n*goes to infinity, exists for all*x*then

- Otherwise, the limit for {
*A*_{n}} does not exist.

- It can be shown that the limit infimum is contained in the limit supremum:

- for example, simply by observing that
*x*∈*A*_{n}all except finitely often implies*x*∈*A*_{n}infinitely often.

- Using the monotonicity of and of ,

- By using DeMorgan's rule twice, with set complement
*A*^{c}=*X*\*A*,

- That is,
*x*∈*A*_{n}all except finitely often is the same as*x*∉*A*_{n}finitely often.

- From the second definition above and the definitions for limit infimum and limit supremum of a real-valued sequence,

- and

- Suppose is a σ-algebra of subsets of
*X*. That is, is nonempty and is closed under complement and under unions and intersections of countably many sets. Then, by the first definition above, if each*A*_{n}∈ then both lim inf_{n → ∞}*A*_{n}and lim sup_{n → ∞}*A*_{n}are elements of .

## Examples

- Let
*A*_{n}= (−1/*n*, 1 − 1/*n*]. Then

- and
- So lim
_{n→∞}*A*_{n}= [0, 1) exists.

- Change the previous example to
*A*_{n}= ((−1)^{n}/*n*, 1 − (−1)^{n}/*n*]. Then

- and
- So lim
_{n→∞}*A*_{n}does not exist, despite the fact that the left and right endpoints of the intervals converge to 0 and 1, respectively.

- Let
*A*_{n}= {0, 1/*n*, 2/*n*, ..., (*n*−1)/*n*, 1}. Then

- (which is all rational numbers between 0 and 1, inclusive) since even for
*j*<*n*and 0 ≤*k*≤*j*,*k*/*j*= (*n*×*k*)/(*n*×*j*) is an element of the above. Therefore, - On the other hand,
- which implies
- In this case, the sequence
*A*_{1},*A*_{2}, ... does not have a limit. Note that lim sup_{n→∞}*A*_{n}is not the set of accumulation points, which would be the entire interval [0, 1] (according to the usual Euclidean metric).

## Probability uses

Set limits, particularly the limit infimum and the limit supremum, are essential for probability and measure theory. Such limits are used to calculate (or prove) the probabilities and measures of other, more purposeful, sets. For the following, is a probability space, which means is a σ-algebra of subsets of and is a probability measure defined on that σ-algebra. Sets in the σ-algebra are known as events.

If *A*_{1}, *A*_{2}, ... is a monotone sequence of events in then lim_{n→∞} *A*_{n} exists and

### Borel–Cantelli lemmas

In probability, the two Borel–Cantelli lemmas can be useful for showing that the limsup of a sequence of events has probability equal to 1 or to 0. The statement of the first (original) Borel–Cantelli lemma is

The second Borel–Cantelli lemma is a partial converse:

### Almost sure convergence

One of the most important applications to probability is for demonstrating the almost sure convergence of a sequence of random variables. The event that a sequence of random variables *Y*_{1}, *Y*_{2}, ... converges to another random variable *Y* is formally expressed as . It would be a mistake, however, to write this simply as a limsup of events. That is, this *is not* the event ! Instead, the *complement* of the event is

Therefore,

## References

- Resnick, Sidney I. (1998).
*A Probability Path*. Boston: Birkhäuser. ISBN 3-7643-4055-X.