Interior, Closure, and Boundary
What You’ll Learn
Section titled “What You’ll Learn”In this lesson you’ll define interior, closure and boundary, learn their identities and the ones that fail, meet density and nowhere-density, and work through the examples where intuition breaks.
The Concept
Section titled “The Concept”The three operations
Section titled “The three operations”Interior. is the union of all open sets contained in - equivalently the largest such set. A point is interior when some neighbourhood of it lies entirely inside .
Closure. is the intersection of all closed sets containing - equivalently the smallest such set. Also , the set together with its limit points.
Boundary. . A point is on the boundary when every neighbourhood meets both and its complement.
Every point of the space falls into exactly one of three classes relative to : interior, boundary, or exterior. That trichotomy is the cleanest way to think about all three notions at once.
The figure classifies five test points against a set built from an open disc, one isolated point, and a segment. The classification is computed by sampling a small ring about each point and seeing what it meets. Two results are worth dwelling on: the isolated point belongs to and is a boundary point, and every point of the segment is likewise. So has a nonempty part that contributes nothing at all to its interior.
Being in does not make you interior to . That is the single most useful correction in this lesson.
The basic identities
Section titled “The basic identities”- is open
- is closed
- is clopen
- - a set and its complement share a boundary
- and
- Both operations are idempotent: and
- Duality:
Which identities fail
Section titled “Which identities fail”This is where care is needed. Closure behaves well with unions and badly with intersections; interior is the reverse.
The counterexamples are short. For closure of an intersection, take and in : the intersection is empty so its closure is empty, while . For interior of a union, take and : the union has interior , but neither part’s interior contains 1.
Also note the union rule for closure holds only for finitely many sets. For infinitely many it degrades to a containment, as over the rationals shows: each singleton is closed, the union is , and its closure is all of .
Density
Section titled “Density”is dense in if , equivalently if every nonempty open set meets .
is dense in , and so are the irrationals. A space with a countable dense subset is called separable, which is why is separable and why so many analysis arguments can be run over a countable set.
The opposite extreme:
is nowhere dense if .
is nowhere dense in ; so is the Cantor set, despite being uncountable. Nowhere-dense sets are the “small” sets of topology, and the Baire category theorem - that a countable union of nowhere dense sets cannot fill a complete metric space - is the engine behind many existence proofs.
The examples that break intuition
Section titled “The examples that break intuition”in . , , so . A set whose boundary is the whole space.
A punctured disc. For the closed unit disc minus its centre, is the unit circle together with the centre point. Boundaries do not have to look like edges.
In the discrete topology. Every set is clopen, so and for every .
In the trivial topology. For any nonempty proper : , , and .
Boundary of a boundary. , and equality can fail. For , and .
Worked Examples
Section titled “Worked Examples”Example 1: Find the interior, closure and boundary of in .
Solution. The largest open set inside is , since no interval around 0 fits. The smallest closed set containing it is , adding the limit point 1.
∎
Example 2: Find all three for in .
Solution. No interval consists only of rationals, so the interior is empty. Every real is a limit of rationals, so the closure is .
∎
The boundary is the entire space. Worth sitting with, because it shows “boundary” is not a geometric edge.
Example 3: Find all three for in .
Solution. No interval fits inside , so the interior is empty. has no limit points at all - each integer is isolated - so it is already closed.
Since , the set is nowhere dense. ∎
Example 4: Show can be strictly smaller than .
Solution. Take and in . Then , so
But and , so .
∎
Example 5: Show can be strictly larger than .
Solution. Take and . Then with interior .
But , which misses the point 1.
∎
The gap is exactly the shared boundary point, which becomes interior only after the union.
Example 6: Find the boundary of the punctured closed disc.
Solution. Let in .
The interior is the punctured open disc, since points of the unit circle have no neighbourhood inside and the origin is not in .
The closure is the full closed disc: the origin is a limit point of , so it gets added back.
∎
A boundary can include a point in the middle. This is the clearest example that boundary is not the same as visible edge.
Example 7: Show the Cantor set is nowhere dense.
Solution. The Cantor set is closed, being an intersection of closed sets, so .
It contains no interval: after steps of the construction every remaining piece has length , so any interval of positive length is eventually cut. Hence .
∎
And yet is uncountable. Nowhere dense does not mean small in cardinality, only topologically thin.
Real-World Applications
Section titled “Real-World Applications”Image processing. Morphological erosion and dilation are the interior and closure operations applied to pixel sets, and boundary extraction is literally . Edge detection and noise removal are built from them.
Computational geometry. Robust point-in-polygon and boolean operations on solids must handle boundary cases explicitly, and the regularized set operations used in CAD are defined as the closure of the interior in order to eliminate degenerate slivers.
Feasible regions in optimization. Interior-point methods work strictly inside the feasible set, which is why the interior being nonempty is a stated assumption. When the interior is empty, the problem needs a different method entirely.
Physical boundaries. A boundary condition in a PDE is imposed on , and getting the topological boundary right matters when the domain has cracks or interior holes, where the boundary includes surfaces that are not the outer edge.
Numerical analysis of sets. Approximating a region by a grid amounts to computing an interior approximation and a closure approximation, and the difference between them is the discretization error.
Sampling and density. That a countable set can be dense justifies approximating continuous problems on a countable grid, and separability of the underlying space is the precise hypothesis those approximations need.
Retrying will remove your ✅ checkmark until you pass again.