Statement
Suppose
is a metric space. Then, the collection of subsets:
form a basis for a topology on
. These are often called the open balls of
.
Definitions used
Metric space
Further information: metric space
A metric space
is a set
with a function
satisfying the following:
(non-negativity)
(identity of indiscernibles)
(symmetry)
(triangle inequality)
Basis for a topological space
Further information: Basis for a topological space
A collection of subsets
of a set
is said to form a basis for a topological space if the following two conditions are satisfied:

- For any
, and any
, there exists
such that
.
Note that this is the definition for a collection of subsets that can form the basis for some topology.
Proof
It suffices to show the following two things:
- The space
is the union of subsets of the form 
- Given two sets
and
, and any
, there exists
such that
(this suffices because
for any
, since
).
Proof that the union is the whole space
For any
, and any
, we have, because
:
Thus, in particular, we have:
Taking the union over all
, we get:
Proof for intersection of two
Consider two balls
and
, where
and
. (Note that
may be equal). Suppose
. Then, by definition of the balls, we have:
Define:
Then,
. We want to claim that
lies completely inside
.
Let's prove this. Suppose
. Then:
By the triangle inequality and an application of the above we have:
Thus,
. Analogously,
. This completes the proof.