In mathematics, the Heine–Cantor theorem states that a continuous function between two metric spaces is uniformly continuous if its domain is compact.
The theorem is named after Eduard Heine and Georg Cantor.
An important special case of the Cantor theorem is that every continuous function from a closed bounded interval to the real numbers is uniformly continuous.
Proof of Heine–Cantor theorem
Suppose that  and
 and  are two metric spaces with metrics
 are two metric spaces with metrics  and
 and  , respectively. Suppose further that a function
, respectively. Suppose further that a function  is continuous and
 is continuous and  is compact. We want to show that
 is compact. We want to show that  is uniformly continuous, that is, for every positive real number
 is uniformly continuous, that is, for every positive real number  there exists a positive real number
 there exists a positive real number  such that for all points
 such that for all points  in the function domain
 in the function domain  ,
,  implies that
 implies that  .
.
Consider some positive real number  . By continuity, for any point
. By continuity, for any point  in the domain
 in the domain  , there exists some positive real number
, there exists some positive real number  such that
 such that  when
 when  , i.e., a fact that
, i.e., a fact that  is within
 is within  of
 of  implies that
 implies that  is within
 is within  of
 of  .
. 
Let  be the open
 be the open  -neighborhood of
-neighborhood of  , i.e. the set
, i.e. the set
 
Since each point  is contained in its own
 is contained in its own  , we find that the collection
, we find that the collection  is an open cover of
 is an open cover of  . Since
. Since  is compact, this cover has a finite subcover
 is compact, this cover has a finite subcover  where
 where  . Each of these open sets has an associated radius
. Each of these open sets has an associated radius  . Let us now define
. Let us now define  , i.e. the minimum radius of these open sets. Since we have a finite number of positive radii, this minimum
, i.e. the minimum radius of these open sets. Since we have a finite number of positive radii, this minimum  is well-defined and positive. We now show that this
 is well-defined and positive. We now show that this  works for the definition of uniform continuity.
 works for the definition of uniform continuity.
Suppose that  for any two
 for any two  in
 in  . Since the sets
. Since the sets  form an open (sub)cover of our space
 form an open (sub)cover of our space  , we know that
, we know that  must lie within one of them, say
 must lie within one of them, say  . Then we have that
. Then we have that  . The triangle inequality then implies that
. The triangle inequality then implies that
 
implying that  and
 and  are both at most
 are both at most  away from
 away from  . By definition of
. By definition of  , this implies that
, this implies that  and
 and  are both less than
 are both less than  . Applying the triangle inequality then yields the desired
. Applying the triangle inequality then yields the desired
 
∎
 
For an alternative proof in the case of ![{\displaystyle M=[a,b]}](./_assets_/1b73aac2d757562c33c9f03d072662b9733fdf58.svg) , a closed interval, see the article Non-standard calculus.
, a closed interval, see the article Non-standard calculus.
See also
External links