In the following, \mathbb{R} represents the
real numbers with their usual topology. • The subspace topology of the
natural numbers, as a subspace of \mathbb{R}, is the
discrete topology. • The
rational numbers \mathbb{Q} considered as a subspace of \mathbb{R} do not have the discrete topology ({0} for example is not an open set in \mathbb{Q} because there is no open subset of \mathbb{R} whose intersection with \mathbb{Q} can result in
only the
singleton {0}). If
a and
b are rational, then the intervals (
a,
b) and [
a,
b] are respectively open and closed, but if
a and
b are irrational, then the set of all rational
x with
a \mathbb{R} is both open and closed, whereas as a subset of \mathbb{R} it is only closed. • As a subspace of \mathbb{R}, [0, 1] ∪ [2, 3] is composed of two disjoint
open subsets (which happen also to be closed), and is therefore a
disconnected space. • Let
S = [0, 1) be a subspace of the real line \mathbb{R}. Then [0, ) is open in
S but not in \mathbb{R} (as for example the intersection between (-, ) and
S results in [0, )). Likewise [, 1) is closed in
S but not in \mathbb{R} (as there is no open subset of \mathbb{R} that can intersect with [0, 1) to result in [, 1)).
S is both open and closed as a subset of itself but not as a subset of \mathbb{R}. == Properties ==