# Limit superior and limit inferior

__: Bounds of a sequence__

**Short description**In mathematics, the **limit inferior** and **limit superior** of a sequence can be thought of as limiting (i.e., eventual and extreme) bounds on the sequence. They can be thought of in a similar fashion for a function (see limit of a function). For a set, they are the infimum and supremum of the set's limit points, respectively. In general, when there are multiple objects around which a sequence, function, or set accumulates, the inferior and superior limits extract the smallest and largest of them; the type of object and the measure of size is context-dependent, but the notion of extreme limits is invariant.
Limit inferior is also called **infimum limit**, **limit infimum**, **liminf**, **inferior limit**, **lower limit**, or **inner limit**; limit superior is also known as **supremum limit**, **limit supremum**, **limsup**, **superior limit**, **upper limit**, or **outer limit**.

The limit inferior of a sequence [math]\displaystyle{ x_n }[/math] is denoted by

- [math]\displaystyle{ \liminf_{n\to\infty}x_n\quad\text{or}\quad \varliminf_{n\to\infty}x_n. }[/math]

The limit superior of a sequence [math]\displaystyle{ x_n }[/math] is denoted by

- [math]\displaystyle{ \limsup_{n\to\infty}x_n\quad\text{or}\quad \varlimsup_{n\to\infty}x_n. }[/math]

## Definition for sequences

The limit inferior of a sequence (*x*_{n}) is defined by

- [math]\displaystyle{ \liminf_{n\to\infty}x_n := \lim_{n\to\infty}\Big(\inf_{m\geq n}x_m\Big) }[/math]

or

- [math]\displaystyle{ \liminf_{n\to\infty}x_n := \sup_{n\geq 0}\,\inf_{m\geq n}x_m=\sup\{\,\inf\{\,x_m:m\geq n\,\}:n\geq 0\,\}. }[/math]

Similarly, the limit superior of (*x*_{n}) is defined by

- [math]\displaystyle{ \limsup_{n\to\infty}x_n := \lim_{n\to\infty}\Big(\sup_{m\geq n}x_m\Big) }[/math]

or

- [math]\displaystyle{ \limsup_{n\to\infty}x_n := \inf_{n\geq 0}\,\sup_{m\geq n}x_m=\inf\{\,\sup\{\,x_m:m\geq n\,\}:n\geq 0\,\}. }[/math]

Alternatively, the notations [math]\displaystyle{ \varliminf_{n\to\infty}x_n:=\liminf_{n\to\infty}x_n }[/math] and [math]\displaystyle{ \varlimsup_{n\to\infty}x_n:=\limsup_{n\to\infty}x_n }[/math] are sometimes used.

The limits superior and inferior can equivalently be defined using the concept of subsequential limits of the sequence [math]\displaystyle{ (x_n) }[/math].^{[1]} An element [math]\displaystyle{ \xi }[/math] of the extended real numbers [math]\displaystyle{ \overline{\mathbb R} }[/math] is a *subsequential limit* of [math]\displaystyle{ (x_n) }[/math] if there exists a strictly increasing sequence of natural numbers [math]\displaystyle{ (n_k) }[/math] such that [math]\displaystyle{ \xi=\lim_{k\to\infty} x_{n_k} }[/math]. If [math]\displaystyle{ E\subset\overline{\mathbb{R}} }[/math] is the set of all subsequential limits of [math]\displaystyle{ (x_n) }[/math], then

- [math]\displaystyle{ \limsup_{n\to\infty} x_n = \sup E }[/math]

and

- [math]\displaystyle{ \liminf_{n\to\infty} x_n=\inf E. }[/math]

If the terms in the sequence are real numbers, the limit superior and limit inferior always exist, as the real numbers together with ±∞ (i. e. the extended real number line) are complete. More generally, these definitions make sense in any partially ordered set, provided the suprema and infima exist, such as in a complete lattice.

Whenever the ordinary limit exists, the limit inferior and limit superior are both equal to it; therefore, each can be considered a generalization of the ordinary limit which is primarily interesting in cases where the limit does *not* exist. Whenever lim inf *x*_{n} and lim sup *x*_{n} both exist, we have

- [math]\displaystyle{ \liminf_{n\to\infty}x_n\leq\limsup_{n\to\infty}x_n. }[/math]

Limits inferior/superior are related to big-O notation in that they bound a sequence only "in the limit"; the sequence may exceed the bound. However, with big-O notation the sequence can only exceed the bound in a finite prefix of the sequence, whereas the limit superior of a sequence like e^{−n} may actually be less than all elements of the sequence. The only promise made is that some tail of the sequence can be bounded above by the limit superior plus an arbitrarily small positive constant, and bounded below by the limit inferior minus an arbitrarily small positive constant.

The limit superior and limit inferior of a sequence are a special case of those of a function (see below).

## The case of sequences of real numbers

In mathematical analysis, limit superior and limit inferior are important tools for studying sequences of real numbers. Since the supremum and infimum of an unbounded set of real numbers may not exist (the reals are not a complete lattice), it is convenient to consider sequences in the affinely extended real number system: we add the positive and negative infinities to the real line to give the complete totally ordered set [−∞,∞], which is a complete lattice.

### Interpretation

Consider a sequence [math]\displaystyle{ (x_n) }[/math] consisting of real numbers. Assume that the limit superior and limit inferior are real numbers (so, not infinite).

- The limit superior of [math]\displaystyle{ x_n }[/math] is the smallest real number [math]\displaystyle{ b }[/math] such that, for any positive real number [math]\displaystyle{ \varepsilon }[/math], there exists a natural number [math]\displaystyle{ N }[/math] such that [math]\displaystyle{ x_n\lt b+\varepsilon }[/math] for all [math]\displaystyle{ n\gt N }[/math]. In other words, any number larger than the limit superior is an eventual upper bound for the sequence. Only a finite number of elements of the sequence are greater than [math]\displaystyle{ b+\varepsilon }[/math].
- The limit inferior of [math]\displaystyle{ x_n }[/math] is the largest real number [math]\displaystyle{ b }[/math] such that, for any positive real number [math]\displaystyle{ \varepsilon }[/math], there exists a natural number [math]\displaystyle{ N }[/math] such that [math]\displaystyle{ x_n\gt b-\varepsilon }[/math] for all [math]\displaystyle{ n\gt N }[/math]. In other words, any number below the limit inferior is an eventual lower bound for the sequence. Only a finite number of elements of the sequence are less than [math]\displaystyle{ b-\varepsilon }[/math].

### Properties

The relationship of limit inferior and limit superior for sequences of real numbers is as follows:

- [math]\displaystyle{ \limsup_{n\to\infty} (-x_n) = -\liminf_{n\to\infty} x_n }[/math]

As mentioned earlier, it is convenient to extend [math]\displaystyle{ \mathbb{R} }[/math] to [−∞,∞]. Then, (*x*_{n}) in [−∞,∞] converges if and only if

- [math]\displaystyle{ \liminf_{n\to\infty} x_n = \limsup_{n\to\infty} x_n }[/math]

in which case [math]\displaystyle{ \lim_{n\to\infty} x_n }[/math] is equal to their common value. (Note that when working just in [math]\displaystyle{ \mathbb{R} }[/math], convergence to −∞ or ∞ would not be considered as convergence.) Since the limit inferior is at most the limit superior, the following conditions hold

- [math]\displaystyle{ \liminf_{n\to\infty} x_n = \infty \;\;\Rightarrow\;\; \lim_{n\to\infty} x_n = \infty, }[/math]
- [math]\displaystyle{ \limsup_{n\to\infty} x_n = - \infty \;\;\Rightarrow\;\; \lim_{n\to\infty} x_n = - \infty. }[/math]

If [math]\displaystyle{ I = \liminf_{n\to\infty} x_n }[/math] and [math]\displaystyle{ S = \limsup_{n\to\infty} x_n }[/math], then the interval [*I*, *S*] need not contain any of the numbers *x*_{n}, but every slight enlargement [*I* − ε, *S* + ε] (for arbitrarily small ε > 0) will contain *x*_{n} for all but finitely many indices *n*. In fact, the interval [*I*, *S*] is the smallest closed interval with this property. We can formalize this property like this: there exist subsequences [math]\displaystyle{ x_{k_n} }[/math] and [math]\displaystyle{ x_{h_n} }[/math] of [math]\displaystyle{ x_n }[/math] (where [math]\displaystyle{ k_n }[/math] and [math]\displaystyle{ h_n }[/math] are monotonous) for which we have

- [math]\displaystyle{ \liminf_{n\to\infty} x_n+\epsilon\gt x_{h_n} \;\;\;\;\;\;\;\;\; x_{k_n} \gt \limsup_{n\to\infty} x_n-\epsilon }[/math]

On the other hand, there exists a [math]\displaystyle{ n_0\in\mathbb{N} }[/math] so that for all [math]\displaystyle{ n\geq n_0 }[/math]

- [math]\displaystyle{ \liminf_{n\to\infty} x_n-\epsilon \lt x_n \lt \limsup_{n\to\infty} x_n+\epsilon }[/math]

To recapitulate:

- If [math]\displaystyle{ \Lambda }[/math] is greater than the limit superior, there are at most finitely many [math]\displaystyle{ x_n }[/math] greater than [math]\displaystyle{ \Lambda }[/math]; if it is less, there are infinitely many.
- If [math]\displaystyle{ \lambda }[/math] is less than the limit inferior, there are at most finitely many [math]\displaystyle{ x_n }[/math] less than [math]\displaystyle{ \lambda }[/math]; if it is greater, there are infinitely many.

In general we have that

- [math]\displaystyle{ \inf_n x_n \leq \liminf_{n \to \infty} x_n \leq \limsup_{n \to \infty} x_n \leq \sup_n x_n }[/math]

The liminf and limsup of a sequence are respectively the smallest and greatest cluster points.

- For any two sequences of real numbers [math]\displaystyle{ \{a_n\}, \{b_n\} }[/math], the limit superior satisfies subadditivity whenever the right side of the inequality is defined (i.e., not [math]\displaystyle{ \infty - \infty }[/math] or [math]\displaystyle{ -\infty + \infty }[/math]):

- [math]\displaystyle{ \limsup_{n \to \infty} (a_n + b_n) \leq \limsup_{n \to \infty}(a_n) + \limsup_{n \to \infty}(b_n). }[/math].

Analogously, the limit inferior satisfies superadditivity:

- [math]\displaystyle{ \liminf_{n \to \infty} (a_n + b_n) \geq \liminf_{n \to \infty}(a_n) + \liminf_{n \to \infty}(b_n). }[/math]

In the particular case that one of the sequences actually converges, say [math]\displaystyle{ a_n \to a }[/math], then the inequalities above become equalities (with [math]\displaystyle{ \limsup_{n \to \infty}a_n }[/math] or [math]\displaystyle{ \liminf_{n \to \infty}a_n }[/math] being replaced by [math]\displaystyle{ a }[/math]).

- For any two sequences of non-negative real numbers [math]\displaystyle{ \{a_n\}, \{b_n\} }[/math], the inequalities

- [math]\displaystyle{ \limsup_{n \to \infty} (a_nb_n) \leq \biggl(\limsup_{n \to \infty}a_n \biggr) \biggl(\limsup_{n \to \infty} b_n\biggr) }[/math]

and

- [math]\displaystyle{ \liminf_{n \to \infty} (a_nb_n) \geq \biggl(\liminf_{n \to \infty}a_n \biggr) \biggl(\liminf_{n \to \infty} b_n\biggr) }[/math]

hold whenever the right-hand side is not of the form [math]\displaystyle{ 0 \cdot \infty }[/math].

If [math]\displaystyle{ \lim_{n \to \infty} a_n = A }[/math] exists (including the case [math]\displaystyle{ A = +\infty }[/math]) and [math]\displaystyle{ B = \limsup_{n \to \infty} b_n }[/math], then [math]\displaystyle{ \limsup_{n \to \infty} (a_nb_n) = AB }[/math] provided that [math]\displaystyle{ AB }[/math] is not of the form [math]\displaystyle{ 0 \cdot \infty }[/math].

#### Examples

- As an example, consider the sequence given by
*x*_{n}= sin(*n*). Using the fact that pi is irrational, one can show that

- [math]\displaystyle{ \liminf_{n\to\infty} x_n = -1 }[/math]

and

- [math]\displaystyle{ \limsup_{n\to\infty} x_n = +1. }[/math]

(This is because the sequence {1,2,3,...} is equidistributed mod 2π, a consequence of the Equidistribution theorem.)

- An example from number theory is

- [math]\displaystyle{ \liminf_{n\to\infty}(p_{n+1}-p_n), }[/math]

where *p*_{n} is the *n*-th prime number.
The value of this limit inferior is conjectured to be 2 – this is the twin prime conjecture – but (As of April 2014) has only been proven to be less than or equal to 6.^{[2]} The corresponding limit superior is [math]\displaystyle{ +\infty }[/math], because there are arbitrary gaps between consecutive primes.

## Real-valued functions

Assume that a function is defined from a subset of the real numbers to the real numbers. As in the case for sequences, the limit inferior and limit superior are always well-defined if we allow the values +∞ and -∞; in fact, if both agree then the limit exists and is equal to their common value (again possibly including the infinities). For example, given *f*(*x*) = sin(1/*x*), we have lim sup_{x→0} *f*(*x*) = 1 and lim inf_{x→0} *f*(*x*) = -1. The difference between the two is a rough measure of how "wildly" the function oscillates, and in observation of this fact, it is called the oscillation of *f* at *a*. This idea of oscillation is sufficient to, for example, characterize Riemann-integrable functions as continuous except on a set of measure zero.^{[3]} Note that points of nonzero oscillation (i.e., points at which *f* is "badly behaved") are discontinuities which, unless they make up a set of zero, are confined to a negligible set.

## Functions from metric spaces to complete lattices

There is a notion of lim sup and lim inf for functions defined on a metric space whose relationship to limits of real-valued functions mirrors that of the relation between the lim sup, lim inf, and the limit of a real sequence. Take metric spaces *X* and *Y*, a subspace *E* contained in *X*, and a function *f* : *E* → *Y*. Define, for any limit point *a* of *E*,

- [math]\displaystyle{ \limsup_{x \to a} f(x) = \lim_{\varepsilon \to 0} ( \sup \{ f(x) : x \in E \cap B(a;\varepsilon)\setminus\{a\} \} ) }[/math]

and

- [math]\displaystyle{ \liminf_{x \to a} f(x) = \lim_{\varepsilon \to 0} ( \inf \{ f(x) : x \in E \cap B(a;\varepsilon)\setminus\{a\} \} ) }[/math]

where *B*(*a*;ε) denotes the metric ball of radius ε about *a*.

Note that as ε shrinks, the supremum of the function over the ball is monotone decreasing, so we have

- [math]\displaystyle{ \limsup_{x\to a} f(x) = \inf_{\varepsilon \gt 0} (\sup \{ f(x) : x \in E \cap B(a;\varepsilon)\setminus\{a\} \}) }[/math]

and similarly

- [math]\displaystyle{ \liminf_{x\to a} f(x) = \sup_{\varepsilon \gt 0}(\inf \{ f(x) : x \in E \cap B(a;\varepsilon)\setminus\{a\} \}). }[/math]

This finally motivates the definitions for general topological spaces. Take *X*, *Y*, *E* and *a* as before, but now let *X* and *Y* both be topological spaces. In this case, we replace metric balls with neighborhoods:

- [math]\displaystyle{ \limsup_{x\to a} f(x) = \inf \{ \sup \{ f(x) : x \in E \cap U\setminus\{a\} \} : U\ \mathrm{open}, a \in U, E \cap U\setminus\{a\} \neq \emptyset \} }[/math]
- [math]\displaystyle{ \liminf_{x\to a} f(x) = \sup \{ \inf \{ f(x) : x \in E \cap U\setminus\{a\} \} : U\ \mathrm{open}, a \in U, E \cap U\setminus\{a\} \neq \emptyset \} }[/math]

(there is a way to write the formula using "lim" using nets and the neighborhood filter). This version is often useful in discussions of semi-continuity which crop up in analysis quite often. An interesting note is that this version subsumes the sequential version by considering sequences as functions from the natural numbers as a topological subspace of the extended real line, into the space (the closure of **N** in [−∞,∞], the extended real number line, is **N** ∪ {∞}.)

## Sequences of sets

The power set ℘(*X*) of a set *X* is a complete lattice that is ordered by set inclusion, and so the supremum and infimum of any set of subsets (in terms of set inclusion) always exist. In particular, every subset *Y* of *X* is bounded above by *X* and below by the empty set ∅ because ∅ ⊆ *Y* ⊆ *X*. Hence, it is possible (and sometimes useful) to consider superior and inferior limits of sequences in ℘(*X*) (i.e., sequences of subsets of *X*).

There are two common ways to define the limit of sequences of sets. In both cases:

- The sequence
*accumulates*around sets of points rather than single points themselves. That is, because each element of the sequence is itself a set, there exist accumulation*sets*that are somehow nearby to infinitely many elements of the sequence. - The supremum/superior/outer limit is a set that joins these accumulation sets together. That is, it is the union of all of the accumulation sets. When ordering by set inclusion, the supremum limit is the least upper bound on the set of accumulation points because it
*contains*each of them. Hence, it is the supremum of the limit points. - The infimum/inferior/inner limit is a set where all of these accumulation sets meet. That is, it is the intersection of all of the accumulation sets. When ordering by set inclusion, the infimum limit is the greatest lower bound on the set of accumulation points because it is
*contained in*each of them. Hence, it is the infimum of the limit points. - Because ordering is by set inclusion, then the outer limit will always contain the inner limit (i.e., lim inf
*X*_{n}⊆ lim sup*X*_{n}). Hence, when considering the convergence of a sequence of sets, it generally suffices to consider the convergence of the outer limit of that sequence.

The difference between the two definitions involves how the topology (i.e., how to quantify separation) is defined. In fact, the second definition is identical to the first when the discrete metric is used to induce the topology on *X*.

### General set convergence

In this case, a sequence of sets approaches a limiting set when the elements of each member of the sequence approach the elements of the limiting set. In particular, if {*X*_{n}} is a sequence of subsets of *X*, then:

- lim sup
*X*_{n}, which is also called the**outer limit**, consists of those elements which are limits of points in*X*_{n}taken from (countably) infinitely many*n*. That is,*x*∈ lim sup*X*_{n}if and only if there exists a sequence of points*x*_{k}and a*subsequence*{*X*_{nk}} of {*X*_{n}} such that*x*_{k}∈*X*_{nk}and*x*_{k}→*x*as*k*→ ∞. - lim inf
*X*_{n}, which is also called the**inner limit**, consists of those elements which are limits of points in*X*_{n}for all but finitely many*n*(i.e., cofinitely many*n*). That is,*x*∈ lim inf*X*_{n}if and only if there exists a*sequence*of points {*x*_{k}} such that*x*_{k}∈*X*_{k}and*x*_{k}→*x*as*k*→ ∞.

The limit lim *X*_{n} exists if and only if lim inf *X*_{n} and lim sup *X*_{n} agree, in which case lim *X*_{n} = lim sup *X*_{n} = lim inf *X*_{n}.^{[4]}

### Special case: discrete metric

This is the definition used in measure theory and probability. Further discussion and examples from the set-theoretic point of view, as opposed to the topological point of view discussed below, are at set-theoretic limit.

By this definition, a sequence of sets approaches a limiting set when the limiting set includes elements which are in all except finitely many sets of the sequence *and* does not include elements which are in all except finitely many complements of sets of the sequence. That is, this case specializes the general definition when the topology on set *X* is induced from the discrete metric.

Specifically, for points *x* ∈ *X* and *y* ∈ *X*, the discrete metric is defined by

- [math]\displaystyle{ d(x,y) := \begin{cases} 0 &\text{if } x = y,\\ 1 &\text{if } x \neq y, \end{cases} }[/math]

under which a sequence of points {*x*_{k}} converges to point *x* ∈ *X* if and only if *x*_{k} = *x* for all except finitely many *k*. Therefore, *if the limit set exists* it contains the points and only the points which are in all except finitely many of the sets of the sequence. Since convergence in the discrete metric is the strictest form of convergence (i.e., requires the most), this definition of a limit set is the strictest possible.

If {*X*_{n}} is a sequence of subsets of *X*, then the following always exist:

- lim sup
*X*_{n}consists of elements of*X*which belong to*X*_{n}for**infinitely many***n*(see countably infinite). That is,*x*∈ lim sup*X*_{n}if and only if there exists a subsequence {*X*_{nk}} of {*X*_{n}} such that*x*∈*X*_{nk}for all*k*. - lim inf
*X*_{n}consists of elements of*X*which belong to*X*_{n}for**all except finitely many***n*(i.e., for cofinitely many*n*). That is,*x*∈ lim inf*X*_{n}if and only if there exists some*m*>0 such that*x*∈*X*_{n}for all*n*>*m*.

Observe that *x* ∈ lim sup *X*_{n} if and only if *x* ∉ lim inf *X*_{n}^{c}.

- The lim
*X*_{n}exists if and only if lim inf*X*_{n}and lim sup*X*_{n}agree, in which case lim*X*_{n}= lim sup*X*_{n}= lim inf*X*_{n}.

In this sense, the sequence has a limit so long as every point in *X* either appears in all except finitely many *X*_{n} or appears in all except finitely many *X*_{n}^{c}.
^{[5]}

Using the standard parlance of set theory, set inclusion provides a partial ordering on the collection of all subsets of *X* that allows set intersection to generate a greatest lower bound and set union to generate a least upper bound. Thus, the infimum or meet of a collection of subsets is the greatest lower bound while the supremum or join is the least upper bound. In this context, the inner limit, lim inf *X*_{n}, is the **largest meeting of tails** of the sequence, and the outer limit, lim sup *X*_{n}, is the **smallest joining of tails** of the sequence. The following makes this precise.

- Let
*I*_{n}be the meet of the*n*^{th}tail of the sequence. That is,

- [math]\displaystyle{ \begin{align}I_n &= \inf \{ X_m : m \in \{n, n+1, n+2, \ldots\}\}\\ &= \bigcap_{m=n}^{\infty} X_m = X_n \cap X_{n+1} \cap X_{n+2} \cap \cdots. \end{align} }[/math]

- The sequence {
*I*_{n}} is non-decreasing (*I*_{n}⊆*I*_{n+1}) because each*I*_{n+1}is the intersection of fewer sets than*I*_{n}. The least upper bound on this sequence of meets of tails is- [math]\displaystyle{ \begin{align} \liminf_{n\to\infty}X_n &= \sup\{\inf\{X_m: m \in \{n, n+1, \ldots\}\}: n \in \{1,2,\dots\}\}\\ &= {\bigcup_{n=1}^\infty}\left({\bigcap_{m=n}^\infty}X_m\right). \end{align} }[/math]

- So the limit infimum contains all subsets which are lower bounds for all except finitely many sets of the sequence.

- Similarly, let
*J*_{n}be the join of the*n*^{th}tail of the sequence. That is,

- [math]\displaystyle{ \begin{align}J_n &= \sup \{ X_m : m \in \{n, n+1, n+2, \ldots\}\}\\ &= \bigcup_{m=n}^{\infty} X_m = X_n \cup X_{n+1} \cup X_{n+2} \cup \cdots. \end{align} }[/math]

- The sequence {
*J*_{n}} is non-increasing (*J*_{n}⊇*J*_{n+1}) because each*J*_{n+1}is the union of fewer sets than*J*_{n}. The greatest lower bound on this sequence of joins of tails is- [math]\displaystyle{ \begin{align} \limsup_{n\to\infty}X_n &= \inf\{\sup\{X_m: m \in \{n, n+1, \ldots\}\}: n \in \{1,2,\dots\}\}\\ &= {\bigcap_{n=1}^\infty}\left({\bigcup_{m=n}^\infty}X_m\right). \end{align} }[/math]

- So the limit supremum is contained in all subsets which are upper bounds for all except finitely many sets of the sequence.

### Examples

The following are several set convergence examples. They have been broken into sections with respect to the metric used to induce the topology on set *X*.

- Using the discrete metric

- The Borel–Cantelli lemma is an example application of these constructs.

- Using either the discrete metric or the Euclidean metric

- Consider the set
*X*= {0,1} and the sequence of subsets:

- [math]\displaystyle{ \{X_n\} = \{ \{0\},\{1\},\{0\},\{1\},\{0\},\{1\},\dots \}. }[/math]

- The "odd" and "even" elements of this sequence form two subsequences, {{0},{0},{0},...} and {{1},{1},{1},...}, which have limit points 0 and 1, respectively, and so the outer or superior limit is the set {0,1} of these two points. However, there are no limit points that can be taken from the {
*X*_{n}} sequence as a whole, and so the interior or inferior limit is the empty set {}. That is,- lim sup
*X*_{n}= {0,1} - lim inf
*X*_{n}= {}

- lim sup
- However, for {
*Y*_{n}} = {{0},{0},{0},...} and {*Z*_{n}} = {{1},{1},{1},...}:- lim sup
*Y*_{n}= lim inf*Y*_{n}= lim*Y*_{n}= {0} - lim sup
*Z*_{n}= lim inf*Z*_{n}= lim*Z*_{n}= {1}

- lim sup

- Consider the set
*X*= {50, 20, -100, -25, 0, 1} and the sequence of subsets:

- [math]\displaystyle{ \{X_n\} = \{ \{50\}, \{20\}, \{-100\}, \{-25\}, \{0\},\{1\},\{0\},\{1\},\{0\},\{1\},\dots \}. }[/math]

- As in the previous two examples,
- lim sup
*X*_{n}= {0,1} - lim inf
*X*_{n}= {}

- lim sup
- That is, the four elements that do not match the pattern do not affect the lim inf and lim sup because there are only finitely many of them. In fact, these elements could be placed anywhere in the sequence (e.g., at positions 100, 150, 275, and 55000). So long as the
*tails*of the sequence are maintained, the outer and inner limits will be unchanged. The related concepts of*essential*inner and outer limits, which use the essential supremum and essential infimum, provide an important modification that "squashes" countably many (rather than just finitely many) interstitial additions.

- Using the Euclidean metric

- Consider the sequence of subsets of rational numbers:

- [math]\displaystyle{ \{X_n\} = \{ \{0\},\{1\},\{1/2\},\{1/2\},\{2/3\},\{1/3\}, \{3/4\}, \{1/4\}, \dots \}. }[/math]

- The "odd" and "even" elements of this sequence form two subsequences, {{0},{1/2},{2/3},{3/4},...} and {{1},{1/2},{1/3},{1/4},...}, which have limit points 1 and 0, respectively, and so the outer or superior limit is the set {0,1} of these two points. However, there are no limit points that can be taken from the {
*X*_{n}} sequence as a whole, and so the interior or inferior limit is the empty set {}. So, as in the previous example,- lim sup
*X*_{n}= {0,1} - lim inf
*X*_{n}= {}

- lim sup
- However, for {
*Y*_{n}} = {{0},{1/2},{2/3},{3/4},...} and {*Z*_{n}} = {{1},{1/2},{1/3},{1/4},...}:- lim sup
*Y*_{n}= lim inf*Y*_{n}= lim*Y*_{n}= {1} - lim sup
*Z*_{n}= lim inf*Z*_{n}= lim*Z*_{n}= {0}

- lim sup
- In each of these four cases, the elements of the limiting sets are not elements of any of the sets from the original sequence.

- The Ω limit (i.e., limit set) of a solution to a dynamic system is the outer limit of solution trajectories of the system.
^{[4]}^{:50–51}Because trajectories become closer and closer to this limit set, the tails of these trajectories*converge*to the limit set.

- For example, an LTI system that is the cascade connection of several stable systems with an undamped second-order LTI system (i.e., zero damping ratio) will oscillate endlessly after being perturbed (e.g., an ideal bell after being struck). Hence, if the position and velocity of this system are plotted against each other, trajectories will approach a circle in the state space. This circle, which is the Ω limit set of the system, is the outer limit of solution trajectories of the system. The circle represents the locus of a trajectory corresponding to a pure sinusoidal tone output; that is, the system output approaches/approximates a pure tone.

## Generalized definitions

The above definitions are inadequate for many technical applications. In fact, the definitions above are specializations of the following definitions.

### Definition for a set

The limit inferior of a set *X* ⊆ *Y* is the infimum of all of the limit points of the set. That is,

- [math]\displaystyle{ \liminf X := \inf \{ x \in Y : x \text{ is a limit point of } X \}\, }[/math]

Similarly, the limit superior of a set *X* is the supremum of all of the limit points of the set. That is,

- [math]\displaystyle{ \limsup X := \sup \{ x \in Y : x \text{ is a limit point of } X \}\, }[/math]

Note that the set *X* needs to be defined as a subset of a partially ordered set *Y* that is also a topological space in order for these definitions to make sense. Moreover, it has to be a complete lattice so that the suprema and infima always exist. In that case every set has a limit superior and a limit inferior. Also note that the limit inferior and the limit superior of a set do not have to be elements of the set.

### Definition for filter bases

Take a topological space *X* and a filter base *B* in that space. The set of all cluster points for that filter base is given by

- [math]\displaystyle{ \bigcap \{ \overline{B}_0 : B_0 \in B \} }[/math]

where [math]\displaystyle{ \overline{B}_0 }[/math] is the closure of [math]\displaystyle{ B_0 }[/math]. This is clearly a closed set and is similar to the set of limit points of a set. Assume that *X* is also a partially ordered set. The limit superior of the filter base *B* is defined as

- [math]\displaystyle{ \limsup B := \sup \bigcap \{ \overline{B}_0 : B_0 \in B \} }[/math]

when that supremum exists. When *X* has a total order, is a complete lattice and has the order topology,

- [math]\displaystyle{ \limsup B = \inf\{ \sup B_0 : B_0 \in B \}. }[/math]

Similarly, the limit inferior of the filter base *B* is defined as

- [math]\displaystyle{ \liminf B := \inf \bigcap \{ \overline{B}_0 : B_0 \in B \} }[/math]

when that infimum exists; if *X* is totally ordered, is a complete lattice, and has the order topology, then

- [math]\displaystyle{ \liminf B = \sup\{ \inf B_0 : B_0 \in B \}. }[/math]

If the limit inferior and limit superior agree, then there must be exactly one cluster point and the limit of the filter base is equal to this unique cluster point.

#### Specialization for sequences and nets

Note that filter bases are generalizations of nets, which are generalizations of sequences. Therefore, these definitions give the limit inferior and limit superior of any net (and thus any sequence) as well. For example, take topological space [math]\displaystyle{ X }[/math] and the net [math]\displaystyle{ (x_\alpha)_{\alpha \in A} }[/math], where [math]\displaystyle{ (A,{\leq}) }[/math] is a directed set and [math]\displaystyle{ x_\alpha \in X }[/math] for all [math]\displaystyle{ \alpha \in A }[/math]. The filter base ("of tails") generated by this net is [math]\displaystyle{ B }[/math] defined by

- [math]\displaystyle{ B := \{ \{ x_\alpha : \alpha_0 \leq \alpha \} : \alpha_0 \in A \}.\, }[/math]

Therefore, the limit inferior and limit superior of the net are equal to the limit superior and limit inferior of [math]\displaystyle{ B }[/math] respectively. Similarly, for topological space [math]\displaystyle{ X }[/math], take the sequence [math]\displaystyle{ (x_n) }[/math] where [math]\displaystyle{ x_n \in X }[/math] for any [math]\displaystyle{ n \in \mathbb{N} }[/math] with [math]\displaystyle{ \mathbb{N} }[/math] being the set of natural numbers. The filter base ("of tails") generated by this sequence is [math]\displaystyle{ C }[/math] defined by

- [math]\displaystyle{ C := \{ \{ x_n : n_0 \leq n \} : n_0 \in \mathbb{N} \}.\, }[/math]

Therefore, the limit inferior and limit superior of the sequence are equal to the limit superior and limit inferior of [math]\displaystyle{ C }[/math] respectively.

## See also

- Essential supremum and essential infimum
- Envelope (waves)
- One-sided limit
- Dini derivatives
- Set-theoretic limit

## References

- ↑ Rudin, W. (1976).
*Principles of Mathematical Analysis*. New York: McGraw-Hill. pp. 56. ISBN 007054235X. https://archive.org/details/1979RudinW. - ↑ "Bounded gaps between primes". http://slither.io. Retrieved 14 May 2014.
- ↑ "Lebesgue’s Criterion for Riemann integrability (MATH314 Lecture Notes)". Archived from the original on 2007-03-03. https://web.archive.org/web/20070303150958/http://tt.lamf.uwindsor.ca/314folder/analbookfiles/RintexistLebesgue.pdf. Retrieved 2006-02-24.
- ↑
^{4.0}^{4.1}Goebel, Rafal; Sanfelice, Ricardo G.; Teel, Andrew R. (2009). "Hybrid dynamical systems".*IEEE Control Systems Magazine***29**(2): 28–93. doi:10.1109/MCS.2008.931718. - ↑ Halmos, Paul R. (1950).
*Measure Theory*. Princeton, NJ: D. Van Nostrand Company, Inc..

- Amann, H.; Escher, Joachim (2005).
*Analysis*. Basel; Boston: Birkhäuser. ISBN 0-8176-7153-6. - González, Mario O (1991).
*Classical complex analysis*. New York: M. Dekker. ISBN 0-8247-8415-4.

## External links

- Hazewinkel, Michiel, ed. (2001), "Upper and lower limits",
*Encyclopedia of Mathematics*, Springer Science+Business Media B.V. / Kluwer Academic Publishers, ISBN 978-1-55608-010-4, https://www.encyclopediaofmath.org/index.php?title=p/u095830