A set is a neighborhood of when it contains an interval for some . A set is open when it is a neighborhood of each of its points:
Examples
Example 12.2
Open intervals are open: for , take . Half-lines are open; and are open (the latter vacuously). is not open: no interval around stays inside.
Example 12.4 (Certifying openness with explicit radii)
Is open? Yes, and the certificate can be written down: , a union of two open half-lines, open by Proposition 12.3. Alternatively, argue point by point: for with , take : every satisfies , hence ; symmetrically on the left. Both styles matter — the structural one (build from known open sets by unions and finite intersections) scales better, the -style one works when no structure is visible; and Chapter 13 will add a third, the most powerful: is the preimage of the open under the continuous .
Example 12.8
Segments , half-lines , finite sets, (a convergent sequence of integers is eventually constant) are closed. is neither open (fails at ) nor closed ( the set): most sets are neither. and are both open and closed — and they are the only such subsets of (Exercise 12.9).