is open when every point of is the center of a ball contained in ; is closed when its complement is open. Neighborhoods, interior, closure, density, boundary are defined exactly as on the real line (Year 1 volume), with balls replacing intervals, and the statements proved there — unions/intersections of open sets, characterizations of interior and closure, closure as smallest closed superset — carry over with the same proofs. Open balls are open, closed balls are closed (triangle inequality).
Examples
Example 4.4 (Interior, closure, boundary on one set)
In , let . Interior: — around any a small ball stays in ; around , every ball leaks out of on the right, so is not interior; and the isolated is not interior either. Closure: (the point is a limit of , nothing else is added). Boundary (closure minus interior): . Note the asymmetries worth remembering: an endpoint can belong to a set without being interior (), can be adherent without belonging (), and an isolated point is its own boundary (). The same bookkeeping runs verbatim in any metric space, with balls in place of intervals.
Example 4.10 (Open and closed sets recognized by continuity)
The global characterization (Theorem 4.6) is the everyday tool for topological bookkeeping. In : the set is open — it is for the continuous and , an intersection of two open preimages. In : the set of functions with and is closed — the preimage of under the continuous map into (each coordinate is -Lipschitz, as in Exercise 4.3). The method never draws a picture: exhibit a continuous map, read the set as a preimage, quote the theorem.
Example 4.22 (Reading compactness on covers)
The half-open interval is covered by the open sets , ; any finite subfamily has a largest index and misses : no finite subcover, so is not compact — which the sequential definition sees through , whose limit escapes. On the other hand, adding the single point repairs both diagnoses at once: on every such cover must contain a set containing , which swallows a whole initial segment, and finitely many sets finish the rest. The two languages of Theorem 4.20 always fail or succeed together — covers detect escape exactly where sequences do.