Recall a function between metric spaces and is called continuous at a point if for every there exists a such that implies . That is, if is “near” , then will be “near” . We will say is continuous if it’s continuous at every point in . We can extend continuity from metric spaces to general topological spaces by the following.
If and are two topological spaces, then we say that a function is continuous if for every we have ; that is, if the preimage of every open set in is an open set in . Before discussing this further, let’s recall some properties of preimages.
- The preimage of a complement is the complement of the preimage: .
- The preimage of a union is the union of the preimages: .
- The preimage of an intersection is the intersection of the preimages:
- The preimage of a difference is the difference of the preimages:
To see the first of these properties, simply write out the definitions for the preimages.
Showing the other equalities follows the same general format of writing out the definition for the preimage and following your nose.
Of course, to call this topological definition an extension of the definition for metric spaces, we must show that our definition for continuity in metric spaces is a special case of this topological definition. Recall that a metric space is a topological space whose topology is generated by the collection of open balls; a subset of a metric space is open if around each point in the set we can place an open ball that stays entirely within the set.
Suppose is continuous in the metric sense. We wish to show that is continuous in the topological sense as well. Let and let be given. Note is an open subset of . Let . This means . We can then put a ball around and stay inside of . In particular, let and note . Consider the preimage of . By the assumption of continuity we can find a such that implies . The points satisfying are precisely the points of though. All together this means if we find a point in the preimage of a ball, we can put a ball around that point that stays inside the preimage: the preimage of a ball is an open set. If is a general open subset of (not necessarily a ball), then for each let denote a number such that . Then we have
We’ve just showed the preimage of an open ball is an open set, so now we have that the preimage of an openset is a union of open sets, so it is an open set as well.
Now suppose is such that for every open we have is open in . Then, in particular, for any and we have is an open subset of . This open subset must contain , so we can put a ball around staying inside the preimage. Calling the radius of this ball , we have that is continuous in the metric sense.
Defining continuity like this gives us a way to discuss continuous functions in spaces where we don’t necessarily have a metric, as long as we have a topology. For instance, if , then is a topology on . We might define a function as
Then would be a continuous function as ; ; ; and so on.
Even when we do have a metric space, it may be easier to show that the preimage of an open set is open, than it is to show that for every point and every we can find a corresponding . These are equivalent, but it may be easier in some cases to deal with general open sets than with -style proofs.