In mathematics, a Cauchy sequence, named after Augustin-Louis Cauchy, is a sequence whose elements become arbitrarily close to each other as the sequence progresses. To be more precise, by dropping enough (but still only a finite number of) terms from the start of the sequence, it is possible to make the maximum of the distances from any of the remaining elements to any other such element smaller than any preassigned, necessarily positive, value.
In other words, suppose a pre-assigned positive real value ε is chosen. However small ε is, starting from a Cauchy sequence and eliminating terms one by one from the start, after a finite number of steps, any pair chosen from the remaining terms will be within distance ε of each other.
The utility of Cauchy sequences lies in the fact that in a complete metric space (one where all such sequences are known to converge to a limit), the criterion for convergence depends only on the terms of the sequence itself. This is often exploited in algorithms, both theoretical and applied, where an iterative process can be shown relatively easily to produce a Cauchy sequence, consisting of the iterates.
The notions above are not as unfamiliar as they might at first appear. The customary acceptance of the fact that any real number x has a decimal expansion is an implicit acknowledgment that a particular Cauchy sequence of rational numbers (whose terms are the successive truncations of the decimal expansion of x) has the real limit x. In some cases it may be difficult to describe x independently of such a limiting process involving rational numbers.
Generalizations of Cauchy sequences in more abstract uniform spaces exist in the form of Cauchy filter and Cauchy net.
A sequence
of real numbers is called Cauchy, if for every positive real number ε, there is a positive integer N such that for all natural numbers m,n > N
where the vertical bars denote the absolute value.
In a similar way one can define Cauchy sequences of rational or complex numbers.
To define Cauchy sequences in any metric space, the absolute value | xm − xn | is replaced by the distance d(xm,xn) between xm and xn.
Formally, given a metric space (M, d), a sequence
is Cauchy, if for every positive real number ε > 0 there is a positive integer N such that for all natural numbers m,n > N, the distance
Roughly speaking, the terms of the sequence are getting closer and closer together in a way that suggests that the sequence ought to have a limit in M. Nonetheless, such a limit does not always exist within M.
A metric space X in which every Cauchy sequence has a limit in X is called complete.
The real numbers are complete, and one of the standard constructions of the real numbers involves Cauchy sequences of rational numbers.
A rather different type of example is afforded by a metric space X which has the discrete metric (where any two distinct points are at distance 1 from each other). Any Cauchy sequence of elements of X must be constant beyond some fixed point, and converges to the eventually repeating term.
The rational numbers Q are not complete (for the usual distance):
There are sequences of rationals that converge (in R) to irrational numbers; these are Cauchy sequences having no limit in Q. In fact, if a real number x is irrational, then the sequence (xn), whose n-th term is the truncation to n decimal places of the decimal expansion of x, gives Cauchy sequence of rational numbers with irrational limit x. Irrational numbers certainly exist, for example:
, the Golden ratio, which is irrational.The open interval X=(0, 2) in the set of real numbers with an ordinary distance in R is not a complete space: there is a sequence xn=1/n in it, which is Cauchy (for arbitrarily small distance bound d>0 all terms xn of n>1/d fit in the (0, d) interval), however does not converge in X—its 'limit', number 0, does not belong to the space X.
These last two properties, together with a lemma used in the proof of the Bolzano–Weierstrass theorem, yield one standard proof of the completeness of the real numbers, closely related to both the Bolzano–Weierstrass theorem and the Heine–Borel theorem. The lemma in question states that every bounded sequence of real numbers has a convergent subsequence. Given this fact, every Cauchy sequence of real numbers is bounded, hence has a convergent subsequence, hence is itself convergent. It should be noted, though, that this proof of the completeness of the real numbers implicitly makes use of the least upper bound axiom. The alternative approach, mentioned above, of constructing the real numbers as the completion of the rational numbers, makes the completeness of the real numbers tautological.
One of the standard illustrations of the advantage of being able to work with Cauchy sequences and make use of completeness is provided by consideration of the summation of an infinite series of real numbers (or, more generally, of elements of any complete normed linear space, or Banach space). Such a series
is considered to be convergent if and only if the sequence of partial sums (sm) is convergent, where
. It is a routine matter to determine whether the sequence of partial sums is Cauchy or not, since for positive integers p > q,
.If
is a uniformly continuous map between the metric spaces M and N and (xn) is a Cauchy sequence in M, then (f(xn)) is a Cauchy sequence in N. If (xn) and (yn) are two Cauchy sequences in the rational, real or complex numbers, then the sum (xn + yn) and the product (xnyn) are also Cauchy sequences.
There is also a concept of Cauchy sequence for a topological vector space X: Pick a local base B for X about 0; then (xk) is a Cauchy sequence if for all members V of B, there is some number N such that whenever n,m > N,xn − xm is an element of V. If the topology of X is compatible with a translation-invariant metric d, the two definitions agree.
Since the topological vector space definition of Cauchy sequence requires only that there be a continuous "subtraction" operation, it can just as well be stated in the context of a topological group: A sequence (xk) in a topological group G is a Cauchy sequence if for every open neighbourhood U of the identity in G there exists some number N such that whenever m,n > N it follows that
. As above, it is sufficient to check this for the neighbourhoods in any local base of the identity in G.
As in the construction of the completion of a metric space, one can furthermore define the binary relation on Cauchy sequences in G that (xk) and (yk) are equivalent if there for every open neighbourhood U of the identity in G exists some number N such that whenever m,n > N it follows that
. This relation is an equivalence relation. More precisely, it is reflexive since the sequences are Cauchy sequences. It is symmetric since
which by continuity of the inverse is another open neighbourhood of the identity. It is transitive since
where U' and U'' are open neighbourhoods of the identity such that
; such pairs exist by the continuity of the group operation.
There is also a concept of Cauchy sequence in a group G: Let H = (Hr) be a decreasing sequence of normal subgroups of G of finite index. Then a sequence (xn) in G is said to be Cauchy (w.r.t. H) if and only if for any r there is N such that
.
Technically, this is the same thing as a topological group Cauchy sequence for a particular choice of topology on G, namely that for which H is a local base.
The set C of such Cauchy sequences forms a group (for the componentwise product), and the set C0 of null sequences (s.th.
) is a normal subgroup of C. The factor group C / C0 is called the completion of G with respect to H.
One can then show that this completion is isomorphic to the inverse limit of the sequence (G / Hr).
An example of this construction, familiar in number theory and algebraic geometry is the construction of the p-adic completion of the integers with respect to a prime p. In this case, G is the integers under addition, and Hr is the additive subgroup consisting of integer multiples of pr.