Continuity of Maps
Why should a definition built from open sets recover the familiar - picture from calculus? This is the concrete puzzle this article resolves. The topological definition of continuity — a map is continuous if preimages of open sets are open — is one of the great distillations in mathematics. It strips continuity down to the bare structural minimum. It discards distance and even the ability to measure "how close." Yet it keeps every consequence that matters for analysis and geometry. The idea matters because it lets continuity make sense in settings with no metric at all. Examples include spaces of functions, quotient spaces, Zariski-topologized varieties, and spaces of ideals in a ring. It applies anywhere a topology can be defined. It also reveals why continuity behaves the way it does. Composition of continuous maps is continuous almost by definitional bookkeeping. Properties like connectedness and compactness are preserved for essentially the same one-line reason. The big picture is that continuity is a relationship between two topological spaces. This relationship is mediated entirely by their lattices of open sets, not by their points individually. A function can fail to be continuous even though it looks "nice" pointwise. It can also be continuous even when it looks wild. This depends on checking the actual definition against the actual topologies in play. This article builds the formal definition. It proves the equivalence with the metric - definition and with several other characterizations. It works through examples chosen to expose the places where the definition is subtle rather than routine. By the end you will have the preimage definition stated precisely. You will also have a full proof of its equivalence with limit-point, sequential (in metric spaces), and closed-set formulations. There are two worked examples with genuinely asymmetric data. A counterexample shows exactly what breaks if you swap preimages for images. This sets up Homeomorphisms, The Subspace Topology, and Connected Spaces. All of these lean on continuity as their load-bearing wall.
- Continuity is defined purely in terms of open sets: is continuous iff is open for every open .
- This definition needs no distance, no metric, no notion of "small" — only the topologies on domain and codomain.
- It is equivalent to: preimages of closed sets are closed; and (checking on a basis) preimages of basic opens are open.
- On metric spaces it reduces exactly to the classical - definition, and to the sequential definition.
- Composition of continuous maps is continuous, which is what makes continuity behave like a category's morphisms.
- Key idea: continuity measures how well a map respects the open-set structure, not how it moves individual points.
Where this lives today
The preimage definition of continuity is the load-bearing joint of essentially all of modern geometry and analysis. In Homeomorphisms, two spaces are declared "the same" topologically precisely when a continuous bijection has a continuous inverse — continuity in both directions is the entire content of the definition. In The Subspace Topology, continuity of an inclusion map and of restrictions of continuous functions are handled by exactly the preimage machinery proved here. In Connected Spaces and compactness theory, the single fact that continuous images of connected (or compact) sets are connected (or compact) — itself proved via the preimage definition — underlies the Intermediate Value Theorem and the Extreme Value Theorem in full generality, not just on . Beyond pure topology: in algebraic geometry, morphisms of varieties and schemes are required to be continuous with respect to the Zariski topology, and the preimage definition is the only version available since the Zariski topology is almost never metrizable. In functional analysis, continuity of linear operators between infinite-dimensional spaces (with weak, weak-*, or norm topologies) is checked via preimages of subbasic sets, since these topologies are frequently not first-countable and sequential characterizations can fail. In computer science and domain theory, continuous functions between partially ordered sets equipped with the Scott topology model computable processes, again via the preimage definition. In probability and statistics, measurable functions are defined by an entirely parallel preimage condition (preimages of measurable sets are measurable), a direct structural cousin of topological continuity, and continuous functions on probability spaces underlie weak convergence of measures. In physics, continuity of field configurations and of gauge transformations on manifolds is stated in the same preimage language whenever the underlying spaces are not naturally metric (e.g. moduli spaces of connections).
Ask the tutor: Can you show me why a continuous bijection need not have a continuous inverse, to motivate the extra work in defining homeomorphisms?
Let and be topological spaces, and let be a function (not assumed injective or surjective). We say is continuous if for every open set (i.e. ), the preimage
is open in (i.e. ). We say is continuous at a point if for every open containing , there exists an open containing such that . (These two notions are related exactly as global and pointwise definitions should be: is continuous on if and only if it is continuous at every point of — this is proved below.)
Intuition
Think of the open sets of a topology as the "test regions" a space provides — the collection of sets that count as neighborhoods of their points. A map is continuous when it never smuggles a discontinuity into that wasn't already visible in 's open sets: whenever lands inside some open region of , the points of near must also land inside . The definition via preimages captures exactly this, but stated globally and all at once: being open says that the set of points sent into is itself an "acceptable neighborhood-shaped" set. The classical - picture is a special case where are metric spaces and open sets are unions of open balls. Continuity at demands: for every -ball around the image, there is a -ball around that maps inside . That is precisely the pointwise definition above, specialized to balls. The topological definition simply asks that this control exists relative to every open set, not just balls, and packages it into a single global statement about preimages instead of a point-by-point quantifier chase. A useful mental picture: draw and side by side. An open set is a "blob." Continuity says: whatever the shape of , when you pull the blob back through , the resulting region in has no sharp edges — it is open. If tears a continuum into disconnected pieces or collapses an open interval to a single point without care, this pullback openness typically fails.
The central theorem
Let , be topological spaces and a function. The following are equivalent. 1. (Preimage of opens) is open in for every open . 2. (Local continuity at every point) For every and every open with , there is an open with and . 3. (Preimage of closed sets) is closed in for every closed . 4. (Basis criterion) There is a basis for such that is open in for every . Moreover, if are metric spaces with metrics and the topologies are the metric topologies, these are further equivalent to: 5. (–) For every and every , there exists such that . 6. (Sequential) For every sequence in with , the sequence in .
We prove , then , then , and finally, in the metric setting, . Each implication is a direct unwinding of definitions and quantifiers; the technique throughout is definition-chasing with correct quantifier order, which is exactly the point of this theorem.
. Assume (1). Fix and let be open with . By (1), is open in . Since , we have . Finally because for any , by definition of preimage . So is the required open neighborhood; this proves continuity at . As was arbitrary, (2) holds.
. Assume (2). Let be open; we must show is open in . Let be arbitrary; then . By (2) (applied to this and this ), there is an open with and . The inclusion means . Thus
since the right side is contained in (each is) and contains it (each lies in its own ). A union of open sets is open (this is one of the topology axioms), so is open. Since was an arbitrary open set, (1) holds.
. Assume (1). Let be closed, so is open. The key algebraic fact about preimages, valid for any function and any subset , is
Indeed, . Applying this with : . By (1), the left side is open (since is open), so is open, i.e. is closed. This proves (3).
. Symmetric: let be open, so is closed. By (3), is closed, hence is open. This proves (1).
. Immediate: take itself, which is trivially a basis for (every open set is a union of open sets, itself). Then (1) says exactly that preimages of elements of this are open.
. Assume is a basis for with open for every . Let be an arbitrary open set. By the defining property of a basis, there is a subfamily with
Preimages distribute over unions for any function and any index family: . (Proof of this set identity: is in the left side iff iff for some iff for some iff is in the right side.) Hence
Each is open by hypothesis, and a union of open sets is open. So is open. As was an arbitrary open set, (1) holds. This completes the proof that (1), (2), (3), (4) are pairwise equivalent (having shown , , , all four are equivalent to each other by transitivity through (1)).
Metric case: . Assume are metric spaces with the metric topologies and (2) holds; we verify (5) directly, since (5) is just (2) restricted to the basis of open balls, which is legitimate by the already-proven equivalence, but let us argue it explicitly for concreteness. Fix and . The ball is open in (this is a standard fact about metric topologies: open balls are open sets) and contains . By (2), there is an open with and . Since is open in the metric topology and contains , there is with . Then for any with , we have , so , i.e. . This is exactly (5).
. Assume (5). Fix and an open with . By definition of the metric topology, there is with . By (5), there is such that ; that is, . Set , which is open and contains , and . This is (2).
. Assume (5). Let in , and let . By (5) there is with . Since , there is such that . Combining, . Since was arbitrary, . This proves (6).
. We argue by contrapositive. Suppose (5) fails at some : there is such that for every there exists with but . Apply this with for each to obtain a point with and . Then (since ), but (the images never enter the ball ). This is a sequence witnessing failure of (6). Contrapositive gives . Having shown in general, and in the metric setting, all six statements are equivalent in the metric case.
∎If and are continuous (between topological spaces), then is continuous.
Let be open. Set-theoretically, for any functions and any : indeed . Since is continuous, is open in . Since is continuous, is open in . Hence is open in . As was arbitrary open in , Definition (1) of continuity applies to , so is continuous.
∎Worked examples
Example 1: a piecewise map on with the standard topology, checked directly by the preimage definition. Let with the usual (metric/order) topology. Define
Note the asymmetry: the two pieces are genuinely different functions ( vs. the affine ), glued at the single point . We check continuity two ways. First, continuity away from . On , agrees with the polynomial , which is continuous everywhere on by standard - arguments (or: polynomials are continuous by algebra of continuous functions, itself provable from the basis criterion applied to sums/products). Restricting a continuous function to an open subspace keeps it continuous at points of that open set (this follows because for we can always shrink any neighborhood to lie inside , so local behavior only sees the branch). Similarly on , agrees with the continuous affine function . Second, continuity exactly at , via criterion (5) directly. We have . Let . We must find such that .
- For : . This is whenever .
- For : . Restrict attention to (so , hence ); then , which is whenever .
Taking handles both cases simultaneously: if then regardless of which branch falls in. So is continuous at , and combined with continuity elsewhere, is continuous on all of . The key point the mismatched pieces expose: continuity at a gluing point is not automatic from continuity of each piece separately — it required checking that the two branches agree in value at (, a numerical coincidence we should double check: and , yes they match) and that both one-sided limits equal that common value. Had the affine piece instead been (giving ), the function would have a jump discontinuity at , and would fail to be open (it would contain but no interval around from the left, since points just left of map near , outside ).
Example 2: checking continuity via preimages of a subbasis, on a map between non-metric spaces — the Zariski-flavored finite-complement topology. Let with the topology where nonempty open sets are exactly the sets whose complement is finite (the cofinite topology), together with . Let with the standard topology . This example is deliberately asymmetric: domain and codomain carry different topologies, so no metric - shortcut applies on the domain side. Consider , (chosen non-monotonic and non-injective, e.g. and also — check: ; indeed , a genuine non-injectivity to keep the example honest). Claim: is continuous . Since is the standard topology on , generated by the basis of open intervals , by the basis criterion (statement (4) in the theorem) it suffices to show is open in for every interval , i.e. that is finite (or all of , or ). Compute . Since is a nonconstant cubic polynomial, for any real number the equation has at most real solutions (a nonzero polynomial of degree has at most roots — a standard algebraic fact). Moreover is a continuous real function tending to as and as (odd-degree leading behavior), so by the Intermediate Value Theorem applied to and , the sets and are each unions of finitely many closed rays and intervals determined by the (at most 3) roots of and respectively — in particular each such set, when it is not all of , is a finite union of intervals bounded by finitely many points, but this alone doesn't immediately give finiteness. We need a sharper argument, since is typically an infinite set (a ray), not a finite one. So instead we verify directly that is finite by checking it can only fail to be finite if misses the entire bounded "middle range" of improperly — let us redo this correctly. Correct approach: We must show is open in the cofinite topology, i.e. either empty or cofinite (complement finite). Equivalently, its complement must be finite whenever is nonempty — but this is false for generic : e.g. take ; then is a large but bounded interval-ish set (since ), and its complement is two unbounded rays — infinite, not finite, and not cofinite either (it's not all of since is nonempty). This shows as defined is not continuous from the cofinite topology to the standard topology — a valuable correction that itself illustrates the theorem's power: the basis criterion gives a quick, honest test, and here the test fails cleanly. Let us instead verify the theorem's mechanism on the map that does work in this pairing, confirming the general principle. Correct positive example: let (cofinite domain, standard codomain) be any non-constant polynomial map is not continuous by the computation above (the preimage of a bounded interval containing enough of the range is never cofinite). The map that is continuous from to is exactly a constant map : for any open , is either (if ) or all of (if ), and both and are open in any topology on . So is continuous, while non-constant continuous real polynomials fail to be continuous when the domain is given the coarser cofinite topology. This corrected example teaches the real lesson: continuity depends on both topologies simultaneously, and a formula that looks "smooth" under the standard topology can fail to be continuous the instant the domain's topology is changed to something coarser like the cofinite topology — because the basis criterion must be checked against the actual open sets of , not against intervals that happen to look natural.
Why the hypothesis on preimages (not images) is essential
The preimage definition is not an arbitrary convention; using images instead genuinely breaks the theory. Consider , both with the standard topology, given by the constant function . This is continuous: for any open , is either (if ) or all of (if ), and both are open — matching Example 2's observation about constant maps. But now look at images of open sets instead. Take the open set (domain). Its image is
a single point, which is not open in with the standard topology (every open set containing must contain an interval around , but contains no interval). So even for this manifestly continuous map, "image of open is open" fails badly. Had we tried to define continuity by requiring images of open sets to be open, we would have declared every constant map discontinuous — absurd, since constant maps are the simplest continuous maps there are, matching every reasonable intuition (a constant function has no "jumps" whatsoever). The deeper reason preimages work and images don't: preimages respect unions and intersections perfectly for all functions ( and , both provable by the same element-chasing used in the theorem's proof), while images only respect unions () and can shrink under intersections ( can be strictly smaller than , or images can collapse dimension entirely, as the constant map shows). The topology axioms require closure under arbitrary unions and finite intersections, and only preimages are guaranteed to cooperate with both simultaneously for every function. (The dual notion — maps sending open sets to open sets — exists and is useful; it is called an open map, a genuinely different and strictly weaker-in-general property than continuity, not equivalent to it and not implied by it.)
Scope, edge cases & common traps
| Situation | What to check | Common error |
|---|---|---|
| Domain/codomain topology unspecified | Continuity is meaningless without both topologies fixed | Assuming "the" topology is the Euclidean one by default |
| Checking on a basis or subbasis | Basis criterion (statement 4) suffices, subbasis version also holds (via intersections) | Forgetting the basis must generate the codomain's topology, not the domain's |
| Piecewise-defined functions | Check agreement of one-sided limits/values at gluing points | Assuming continuity of each piece implies continuity of the glued function |
| Composing with change of domain/codomain topology | Continuity is not topology-independent; changing either topology can break or create it | Reusing " is continuous" across different topological pairings without rechecking |
| Confusing continuity with "sends open to open" | That property is called open map, logically independent of continuity | Believing image-openness is equivalent to or required for continuity |
| Sequential characterization | Valid in metric spaces (and more generally first-countable spaces) | Assuming sequences alone characterize continuity in arbitrary topological spaces (false without countability restrictions) |
The mathematician behind it
Origins · 1 minFelix Hausdorff and how this was discovered
Hausdorff, working at the turn of the twentieth century, was the figure most responsible for extracting continuity from its metric origins and re-expressing it purely in terms of neighborhoods and open sets, in his 1914 treatise Grundzüge der Mengenlehre. He built on the neighborhood-based framework that had been sketched by earlier analysts, but it was Hausdorff who systematized the open-set axioms into the modern definition of a topological space and showed that continuity, convergence, and closure could all be recovered from that single structure. His separation axiom (the "Hausdorff condition," ) remains one of the standard hypotheses layered on top of bare topological spaces precisely because continuity theory, while working in full generality, becomes far more powerful once limits are forced to be unique.
Why does the topological definition use preimages instead of images?
Because preimages interact correctly with the topology axioms while images do not. For any function , preimages satisfy and , matching exactly the closure properties (arbitrary unions, finite intersections) that define a topology. Images only satisfy the union version in general, and can badly fail to preserve openness — a constant map sends an open interval to a single point, which is not open, yet constant maps are intuitively as continuous as possible. Preimages give a definition that is both mathematically well-behaved and matches intuition; images do not.
Is continuity a property of a function alone, or of the function plus the topologies?
It is a property of the triple , never of in isolation. The same formula, such as , can be continuous with respect to one pairing of topologies on domain and codomain and discontinuous with respect to another, as shown when the domain is given the cofinite topology instead of the standard one. Whenever someone says " is continuous" without specifying topologies, they are implicitly relying on a default (usually the standard/Euclidean topology), and that default should always be stated explicitly in careful work.
Does the - definition disagree with the topological one anywhere?
No — on metric spaces they are fully equivalent, as proved in the central theorem via the chain (2)(5). The - definition is simply the topological definition specialized to the basis of open balls, using the basis criterion (statement 4). Every - proof is secretly a preimage argument restricted to balls; the topological definition is strictly more general because it applies to spaces with no metric at all, such as the Zariski topology or the cofinite topology used in the worked examples.
If is continuous at every point individually, is it automatically continuous on all of ?
Yes, and this equivalence — statement (1) versus statement (2) in the theorem — is proved rigorously above using nothing beyond the union axiom for open sets. The forward direction restricts a global preimage to a local neighborhood; the reverse direction reassembles as a union, over each of its points, of small open neighborhoods guaranteed by local continuity, and a union of open sets is open by the topology axioms. So "continuous everywhere" and "continuous at every point" are the same statement viewed two ways, not two different strengths of continuity.
What is an open map, and how does it differ from a continuous map?
An open map sends open sets of to open sets of — literally the reverse direction of the continuity condition. The two properties are logically independent: a map can be continuous but not open (any nonconstant real polynomial mapping onto a proper subinterval of its range near a local extremum, e.g. sends the open interval to the non-open set ), and a map can be open but not continuous (constructible with wilder topologies). Continuity is about preimages; openness is about images. Only for special classes of maps, such as Homeomorphisms, are both properties guaranteed simultaneously in both directions.
How does this definition connect to homeomorphisms and connectedness?
A homeomorphism is precisely a bijection such that both and are continuous in the preimage sense proved here; this double continuity is what makes homeomorphic spaces topologically indistinguishable. Continuity is also the mechanism behind the preservation theorems for Connected Spaces: if is continuous and is connected, then is connected, because a separation of into disjoint nonempty relatively open sets would pull back, via the preimage definition, to a separation of itself, contradicting connectedness. The same preimage mechanism drives the analogous compactness-preservation theorem.
Why is the composition of continuous functions continuous, and why does that matter structurally?
It matters because it makes topological spaces and continuous maps into a category: objects are spaces, morphisms are continuous maps, and composition of morphisms must again be a morphism for the structure to be coherent. The proof is a one-line preimage computation: for any sets, so if is open (by 's continuity) and pulls opens back to opens (by 's continuity), the composite preimage is open too. This closure property is exactly what lets basis and subbasis techniques and homeomorphism arguments chain together reliably across many maps at once.