Level 2: Topology – The Canvas
The Defect. Continuity is first met as an – manipulation on intervals of real numbers. The definition works, but it hides what continuity actually depends on: not distances, but which sets count as neighbourhoods. Topology isolates exactly that data. The reward is that the two deepest facts of elementary analysis, the intermediate value theorem and the extreme value theorem, stop being consequences of formulas and become consequences of space itself: the interval is connected, and it is compact.
The One-Line Reveal. A topology is a declaration of which sets count as “neighbourhoods”; a continuous map is one whose declared neighbourhoods pull back to declared neighbourhoods; and every theorem of this level follows from two properties a space may have: connectedness (it cannot be split) and compactness (every cover admits a finite sublist).
Scope. Level 1 supplied the language (categories, universal properties, quotients by relations). This level needs exactly two inputs from analysis, both stated explicitly and proved in the Real Analysis track:
- The completeness axiom: every nonempty set of real numbers bounded above has a least upper bound , characterised by (i) for all , and (ii) if , then some has . Its first consequence is used repeatedly below, so we prove it here. Archimedean property: for every real there is a natural number . Proof. If had an upper bound , then would exist; property (ii) supplies with , and then exceeds the upper bound : contradiction.
- Elementary-calculus continuity: the standard functions (, , , ) are continuous on their domains, and their bijection properties are as trigonometry describes. Where these enter, the entry is flagged.
Everything else is proved here.
1. Metric Spaces and the Idea of a Topology
Section titled “1. Metric Spaces and the Idea of a Topology”Definition. A metric on a set is a function with iff , , and the triangle inequality . The pair is a metric space. The open ball of radius around is . Euclidean space carries ; the triangle inequality for this is proved in the Real Analysis track and used freely here.
Definition. A subset of a metric space is open if for every there is with .
Proposition 1.1. Every open ball is an open set.
Proof. Let , so . Put . For any , the triangle inequality gives , so . Hence : every point of the ball has a ball around it inside the ball.
Proposition 1.2. Arbitrary unions of open sets are open, and finite intersections of open sets are open. Both can fail for infinite intersections.
Proof. Unions. Let with each open, and let . Then for some , and some ball : so is open. Finite intersections. Let ; for each there is with , and is contained in every , hence in the intersection. Failure for infinite intersections: in (a real number in every satisfies for all , forcing by the Archimedean property, proved in the Scope), and is not open: no ball around fits inside a single point.
The two properties just proved are the ones the theorems of analysis actually consume. We promote them to a definition.
Lemma 1.3 (generated topologies). For any set and any collection of subsets of , there is a smallest topology containing : the intersection of all topologies on that contain .
Proof. An intersection of topologies is a topology (each axiom is an “every member has…” or “any union/finite intersection of members is a member” statement, checked member-wise over the intersection). The intersection is over a nonempty family: the power set of , containing , is itself a topology. Being the intersection of all containing topologies, it is contained in each of them, hence smallest.
Definition. A topology on a set is a collection of subsets (the open sets) with , closed under arbitrary unions and finite intersections. A topological space is a set with a topology. A metric space yields a topology by taking as open sets all unions of open balls (Definition above, justified by Propositions 1.1 and 1.2).
Examples.
- Metric topologies: , as above.
- Discrete: every subset open. Axioms are immediate.
- Indiscrete: only and open. Immediate.
- Cofinite: a subset is open if it is empty or its complement is finite. Unions: the complement of a union is an intersection of complements; a finite intersection of finite sets is finite, so every union of cofinite sets is cofinite. Finite intersections: the complement of a finite intersection is a finite union of finite complements, finite.
Quick check.
- What makes a set open in a metric space?
- Are arbitrary unions of opens open? Finite intersections?
- Give an infinite family of opens with a non-open intersection.
- What is the cofinite topology?
- What is a base, and what does second countable mean?
Answers: 1. Every point has a ball around it contained in the set. 2. Yes; yes. Infinite intersections can fail. 3. , not open. 4. Opens are the empty set and complements of finite sets. 5. A base is opens whose unions give every open set; second countable means a countable base.
2. Continuity and Homeomorphism
Section titled “2. Continuity and Homeomorphism”Definition. For a function and a subset , the preimage is (no inverse function is required; here is set-valued bookkeeping). The function between topological spaces is continuous if is open in for every open .
Theorem 2.1 (composition). If and are continuous, then is continuous.
Proof. For open, (set-chase an element: maps into iff maps into ). is open in by continuity of , and its preimage under is open in by continuity of .
Theorem 2.2 (– is topology). For between metric spaces, the following are equivalent: (i) is continuous by the open-preimage definition; (ii) for every and there is with .
Proof. (i) (ii): the ball is open (Proposition 1.1), so is an open set containing ; being open, it contains some ball , and points of that ball map into , which is (ii). (ii) (i): let open and . Then , and openness of gives an -ball around inside . Item (ii) supplies a -ball around mapping into it, so . Every point of has a ball inside : it is open.
Definition. A homeomorphism is a continuous bijection whose inverse is also continuous. Spaces related by a homeomorphism are homeomorphic; a property preserved by homeomorphisms is a topological invariant.
Example (affine homeomorphisms). Any two nonempty open intervals , of are homeomorphic. The affine map is a bijection (solve for ), and it is continuous with continuous inverse: every open subset of is a union of the open intervals that openness supplies at each of its points, and the preimage of an interval under an affine map $t \mapsto \alpha t
- \beta\big((u - \beta)/\alpha, (v - \beta)/\alpha\big)\alpha < 0\blacksquare$
Example (). The map is a continuous bijection with continuous inverse . Continuity of and on their domains and the bijection property are the elementary-calculus inputs from the Scope. So the whole real line is, topologically, a finite interval.
Quick check.
- Define continuity through preimages.
- Why does composition preserve continuity?
- What is a homeomorphism?
- Which pairs of intervals are provably homeomorphic on this page?
- Which theorem makes – equal to the open-set definition?
Answers: 1. The preimage of every open set is open. 2. and preimages inherit openness step by step (Theorem 2.1). 3. A continuous bijection with continuous inverse. 4. Any two nonempty open intervals, by affine maps; also via . 5. Theorem 2.2.
3. Closed Sets, Interior, Closure
Section titled “3. Closed Sets, Interior, Closure”Definition. A subset is closed if its complement is open. The interior of is the union of all open sets contained in ; the closure is the intersection of all closed sets containing . A neighbourhood of is an open set containing .
Proposition 3.1. Arbitrary intersections of closed sets are closed, and finite unions of closed sets are closed; is the smallest closed set containing , and is the largest open set contained in .
Proof. By De Morgan’s laws, complements convert intersections of closed sets into unions of open sets and finite unions into finite intersections, so Proposition 1.2’s axioms convert directly. The closure of is a closed set containing (every set in the intersection contains ), and any closed participates in that intersection, so . Interior is dual.
Proposition 3.2 (closure via neighbourhoods). if and only if every neighbourhood of meets .
Proof. () If some neighbourhood of missed , then , and is closed; so , excluding : contradiction. () If , then is an open neighbourhood of (Proposition 3.1, closed) disjoint from .
Example. in . Every point of has every neighbourhood meeting : a neighbourhood of contains for some , which meets in ; similarly at ; points inside are trivial. Proposition 3.2 puts all of in the closure. A point has a neighbourhood avoiding : if , the ball of radius lies below ; if , the ball of radius lies above .
Definition. is a limit point of if every neighbourhood of meets in some point other than itself; points of that are not limit points of are isolated.
Quick check.
- Define closed.
- Describe in two equivalent ways.
- What is a limit point of ?
- Compute in .
- What does a point outside have?
Answers: 1. Its complement is open. 2. The smallest closed superset; equivalently, the set of points whose every neighbourhood meets . 3. A point whose every neighbourhood meets in a point other than itself. 4. (Proposition 3.2’s example method). 5. A neighbourhood disjoint from .
4. Subspaces and Products
Section titled “4. Subspaces and Products”Definition (subspace). For , the subspace topology on has open sets exactly the intersections with open in (axioms: check each against the corresponding axiom in ).
Proposition 4.1 (characteristic property of the subspace). A map is continuous into if and only if the composite is continuous into .
Proof. () For open in , the preimage of under is open in (subspace definition, is open in ), and that same set is the preimage of under the composite. () For open in , write with open in ; then , open by the composite’s continuity.
Definition (product). For spaces , a box is a subset with open in and open in . Boxes are closed under finite intersections (), so the unions of boxes form a topology (unions of unions are unions), and it is the smallest topology in which every box is open: that is the product topology on .
Proposition 4.2 (characteristic property of the product). The projections , are continuous, and a map is continuous if and only if both components and are continuous.
Proof. is a box, so is continuous; similarly . () and are compositions of continuous maps (Theorem 2.1). () Let be open; by definition , and
a union of finite intersections of open sets: open.
This is a universal property in the sense of Level 1A: a map into a product is exactly a pair of maps into the factors, with continuity requiring nothing extra. The product is the categorical product in .
Quick check.
- What are the opens of a subspace ?
- When is continuous?
- What is a box in ?
- What does the product topology contain at minimum?
- State the product’s characteristic property.
Answers: 1. Intersections with open in . 2. Exactly when its composite with the inclusion is (Proposition 4.1). 3. with , open. 4. All unions of boxes. 5. into is continuous iff both components are (Proposition 4.2).
5. Hausdorff Spaces
Section titled “5. Hausdorff Spaces”Definition. A space is Hausdorff if for any two distinct points there are disjoint open sets and .
Proposition 5.1. Every metric space is Hausdorff, and in a Hausdorff space every singleton is closed and limits of sequences are unique.
Proof. Hausdorff: for put . If lay in , the triangle inequality would give , a contradiction; so the balls are disjoint. Singletons closed: for , the Hausdorff pair for has , so is open. Limits: say when every neighbourhood of contains all but finitely many . If and with , the disjoint neighbourhoods , each contain a tail; but two tails of one sequence overlap, and the overlap lies in : contradiction.
Quick check.
- Define Hausdorff.
- Why are metric spaces Hausdorff?
- What does Hausdorff give for singletons?
- What does it give for convergent sequences?
- Is the indiscrete two-point space Hausdorff?
Answers: 1. Distinct points have disjoint neighbourhoods. 2. Balls of radius separate (Proposition 5.1). 3. Closed. 4. At most one limit. 5. No: the only nonempty open set is the whole space.
6. Connectedness
Section titled “6. Connectedness”Definition. A separation of a space is a pair of disjoint nonempty open sets with . is connected if no separation exists; otherwise disconnected.
Theorem 6.1 (the interval is connected). Every closed bounded interval is connected (a one-point interval admits no separation, since its only nonempty open subset is the whole space; assume ).
Proof. Suppose , a separation, and swap the names so . Write with open in ; since is open and contains , some has , so the set
contains points greater than . is bounded above by ; let (completeness axiom), so . First, every point with lies in : the sup property (ii) gives with , and . Now if , openness of gives for some , chosen smaller than so that ; but the point lies in by the previous paragraph, contradicting disjointness. So . Openness of gives for some . If , take : then , so , contradicting . Hence , and the first paragraph with the present paragraph gives , so : no separation exists.
Theorem 6.2 (images of connected sets). If is continuous and is connected, then is connected in its subspace topology.
Proof. Suppose is a separation (both open in , disjoint, nonempty). Write with open in . Then is open in , and likewise ; they are disjoint (disjointness of and ), nonempty (surjectivity onto ), and their union is : a separation of the connected .
Corollary 6.3 (every interval is connected). Open, half-open, bounded or unbounded intervals of are connected.
Proof. Given a separation of an interval , pick , , swap so ; then , and , are disjoint nonempty open (in ) sets covering , contradicting Theorem 6.1.
Corollary 6.4 (intermediate value theorem). If is continuous and lies strictly between and , then for some .
Proof. Suppose not. Then and are open (Theorem 2.2 renders continuity as open-preimages, and half-lines are open in ), disjoint, and cover (no point maps to ); they are nonempty because places in and in up to swapping. That is a separation of the connected interval : contradiction.
Lemma 6.5 ( is irrational).
Proof. Suppose in lowest terms. Squaring: , so is even, hence is even (odd makes odd); write . Then , so is even too. Both even contradicts lowest terms.
Proposition 6.6 ( is disconnected). The rationals with the subspace topology of are disconnected.
Proof. Let , which is not rational (Lemma 6.5) and satisfies . The sets and are open in the subspace ; they are nonempty (, ), disjoint, and their union is (no rational equals ).
This is the first crack in the arithmetic line: connectedness is a property of completed space. It distinguishes from topologically, before any measure or limit theory.
Quick check.
- Define separation and connectedness.
- Why is a continuous image of a connected space connected?
- Why is every interval connected, given is?
- State the intermediate value theorem’s mechanism.
- Is connected?
Answers: 1. A separation is a cover by two disjoint nonempty opens; connected means none exists. 2. A separation of the image pulls back to one of the domain (Theorem 6.2). 3. A hypothetical separation restricts to a closed subinterval, contradicting Theorem 6.1. 4. Nonattainment of the intermediate value splits into two preimage half-spaces, a separation (Corollary 6.4). 5. No: split at (Proposition 6.6).
7. Compactness
Section titled “7. Compactness”Definition. An open cover of is a collection of open sets with . A finite subcover is a finite subcollection that still covers. is compact if every open cover has a finite subcover.
Theorem 7.1 (Heine–Borel for the interval). is compact.
Proof. Let be an open cover of . Say is good if admits a finite subcover from , and let be the set of good points. contains (a member of covers , and covers ), and is bounded above by ; let (completeness axiom), so .
First, . Choose with ; openness gives for some . Since , the sup property supplies with ; the finite cover of , plus the single set , covers . So is good.
Now if , shrink so that ; the same finite cover plus covers , making the point good, contradicting . Hence : the finite subcover covers .
Theorem 7.2 (constructions). (i) A closed subset of a compact space is compact. (ii) A continuous image of a compact space is compact. (iii) A compact subset of a Hausdorff space is closed. (iv) A compact subset of is closed and bounded, and conversely every closed bounded subset of is compact.
Proof. (i) Let be closed, compact, and an open cover of by opens of . Then covers ( is open); a finite subcover of minus the member is a finite subcover of .
(ii) Let be continuous, compact, and an open cover of by opens of . The preimages cover and are open (continuity); a finite subcover makes cover (surjectivity onto the image).
(iii) Let be compact, Hausdorff, . For each , the Hausdorff property supplies disjoint open and . The sets cover ; compactness gives a finite sublist . Then is an open neighbourhood of disjoint from every , hence from their union, which contains . So every has a neighbourhood avoiding : the complement of is open.
(iv) If is compact, the cover has a finite subcover, exhibiting a bound; closedness is (iii) with Hausdorff (Proposition 5.1). Conversely, if is closed and bounded, then for some , which is compact by Theorem 7.1, and (i) makes compact.
Corollary 7.3 (extreme value theorem). A continuous attains a maximum and a minimum value.
Proof. The image is compact (Theorem 7.2 ii, Theorem 7.1), hence closed and bounded in (Theorem 7.2 iv). Let , which exists by boundedness. If were not attained, the complement of the image would be an open set containing , so an -ball around would miss the image; but the sup property (ii) gives a value with , placing a point of the image inside that ball: contradiction. So for some . For the minimum, apply the same argument to , which is continuous (the preimage of an open interval under is the open interval ).
Example (a continuous bijection need not be a homeomorphism). Let , a subspace of the product space (Section 4), and let , . Then is a continuous bijection that is not a homeomorphism. This example is the reason the definition of homeomorphism insists on the inverse.
Proof. Continuity: and are continuous (elementary-calculus input from the Scope), so is continuous as a map into (Proposition 4.2), and into by the characteristic property of the subspace (Proposition 4.1). Bijectivity: surjective by trigonometry (every point of the circle is reached at some angle in ), and injective because angles in with equal cosine and equal sine are equal (again trigonometry). Not a homeomorphism: the full map on the closed interval is continuous (same formula, restricted) and surjective, so is compact (Theorems 7.1 and 7.2 ii). If the inverse of were continuous, then would be the continuous image of the compact , hence compact (Theorem 7.2 ii). But is not compact: the collection covers it (for the number is positive, so the Archimedean property gives , i.e. ), each member is open in the subspace, and no finite subcollection covers: its largest member is , and the point lies above . So no such homeomorphism exists.
Invariants. Theorems 6.2 and 7.2(ii) say connectedness and compactness pass along continuous surjections; applying this to a homeomorphism in both directions, both properties are topological invariants. Connectedness separates from (Proposition 6.6); compactness separates from .
Quick check.
- Define compactness.
- Why is a closed subset of a compact space compact?
- Why is a continuous image of a compact space compact?
- Why are compact subsets of Hausdorff spaces closed?
- What mechanism proves the extreme value theorem?
- Why is not compact?
Answers: 1. Every open cover has a finite subcover. 2. Add the complement to the cover; a finite subcover minus the complement covers the subset (Theorem 7.2 i). 3. Pull the cover back, take a finite subcover, push it forward (Theorem 7.2 ii). 4. Each outside point separates finitely from the set (Theorem 7.2 iii). 5. The image is compact, hence closed and bounded; the supremum is then attained (Corollary 7.3). 6. The cover has no finite subcover (wrap-map example).
8. Problems
Section titled “8. Problems”- Prove that with the cofinite topology is connected. (§1, §6 – two disjoint nonempty cofinite sets would have complements whose union is all of , making finite.)
- Give an infinite family of open subsets of whose intersection is not open, and prove your claim. (§1 – , using the Archimedean property.)
- Prove the direction of Theorem 2.2 without looking. (§2 – the -ball provided at each point of shows it is open.)
- Prove that the product of two discrete spaces is discrete. (§4 – singletons are boxes, and every subset is a union of singletons.)
- Prove that is not compact. (§7 – the cover has no finite subcover: a finite subcollection has a largest , and the point escapes.)
- Prove that is compact. (§7 – prove it is closed (for off the set, the Archimedean property leaves only finitely many above , so the nearest member of the set to exists, and the ball of half that distance, capped at to also avoid , separates from the set) and bounded, then quote the converse in Theorem 7.2(iv).)
- Prove that is connected. (§6, §7 – it is the continuous image of the connected interval under the wrap map , by Theorems 6.2 and 7.1.)
Problems. The quick checks above tested recall. These chain several results and require full written arguments; hints are included where the jump is large.
- Prove that the intersection of two compact subsets of a Hausdorff space is compact. (Each is closed by Theorem 7.2 iii; the intersection is a closed subset of one of them, so Theorem 7.2 i applies.)
- Prove that a continuous map from a connected space into a discrete space is constant. (The image is connected and discrete, hence a single point.)
- Prove that and are not homeomorphic. (Compactness is a topological invariant; is compact and is not, by the cover .)
The One-Line Reveal (for this page)
Section titled “The One-Line Reveal (for this page)”The entire page follows from one shift: neighbourhood structure, not distance, is what continuity and the great theorems use. Once “open” is axiomatised, the intermediate value theorem is what connectedness of the interval says, the extreme value theorem is what compactness of the interval says, and the wrap map shows precisely why the inverse in a homeomorphism is part of the definition.
Where to go next
Section titled “Where to go next”- Level 3A: Smooth Manifolds – charts and atlases make the canvas locally linear; this page’s subspace, product, and Hausdorff theorems are the raw material of the manifold definition.
- Real Analysis – where the two declared inputs of this page (the completeness axiom and the continuity of the elementary functions) are actually proved.
- Topology: A Categorical Approach – Bradley, Bryson and Terilla’s book, free and open access from MIT Press; its Chapter 2 covers this page’s material with the categorical accent that Level 1A supplied.