Homeomorphisms
Can a coffee mug become a donut? A topologist answers yes. This article explains precisely why. Consider when two spaces "are the same shape." This means ignoring stretching, bending, and twisting. But tearing or gluing is forbidden. The concept of a homeomorphism answers this question. This is the correct notion of isomorphism for topological spaces. It works exactly as a bijective linear map does for vector spaces. Similarly, a bijective group homomorphism serves this role for groups. The idea matters for a key reason. Topology studies properties preserved under continuous deformation. Homeomorphisms are the maps that make "sameness" precise. Two spaces are topologically indistinguishable exactly when a homeomorphism exists between them. Without this notion, Continuity of Maps alone falls short. It tells us how one space maps into another. But it says nothing about when the map is invertible in a way that respects topology. A continuous bijection can fail to be a homeomorphism. The gap between "continuous bijection" and "homeomorphism" is instructive. It is one of the most instructive traps in elementary topology. The big picture: topology studies properties invariant under homeomorphism. Consider a property like compactness, connectedness, or the number of "holes." Such a property survives when you apply a homeomorphism. So these properties can be used to prove two spaces are genuinely different. They are not merely presented differently. This sets the stage for the entire subject of Topological Invariants. It also leads eventually to algebraic tools like The Fundamental Group. These tools detect finer distinctions than open-set arguments alone can. This article gives the precise definition of a homeomorphism. It builds geometric intuition with figures. It proves the central structural facts. Homeomorphism is an equivalence relation. Also, a continuous bijection between compact and Hausdorff spaces is automatically a homeomorphism. The article works through two concrete non-trivial examples. Finally, it exhibits a classic counterexample. This shows why every hypothesis in that theorem is load-bearing.
- A homeomorphism is a bijective, bicontinuous map: continuous with continuous inverse.
- Two spaces are "the same" topologically iff a homeomorphism exists between them.
- A continuous bijection need not be a homeomorphism — the inverse can fail to be continuous.
- Homeomorphism is an equivalence relation on the class of topological spaces.
- On compact Hausdorff spaces, continuous bijections are automatically homeomorphisms (a genuinely useful shortcut).
- Properties preserved by homeomorphisms (compactness, connectedness, ...) become tools for proving spaces are different.
- Key idea: a homeomorphism is a dictionary translating open sets of one space perfectly into open sets of another.
Where this lives today
Homeomorphism is the backbone concept of topology as a mathematical discipline, and it radiates outward into many fields. In geometric topology and low-dimensional topology, classification problems (which surfaces, knots, or manifolds are "the same") are literally questions of homeomorphism (or the finer notion of diffeomorphism). In complex analysis, the Riemann mapping theorem produces homeomorphisms (indeed biholomorphisms) between simply connected planar domains and the unit disk, underlying conformal mapping techniques used in fluid dynamics and electrostatics. In data analysis, topological data analysis and persistent homology use homeomorphism-invariant features to detect the "shape" of high-dimensional data robust to noisy deformation. In physics, configuration spaces and phase spaces are often studied up to homeomorphism to classify qualitatively distinct dynamical regimes, and in condensed matter physics, topological phases of matter are classified by invariants unchanged under continuous (homeomorphic) deformations of the underlying Hamiltonian's band structure. In computer graphics and mesh processing, algorithms that need to compare or morph 3D shapes rely on detecting homeomorphisms (or approximate ones) between meshes. And pedagogically, homeomorphism sets up the entire subsequent machinery of Topological Invariants and The Fundamental Group, since these tools exist precisely to distinguish spaces that are not homeomorphic when open-set arguments alone cannot decide the question.
Ask the tutor: Why does the compact–Hausdorff shortcut theorem fail if we only assume is metrizable but not necessarily Hausdorff in the relevant sub-argument, and can you construct an explicit example showing the failure?
Let and be topological spaces. A function is called a homeomorphism if: 1. is a bijection (injective and surjective); 2. is continuous; 3. the inverse function is continuous. If such an exists, and are called homeomorphic, written . Equivalently, is a homeomorphism if and only if is a bijection such that
for every subset . That is, gives a bijective correspondence between the open sets of and the open sets of , in both directions. A property of a space defined purely in terms of its open sets (compactness, connectedness, separability, being Hausdorff, etc.) is called a topological invariant, or topological property, precisely because it is preserved by every homeomorphism.
Intuition
Think of continuity as a one-way promise: if points of are close, their images in are close (in the precise open-set sense). A homeomorphism upgrades this to a two-way promise, valid in both directions simultaneously. This is why homeomorphic spaces are considered topologically identical: any statement about that can be phrased using only open sets translates, word for word, into a true statement about , and vice versa. The classical slogan is that a coffee mug and a donut (solid torus with a handle-shaped indentation, more precisely a torus surface) are homeomorphic, because one can be continuously deformed into the other without cutting or gluing. Deformability by bending is a sufficient — but not necessary — condition for homeomorphism; the actual definition never mentions bending at all. It is purely about open sets and inverses. This distinction matters: some homeomorphic pairs (like a square and a circle) look nothing alike geometrically, and some non-homeomorphic pairs might seem "deformable" at a glance but are secretly obstructed (a circle is never homeomorphic to a line, because removing one point disconnects the line but not the circle). The first figure below depicts the open-interval-to-real-line homeomorphism , illustrating that boundedness is not a topological invariant — a bounded space can be homeomorphic to an unbounded one. The second figure depicts the classic failure of bicontinuity: a continuous bijection from a half-open interval to a circle whose inverse is discontinuous at the gluing point.
Theorem and structural facts
Let be any collection of topological spaces. Define a relation on by iff there exists a homeomorphism . Then is an equivalence relation: it is reflexive, symmetric, and transitive.
Reflexivity. For any space , the identity map is a bijection. It is continuous because is open whenever is open. Its inverse is itself, also continuous by the same argument. Hence is a homeomorphism and .
Symmetry. Suppose via a homeomorphism . By definition is a bijection, continuous, with continuous inverse . Consider itself as a candidate homeomorphism . It is a bijection (the inverse of a bijection is a bijection), it is continuous (this is hypothesis (3) for ), and its inverse is , which is continuous (hypothesis (2) for ). Hence is a homeomorphism , so .
Transitivity. Suppose via homeomorphism and via homeomorphism . Consider .
- is a bijection: the composite of two bijections is a bijection, with . (Concretely, bijective and bijective give injective, since (as injective) (as injective); and surjective since for there is with , and with , so .)
- is continuous: composition of continuous maps is continuous. Explicitly, for open in , is open in (continuity of ), and then is open in (continuity of ).
- is continuous: , a composite of the continuous maps and , hence continuous by the same composition argument applied to then .
Hence is a homeomorphism , so .
∎This confirms that "homeomorphic to" partitions the class of topological spaces into equivalence classes — exactly the sense in which topology only cares about a space "up to homeomorphism." The next theorem addresses the most common practical difficulty: checking condition (3) directly is often painful, so we want conditions under which it is automatic.
Let be a compact topological space, let be a Hausdorff topological space, and let be a continuous bijection. Then is a homeomorphism.
If is compact and is closed, then is compact (in the subspace topology).
Let be an open cover of by sets open in ; write with open in . Since is closed, is open. Then
is an open cover of : every point of lies in some (since the cover ), and every point outside lies in . By compactness of , this cover has a finite subcover, say , possibly together with . Discarding from this finite list (it contributes nothing to covering , since ), the remaining sets still cover , because every point of was covered by the finite subcover and could not have been covered by the discarded set . Hence is a finite subcover of .
∎If is Hausdorff and is compact, then is closed in .
We show is open by showing every point of has a neighborhood disjoint from . Fix . For each , since is Hausdorff and , choose disjoint open sets and . The collection is an open cover of ; by compactness of extract a finite subcover . Let
a finite intersection of open sets containing , hence open and containing . We claim . Indeed, if , then for some (since these cover ), and , and by construction, so . Thus is an open neighborhood of disjoint from , proving is open, i.e. is closed.
∎(Main theorem, using the two lemmas above — technique: reduce bicontinuity of to a statement about closed/open sets and compactness.) We must show is continuous. Recall the general fact: a function is continuous if and only if is closed in for every closed set in (this is the closed-set reformulation of continuity, equivalent to the open-set definition since ). Apply this with . Since is a bijection, for any subset we have
So we must show: for every closed , the image is closed in . Let be closed. Since is compact, closed subsets of compact spaces are compact (Lemma above), so is compact. The image of a compact set under a continuous map is compact — this is a standard fact we verify directly: if is an open cover of in , then is, by continuity of , an open cover of (in , restricting to ); by compactness of there is a finite subcover of , and then covers (since every lies in some , so , and every point of is for some such ). Hence is compact. Since is Hausdorff and is compact, by the second Lemma is closed in . Thus is closed in for every closed , so is continuous. Combined with the hypothesis that is a continuous bijection, satisfies all three defining conditions of a homeomorphism.
∎To exhibit a homeomorphism between a compact space and a Hausdorff space , it suffices to construct a continuous bijection ; continuity of is then automatic and need not be checked separately.
Worked examples
Example 1 (an explicit, asymmetric homeomorphism of subspaces of ). Let be the unit circle, and let
be a "diamond" (a rhombus with horizontal diagonal length and vertical diagonal length ) — deliberately asymmetric in scale so the map is not a trivial rotation. We construct an explicit homeomorphism . Define radially: for , let
This is well-defined since the denominator is never zero (it vanishes only if both and , impossible). Write ; note is continuous in as a sum of continuous functions (absolute values of continuous functions are continuous). is continuous. Each coordinate of is a quotient of continuous functions of with nonvanishing denominator, hence continuous, by the algebra of continuous real-valued functions (sums, products, and quotients — with nonvanishing denominator — of continuous functions are continuous). maps into . Writing with , we compute
so . is a bijection onto . Given , write with ; then (else ), so determines a unique angle with for some (polar decomposition of a nonzero vector, unique with ). Then satisfies , since is the unique point on ray satisfying the diamond's equation, and is that point. This shows surjectivity; injectivity follows because forces to lie on the same ray from the origin (as preserves the direction/angle up to positive scaling) and both lie on the unit circle, forcing . Conclusion via the Corollary. is the continuous image of under hence compact (continuous image of a compact interval), and is Hausdorff (subspace of a metric space). By the Corollary above, since is a continuous bijection from the compact space to the Hausdorff space , is automatically a homeomorphism — we need not separately verify continuity of . This example shows homeomorphism is a genuinely flexible notion: a perfectly round circle and a lopsided rhombus, which look geometrically quite different (different curvature, corners versus smoothness, different symmetry group), are topologically identical.
Example 2 (a case where the compact–Hausdorff shortcut does not apply, requiring direct verification). Let with the usual topology (not compact!) and let with the usual topology. Define
is a bijection. If then , so . Given , and , giving surjectivity. If then forces , giving injectivity. is continuous. is continuous on since it is a quotient of continuous functions ( and ) with nonvanishing denominator on that domain. is continuous. We compute for directly: if then . This is again a quotient of continuous functions with nonvanishing denominator on , hence continuous. Since here is not compact, the compact–Hausdorff shortcut theorem does not apply, and we were obligated to check continuity of by hand — which we did directly, since in this case has the same simple algebraic form as itself. This illustrates why the shortcut theorem's hypotheses matter operationally, not just theoretically: dropping compactness removes the free pass, though the map may still happen to be a homeomorphism (as here) — one just cannot conclude it for free.
Consider with the usual subspace topology (not compact, since the open cover has no finite subcover), and let
which is compact and Hausdorff. Define
is a continuous bijection. Continuity is clear since are continuous. Injectivity: if with , then and differ by a multiple of , forcing since both lie in after scaling. Surjectivity: every point of is for a unique , and satisfies equal to that point. But is not continuous at the point . Consider the sequence of points for . As , in . However,
whereas . So even though : this exhibits a sequence converging in whose image under does not converge to of the limit, which is exactly a failure of continuity (sequential characterization) of at . Thus is a continuous bijection that is not a homeomorphism. The point of failure traces directly to the missing hypothesis: is not compact, so the theorem's shortcut does not apply, and indeed the conclusion genuinely fails. This is the standard illustration of why "continuous + bijective" is strictly weaker than "homeomorphism," and it pinpoints exactly why compactness of the domain was essential in the proof — without it, the image of a closed (but non-compact) subset of , such as itself viewed as closed-in-itself, need not have compact, hence need not have closed, image in .
Scope, edge cases & common traps
| Situation | What holds | What can fail |
|---|---|---|
| continuous bijection, compact, Hausdorff | automatically a homeomorphism | — |
| continuous bijection, not compact | Nothing guaranteed | may be discontinuous (see counterexample) |
| continuous bijection, not Hausdorff | Nothing guaranteed | Compact sets need not be closed in , argument breaks |
| homeomorphic | All topological invariants agree (compactness, connectedness, separation axioms, metrizability, ...) | Geometric quantities (length, curvature, angle) need not agree |
| via some | Suffices for topological equivalence | Does not mean every continuous bijection is a homeomorphism |
The mathematician behind it
Origins · 1 minFelix Hausdorff and how this was discovered
Felix Hausdorff, working in Germany in the early twentieth century, was among the architects of modern point-set topology. His 1914 book Grundzüge der Mengenlehre introduced the axiomatic framework of topological spaces via neighborhoods, and formalized the separation axiom now bearing his name — the very hypothesis that makes the compact-to-Hausdorff homeomorphism theorem work. Hausdorff's clarity in distinguishing continuous maps from their invertible, bicontinuous counterparts helped crystallize homeomorphism as the correct notion of topological equivalence, replacing looser, more geometric ideas of "same shape" inherited from Riemann and Poincaré.
Is every continuous bijection a homeomorphism?
No. Continuity of guarantees preimages of open sets are open, but says nothing about whether itself sends open sets to open sets. The map , , is a continuous bijection whose inverse is discontinuous at the wrap-around point, as shown in the counterexample above. The gap closes automatically only under extra hypotheses, most famously when the domain is compact and the codomain is Hausdorff.
Does a homeomorphism have to be "smooth" or preserve distances?
No on both counts. A homeomorphism only needs to be a bijective, bicontinuous map — it need not be differentiable, and it need not preserve any metric quantity like distance, angle, area, or curvature. For example, the map from to is a homeomorphism but massively distorts distances near the endpoints. Preserving smooth structure additionally is the stronger notion of diffeomorphism, and preserving metric structure exactly is the even stronger notion of isometry.
What is the geometric meaning of "a coffee mug is homeomorphic to a donut"?
It means there is a bijective, bicontinuous correspondence between the points of the mug's surface and the points of the torus's surface. Physically, this corresponds to continuously stretching and bending the mug (without tearing or gluing) until it becomes a torus — the handle becomes the torus's hole, and the cup part flattens into the tube. This deformability is a convenient way to build a homeomorphism, but the formal definition never mentions deformation directly; it's purely a statement about open sets and inverses.
If two spaces are not homeomorphic, how do we prove it?
By exhibiting a topological invariant on which they differ: a property preserved by every homeomorphism that one space has and the other lacks. Common invariants include compactness, connectedness, the number of connected components, whether the space is Hausdorff, and (with more advanced machinery) the fundamental group or homology groups. For instance, and are not homeomorphic because removing any single point from leaves it connected, but removing certain points from disconnects it — connectivity-after-point-removal is itself an invariant built from connectedness.
Why does the compact-to-Hausdorff shortcut theorem matter practically?
It saves enormous work. Directly verifying that is continuous can require constructing preimages of arbitrary open sets and checking openness by hand, which is often more delicate than checking itself. When the domain is compact and codomain Hausdorff, this labor is unnecessary: a continuous bijection is automatically a homeomorphism. This shortcut is used constantly, for instance to show quotient maps from compact spaces or continuous parametrizations of compact manifolds are genuine homeomorphisms onto their (Hausdorff) images.
Is "homeomorphic to an open interval" the same as "is an open interval"?
No — homeomorphism only cares about topological structure, not the specific realization as a subset of . Many spaces that don't look like intervals at all are homeomorphic to one, such as the graph of any continuous real function on , or an open arc of a much larger curve. What matters is the existence of some bijective, bicontinuous correspondence, not any particular geometric embedding.
Can a space be homeomorphic to a proper subset of itself?
Yes, and this is a source of common surprise. For instance, is homeomorphic to via , and both are homeomorphic to itself (via a further map like ). Even is homeomorphic to the open subset , despite one being unbounded and the other bounded — again showing boundedness is a metric, not topological, notion, and is not preserved by homeomorphisms.