Skip to content

Level 2: Topology – The Canvas

The Defect. Continuity is first met as an ε\varepsilon–δ\delta 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:

  1. The completeness axiom: every nonempty set of real numbers bounded above has a least upper bound sup⁡S\sup S, characterised by (i) s≤sup⁡Ss \leq \sup S for all s∈Ss \in S, and (ii) if c<sup⁡Sc < \sup S, then some s∈Ss \in S has c<sc < s. Its first consequence is used repeatedly below, so we prove it here. Archimedean property: for every real cc there is a natural number n>cn > c. Proof. If N\mathbb{N} had an upper bound bb, then s=sup⁡Ns = \sup \mathbb{N} would exist; property (ii) supplies n∈Nn \in \mathbb{N} with n>s−1n > s - 1, and then n+1∈Nn + 1 \in \mathbb{N} exceeds the upper bound ss: contradiction. ■\blacksquare
  2. Elementary-calculus continuity: the standard functions (sin⁡\sin, cos⁡\cos, tan⁡\tan, arctan⁡\arctan) 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 XX is a function d:X×X→[0,∞)d: X \times X \to [0, \infty) with d(x,y)=0d(x, y) = 0 iff x=yx = y, d(x,y)=d(y,x)d(x, y) = d(y, x), and the triangle inequality d(x,z)≤d(x,y)+d(y,z)d(x, z) \leq d(x, y) + d(y, z). The pair (X,d)(X, d) is a metric space. The open ball of radius r>0r > 0 around xx is B(x,r)={y∈X:d(x,y)<r}B(x, r) = \{y \in X : d(x, y) < r\}. Euclidean space Rn\mathbb{R}^n carries d(u,v)=∑i(ui−vi)2d(u, v) = \sqrt{\sum_i (u_i - v_i)^2}; the triangle inequality for this dd is proved in the Real Analysis track and used freely here.

Definition. A subset U⊆XU \subseteq X of a metric space is open if for every x∈Ux \in U there is r>0r > 0 with B(x,r)⊆UB(x, r) \subseteq U.

Proposition 1.1. Every open ball is an open set.

Proof. Let y∈B(x,r)y \in B(x, r), so d(x,y)<rd(x, y) < r. Put ε=r−d(x,y)>0\varepsilon = r - d(x, y) > 0. For any z∈B(y,ε)z \in B(y, \varepsilon), the triangle inequality gives d(x,z)≤d(x,y)+d(y,z)<d(x,y)+ε=rd(x, z) \leq d(x, y) + d(y, z) < d(x, y) + \varepsilon = r, so z∈B(x,r)z \in B(x, r). Hence B(y,ε)⊆B(x,r)B(y, \varepsilon) \subseteq B(x, r): every point of the ball has a ball around it inside the ball. ■\blacksquare

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 U=⋃αUαU = \bigcup_\alpha U_\alpha with each UαU_\alpha open, and let x∈Ux \in U. Then x∈Uαx \in U_\alpha for some α\alpha, and some ball B(x,r)⊆Uα⊆UB(x, r) \subseteq U_\alpha \subseteq U: so UU is open. Finite intersections. Let x∈U1∩⋯∩Unx \in U_1 \cap \cdots \cap U_n; for each ii there is ri>0r_i > 0 with B(x,ri)⊆UiB(x, r_i) \subseteq U_i, and B(x,min⁡iri)B(x, \min_i r_i) is contained in every UiU_i, hence in the intersection. Failure for infinite intersections: ⋂n≥1(−1/n,1/n)={0}\bigcap_{n \geq 1} (-1/n, 1/n) = \{0\} in R\mathbb{R} (a real number in every (−1/n,1/n)(-1/n, 1/n) satisfies ∣t∣<1/n|t| < 1/n for all nn, forcing t=0t = 0 by the Archimedean property, proved in the Scope), and {0}\{0\} is not open: no ball around 00 fits inside a single point. ■\blacksquare

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 XX and any collection S\mathcal{S} of subsets of XX, there is a smallest topology containing S\mathcal{S}: the intersection of all topologies on XX that contain S\mathcal{S}.

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 XX, containing S\mathcal{S}, is itself a topology. Being the intersection of all containing topologies, it is contained in each of them, hence smallest. ■\blacksquare

Definition. A topology on a set XX is a collection T\mathcal{T} of subsets (the open sets) with ∅,X∈T\emptyset, X \in \mathcal{T}, 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: R\mathbb{R}, Rn\mathbb{R}^n as above.
  • Discrete: every subset open. Axioms are immediate.
  • Indiscrete: only ∅\emptyset and XX 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. ■\blacksquare

Quick check.

  1. What makes a set open in a metric space?
  2. Are arbitrary unions of opens open? Finite intersections?
  3. Give an infinite family of opens with a non-open intersection.
  4. What is the cofinite topology?
  5. 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. ⋂n(−1/n,1/n)={0}\bigcap_n (-1/n, 1/n) = \{0\}, 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.

Definition. For a function f:X→Yf: X \to Y and a subset B⊆YB \subseteq Y, the preimage is f−1(B)={x∈X:f(x)∈B}f^{-1}(B) = \{x \in X : f(x) \in B\} (no inverse function is required; f−1f^{-1} here is set-valued bookkeeping). The function ff between topological spaces is continuous if f−1(U)f^{-1}(U) is open in XX for every open U⊆YU \subseteq Y.

Theorem 2.1 (composition). If f:X→Yf: X \to Y and g:Y→Zg: Y \to Z are continuous, then g∘f:X→Zg \circ f: X \to Z is continuous.

Proof. For U⊆ZU \subseteq Z open, (g∘f)−1(U)=f−1(g−1(U))(g \circ f)^{-1}(U) = f^{-1}(g^{-1}(U)) (set-chase an element: xx maps into UU iff f(x)f(x) maps into UU). g−1(U)g^{-1}(U) is open in YY by continuity of gg, and its preimage under ff is open in XX by continuity of ff. ■\blacksquare

Theorem 2.2 (ε\varepsilon–δ\delta is topology). For f:X→Yf: X \to Y between metric spaces, the following are equivalent: (i) ff is continuous by the open-preimage definition; (ii) for every x∈Xx \in X and ε>0\varepsilon > 0 there is δ>0\delta > 0 with d(x,x′)<δ  ⟹  d(f(x),f(x′))<εd(x, x') < \delta \implies d(f(x), f(x')) < \varepsilon.

Proof. (i)   ⟹  \implies (ii): the ball B(f(x),ε)B(f(x), \varepsilon) is open (Proposition 1.1), so f−1(B(f(x),ε))f^{-1}(B(f(x), \varepsilon)) is an open set containing xx; being open, it contains some ball B(x,δ)B(x, \delta), and points of that ball map into B(f(x),ε)B(f(x), \varepsilon), which is (ii). (ii)   ⟹  \implies (i): let U⊆YU \subseteq Y open and x∈f−1(U)x \in f^{-1}(U). Then f(x)∈Uf(x) \in U, and openness of UU gives an ε\varepsilon-ball around f(x)f(x) inside UU. Item (ii) supplies a δ\delta-ball around xx mapping into it, so B(x,δ)⊆f−1(U)B(x, \delta) \subseteq f^{-1}(U). Every point of f−1(U)f^{-1}(U) has a ball inside f−1(U)f^{-1}(U): it is open. ■\blacksquare

Definition. A homeomorphism is a continuous bijection f:X→Yf: X \to Y whose inverse f−1:Y→Xf^{-1}: Y \to X 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 (a,b)(a,b), (c,d)(c,d) of R\mathbb{R} are homeomorphic. The affine map f(t)=d−cb−a(t−a)+cf(t) = \frac{d-c}{b-a} (t - a) + c is a bijection (a,b)→(c,d)(a, b) \to (c, d) (solve for tt), and it is continuous with continuous inverse: every open subset of R\mathbb{R} is a union of the open intervals that openness supplies at each of its points, and the preimage of an interval (u,v)(u, v) under an affine map $t \mapsto \alpha t

  • \betaistheintervalis the interval\big((u - \beta)/\alpha, (v - \beta)/\alpha\big)(endpointsswappedwhen(endpoints swapped when\alpha < 0,stillopen),sopreimagesofopensareunionsofintervals:open., still open), so preimages of opens are unions of intervals: open.\blacksquare$

Example ((0,1)≅R(0,1) \cong \mathbb{R}). The map t↦tan⁡ ⁣(π(t−12))t \mapsto \tan\!\big(\pi(t - \tfrac{1}{2})\big) is a continuous bijection (0,1)→R(0, 1) \to \mathbb{R} with continuous inverse s↦1πarctan⁡(s)+12s \mapsto \tfrac{1}{\pi}\arctan(s) + \tfrac{1}{2}. Continuity of tan⁡\tan and arctan⁡\arctan 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. ■\blacksquare

Quick check.

  1. Define continuity through preimages.
  2. Why does composition preserve continuity?
  3. What is a homeomorphism?
  4. Which pairs of intervals are provably homeomorphic on this page?
  5. Which theorem makes ε\varepsilon–δ\delta equal to the open-set definition?

Answers: 1. The preimage of every open set is open. 2. (g∘f)−1(U)=f−1(g−1(U))(g \circ f)^{-1}(U) = f^{-1}(g^{-1}(U)) 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 (0,1)≅R(0,1) \cong \mathbb{R} via tan⁡\tan. 5. Theorem 2.2.

Definition. A subset F⊆XF \subseteq X is closed if its complement X∖FX \setminus F is open. The interior A∘A^{\circ} of AA is the union of all open sets contained in AA; the closure A‾\overline{A} is the intersection of all closed sets containing AA. A neighbourhood of xx is an open set containing xx.

Proposition 3.1. Arbitrary intersections of closed sets are closed, and finite unions of closed sets are closed; A‾\overline{A} is the smallest closed set containing AA, and A∘A^{\circ} is the largest open set contained in AA.

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 AA is a closed set containing AA (every set in the intersection contains AA), and any closed F⊇AF \supseteq A participates in that intersection, so A‾⊆F\overline{A} \subseteq F. Interior is dual. ■\blacksquare

Proposition 3.2 (closure via neighbourhoods). x∈A‾x \in \overline{A} if and only if every neighbourhood of xx meets AA.

Proof. (  ⟹  \implies) If some neighbourhood NN of xx missed AA, then A⊆X∖NA \subseteq X \setminus N, and X∖NX \setminus N is closed; so A‾⊆X∖N\overline{A} \subseteq X \setminus N, excluding x∈Nx \in N: contradiction. (⟸\Longleftarrow) If x∉A‾x \notin \overline{A}, then N:=X∖A‾N := X \setminus \overline{A} is an open neighbourhood of xx (Proposition 3.1, A‾\overline{A} closed) disjoint from A⊆A‾A \subseteq \overline{A}. ■\blacksquare

Example. (0,1)‾=[0,1]\overline{(0, 1)} = [0, 1] in R\mathbb{R}. Every point of [0,1][0, 1] has every neighbourhood meeting (0,1)(0, 1): a neighbourhood of 00 contains (−ε,ε)(-\varepsilon, \varepsilon) for some ε>0\varepsilon > 0, which meets (0,1)(0, 1) in (0,min⁡(ε,1))(0, \min(\varepsilon, 1)); similarly at 11; points inside are trivial. Proposition 3.2 puts all of [0,1][0,1] in the closure. A point x∉[0,1]x \notin [0, 1] has a neighbourhood avoiding (0,1)(0, 1): if x<0x < 0, the ball of radius ∣x∣/2|x|/2 lies below 00; if x>1x > 1, the ball of radius (x−1)/2(x-1)/2 lies above 11. ■\blacksquare

Definition. xx is a limit point of AA if every neighbourhood of xx meets AA in some point other than xx itself; points of AA that are not limit points of AA are isolated.

Quick check.

  1. Define closed.
  2. Describe A‾\overline{A} in two equivalent ways.
  3. What is a limit point of AA?
  4. Compute [0,1)‾\overline{[0,1)} in R\mathbb{R}.
  5. What does a point outside A‾\overline{A} have?

Answers: 1. Its complement is open. 2. The smallest closed superset; equivalently, the set of points whose every neighbourhood meets AA. 3. A point whose every neighbourhood meets AA in a point other than itself. 4. [0,1][0, 1] (Proposition 3.2’s example method). 5. A neighbourhood disjoint from AA.

Definition (subspace). For A⊆XA \subseteq X, the subspace topology on AA has open sets exactly the intersections A∩UA \cap U with UU open in XX (axioms: check each against the corresponding axiom in XX).

Proposition 4.1 (characteristic property of the subspace). A map g:Y→Ag: Y \to A is continuous into AA if and only if the composite Y→A↪XY \to A \hookrightarrow X is continuous into XX.

Proof. (  ⟹  \implies) For UU open in XX, the preimage of A∩UA \cap U under gg is open in YY (subspace definition, A∩UA \cap U is open in AA), and that same set is the preimage of UU under the composite. (⟸\Longleftarrow) For VV open in AA, write V=A∩UV = A \cap U with UU open in XX; then g−1(V)=g−1(U)g^{-1}(V) = g^{-1}(U), open by the composite’s continuity. ■\blacksquare

Definition (product). For spaces X,ZX, Z, a box is a subset U×VU \times V with UU open in XX and VV open in ZZ. Boxes are closed under finite intersections ((U×V)∩(U′×V′)=(U∩U′)×(V∩V′)(U \times V) \cap (U' \times V') = (U \cap U') \times (V \cap V')), 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 X×ZX \times Z.

Proposition 4.2 (characteristic property of the product). The projections πX:X×Z→X\pi_X: X \times Z \to X, πZ\pi_Z are continuous, and a map f=(f1,f2):Y→X×Zf = (f_1, f_2): Y \to X \times Z is continuous if and only if both components f1=πX∘ff_1 = \pi_X \circ f and f2=πZ∘ff_2 = \pi_Z \circ f are continuous.

Proof. πX−1(U)=U×Z\pi_X^{-1}(U) = U \times Z is a box, so πX\pi_X is continuous; similarly πZ\pi_Z. (  ⟹  \implies) f1f_1 and f2f_2 are compositions of continuous maps (Theorem 2.1). (⟸\Longleftarrow) Let W⊆X×ZW \subseteq X \times Z be open; by definition W=⋃α(Uα×Vα)W = \bigcup_\alpha (U_\alpha \times V_\alpha), and

f−1(W)=⋃αf−1(Uα×Vα)=⋃α(f1−1(Uα)∩f2−1(Vα)),f^{-1}(W) = \bigcup_\alpha f^{-1}(U_\alpha \times V_\alpha) = \bigcup_\alpha \big(f_1^{-1}(U_\alpha) \cap f_2^{-1}(V_\alpha)\big),

a union of finite intersections of open sets: open. ■\blacksquare

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 Top\mathbf{Top}.

Quick check.

  1. What are the opens of a subspace A⊆XA \subseteq X?
  2. When is g:Y→Ag: Y \to A continuous?
  3. What is a box in X×ZX \times Z?
  4. What does the product topology contain at minimum?
  5. State the product’s characteristic property.

Answers: 1. Intersections A∩UA \cap U with UU open in XX. 2. Exactly when its composite with the inclusion A↪XA \hookrightarrow X is (Proposition 4.1). 3. U×VU \times V with UU, VV open. 4. All unions of boxes. 5. ff into X×ZX \times Z is continuous iff both components are (Proposition 4.2).

Definition. A space XX is Hausdorff if for any two distinct points x≠yx \neq y there are disjoint open sets U∋xU \ni x and V∋yV \ni y.

Proposition 5.1. Every metric space is Hausdorff, and in a Hausdorff space every singleton {x}\{x\} is closed and limits of sequences are unique.

Proof. Hausdorff: for x≠yx \neq y put r=d(x,y)/2>0r = d(x, y) / 2 > 0. If zz lay in B(x,r)∩B(y,r)B(x, r) \cap B(y, r), the triangle inequality would give d(x,y)≤d(x,z)+d(z,y)<r+r=d(x,y)d(x, y) \leq d(x, z) + d(z, y) < r + r = d(x, y), a contradiction; so the balls are disjoint. Singletons closed: for y≠xy \neq x, the Hausdorff pair (Uy,Vy)(U_y, V_y) for (y,x)(y, x) has x∉Uyx \notin U_y, so X∖{x}=⋃y≠xUyX \setminus \{x\} = \bigcup_{y \neq x} U_y is open. Limits: say xn→xx_n \to x when every neighbourhood of xx contains all but finitely many xnx_n. If xn→xx_n \to x and xn→yx_n \to y with x≠yx \neq y, the disjoint neighbourhoods U∋xU \ni x, V∋yV \ni y each contain a tail; but two tails of one sequence overlap, and the overlap lies in U∩V=∅U \cap V = \emptyset: contradiction. ■\blacksquare

Quick check.

  1. Define Hausdorff.
  2. Why are metric spaces Hausdorff?
  3. What does Hausdorff give for singletons?
  4. What does it give for convergent sequences?
  5. Is the indiscrete two-point space Hausdorff?

Answers: 1. Distinct points have disjoint neighbourhoods. 2. Balls of radius d(x,y)/2d(x,y)/2 separate (Proposition 5.1). 3. Closed. 4. At most one limit. 5. No: the only nonempty open set is the whole space.

Definition. A separation of a space XX is a pair of disjoint nonempty open sets A,B⊆XA, B \subseteq X with A∪B=XA \cup B = X. XX is connected if no separation exists; otherwise disconnected.

Theorem 6.1 (the interval is connected). Every closed bounded interval [a,b][a, b] is connected (a one-point interval admits no separation, since its only nonempty open subset is the whole space; assume a<ba < b).

Proof. Suppose [a,b]=A∪B[a, b] = A \cup B, a separation, and swap the names so a∈Aa \in A. Write A=[a,b]∩A′A = [a,b] \cap A' with A′A' open in R\mathbb{R}; since A′A' is open and contains aa, some ε′>0\varepsilon' > 0 has [a,a+ε′)⊆A[a, a + \varepsilon') \subseteq A, so the set

C={t∈[a,b]:[a,t]⊆A}C = \{t \in [a, b] : [a, t] \subseteq A\}

contains points greater than aa. CC is bounded above by bb; let s=sup⁡Cs = \sup C (completeness axiom), so a<s≤ba < s \leq b. First, every point t∈[a,b]t \in [a, b] with t<st < s lies in AA: the sup property (ii) gives u∈Cu \in C with t<ut < u, and [a,t]⊆[a,u]⊆A[a, t] \subseteq [a, u] \subseteq A. Now if s∈Bs \in B, openness of BB gives (s−ε,s]⊆B(s - \varepsilon, s] \subseteq B for some ε>0\varepsilon > 0, chosen smaller than 2(s−a)2(s - a) so that s−ε/2∈[a,b]s - \varepsilon/2 \in [a, b]; but the point s−ε/2<ss - \varepsilon/2 < s lies in AA by the previous paragraph, contradicting disjointness. So s∈As \in A. Openness of AA gives (s−ε,s+ε)∩[a,b]⊆A(s - \varepsilon, s + \varepsilon) \cap [a, b] \subseteq A for some ε>0\varepsilon > 0. If s<bs < b, take ε′=min⁡(ε/2,(b−s)/2)>0\varepsilon' = \min(\varepsilon/2, (b - s)/2) > 0: then [a,s+ε′]⊆A[a, s + \varepsilon'] \subseteq A, so s+ε′∈Cs + \varepsilon' \in C, contradicting s=sup⁡Cs = \sup C. Hence s=bs = b, and the first paragraph with the present paragraph gives [a,b]⊆A[a, b] \subseteq A, so B=∅B = \emptyset: no separation exists. ■\blacksquare

Theorem 6.2 (images of connected sets). If f:X→Yf: X \to Y is continuous and XX is connected, then f(X)f(X) is connected in its subspace topology.

Proof. Suppose f(X)=A∪Bf(X) = A \cup B is a separation (both open in f(X)f(X), disjoint, nonempty). Write A=f(X)∩A′A = f(X) \cap A' with A′A' open in YY. Then f−1(A)=f−1(A′)f^{-1}(A) = f^{-1}(A') is open in XX, and likewise f−1(B)f^{-1}(B); they are disjoint (disjointness of AA and BB), nonempty (surjectivity onto f(X)f(X)), and their union is XX: a separation of the connected XX. ■\blacksquare

Corollary 6.3 (every interval is connected). Open, half-open, bounded or unbounded intervals of R\mathbb{R} are connected.

Proof. Given a separation (A,B)(A, B) of an interval II, pick a∈Aa \in A, b∈Bb \in B, swap so a<ba < b; then [a,b]⊆I[a, b] \subseteq I, and A∩[a,b]A \cap [a,b], B∩[a,b]B \cap [a,b] are disjoint nonempty open (in [a,b][a,b]) sets covering [a,b][a,b], contradicting Theorem 6.1. ■\blacksquare

Corollary 6.4 (intermediate value theorem). If f:[a,b]→Rf: [a, b] \to \mathbb{R} is continuous and cc lies strictly between f(a)f(a) and f(b)f(b), then f(x)=cf(x) = c for some x∈[a,b]x \in [a, b].

Proof. Suppose not. Then A=f−1((−∞,c))A = f^{-1}((-\infty, c)) and B=f−1((c,∞))B = f^{-1}((c, \infty)) are open (Theorem 2.2 renders continuity as open-preimages, and half-lines are open in R\mathbb{R}), disjoint, and cover [a,b][a, b] (no point maps to cc); they are nonempty because f(a)<c<f(b)f(a) < c < f(b) places aa in AA and bb in BB up to swapping. That is a separation of the connected interval [a,b][a, b]: contradiction. ■\blacksquare

Lemma 6.5 (2\sqrt{2} is irrational).

Proof. Suppose 2=p/q\sqrt{2} = p/q in lowest terms. Squaring: p2=2q2p^2 = 2q^2, so p2p^2 is even, hence pp is even (odd pp makes p2p^2 odd); write p=2rp = 2r. Then 2r2=q22r^2 = q^2, so qq is even too. Both even contradicts lowest terms. ■\blacksquare

Proposition 6.6 (Q\mathbb{Q} is disconnected). The rationals with the subspace topology of R\mathbb{R} are disconnected.

Proof. Let α=2\alpha = \sqrt{2}, which is not rational (Lemma 6.5) and satisfies 1<α<21 < \alpha < 2. The sets A=Q∩(−∞,α)A = \mathbb{Q} \cap (-\infty, \alpha) and B=Q∩(α,∞)B = \mathbb{Q} \cap (\alpha, \infty) are open in the subspace Q\mathbb{Q}; they are nonempty (0∈A0 \in A, 1∈B1 \in B), disjoint, and their union is Q\mathbb{Q} (no rational equals α\alpha). ■\blacksquare

This is the first crack in the arithmetic line: connectedness is a property of completed space. It distinguishes R\mathbb{R} from Q\mathbb{Q} topologically, before any measure or limit theory.

Quick check.

  1. Define separation and connectedness.
  2. Why is a continuous image of a connected space connected?
  3. Why is every interval connected, given [a,b][a,b] is?
  4. State the intermediate value theorem’s mechanism.
  5. Is Q\mathbb{Q} 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 [a,b][a,b] into two preimage half-spaces, a separation (Corollary 6.4). 5. No: split at 2\sqrt{2} (Proposition 6.6).

Definition. An open cover of XX is a collection of open sets with X⊆⋃αUαX \subseteq \bigcup_\alpha U_\alpha. A finite subcover is a finite subcollection that still covers. XX is compact if every open cover has a finite subcover.

Theorem 7.1 (Heine–Borel for the interval). [a,b][a, b] is compact.

Proof. Let U\mathcal{U} be an open cover of [a,b][a, b]. Say t∈[a,b]t \in [a,b] is good if [a,t][a, t] admits a finite subcover from U\mathcal{U}, and let CC be the set of good points. CC contains aa (a member of U\mathcal{U} covers aa, and {U}\{U\} covers [a,a][a, a]), and is bounded above by bb; let s=sup⁡Cs = \sup C (completeness axiom), so a≤s≤ba \leq s \leq b.

First, s∈Cs \in C. Choose U∈UU \in \mathcal{U} with s∈Us \in U; openness gives (s−ε,s+ε)⊆U(s - \varepsilon, s + \varepsilon) \subseteq U for some ε>0\varepsilon > 0. Since s−ε/2<s=sup⁡Cs - \varepsilon/2 < s = \sup C, the sup property supplies t∈Ct \in C with t>s−ε/2t > s - \varepsilon/2; the finite cover of [a,t][a, t], plus the single set UU, covers [a,t]∪(s−ε,s+ε)⊇[a,s][a, t] \cup (s - \varepsilon, s + \varepsilon) \supseteq [a, s]. So ss is good.

Now if s<bs < b, shrink ε\varepsilon so that s+ε/2≤bs + \varepsilon/2 \leq b; the same finite cover plus UU covers [a,s]∪(s−ε,s+ε)⊇[a,s+ε/2][a, s] \cup (s - \varepsilon, s + \varepsilon) \supseteq [a, s + \varepsilon/2], making the point s+ε/2s + \varepsilon/2 good, contradicting s=sup⁡Cs = \sup C. Hence s=b∈Cs = b \in C: the finite subcover covers [a,b][a, b]. ■\blacksquare

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 R\mathbb{R} is closed and bounded, and conversely every closed bounded subset of R\mathbb{R} is compact.

Proof. (i) Let K⊆XK \subseteq X be closed, XX compact, and V\mathcal{V} an open cover of KK by opens of XX. Then V∪{X∖K}\mathcal{V} \cup \{X \setminus K\} covers XX (X∖KX \setminus K is open); a finite subcover of XX minus the member X∖KX \setminus K is a finite subcover of KK.

(ii) Let f:X→Yf: X \to Y be continuous, XX compact, and V\mathcal{V} an open cover of f(X)f(X) by opens of YY. The preimages f−1(V)f^{-1}(V) cover XX and are open (continuity); a finite subcover f−1(V1),…,f−1(Vn)f^{-1}(V_1), \dots, f^{-1}(V_n) makes V1,…,VnV_1, \dots, V_n cover f(X)f(X) (surjectivity onto the image).

(iii) Let K⊆XK \subseteq X be compact, XX Hausdorff, y∉Ky \notin K. For each x∈Kx \in K, the Hausdorff property supplies disjoint open Ux∋yU_x \ni y and Vx∋xV_x \ni x. The sets {Vx}x∈K\{V_x\}_{x \in K} cover KK; compactness gives a finite sublist Vx1,…,VxnV_{x_1}, \dots, V_{x_n}. Then U=Ux1∩⋯∩UxnU = U_{x_1} \cap \cdots \cap U_{x_n} is an open neighbourhood of yy disjoint from every VxiV_{x_i}, hence from their union, which contains KK. So every y∉Ky \notin K has a neighbourhood avoiding KK: the complement of KK is open.

(iv) If K⊆RK \subseteq \mathbb{R} is compact, the cover {(−n,n)}n∈N\{(-n, n)\}_{n \in \mathbb{N}} has a finite subcover, exhibiting a bound; closedness is (iii) with R\mathbb{R} Hausdorff (Proposition 5.1). Conversely, if KK is closed and bounded, then K⊆[−R,R]K \subseteq [-R, R] for some R>0R > 0, which is compact by Theorem 7.1, and (i) makes KK compact. ■\blacksquare

Corollary 7.3 (extreme value theorem). A continuous f:[a,b]→Rf: [a, b] \to \mathbb{R} attains a maximum and a minimum value.

Proof. The image f([a,b])f([a, b]) is compact (Theorem 7.2 ii, Theorem 7.1), hence closed and bounded in R\mathbb{R} (Theorem 7.2 iv). Let M=sup⁡f([a,b])M = \sup f([a,b]), which exists by boundedness. If MM were not attained, the complement of the image would be an open set containing MM, so an ε\varepsilon-ball around MM would miss the image; but the sup property (ii) gives a value v>M−ε/2v > M - \varepsilon/2 with v≤M<M+ε/2v \leq M < M + \varepsilon/2, placing a point of the image inside that ball: contradiction. So f(x)=Mf(x) = M for some xx. For the minimum, apply the same argument to −f-f, which is continuous (the preimage of an open interval (u,v)(u, v) under y↦−yy \mapsto -y is the open interval (−v,−u)(-v, -u)). ■\blacksquare

Example (a continuous bijection need not be a homeomorphism). Let S1={(u,v)∈R×R:u2+v2=1}S^1 = \{(u, v) \in \mathbb{R} \times \mathbb{R} : u^2 + v^2 = 1\}, a subspace of the product space R×R\mathbb{R} \times \mathbb{R} (Section 4), and let w:[0,2π)→S1w: [0, 2\pi) \to S^1, w(t)=(cos⁡t,sin⁡t)w(t) = (\cos t, \sin t). Then ww is a continuous bijection that is not a homeomorphism. This example is the reason the definition of homeomorphism insists on the inverse.

Proof. Continuity: cos⁡\cos and sin⁡\sin are continuous (elementary-calculus input from the Scope), so ww is continuous as a map into R×R\mathbb{R} \times \mathbb{R} (Proposition 4.2), and into S1S^1 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 [0,2π)[0, 2\pi)), and injective because angles in [0,2π)[0, 2\pi) with equal cosine and equal sine are equal (again trigonometry). Not a homeomorphism: the full map W:[0,2π]→S1W: [0, 2\pi] \to S^1 on the closed interval is continuous (same formula, restricted) and surjective, so S1S^1 is compact (Theorems 7.1 and 7.2 ii). If the inverse of ww were continuous, then [0,2π)[0, 2\pi) would be the continuous image of the compact S1S^1, hence compact (Theorem 7.2 ii). But [0,2π)[0, 2\pi) is not compact: the collection {(−1, 2π−1/n)∩[0,2π)}n∈N\{(-1,\, 2\pi - 1/n) \cap [0, 2\pi)\}_{n \in \mathbb{N}} covers it (for t<2πt < 2\pi the number 2π−t2\pi - t is positive, so the Archimedean property gives n>1/(2π−t)n > 1/(2\pi - t), i.e. t>2π−1/nt > 2\pi - 1/n), each member is open in the subspace, and no finite subcollection covers: its largest member is (−1,2π−1/N)(-1, 2\pi - 1/N), and the point 2π−1/(2N)2\pi - 1/(2N) lies above 2π−1/N2\pi - 1/N. So no such homeomorphism exists. ■\blacksquare

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 R\mathbb{R} from Q\mathbb{Q} (Proposition 6.6); compactness separates [0,2π][0, 2\pi] from [0,2π)[0, 2\pi).

Quick check.

  1. Define compactness.
  2. Why is a closed subset of a compact space compact?
  3. Why is a continuous image of a compact space compact?
  4. Why are compact subsets of Hausdorff spaces closed?
  5. What mechanism proves the extreme value theorem?
  6. Why is [0,2π)[0, 2\pi) 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 {(−1,2π−1/n)}\{(-1, 2\pi - 1/n)\} has no finite subcover (wrap-map example).

  1. Prove that R\mathbb{R} with the cofinite topology is connected. (§1, §6 – two disjoint nonempty cofinite sets would have complements whose union is all of R\mathbb{R}, making R\mathbb{R} finite.)
  2. Give an infinite family of open subsets of R\mathbb{R} whose intersection is not open, and prove your claim. (§1 – ⋂n(−1/n,1/n)={0}\bigcap_n (-1/n, 1/n) = \{0\}, using the Archimedean property.)
  3. Prove the (ii)  ⟹  (i)(ii) \implies (i) direction of Theorem 2.2 without looking. (§2 – the δ\delta-ball provided at each point of f−1(U)f^{-1}(U) shows it is open.)
  4. Prove that the product of two discrete spaces is discrete. (§4 – singletons {x}×{z}\{x\} \times \{z\} are boxes, and every subset is a union of singletons.)
  5. Prove that R\mathbb{R} is not compact. (§7 – the cover {(−n,n)}\{(-n, n)\} has no finite subcover: a finite subcollection has a largest NN, and the point N+1N + 1 escapes.)
  6. Prove that {1/n:n∈N}∪{0}\{1/n : n \in \mathbb{N}\} \cup \{0\} is compact. (§7 – prove it is closed (for y>0y > 0 off the set, the Archimedean property leaves only finitely many 1/n1/n above y/2y/2, so the nearest member of the set to yy exists, and the ball of half that distance, capped at y/2y/2 to also avoid 00, separates yy from the set) and bounded, then quote the converse in Theorem 7.2(iv).)
  7. Prove that S1S^1 is connected. (§6, §7 – it is the continuous image of the connected interval [0,2π][0, 2\pi] under the wrap map WW, 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.

  1. 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.)
  2. 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.)
  3. Prove that [0,1][0, 1] and (0,1)(0, 1) are not homeomorphic. (Compactness is a topological invariant; [0,1][0,1] is compact and (0,1)(0,1) is not, by the cover {(1/n,1)}\{(1/n, 1)\}.)

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.

  • 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.