A metric space is a complete metric space when every Cauchy sequence converges to a point of that space: for each , the condition for all sufficiently large must imply existence of with .
A Cauchy sequence in is also Cauchy in , so it converges there by the assumed completeness. Its limit remains between zero and one, since inequalities are preserved under limits. Therefore
This is an instance of the fact that a closed subset of a complete metric space is complete with its induced metric.
The Baire category theorem says that in a nonempty complete metric space, every countable intersection of open dense sets is dense. To prove it, start in an arbitrary nonempty open set and let be open dense. Inductively choose closed balls with , contained in and in the interior of the previous ball, with the first also contained in . Density provides a point at each stage, and openness permits the smaller closed ball. The centers are a Cauchy sequence; completeness supplies a limit lying in every closed ball, hence in . The proof also works at isolated points, where sufficiently small balls are singletons.
The incomplete metric space is a counterexample: it is the countable union of its closed nowhere dense singletons, so the complements are open dense with empty intersection.
For the sequence in the problem, put
Each is closed by continuity. Pointwise convergence makes each point's values a Cauchy sequence, so . By the Baire category theorem, one has nonempty relative interior, which contains a nonempty open interval in . This proves the required common tail bound.
If continuous converged pointwise to the rationality indicator, take and let in this bound. On , for . Hence a fixed continuous is at least at every rational point and at most at every irrational point of . The density of both sets contradicts continuity. Thus the rationality indicator is not a pointwise limit of continuous functions.
Nevertheless are continuous and converge pointwise to for , . This limit is discontinuous at : a pointwise limit of continuous functions can be discontinuous.
One form of the Baire category theorem is: a nonempty complete metric space cannot be a countable union of closed nowhere dense subsets. Equivalently, a countable intersection of open dense subsets is dense. A Banach space is a complete metric space for its norm metric, so this form applies directly to the next part.
A complete metric space is one in which every Cauchy sequence converges. On define
The map is an isometry from onto the closed subset of , so is a metric and is complete. That map and its inverse are continuous in the ordinary Euclidean metrics, so it is also a homeomorphism. Therefore induces exactly the usual subspace topology on .
One form of the Baire category theorem says that a nonempty complete metric space cannot be a countable union of closed nowhere dense sets.
For each nonnegative integer , put
Because is an entire function, every derivative is continuous and is closed. No is identically zero: if for some , repeated integration shows that is a polynomial. By the identity theorem, the zero set of the nonzero holomorphic function has empty interior. Thus each is nowhere dense.
The complex plane is complete, so the Baire category theorem gives
Choose outside this union. Then for every , and hence every coefficient in the Taylor series about is nonzero. Such a point therefore exists.
First, compactness makes totally bounded: for every positive integer , the open cover by balls of radius has a finite subcover. Given a sequence, repeatedly choose a ball of radius containing infinitely many terms of the subsequence retained at the preceding stage. Taking a diagonal subsequence , any two terms with indices at least lie in one ball of radius , so their distance is below . The diagonal subsequence is therefore a Cauchy sequence.
A compact metric space is complete. To see this without assuming sequential compactness, let be Cauchy and put . These nonempty closed sets are nested and have the finite intersection property; compactness gives a point . Given , a sufficiently late tail has diameter below , and because lies in its closure, every point of that tail lies within of . Thus .
The Cauchy subsequence constructed above consequently converges in . Hence every compact metric space is sequentially compact.
Let be a Cauchy sequence in a compact metric space . By sequential compactness of a compact metric space, it has a convergent subsequence . Given , choose such that whenever , and then choose such that and . For every , the triangle inequality gives
Thus the whole sequence converges to . Every Cauchy sequence converges in , so is a complete metric space.
The space is not compact because it is not complete. For , define the continuous function
These functions converge in the L1 norm to the step function , because is supported on an interval of length and bounded in absolute value by one. They are consequently Cauchy for the metric , since for sufficiently close pairs the outer minimum with does nothing.
If converged in this metric to some , it would also converge to in . Uniqueness of an limit would give almost everywhere. Continuity would then force on and on , which is impossible at . Thus this Cauchy sequence has no limit in , while every compact metric space is complete.
For each , define
Every is an entire function, hence continuous, so is closed. The hypothesis says
The complex plane is a complete metric space. The Baire category theorem therefore implies that some has nonempty interior. Thus vanishes on an open set, and the identity theorem gives
on all of . If , then ; otherwise the power series of has no term of degree or higher. Hence is a polynomial of degree at most . This is the pointwise vanishing derivative criterion for a polynomial.
A subset of a metric space is nowhere dense when the interior of its closure is empty. One form of the Baire category theorem says that a nonempty complete metric space cannot be a countable union of nowhere dense closed sets; equivalently, a countable intersection of dense open sets is dense.
Fix and work in the complete interval . For define the closed set
The sets are closed by the continuity of , and the assumed pointwise convergence gives . The Baire category theorem therefore gives an and a nonempty open interval contained in .
The intervals overlap once , which holds for every sufficiently large natural number . Their union consequently contains a half-line. Every sufficiently large can therefore be written as with and , and then . Since was arbitrary, as .
This is always true. Uniform convergence makes a uniformly Cauchy sequence: for every , there is such that
for every and . Letting through points of and using the assumed limits gives
Thus is a Cauchy sequence. Since is a complete metric space, converges in .
A Cauchy sequence in a metric space satisfies: for every there is such that whenever . A complete metric space is one in which every Cauchy sequence converges to a point of the space.
Every Cauchy sequence is bounded. Choose such that for , and put
Then every term lies in the ball .
Now suppose is complete and is a decreasing sequence of nonempty closed sets with . Choose . Given , choose with . For , both points lie in , so . Completeness gives . For each fixed , the tail lies in the closed set , hence . Therefore
Conversely, assume the nested-set property and let be Cauchy. Define
These sets are nonempty, closed, and decreasing. The Cauchy property implies ; taking a closure does not change the diameter. Choose . Since ,
Thus every Cauchy sequence converges and is complete. This proves the Cantor intersection theorem characterization.
The contraction mapping theorem states that a contraction of a nonempty complete metric space has a unique fixed point.
For each , the map is a contraction with the common constant , so it has a unique fixed point . This defines the required unique function. Fix . The fixed-point identities and the triangle inequality give
Consequently
The numerator tends to zero as by the assumed continuity for the fixed point . Hence is continuous, an instance of continuous dependence of the fixed point of a uniform contraction.
The Baire category theorem states that every countable intersection of open dense subsets of a complete metric space is dense. Equivalently, no nonempty open subset of a complete metric space is a countable union of nowhere dense sets.
To prove the first form, let be open dense subsets of a complete metric space , and let be nonempty and open. Choose a closed ball
Inductively, density and openness of allow a closed ball
The balls are nested and for , so is Cauchy. Completeness gives . For every , all later centres lie in ; closedness gives . The first ball also lies in , hence
Since every nonempty open meets the intersection, that intersection is dense.
For , put
Each is closed, the hypothesis gives , and because a function that vanishes on an open set has derivative zero there.
The open set
is dense. Indeed, inside any nonempty open interval choose a nondegenerate closed subinterval . The complete metric space is covered by the closed sets , so the Baire's theorem makes one of them contain a relative open interval, which lies in some .
On each connected component of , the function is one polynomial. To see this, any compact subinterval is covered by the increasing family . A finite subcover therefore gives for some , and on . Hence is polynomial on ; overlapping compact intervals force these polynomials to agree throughout .
Let . This closed set has no isolated points. Otherwise, on the two sides of an isolated point , would equal polynomials. Smoothness makes all their one-sided derivatives agree at , so the two polynomials are identical and extend across . Some derivative would then vanish on a neighborhood of , contrary to .
Suppose that is nonempty. It is complete and
is a countable closed cover. A second application of Baire's theorem gives an index and an open interval such that
Choose and a bounded open interval centred at whose closure lies in .
Because has no isolated points, every is approached by distinct points of . Difference quotients first give , and induction gives
No component of meeting can cross , so it has an endpoint in . If its polynomial had degree , then its th derivative would approach a nonzero constant at that endpoint, contradicting the preceding display. Its degree is therefore less than , so also vanishes on the part of that component in . We conclude that throughout , which says and contradicts .
Thus is empty. The whole line is the single component of , and the argument above shows that is one polynomial on . This is the smooth function with a pointwise vanishing derivative theorem.
The pointwise inequality implies
Every -Cauchy sequence is therefore -Cauchy. Since is geodesically complete, the Hopf-Rinow theorem makes a complete metric space, so in for some .
On a coordinate neighbourhood with compact closure around , smooth positive-definite Riemannian metrics are uniformly equivalent. Thus there is such that
there. For all sufficiently large , a short -geodesic from to stays in this neighbourhood, and hence
Thus is complete. Another application of Hopf-Rinow shows that is geodesically complete.