Skip to content
Tutorials Center
My learning

Topics

Lesson 3 of 36 Β· Getting Started

Open Sets on the Real Line

Build intuition for open sets with the real line: open intervals, neighborhoods, interior points, and why unions of open sets are open but infinite intersections may not be.

The whole subject of topology grows from one idea: an open set is a set in which every point has some breathing room. This lesson builds that idea on the real number line, where you already have good intuition, so that the abstract definition later feels natural.

Neighborhoods and interior points

Let a be a real number and Ξ΅ (epsilon) a positive number. The Ξ΅-neighborhood of a is the open interval

Text
(a βˆ’ Ξ΅, a + Ξ΅) = { x : |x βˆ’ a| < Ξ΅ }

A point p of a set S βŠ† ℝ is an interior point of S if some neighborhood of p fits entirely inside S. In plain words, you can wiggle p a little in both directions and stay in S.

A set S is open if every one of its points is an interior point.

Examples

  • (0, 1) is open. Take any p in it. The distance to the nearest end is min(p, 1 βˆ’ p), which is positive, so a neighborhood of that radius fits inside.
  • [0, 1] is not open. The point 0 belongs to the set, but any neighborhood (βˆ’Ξ΅, Ξ΅) contains negative numbers that are outside.
  • [0, 1) is not open for the same reason at 0.
  • ℝ is open (any neighborhood fits) and βˆ… is open (there is no point that could fail the condition).
  • A single point is not open: no interval around 3 fits inside .
  • β„š, the rational numbers, is not open: every interval contains irrational numbers.

To show a set is not open, find one point of the set where no neighborhood fits. One bad point is enough. To show it is open, you must handle every point.

For an open interval (a, b) and a point p inside it, the largest radius that works is min(p βˆ’ a, b βˆ’ p). The code below computes that radius for a union of open intervals, treating each point by the interval that contains it, and also shows that a closed endpoint has no radius at all.

Python Breathing room inside an open interval

Press Run (or Ctrl + Enter) to see the result here.

Program input Β· what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The points 1 and 2 are the endpoints. They are not in (0, 1) βˆͺ (2, 5) at all, so they are not interior. Points near an end, like 0.01, are interior but have very little room, and that is fine: openness only asks for some positive radius, not a fixed one.

Unions and intersections of open sets

Two facts about open sets on the real line carry over to every topological space.

Fact 1. Any union of open sets is open. If p lies in the union, it lies in at least one of the sets. That set has a neighborhood of p inside it, and the neighborhood is then inside the union too.

Fact 2. A finite intersection of open sets is open. If p lies in each of U₁, …, Uβ‚™, each gives a radius Ρ₁, …, Ξ΅β‚™. Take the smallest. It is positive because the list is finite, and that neighborhood fits in all of them.

The word finite matters. Consider the open intervals

Text
(βˆ’1, 1), (βˆ’1/2, 1/2), (βˆ’1/3, 1/3), …

Each is open. Their intersection is , which is not open. With infinitely many sets the smallest radius can shrink to zero. This is the reason topology requires finite intersections and arbitrary unions in its definition (Definition of a Topology).

Python Why intersections must be finite

Press Run (or Ctrl + Enter) to see the result here.

Program input Β· what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Open sets as unions of intervals

On the real line every open set is a union of open intervals. Even a strange-looking open set such as the complement of a point, ℝ \ {0} = (βˆ’βˆž, 0) βˆͺ (0, ∞), is just two intervals. This means open intervals act as building blocks for open sets, an idea formalized later as a basis (Bases and Subbases).

Closed sets, briefly

A set is closed if its complement is open. The set [0, 1] is closed because ℝ \ [0,1] = (βˆ’βˆž, 0) βˆͺ (1, ∞) is open. A set can be neither open nor closed ([0, 1)), and it can be both (ℝ and βˆ…).

Check your understanding

Quick check Β· 4 questions

of 4 answered You scored / 4 Β· perfect!

  1. 1. Which of these subsets of the real line is open?

    Every point of (1,2) βˆͺ (3,4) has an open interval around it inside the set. The others each contain a point (an endpoint or isolated point) with no room.
  2. 2. For the point p = 0.2 in the open interval (0, 1), what is the largest radius of a neighborhood of p inside (0, 1)?

    The radius is min(p - 0, 1 - p) = min(0.2, 0.8) = 0.2.
  3. 3. The intersection of all intervals (-1/n, 1/n), n = 1, 2, 3, ..., equals which set?

    Only 0 lies in every interval, so the intersection is {0}, a set that is not open.
  4. 4. Is the empty set open?

    The condition 'every point is interior' is vacuously true for the empty set.

Summary

  • A neighborhood of a of radius Ξ΅ is (a βˆ’ Ξ΅, a + Ξ΅).
  • A set is open when every point has a neighborhood inside the set.
  • Open intervals are open; closed intervals and single points are not.
  • Arbitrary unions of open sets are open; finite intersections are open; infinite intersections may fail.
  • Closed sets are exactly the complements of open sets.

Next: Topological Equivalence: Stretching Without Tearing