Topology: Bases, Constructions, Connectedness, Compactness and the Separation Axioms

Topology is Section 10 of the GATE Mathematics (MA) paper. It generalises the metric-space ideas of Real Analysis to spaces where only the open sets are given, and it is examined almost entirely through “which of these spaces has this property” questions. The way to answer them is to carry a small zoo of test spaces and know each one’s profile: ℝ with the usual, discrete, indiscrete and cofinite topologies, the lower-limit (Sorgenfrey) line ℝℓ, the topologist’s sine curve, products such as [0, 1]ℕ, and quotients such as the circle and the torus. This chapter builds the topologies of the syllabus — bases and subbases, subspace, order, product, quotient and metric topologies — then connectedness and path-connectedness, the three kinds of compactness with Tychonoff’s theorem, and finally the countability and separation axioms, Urysohn’s lemma and the Tietze extension theorem.

1. Topologies, bases and subbases

A topology on X is a family of subsets containing ∅ and X, closed under arbitrary unions and finite intersections. A basis 𝓑 is a family covering X such that for B₁, B₂ ∈ 𝓑 and x ∈ B₁ ∩ B₂ some B₃ ∈ 𝓑 has x ∈ B₃ ⊆ B₁ ∩ B₂; the open sets are then the unions of basis elements. Any family 𝓢 covering X is a subbasis: its finite intersections form a basis. Example: on X = {a, b, c}, the subbasis {{a, b}, {b, c}} generates ∅, {b}, {a, b}, {b, c}, X — five open sets.

The test spaces on ℝ
TopologyOpen setsProfile
discreteevery subsetmetrizable; totally disconnected; compact iff finite
indiscrete∅ and ℝconnected, compact, not T₁
cofinite∅ and complements of finite setsT₁, not Hausdorff; connected; every subset compact
lower limit ℝℓunions of [a, b)finer than usual; normal; first countable, separable, Lindelöf, not second countable, not metrizable; totally disconnected
ℹ️ Counting topologies on small sets
On {a, b} there are 4 topologies: indiscrete, {∅, {a}, X}, {∅, {b}, X} and discrete; only the discrete one is Hausdorff, and three of the four are T₀. On a three-element set there are 29. Such counts are best done by listing, remembering that every topology must contain ∅ and X and be closed under ∪ and ∩.

2. Subspace, order, product, quotient and metric topologies

  • Subspace: the open sets of A ⊆ X are U ∩ A, U open in X. In A = [0, 1] ∪ (2, 3], the set [0, 1] is open (= A ∩ (−1, 3/2)) and closed.
  • Order topology on a linearly ordered set: basis of open intervals and rays. On ℝ it is the usual topology; on ℤ it is discrete; the order topology on [0, 1] × [0, 1] in dictionary order is not the product topology.
  • Product topology on Π Xₐ: generated by the sets πₐ⁻¹(U), so basic open sets restrict only finitely many coordinates. It is the coarsest topology making every projection continuous, and a map into the product is continuous iff each coordinate is. The box topology, restricting all coordinates, is finer and differs for infinite products.
  • Quotient topology from a surjection q: X → Y: V is open iff q⁻¹(V) is open. [0, 1] with 0 ∼ 1 is the circle S¹; the square with opposite edges identified the same way is the torus, with one pair reversed the Klein bottle.
  • Metric topology: basis of open balls. Metrizable spaces are Hausdorff, normal and first countable, so a space failing any of these is not metrizable.

3. Connectedness and path-connectedness

X is connected if its only clopen subsets are ∅ and X; path-connected if any two points are joined by a path. Path-connected ⇒ connected; connected and locally path-connected (e.g. an open subset of ℝⁿ) ⇒ path-connected. Continuous images, closures, and unions of connected sets with a common point are connected, and arbitrary products of connected spaces are connected in the product topology. The components are the maximal connected subsets; they are closed and partition X.

  • The cofinite topology on an infinite set is connected: two non-empty open sets have finite complements and must meet.
  • ℝℓ is totally disconnected: [a, ∞) is open and also closed, its complement (−∞, a) being a union of intervals [a − n, a).
  • {(x, y) : xy ≠ 0} has 4 components, the open quadrants. GL₂(ℝ) has 2, det > 0 and det < 0, because det is continuous and never 0 on it and each sign class is path-connected.

4. Compactness, sequential and limit point compactness, Tychonoff

X is compact if every open cover has a finite subcover; sequentially compact if every sequence has a convergent subsequence; limit point compact if every infinite subset has a limit point. Compact ⇒ limit point compact always; for metric spaces the three are equivalent; in general neither of compact and sequentially compact implies the other.

What compactness does, and where the hypothesis matters
FactHypothesis neededCounterexample without it
a compact subset is closedX Hausdorffcofinite ℝ: [0, 1] is compact and not closed
a closed subset of a compact space is compactnone—
a continuous bijection from a compact space is a homeomorphismtarget Hausdorffthe identity from ([0, 1], usual) to ([0, 1], indiscrete) is a continuous bijection from a compact space and not a homeomorphism
compact ⇔ closed and boundedsubsets of ℝⁿ (Heine–Borel)closed unit ball of ℓ²

Tychonoff’s theorem: an arbitrary product of compact spaces is compact in the product topology (it is equivalent to the axiom of choice). So [0, 1]ℕ and {0, 1}ℕ (the Cantor set) are compact. In the box topology [0, 1]ℕ is not compact. The one-point compactification of ℝⁿ is Sⁿ.

5. Countability and separation axioms; Urysohn and Tietze

Countability axioms
AxiomMeaningRelations
first countablecountable neighbourhood base at each pointevery metric space
second countablecountable basis⇒ first countable, separable and Lindelöf; for metric spaces ⇔ separable ⇔ Lindelöf
separablecountable dense subsetℝℓ is separable (ℚ) but not second countable
Lindelöfevery open cover has a countable subcoverℝℓ is Lindelöf; ℝℓ × ℝℓ is not

Separation axioms. T₁: points are closed. T₂ (Hausdorff): distinct points have disjoint neighbourhoods. Regular (T₃): a point and a closed set not containing it have disjoint neighbourhoods, plus T₁. Normal (T₄): two disjoint closed sets have disjoint neighbourhoods, plus T₁. T₄ ⇒ T₃ ⇒ T₂ ⇒ T₁, each strictly: the cofinite topology on ℝ is T₁ and not Hausdorff. Metric spaces and compact Hausdorff spaces are normal; ℝℓ is normal but ℝℓ × ℝℓ is not.

  • Urysohn’s lemma: X is normal iff for any disjoint closed A, B there is a continuous f: X → [0, 1] with f = 0 on A and f = 1 on B. In a metric space f = d(x, A)/(d(x, A) + d(x, B)) does it directly.
  • Tietze extension theorem: if X is normal and A ⊆ X is closed, every continuous f: A → [a, b] (or → ℝ) extends to a continuous F: X → [a, b] (or ℝ). Closedness is essential: sin(1/x) on (0, 1] ⊂ ℝ has no continuous extension to ℝ.
  • Urysohn metrization: every regular, second countable (T₁) space is metrizable.

Key takeaways

  • A basis generates open sets by unions and a subbasis by finite intersections then unions; know the discrete, indiscrete, cofinite and lower-limit topologies by heart.
  • Product topology restricts finitely many coordinates; quotients glue: [0, 1]/0 ∼ 1 is S¹ and the square with both pairs of edges identified is the torus.
  • Path-connected ⇒ connected, not conversely; products of connected spaces are connected; cofinite ℝ is connected and ℝℓ totally disconnected.
  • Compact subsets of Hausdorff spaces are closed; compact ⇒ limit point compact; Tychonoff makes products of compact spaces compact.
  • T₄ ⇒ T₃ ⇒ T₂ ⇒ T₁; metric and compact Hausdorff spaces are normal; Urysohn separates closed sets by functions and Tietze extends functions from closed sets.

Practice questions (16)

Attempt each one before opening the answer. Every explanation names the tempting wrong option as well as the right one, because that is where marks are lost.

  1. The number of distinct topologies on a set with two elements is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 4

    On {a, b} a topology contains ∅ and X and any selection of {a}, {b} closed under ∪ and ∩: {∅, X}, {∅, {a}, X}, {∅, {b}, X}, and the discrete one. That is 4; only the last is Hausdorff.
  2. On X = {a, b, c}, the number of open sets in the topology generated by the subbasis {{a, b}, {b, c}} is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 5

    Finite intersections of subbasis elements give the basis {a, b}, {b, c}, {a, b} ∩ {b, c} = {b}, together with X (the empty intersection). Unions then give ∅, {b}, {a, b}, {b, c}, X — 5 open sets. {a} and {c} are not open.
  3. Which of the following spaces are Hausdorff?

    1. ℝ with the cofinite topology
    2. every metric space
    3. ℝ with the lower limit topology generated by [a, b)
    4. a two-point set with the indiscrete topology
    Show answer

    Answer: B — every metric space; C — ℝ with the lower limit topology generated by [a, b)

    (1) No: two non-empty open sets have finite complements and always meet. (2) Balls of radius d(x, y)/2 separate x and y. (3) Yes: it is finer than the usual topology, which is already Hausdorff. (4) No: the only neighbourhood of either point is the whole set.
  4. In ℝ with the lower limit topology (basis {[a, b) : a < b}), the set [0, 1) is

    1. both open and closed
    2. open but not closed
    3. closed but not open
    4. neither open nor closed
    Show answer

    Answer: A — both open and closed

    [0, 1) is a basis element, so it is open. Its complement (−∞, 0) ∪ [1, ∞) = ⋃[−n, 0) ∪ ⋃[1, n) is a union of basis elements, so it is open and [0, 1) is closed. Such clopen sets are why the lower limit line is totally disconnected.
  5. The standard basis for the product topology on X × Y consists of

    1. all sets U × V with U open in X and V open in Y
    2. all open subsets of X × Y in the discrete topology
    3. all sets U × V with U, V closed
    4. all sets U × Y with U open in X
    Show answer

    Answer: A — all sets U × V with U open in X and V open in Y

    Open rectangles U × V are closed under finite intersection, (U₁ × V₁) ∩ (U₂ × V₂) = (U₁ ∩ U₂) × (V₁ ∩ V₂), and cover X × Y, so they form a basis; unions of them are the product topology. The sets U × Y alone form only part of a subbasis.
  6. The quotient of the square [0, 1] × [0, 1] obtained by identifying (x, 0) ∼ (x, 1) and (0, y) ∼ (1, y) for all x, y is homeomorphic to

    1. the torus S¹ × S¹
    2. the sphere S²
    3. the Klein bottle
    4. the closed disc
    Show answer

    Answer: A — the torus S¹ × S¹

    Identifying one pair of opposite edges with the same orientation gives a cylinder S¹ × [0, 1]; identifying its two boundary circles, again the same way, gives S¹ × S¹. Reversing one pair gives the Klein bottle.
  7. Which statements about connectedness are true?

    1. ℝ with the cofinite topology is connected
    2. ℝ with the lower limit topology is connected
    3. a product of connected spaces is connected in the product topology
    4. the topologist’s sine curve is path-connected
    Show answer

    Answer: A — ℝ with the cofinite topology is connected; C — a product of connected spaces is connected in the product topology

    (1) Any two non-empty open sets meet (cofinite complements), so no separation exists. (2) [0, ∞) is clopen. (3) holds for arbitrary products. (4) is false: no path joins a point of the vertical segment to the graph of sin(1/x), although the curve is connected.
  8. The number of connected components of {(x, y) ∈ ℝ² : xy ≠ 0} is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 4

    Removing both axes leaves the four open quadrants. Each is convex, hence connected; and the continuous functions sign(x) and sign(y) are constant on components, so points in different quadrants lie in different components.
  9. The number of path components of GL₂(ℝ), the group of invertible real 2 × 2 matrices with the topology of ℝ⁴, is ____.

    Numerical answer — type the value.

    Show answer

    Answer: 2

    det is continuous and non-zero on GL₂(ℝ), so it cannot change sign along a path: det > 0 and det < 0 are separated. Each is path-connected (any matrix of positive determinant can be deformed to I, e.g. through Gram–Schmidt to a rotation). So there are 2.
  10. Which of the following spaces are compact?

    1. ℝ with the cofinite topology
    2. [0, 1]ℕ with the product topology
    3. (0, 1] with the usual topology
    4. ℤ with the discrete topology
    Show answer

    Answer: A — ℝ with the cofinite topology; B — [0, 1]^{ℕ} with the product topology

    (1) Any one open set of a cover misses only finitely many points, each covered by one more set. (2) Tychonoff. (3) The cover (1/n, 1] has no finite subcover. (4) The singletons form an open cover with no finite subcover.
  11. Which statements are true for topological spaces?

    1. a compact subset of a Hausdorff space is closed
    2. a continuous bijection from a compact space onto a Hausdorff space is a homeomorphism
    3. every compact subset of any topological space is closed
    4. a closed subset of a compact space is compact
    Show answer

    Answer: A — a compact subset of a Hausdorff space is closed; B — a continuous bijection from a compact space onto a Hausdorff space is a homeomorphism; D — a closed subset of a compact space is compact

    (1) For y ∉ K, Hausdorffness and compactness give finitely many neighbourhoods of K and one of y that are disjoint. (2) Closed sets map to compact, hence closed, sets, so the inverse is continuous. (4) Add the open complement to any cover. (3) is false: in the cofinite topology on ℝ, [0, 1] is compact and not closed.
  12. Which statements about the forms of compactness are true?

    1. in a metric space, compact and sequentially compact are equivalent
    2. every compact space is limit point compact
    3. every limit point compact space is compact
    4. ℝ with the usual topology is limit point compact
    Show answer

    Answer: A — in a metric space, compact and sequentially compact are equivalent; B — every compact space is limit point compact

    (1) is the metric theorem. (2) An infinite set with no limit point is closed and discrete, so its points have neighbourhoods containing no other point; with the complement these cover X with no finite subcover. (3) fails: ℕ × {0, 1}, with ℕ discrete and {0, 1} indiscrete, is limit point compact but the open sets {n} × {0, 1} have no finite subcover. (4) ℤ ⊂ ℝ has no limit point.
  13. For the lower limit line ℝℓ (basis {[a, b)}), which statements are true?

    1. it is first countable
    2. it is separable
    3. it is second countable
    4. it is metrizable
    Show answer

    Answer: A — it is first countable; B — it is separable

    (1) {[x, x + 1/n)} is a countable neighbourhood base at x. (2) ℚ meets every [a, b). (3) fails: any basis must contain, for each x, a set with minimum x inside [x, x + 1), giving uncountably many distinct sets. (4) fails: a separable metric space is second countable.
  14. Which statements about separation axioms are true?

    1. every metric space is normal
    2. every compact Hausdorff space is normal
    3. every T₁ space is Hausdorff
    4. every regular second countable T₁ space is metrizable
    Show answer

    Answer: A — every metric space is normal; B — every compact Hausdorff space is normal; D — every regular second countable T₁ space is metrizable

    (1) U = {d(x, A) < d(x, B)} and V = {d(x, B) < d(x, A)} separate disjoint closed A, B. (2) Compactness upgrades point-separation to set-separation twice. (4) is Urysohn’s metrization theorem. (3) fails: the cofinite topology on ℝ is T₁ and not Hausdorff.
  15. Urysohn’s lemma states that a T₁ space X is normal if and only if

    1. for any disjoint closed sets A and B there is a continuous f: X → [0, 1] with f = 0 on A and f = 1 on B
    2. every continuous real function on X is bounded
    3. X is metrizable
    4. for any two distinct points there is a continuous function separating them
    Show answer

    Answer: A — for any disjoint closed sets A and B there is a continuous f: X → [0, 1] with f = 0 on A and f = 1 on B

    Given such f, f⁻¹[0, 1/2) and f⁻¹(1/2, 1] are disjoint open sets around A and B, so the functional condition implies normality; the lemma is the converse, built from a dyadic family of open sets. Normal spaces need not be metrizable (ℝℓ), and bounded functions characterise compactness-type properties, not normality.
  16. f(x) = sin(1/x) on A = (0, 1] has no continuous extension to ℝ. This does not contradict the Tietze extension theorem because

    1. A is not a closed subset of ℝ
    2. ℝ is not a normal space
    3. f is not continuous on A
    4. f is unbounded on A
    Show answer

    Answer: A — A is not a closed subset of ℝ

    Tietze extends continuous functions from closed subsets of a normal space. ℝ is metric, hence normal; f is continuous on A and bounded by 1. The failure is that 0 is a limit point of A outside A, where f oscillates, so A is not closed.