Skip to content

Closed Sets, Closure, Interior, and Boundary

Definition. A subset F⊆XF \subseteq X is closed if its complement X∖FX \setminus F is open.

Proposition 3.1. Closed sets satisfy:

  1. ∅\emptyset and XX are closed.
  2. Any intersection of closed sets is closed.
  3. Any finite union of closed sets is closed.

Proof. By De Morgan’s laws, complements turn intersections into unions and unions into intersections: X∖⋂i∈IFi=⋃i∈I(X∖Fi)X \setminus \bigcap_{i \in I} F_i = \bigcup_{i \in I} (X \setminus F_i) and X∖⋃i=1nFi=⋂i=1n(X∖Fi)X \setminus \bigcup_{i=1}^{n} F_i = \bigcap_{i=1}^{n} (X \setminus F_i).

(1) X∖∅=XX \setminus \emptyset = X and X∖X=∅X \setminus X = \emptyset are open.

(2) Each X∖FiX \setminus F_i is open, so ⋃i∈I(X∖Fi)\bigcup_{i \in I} (X \setminus F_i) is open; the open-set axioms allow arbitrary unions; hence ⋂i∈IFi\bigcap_{i \in I} F_i is closed.

(3) Each X∖FiX \setminus F_i is open and there are only finitely many, so ⋂i=1n(X∖Fi)\bigcap_{i=1}^{n} (X \setminus F_i) is open; the axioms allow finite intersections; hence ⋃i=1nFi\bigcup_{i=1}^{n} F_i is closed. ■\blacksquare

The asymmetry between (2) and (3) mirrors the open-set axioms exactly: open sets are closed under arbitrary unions and finite intersections, so closed sets are closed under arbitrary intersections and finite unions. This is why an infinite union of closed sets can fail to be closed: ⋃n=1∞[1/n,1]=(0,1]\bigcup_{n=1}^{\infty} [1/n, 1] = (0, 1], which is not closed.

Example 3.1. In R\mathbb{R} with the standard topology, [a,b][a, b] is closed since R∖[a,b]=(−∞,a)∪(b,∞)\mathbb{R} \setminus [a, b] = (-\infty, a) \cup (b, \infty) is open.

Example 3.2. Sets can be both open and closed (clopen). In the discrete topology every set is clopen. In any topological space, ∅\emptyset and XX are clopen.

Example 3.3. Sets can be neither open nor closed. In R\mathbb{R}, [0,1)[0, 1) is neither open nor closed.

Definition. The closure of A⊆XA \subseteq X, denoted A‾\overline{A}, is the smallest closed set containing AA:

A‾=⋂{F:F is closed and A⊆F}.\overline{A} = \bigcap \{F : F \text{ is closed and } A \subseteq F\}.

Equivalently, x∈A‾x \in \overline{A} if and only if every open set containing xx intersects AA.

Proof of the equivalence. If x∉A‾x \notin \overline{A}, then; since A‾\overline{A} is the intersection of all closed F⊇AF \supseteq A; there is a closed set FF with A⊆FA \subseteq F and x∉Fx \notin F. Then U=X∖FU = X \setminus F is open, contains xx, and U∩A=∅U \cap A = \emptyset. Conversely, if some open U∋xU \ni x satisfies U∩A=∅U \cap A = \emptyset, then X∖UX \setminus U is closed, contains AA, and excludes xx; it is one of the sets in the family whose intersection defines A‾\overline{A}, so x∉A‾x \notin \overline{A}. ■\blacksquare

This characterisation makes the closure local: membership in A‾\overline{A} is decided by arbitrarily small neighbourhoods of a single point, not by any global property of AA.

Example 3.4. In R\mathbb{R}: (0,1)‾=[0,1]\overline{(0, 1)} = [0, 1], Q‾=R\overline{\mathbb{Q}} = \mathbb{R}.

Example 3.5. In R2\mathbb{R}^2 with the standard topology, the closure of the open unit disc {(x,y):x2+y2<1}\{(x, y) : x^2 + y^2 < 1\} is the closed unit disc {(x,y):x2+y2≤1}\{(x, y) : x^2 + y^2 \leq 1\}.

Definition. The interior of A⊆XA \subseteq X, denoted A˚\mathring{A} or int⁡(A)\operatorname{int}(A), is the largest open set contained in AA:

int⁡(A)=⋃{U:U is open and U⊆A}.\operatorname{int}(A) = \bigcup \{U : U \text{ is open and } U \subseteq A\}.

Equivalently, x∈int⁡(A)x \in \operatorname{int}(A) if and only if there exists an open set UU with x∈U⊆Ax \in U \subseteq A.

Proposition 3.3 (Interior—closure duality). For any A⊆XA \subseteq X:

A‾=X∖int⁡(X∖A),int⁡(A)=X∖X∖A‾.\overline{A} = X \setminus \operatorname{int}(X \setminus A), \qquad \operatorname{int}(A) = X \setminus \overline{X \setminus A}.

Proof. Using the pointwise characterisation of closure just proved: x∈X∖A‾x \in X \setminus \overline{A} if and only if some open U∋xU \ni x has U∩A=∅U \cap A = \emptyset; that is, U⊆X∖AU \subseteq X \setminus A - that is, x∈int⁡(X∖A)x \in \operatorname{int}(X \setminus A). This is the first identity. Substituting X∖AX \setminus A for AA gives the second.

Alternatively, argue directly for the second: x∉int⁡(A)x \notin \operatorname{int}(A) means no open neighbourhood of xx fits inside AA, which means every open neighbourhood of xx meets X∖AX \setminus A, which means x∈X∖A‾x \in \overline{X \setminus A}. ■\blacksquare

The duality says the two operations are the same operation seen through complementation; closure builds the smallest closed superset exactly as interior builds the largest open subset. Any theorem about one converts into a theorem about the other, which is how part (2) of Proposition 3.4 below is obtained from part (1) for free.

Example 3.6. In R\mathbb{R}: int⁡([0,1])=(0,1)\operatorname{int}([0, 1]) = (0, 1), int⁡(Q)=∅\operatorname{int}(\mathbb{Q}) = \emptyset.

Definition. The boundary of A⊆XA \subseteq X, denoted ∂A\partial A, is:

∂A=A‾∩X∖A‾=A‾∖int⁡(A).\partial A = \overline{A} \cap \overline{X \setminus A} = \overline{A} \setminus \operatorname{int}(A).

Proof of the identity of the two descriptions. Apply Proposition 3.3 to X∖AX \setminus A: X∖A‾=X∖int⁡(X∖(X∖A))=X∖int⁡(A)\overline{X \setminus A} = X \setminus \operatorname{int}(X \setminus (X \setminus A)) = X \setminus \operatorname{int}(A). Therefore A‾∩X∖A‾=A‾∩(X∖int⁡(A))=A‾∖int⁡(A)\overline{A} \cap \overline{X \setminus A} = \overline{A} \cap (X \setminus \operatorname{int}(A)) = \overline{A} \setminus \operatorname{int}(A). ■\blacksquare

The symmetric definition makes ∂A=∂(X∖A)\partial A = \partial(X \setminus A) immediate: the boundary belongs to the set and its complement equally.

Example 3.7. In R\mathbb{R}: ∂(0,1)={0,1}\partial(0, 1) = \{0, 1\}, ∂Q=R\partial\mathbb{Q} = \mathbb{R}, ∂∅=∅\partial\emptyset = \emptyset.

Definition. A subset A⊆XA \subseteq X is dense in XX if A‾=X\overline{A} = X.

Example 3.8. Q\mathbb{Q} is dense in R\mathbb{R} with the standard topology.

Example 3.9. In the cofinite topology on an infinite set XX, every infinite subset is dense.

Proposition 3.2. AA is dense in XX if and only if every nonempty open set intersects AA.

Proof. Suppose A‾=X\overline{A} = X and let U≠∅U \neq \emptyset be open. Pick a point x∈Ux \in U; then UU is an open neighbourhood of xx, and x∈X=A‾x \in X = \overline{A}, so the pointwise characterisation forces U∩A≠∅U \cap A \neq \emptyset.

Conversely, suppose every nonempty open set meets AA, and let x∈Xx \in X be arbitrary. Every open neighbourhood UU of xx is in particular nonempty and open, so U∩A≠∅U \cap A \neq \emptyset; the characterisation gives x∈A‾x \in \overline{A}. Since xx was arbitrary, A‾=X\overline{A} = X. ■\blacksquare

Proposition 3.4. For A,B⊆XA, B \subseteq X:

  1. A∪B‾=A‾∪B‾\overline{A \cup B} = \overline{A} \cup \overline{B}.
  2. int⁡(A∩B)=int⁡(A)∩int⁡(B)\operatorname{int}(A \cap B) = \operatorname{int}(A) \cap \operatorname{int}(B).
  3. A∩B‾⊆A‾∩B‾\overline{A \cap B} \subseteq \overline{A} \cap \overline{B} and int⁡(A∪B)⊇int⁡(A)∪int⁡(B)\operatorname{int}(A \cup B) \supseteq \operatorname{int}(A) \cup \operatorname{int}(B), and both inclusions can be strict.

Proof. (1) If A⊆BA \subseteq B then every closed F⊇BF \supseteq B also has F⊇AF \supseteq A, so A‾⊆B‾\overline{A} \subseteq \overline{B}: closure is monotone. Monotonicity gives A‾⊆A∪B‾\overline{A} \subseteq \overline{A \cup B} and B‾⊆A∪B‾\overline{B} \subseteq \overline{A \cup B}, hence A‾∪B‾⊆A∪B‾\overline{A} \cup \overline{B} \subseteq \overline{A \cup B}. Conversely A‾∪B‾\overline{A} \cup \overline{B} is closed (Proposition 3.1(3)) and contains A∪BA \cup B, so by definition of A∪B‾\overline{A \cup B} as the smallest such set, A∪B‾⊆A‾∪B‾\overline{A \cup B} \subseteq \overline{A} \cup \overline{B}.

(2) By the duality of Proposition 3.3, applied twice, and part (1):

int⁡(A∩B)=X∖(X∖A)∪(X∖B)‾=X∖(X∖A‾∪X∖B‾)=int⁡(A)∩int⁡(B).\operatorname{int}(A \cap B) = X \setminus \overline{(X \setminus A) \cup (X \setminus B)} = X \setminus \bigl(\overline{X \setminus A} \cup \overline{X \setminus B}\bigr) = \operatorname{int}(A) \cap \operatorname{int}(B).

(3) A∩B⊆AA \cap B \subseteq A gives A∩B‾⊆A‾\overline{A \cap B} \subseteq \overline{A}, and similarly A∩B‾⊆B‾\overline{A \cap B} \subseteq \overline{B}. For strictness take X=RX = \mathbb{R}, A=QA = \mathbb{Q}, B=R∖QB = \mathbb{R} \setminus \mathbb{Q}: both closures equal R\mathbb{R}, so A‾∩B‾=R\overline{A} \cap \overline{B} = \mathbb{R}, while A∩B=∅A \cap B = \emptyset and hence A∩B‾=∅⊊R\overline{A \cap B} = \emptyset \subsetneq \mathbb{R}. The interior inclusion is the dual statement (substitute complements in what was just shown, using Proposition 3.3), and the same example shows it strict: int⁡(A)∪int⁡(B)=∅\operatorname{int}(A) \cup \operatorname{int}(B) = \emptyset but int⁡(A∪B)=int⁡(R)=R\operatorname{int}(A \cup B) = \operatorname{int}(\mathbb{R}) = \mathbb{R}. ■\blacksquare

The failure in (3) is not a technicality; it is the formal reason a boundary can be large. Since ∂A=A‾∖int⁡(A)\partial A = \overline{A} \setminus \operatorname{int}(A), the rationals have ∂Q=R\partial\mathbb{Q} = \mathbb{R}: every point of R\mathbb{R} is simultaneously a limit of rationals and of irrationals. Only a separation hypothesis between the two sets (for instance A‾∩B‾=∅\overline{A} \cap \overline{B} = \emptyset, or positive distance in a metric space) can restore equality in (3).

Closure is not just an operation on subsets; it determines the topology. Kuratowski isolated which axioms an operator must satisfy to be a closure operator, and the answer is four.

Proposition 3.5. The closure operator satisfies:

  • (K1) A‾‾=A‾\overline{\overline{A}} = \overline{A} (idempotence);
  • (K2) A∪B‾=A‾∪B‾\overline{A \cup B} = \overline{A} \cup \overline{B} (additivity);
  • (K3) A⊆A‾A \subseteq \overline{A} (extensivity);
  • (K4) ∅‾=∅\overline{\emptyset} = \emptyset (groundedness).

Conversely, any operator c:P(X)→P(X)c : \mathcal{P}(X) \to \mathcal{P}(X) satisfying (K1)–(K4) is the closure operator of exactly one topology on XX, namely τc={U⊆X:c(X∖U)=X∖U}\tau_c = \{U \subseteq X : c(X \setminus U) = X \setminus U\}.

Proof. The four axioms for A‾\overline{\phantom{A}}: (K3) holds because every set in the family whose intersection defines A‾\overline{A} contains AA. (K4) holds because ∅\emptyset is itself closed (Proposition 3.1(1)), so the defining family includes ∅\emptyset and the intersection is contained in it. (K2) is Proposition 3.4(1). For (K1): A‾\overline{A} is a closed set containing AA, so it is a member of the family defining A‾‾\overline{\overline{A}}, giving A‾‾⊆A‾\overline{\overline{A}} \subseteq \overline{A}; the reverse inclusion is (K3) applied to A‾\overline{A}.

For the converse, first derive monotonicity from (K2): if A⊆BA \subseteq B then A∪B=BA \cup B = B, so A‾∪B‾=B‾\overline{A} \cup \overline{B} = \overline{B}, hence A‾⊆B‾\overline{A} \subseteq \overline{B}. Call CC cc-closed if c(C)=Cc(C) = C; these are the closed sets of τc\tau_c by construction. The family of cc-closed sets is nonempty (c(X)⊇Xc(X) \supseteq X by (K3), so XX is cc-closed, and ∅\emptyset is cc-closed by (K4)), and it is closed under arbitrary intersections: if C=⋂iCiC = \bigcap_i C_i with each CiC_i cc-closed, monotonicity gives c(C)⊆c(Ci)=Cic(C) \subseteq c(C_i) = C_i for every ii, so c(C)⊆Cc(C) \subseteq C, and (K3) gives equality. Hence τc\tau_c is a topology.

Finally, the closure operator of τc\tau_c maps AA to the smallest cc-closed set containing AA. The set c(A)c(A) is cc-closed by (K1) and contains AA by (K3). And any cc-closed C⊇AC \supseteq A satisfies C=c(C)⊇c(A)C = c(C) \supseteq c(A) by monotonicity. So c(A)c(A) is that smallest set; the closure operator of τc\tau_c is exactly cc, and since the closed sets of τc\tau_c are the fixed points of cc, the topology is unique. ■\blacksquare

Example 3.10. On X={a,b}X = \{a, b\}, the operator cc with c(∅)=∅c(\emptyset) = \emptyset, c({a})={a,b}c(\{a\}) = \{a, b\}, c({b})={b}c(\{b\}) = \{b\}, c({a,b})={a,b}c(\{a,b\}) = \{a,b\} satisfies (K1)–(K4). The topology it generates is {∅,{a},{a,b}}\{\emptyset, \{a\}, \{a, b\}\}; the Sierpiński space of the next sections (with aa the open point). Note c({a})≠{a}c(\{a\}) \neq \{a\}: the point aa is not closed, which is exactly the failure of T1T_1.

OperationDefinitionNotationDuality
ClosureSmallest closed supersetA‾=⋂{F:A⊆F,  F closed}\overline{A} = \bigcap\{F : A \subseteq F,\; F\text{ closed}\}A‾=X∖int⁡(X∖A)\overline{A} = X \setminus \operatorname{int}(X \setminus A)
InteriorLargest open subsetint⁡(A)=⋃{U:U⊆A,  U open}\operatorname{int}(A) = \bigcup\{U : U \subseteq A,\; U\text{ open}\}int⁡(A)=X∖X∖A‾\operatorname{int}(A) = X \setminus \overline{X \setminus A}
BoundaryPoints in both closure and complement’s closure∂A=A‾∩X∖A‾\partial A = \overline{A} \cap \overline{X \setminus A}∂A=A‾∖int⁡(A)\partial A = \overline{A} \setminus \operatorname{int}(A)
ExteriorInterior of complementext⁡(A)=int⁡(X∖A)\operatorname{ext}(A) = \operatorname{int}(X \setminus A)X=int⁡(A)∪∂A∪ext⁡(A)X = \operatorname{int}(A) \cup \partial A \cup \operatorname{ext}(A)
  1. Closed is not the opposite of open: A set can be both open and closed (clopen), or neither. In R\mathbb{R} with the standard topology, ∅\emptyset and R\mathbb{R} are clopen; [0,1)[0,1) is neither.
  2. Closure depends on the ambient space: (0,1)(0,1) has closure [0,1][0,1] in R\mathbb{R}, but in R\mathbb{R} with the lower-limit topology, the closure includes additional limit points. The closure operation is relative to the topology.
  3. Boundary points need not belong to the set: ∂(0,1)={0,1}\partial(0,1) = \{0,1\} in R\mathbb{R}, but neither 0 nor 1 is in (0,1)(0,1). The boundary of an open set is always contained in its complement.
  4. Dense sets can have empty interior: Q\mathbb{Q} is dense in R\mathbb{R} yet has empty interior. A dense set has full closure but may be “full of holes” topologically.
  5. Finite union vs infinite intersection: Closed sets are only guaranteed closed under finite unions. An infinite union of closed sets (e.g., ⋃n=1∞[1/n,1]\bigcup_{n=1}^\infty [1/n, 1]) may not be closed.

Worked Example: Closure and Boundary in Subspace Topology

Section titled “Worked Example: Closure and Boundary in Subspace Topology”

Problem. Let A=(0,1]×{0}⊂R2A = (0,1] \times \{0\} \subset \mathbb{R}^2. Find A‾\overline{A}, int⁡(A)\operatorname{int}(A), and ∂A\partial A in R2\mathbb{R}^2 with the standard topology.

Solution. AA is a line segment on the xx-axis, open at 0 and closed at 1.

  • A‾=[0,1]×{0}\overline{A} = [0,1] \times \{0\}: The point (0,0)(0,0) is a limit point because every neighbourhood contains points of AA.
  • int⁡(A)=∅\operatorname{int}(A) = \emptyset: No open ball in R2\mathbb{R}^2 is contained in a line segment.
  • ∂A=A‾=[0,1]×{0}\partial A = \overline{A} = [0,1] \times \{0\}: Every point of AA is also a boundary point since every neighbourhood contains points both in AA and AcA^c.

This illustrates that a set with empty interior is entirely contained in its boundary.

  • Continuous functions on dense subsets: If two continuous functions f,g:X→Yf, g : X \to Y agree on a dense subset D⊂XD \subset X, then f=gf = g everywhere. This is fundamental in analysis for extending functions.
  • Baire category theorem: Complete metric spaces cannot be expressed as a countable union of nowhere dense sets. This theorem underlies proofs of existence of continuous nowhere differentiable functions.
  • Closure in function spaces: The Stone—Weierstrass theorem characterises dense subalgebras of C(X)C(X), enabling polynomial approximation of continuous functions.
  • Manifold boundaries: The topological boundary of a manifold with boundary is distinct from its manifold boundary. For an nn-manifold with boundary, ∂M\partial M as a topological space is an (n−1)(n-1)-manifold without boundary.
  • Analysis: The closure operation is essential for defining compactness (every open cover has a finite subcover) and the Heine—Borel theorem.
  • Algebraic topology: The boundary operator ∂\partial in singular homology is defined using topological boundaries of simplices.
  • Functional analysis: The closure of a subspace in a normed space is central to the Hahn—Banach theorem and the definition of the dual space.
  • Differential geometry: The interior and boundary of a manifold with boundary are defined analogously, using charts to R+n\mathbb{R}^n_+.

Problem. Show that the set of polynomials P[0,1]\mathcal{P}[0,1] is dense in C([0,1],R)C([0,1], \mathbb{R}) (continuous functions on [0,1][0,1]) under the supremum norm.

Solution. By the Stone—Weierstrass theorem, any subalgebra of C([0,1])C([0,1]) that separates points and contains constant functions is dense. The polynomials form a subalgebra, contain constants, and separate points (the polynomial p(x)=xp(x) = x distinguishes x1≠x2x_1 \neq x_2). Therefore P[0,1]‾=C([0,1])\overline{\mathcal{P}[0,1]} = C([0,1]).

In the language of closure: the closure of the polynomials in the sup-norm topology is the entire space of continuous functions. Every continuous function on [0,1][0,1] can be approximated uniformly by a sequence of polynomials (Weierstrass approximation theorem).

OperationProperty 1Property 2Property 3
A‾\overline{A}A⊆A‾A \subseteq \overline{A}A‾‾=A‾\overline{\overline{A}} = \overline{A}A∪B‾=A‾∪B‾\overline{A \cup B} = \overline{A} \cup \overline{B}
int⁡(A)\operatorname{int}(A)int⁡(A)⊆A\operatorname{int}(A) \subseteq Aint⁡(int⁡(A))=int⁡(A)\operatorname{int}(\operatorname{int}(A)) = \operatorname{int}(A)int⁡(A∩B)=int⁡(A)∩int⁡(B)\operatorname{int}(A \cap B) = \operatorname{int}(A) \cap \operatorname{int}(B)
∂A\partial A∂A=∂(X∖A)\partial A = \partial(X \setminus A)∂(A∪B)⊆∂A∪∂B\partial(A \cup B) \subseteq \partial A \cup \partial B∂(A∩B)⊆∂A∪∂B\partial(A \cap B) \subseteq \partial A \cup \partial B
DenseA‾=X\overline{A} = XAA intersects every nonempty open setAcA^c has empty interior

Think of a set as a region of space with fuzzy edges. The interior is the core where you can move freely in any direction. The closure adds back all the limit points that were arbitrarily close. The boundary is the fuzzy edge itself, where every neighborhood contains both points inside and outside the set. Dense sets are like scattered dust that gets arbitrarily close to every point, even though the dust itself has no interior. These operations form a dual pair: closure and interior are negations of each other when applied to complements, reflecting the fundamental symmetry between open and closed sets.