# Arzelà–Ascoli theorem

The Arzelà–Ascoli theorem is a fundamental result of mathematical analysis giving necessary and sufficient conditions to decide whether every sequence of a given family of real-valued continuous functions defined on a closed and bounded interval has a uniformly convergent subsequence. The main condition is the equicontinuity of the family of functions. The theorem is the basis of many proofs in mathematics, including that of the Peano existence theorem in the theory of ordinary differential equations, Montel's theorem in complex analysis, and the Peter–Weyl theorem in harmonic analysis and various results concerning compactness of integral operators.
The notion of equicontinuity was introduced in the late 19th century by the Italian mathematicians Cesare Arzelà and Giulio Ascoli. A weak form of the theorem was proven by Ascoli (1883–1884), who established the sufficient condition for compactness, and by Arzelà (1895), who established the necessary condition and gave the first clear presentation of the result. A further generalization of the theorem was proven by Fréchet (1906), to sets of real-valued continuous functions with domain a compact metric space (Dunford & Schwartz 1958, p. 382). Modern formulations of the theorem allow for the domain to be compact Hausdorff and for the range to be an arbitrary metric space. More general formulations of the theorem exist that give necessary and sufficient conditions for a family of functions from a compactly generated Hausdorff space into a uniform space to be compact in the compact-open topology; see Kelley (1991, page 234).

## Statement and first consequences

By definition, a sequence $\{f_{n}\}_{n\in \mathbb {N} }$ of continuous functions on an interval I = [a, b] is uniformly bounded if there is a number M such that
    $\left|f_{n}(x)\right|\leq M$
for every function  f$_n$  belonging to the sequence, and every x ∈ [a, b]. (Here, M must be independent of n and x.)
The sequence is said to be uniformly equicontinuous if, for every ε > 0, there exists a δ > 0 such that
    $\left|f_{n}(x)-f_{n}(y)\right|<\varepsilon$
whenever |x − y| < δ  for all functions  f$_n$  in the sequence. (Here, δ may depend on ε, but not x, y or n.)
One version of the theorem can be stated as follows:
    Consider a sequence of real-valued continuous functions { f$_n$ }$_{n∈N}$ defined on a closed and bounded interval [a, b] of the real line. If this sequence is uniformly bounded and uniformly equicontinuous, then there exists a subsequence { f$_{nk}$ }$_{k∈N}$ that converges uniformly.
    The converse is also true, in the sense that if every subsequence of { f$_n$ } itself has a uniformly convergent subsequence, then { f$_n$ } is uniformly bounded and equicontinuous.
The proof is essentially based on a diagonalization argument. The simplest case is of real-valued functions on a closed and bounded interval:
* Let I = [a, b] ⊂ R be a closed and bounded interval. If F is an infinite set of functions  f  : I → R which is uniformly bounded and equicontinuous, then there is a sequence f$_n$ of elements of F such that f$_n$ converges uniformly on I.
Fix an enumeration {x$_i$}$_{i∈N}$ of rational numbers in I. Since F is uniformly bounded, the set of points {f(x$_1$)}$_{f∈F}$ is bounded, and hence by the Bolzano–Weierstrass theorem, there is a sequence {f$_{n1}$} of distinct functions in F such that {f$_{n1}$(x$_1$)} converges. Repeating the same argument for the sequence of points {f$_{n1}$(x$_2$)} , there is a subsequence {f$_{n2}$} of {f$_{n1}$} such that {f$_{n2}$(x$_2$)} converges.
By induction this process can be continued forever, and so there is a chain of subsequences
    $\left\{f_{n_{1}}\right\}\supseteq \left\{f_{n_{2}}\right\}\supseteq \cdots$
such that, for each k = 1, 2, 3, ..., the subsequence {f$_{nk}$} converges at x$_1$, ..., x$_k$. Now form the diagonal subsequence {f} whose mth term f$_m$ is the mth term in the mth subsequence {f$_{nm}$} . By construction, f$_m$ converges at every rational point of I.
Therefore, given any ε > 0 and rational x$_k$ in I, there is an integer N = N(ε, x$_k$) such that
    $|f_{n}(x_{k})-f_{m}(x_{k})|<{\tfrac {\varepsilon }{3}},\qquad n,m\geq N.$
Since the family F is equicontinuous, for this fixed ε and for every x in I, there is an open interval U$_x$ containing x such that
    $|f(s)-f(t)|<{\tfrac {\varepsilon }{3}}$
for all f ∈ F and all s, t in I such that s, t ∈ U$_x$.
The collection of intervals U$_x$, x ∈ I, forms an open cover of I. Since I is closed and bounded, by the Heine–Borel theorem I is compact, implying that this covering admits a finite subcover U$_1$, ..., U$_J$. There exists an integer K such that each open interval U$_j$, 1 ≤ j ≤ J, contains a rational x$_k$ with 1 ≤ k ≤ K. Finally, for any t ∈ I, there are j and k so that t and x$_k$ belong to the same interval U$_j$. For this choice of k,
    ${\begin{aligned}\left|f_{n}(t)-f_{m}(t)\right|&\leq \left|f_{n}(t)-f_{n}(x_{k})\right|+|f_{n}(x_{k})-f_{m}(x_{k})|+|f_{m}(x_{k})-f_{m}(t)|\\&<{\tfrac {\varepsilon }{3}}+{\tfrac {\varepsilon }{3}}+{\tfrac {\varepsilon }{3}}\end{aligned}}$
for all n, m > N = max{N(ε, x$_1$), ..., N(ε, x$_K$)}. Consequently, the sequence {f$_n$} is uniformly Cauchy, and therefore converges to a continuous function, as claimed. This completes the proof.

### Immediate examples
#### Differentiable functions

The hypotheses of the theorem are satisfied by a uniformly bounded sequence { f$_n$ } of differentiable functions with uniformly bounded derivatives. Indeed, uniform boundedness of the derivatives implies by the mean value theorem that for all x and y,
    $\left|f_{n}(x)-f_{n}(y)\right|\leq K|x-y|,$
where K is the supremum of the derivatives of functions in the sequence and is independent of n. So, given ε > 0, let δ = ⁠ε/2K⁠ to verify the definition of equicontinuity of the sequence. This proves the following corollary:
* Let {f$_n$} be a uniformly bounded sequence of real-valued differentiable functions on [a, b] such that the derivatives {f$_n$′} are uniformly bounded. Then there exists a subsequence {f$_{nk}$} that converges uniformly on [a, b].
If, in addition, the sequence of second derivatives is also uniformly bounded, then the derivatives also converge uniformly (up to a subsequence), and so on. Another generalization holds for continuously differentiable functions. Suppose that the functions  f$_n$  are continuously differentiable with derivatives f$_n$′. Suppose that f$_n$′ are uniformly equicontinuous and uniformly bounded, and that the sequence { f$_n$ }, is pointwise bounded (or just bounded at a single point). Then there is a subsequence of the { f$_n$ } converging uniformly to a continuously differentiable function.
The diagonalization argument can also be used to show that a family of infinitely differentiable functions, whose derivatives of each order are uniformly bounded, has a uniformly convergent subsequence, all of whose derivatives are also uniformly convergent. This is particularly important in the theory of distributions.

#### Lipschitz and Hölder continuous functions

The argument given above proves slightly more, specifically
* If { f$_n$ } is a uniformly bounded sequence of real valued functions on [a, b] such that each f$_n$ is Lipschitz continuous with the same Lipschitz constant K:
       $\left|f_{n}(x)-f_{n}(y)\right|\leq K|x-y|$
    for all x, y ∈ [a, b] and all  f$_n$ , then there is a subsequence that converges uniformly on [a, b].
The limit function is also Lipschitz continuous with the same value K for the Lipschitz constant. A slight refinement is
* A set F of functions  f  on [a, b] that is uniformly bounded and satisfies a Hölder condition of order α, 0 < α ≤ 1, with a fixed constant M,
       $\left|f(x)-f(y)\right|\leq M\,|x-y|^{\alpha },\qquad x,y\in [a,b]$
    is relatively compact in C([a, b]). In particular, the unit ball of the Hölder space C$^{0,α}$([a, b]) is compact in C([a, b]).
This holds more generally for scalar functions on a compact metric space X satisfying a Hölder condition with respect to the metric on X.

## Generalizations
### Euclidean spaces

The Arzelà–Ascoli theorem holds, more generally, if the functions  f$_n$  take values in d-dimensional Euclidean space R$^d$, and the proof is very simple: just apply the R-valued version of the Arzelà–Ascoli theorem d times to extract a subsequence that converges uniformly in the first coordinate, then a sub-subsequence that converges uniformly in the first two coordinates, and so on. The above examples generalize easily to the case of functions with values in Euclidean space.

### Compact metric spaces and compact Hausdorff spaces

The definitions of boundedness and equicontinuity can be generalized to the setting of arbitrary compact metric spaces and, more generally still, compact Hausdorff spaces. Let X be a compact Hausdorff space, and let C(X) be the space of real-valued continuous functions on X. A subset F ⊂ C(X) is said to be equicontinuous if for every x ∈ X and every ε > 0, x has a neighborhood U$_x$ such that
    $\forall y\in U_{x},\forall f\in \mathbf {F} :\qquad |f(y)-f(x)|<\varepsilon .$
A set F ⊂ C(X, R) is said to be pointwise bounded if for every x ∈ X,
    $\sup\{|f(x)|:f\in \mathbf {F} \}<\infty .$
A version of the Theorem holds also in the space C(X) of real-valued continuous functions on a compact Hausdorff space X (Dunford & Schwartz 1958, §IV.6.7):
    Let X be a compact Hausdorff space. Then a subset F of C(X) is relatively compact in the topology induced by the uniform norm if and only if it is equicontinuous and pointwise bounded.
The Arzelà–Ascoli theorem is thus a fundamental result in the study of the algebra of continuous functions on a compact Hausdorff space.
Various generalizations of the above quoted result are possible. For instance, the functions can assume values in a metric space or (Hausdorff) topological vector space with only minimal changes to the statement (see, for instance, Kelley & Namioka (1982, §8), Kelley (1991, Chapter 7)):
    Let X be a compact Hausdorff space and Y a metric space. Then F ⊂ C(X, Y) is compact in the compact-open topology if and only if it is equicontinuous, pointwise relatively compact and closed.
Here pointwise relatively compact means that for each x ∈ X, the set F$_x$ = { f (x) :  f  ∈ F} is relatively compact in Y.
In the case that Y is complete, the proof given above can be generalized in a way that does not rely on the separability of the domain. On a compact Hausdorff space X, for instance, the equicontinuity is used to extract, for each ε = 1/n, a finite open covering of X such that the oscillation of any function in the family is less than ε on each open set in the cover. The role of the rationals can then be played by a set of points drawn from each open set in each of the countably many covers obtained in this way, and the main part of the proof proceeds exactly as above. A similar argument is used as a part of the proof for the general version which does not assume completeness of Y.

### Functions on non-compact spaces

The Arzela-Ascoli theorem generalises to functions $X\rightarrow Y$ where $X$ is not compact. Particularly important are cases where $X$ is a topological vector space. Recall that if $X$ is a topological space and $Y$ is a uniform space (such as any metric space or any topological group, metrisable or not), there is the topology of compact convergence on the set ${\mathfrak {F}}(X,Y)$ of functions $X\rightarrow Y$; it is set up so that a sequence (or more generally a filter or net) of functions converges if and only if it converges uniformly on each compact subset of $X$. Let ${\mathcal {C}}_{c}(X,Y)$ be the subspace of ${\mathfrak {F}}(X,Y)$ consisting of continuous functions, equipped with the topology of compact convergence. Then one form of the Arzelà-Ascoli theorem is the following:
    Let $X$ be a topological space, $Y$ a Hausdorff uniform space and $H\subset {\mathcal {C}}_{c}(X,Y)$ an equicontinuous set of continuous functions such that $\{h(x):h\in H\}$ is relatively compact in $Y$ for each $x\in X$. Then $H$ is relatively compact in ${\mathcal {C}}_{c}(X,Y)$.
This theorem immediately gives the more specialised statements above in cases where $X$ is compact and the uniform structure of $Y$ is given by a metric. There are a few other variants in terms of the topology of precompact convergence or other related topologies on ${\mathfrak {F}}(X,Y)$. It is also possible to extend the statement to functions that are only continuous when restricted to the sets of a covering of $X$ by compact subsets. For details one can consult Bourbaki (1998), Chapter X, § 2, nr 5.

### Non-continuous functions

Solutions of numerical schemes for parabolic equations are usually piecewise constant, and therefore not continuous, in time. As their jumps nevertheless tend to become small as the time step goes to $0$, it is possible to establish uniform-in-time convergence properties using a generalisation to non-continuous functions of the classical Arzelà–Ascoli theorem (see e.g. Droniou & Eymard (2016, Appendix)).
Denote by $S(X,Y)$ the space of functions from $X$ to $Y$ endowed with the uniform metric
    $d_{S}(v,w)=\sup _{t\in X}d_{Y}(v(t),w(t)).$
Then we have the following:
    Let $X$ be a compact metric space and $Y$ a complete metric space. Let $\{v_{n}\}_{n\in \mathbb {N} }$ be a sequence in $S(X,Y)$ such that there exists a function $\omega :X\times X\to [0,\infty ]$ and a sequence $\{\delta _{n}\}_{n\in \mathbb {N} }\subset [0,\infty )$ satisfying
       $\lim _{d_{X}(t,t')\to 0}\omega (t,t')=0,\quad \lim _{n\to \infty }\delta _{n}=0,$
       $\forall (t,t')\in X\times X,\quad \forall n\in \mathbb {N} ,\quad d_{Y}(v_{n}(t),v_{n}(t'))\leq \omega (t,t')+\delta _{n}.$
    Assume also that, for all $t\in X$, $\{v_{n}(t):n\in \mathbb {N} \}$ is relatively compact in $Y$. Then $\{v_{n}\}_{n\in \mathbb {N} }$ is relatively compact in $S(X,Y)$, and any limit of $\{v_{n}\}_{n\in \mathbb {N} }$ in this space is in $C(X,Y)$.

## Necessity

Whereas most formulations of the Arzelà–Ascoli theorem assert sufficient conditions for a family of functions to be (relatively) compact in some topology, these conditions are typically also necessary. For instance, if a set F is compact in C(X), the Banach space of real-valued continuous functions on a compact Hausdorff space with respect to its uniform norm, then it is bounded in the uniform norm on C(X) and in particular is pointwise bounded. Let N(ε, U) be the set of all functions in F whose oscillation over an open subset U ⊂ X is less than ε:
    $N(\varepsilon ,U)=\{f\mid \operatorname {osc} _{U}f<\varepsilon \}.$
For a fixed x∈X and ε, the sets N(ε, U) form an open covering of F as U varies over all open neighborhoods of x. Choosing a finite subcover then gives equicontinuity.

## Further examples

* To every function g that is p-integrable on [0, 1], with 1 < p ≤ ∞, associate the function G defined on [0, 1] by
       $G(x)=\int _{0}^{x}g(t)\,\mathrm {d} t.$
    Let F be the set of functions G corresponding to functions g in the unit ball of the space L$^p$([0, 1]). If q is the Hölder conjugate of p, defined by ⁠1/p⁠ + ⁠1/q⁠ = 1, then Hölder's inequality implies that all functions in F satisfy a Hölder condition with α = ⁠1/q⁠ and constant M = 1.
    It follows that F is compact in C([0, 1]). This means that the correspondence g → G defines a compact linear operator T between the Banach spaces L$^p$([0, 1]) and C([0, 1]). Composing with the injection of C([0, 1]) into L$^p$([0, 1]), one sees that T acts compactly from L$^p$([0, 1]) to itself. The case p = 2 can be seen as a simple instance of the fact that the injection from the Sobolev space $H_{0}^{1}(\Omega )$ into L$^2$(Ω), for Ω a bounded open set in R$^d$, is compact.
* When T is a compact linear operator from a Banach space X to a Banach space Y, its transpose T$^∗$ is compact from the (continuous) dual Y$^∗$ to X$^∗$. This can be checked by the Arzelà–Ascoli theorem.
    Indeed, the image T(B) of the closed unit ball B of X is contained in a compact subset K of Y. The unit ball B$^∗$ of Y$^∗$ defines, by restricting from Y to K, a set F of (linear) continuous functions on K that is bounded and equicontinuous. By Arzelà–Ascoli, for every sequence {y$^∗$ $_n$}, in B$^∗$, there is a subsequence that converges uniformly on K, and this implies that the image $T^{*}(y_{n_{k}}^{*})$ of that subsequence is Cauchy in X$^∗$.
* When  f  is holomorphic in an open disk D$_1$ = B(z$_0$, r), with modulus bounded by M, then (for example by Cauchy's formula) its derivative  f ′ has modulus bounded by ⁠2M/r⁠ in the smaller disk D$_2$ = B(z$_0$, ⁠r/2⁠). If a family of holomorphic functions on D$_1$ is bounded by M on D$_1$, it follows that the family F of restrictions to D$_2$ is equicontinuous on D$_2$. Therefore, a sequence converging uniformly on D$_2$ can be extracted. This is a first step in the direction of Montel's theorem.
* Let $C([0,T],L^{1}(\mathbb {R} ^{N}))$ be endowed with the uniform metric $\textstyle \sup _{t\in [0,T]}\|v(\cdot ,t)-w(\cdot ,t)\|_{L^{1}(\mathbb {R} ^{N})}.$ Assume that $u_{n}=u_{n}(x,t)\subset C([0,T];L^{1}(\mathbb {R} ^{N}))$ is a sequence of solutions of a certain partial differential equation (PDE), where the PDE ensures the following a priori estimates: $x\mapsto u_{n}(x,t)$ is equicontinuous for all $t$, $x\mapsto u_{n}(x,t)$ is equitight for all $t$, and, for all $(t,t')\in [0,T]\times [0,T]$ and all $n\in \mathbb {N}$, $\|u_{n}(\cdot ,t)-u_{n}(\cdot ,t')\|_{L^{1}(\mathbb {R} ^{N})}$ is small enough when $|t-t'|$ is small enough. Then by the Fréchet–Kolmogorov theorem, we can conclude that $\{x\mapsto u_{n}(x,t):n\in \mathbb {N} \}$ is relatively compact in $L^{1}(\mathbb {R} ^{N})$. Hence, we can, by (a generalization of) the Arzelà–Ascoli theorem, conclude that $\{u_{n}:n\in \mathbb {N} \}$ is relatively compact in $C([0,T],L^{1}(\mathbb {R} ^{N})).$