Let (X,d) be a metric space
, let x0∈X, and let r>0.
- The open ball of center x0 and radius r is
B(x0;r):={x∈X∣d(x,x0)<r}.
- The closed ball of center x0 and radius r is
B′(x0;r):={x∈X∣d(x,x0)≤r}.
Open balls generate the topology of the metric space: a set is open
iff it contains an open ball around each of its points.
Examples:
- In R with d(x,y)=∣x−y∣, B(x0;r)=(x0−r,x0+r) and B′(x0;r)=[x0−r,x0+r].
- In the discrete metric, B(x0;r)={x0} whenever 0<r≤1.