Mathematics · Glossary

What is metric space?

Definition 4.1 University Mathematics — Year 2 · Chapter 4 — Topology of Metric Spaces

A metric space is a set XX with a map d ⁣:X×XR+d \colon X \times X \to \R_+ such that, for all x,y,zx, y, z:

d(x,y)=0    x=y,d(x,y)=d(y,x),d(x,z)d(x,y)+d(y,z).d(x,y) = 0 \iff x = y, \qquad d(x,y) = d(y,x), \qquad d(x,z) \leq d(x,y) + d(y,z).

Balls: B(a,r)={x:d(a,x)<r}B(a, r) = \{x : d(a,x) < r\} (open), B(a,r)={x:d(a,x)r}\overline B(a,r) = \{x : d(a,x) \leq r\} (closed). A subset AXA \subseteq X becomes a metric space with the induced distance.

Examples

Example 4.2

R\R with xy\abs{x - y}; Rn\R^n with any of

d1(x,y)=ixiyi,d2(x,y)=(i(xiyi)2)1/2,d(x,y)=maxixiyi;d_1(x,y) = \sum_i \abs{x_i - y_i}, \quad d_2(x,y) = \Bigl(\sum_i (x_i - y_i)^2\Bigr)^{1/2}, \quad d_\infty(x,y) = \max_i \abs{x_i - y_i};

the set C([a,b])C(\intcc{a}{b}) of continuous functions with the sup distance d(f,g)=sup[a,b]fgd_\infty(f, g) = \sup_{\intcc{a}{b}} \abs{f - g} (finite: fgf - g is bounded); any set with the discrete distance (d(x,y)=1d(x,y) = 1 for xyx \neq y). Distances coming from norms are the subject of Chapter 5.

Example 4.4 (Interior, closure, boundary on one set)

In R\R, let A=(0,1]{2}A = \intoc{0}{1} \cup \{2\}. Interior: (0,1)\intoo{0}{1} — around any x(0,1)x \in \intoo01 a small ball stays in AA; around 11, every ball (1r,1+r)\intoo{1-r}{1+r} leaks out of AA on the right, so 11 is not interior; and the isolated 22 is not interior either. Closure: [0,1]{2}\intcc{0}{1} \cup \{2\} (the point 00 is a limit of AA, nothing else is added). Boundary (closure minus interior): {0,1,2}\{0, 1, 2\}. Note the asymmetries worth remembering: an endpoint can belong to a set without being interior (11), can be adherent without belonging (00), and an isolated point is its own boundary (22). The same bookkeeping runs verbatim in any metric space, with balls in place of intervals.

Example 4.19 (Distances between sets: compactness earns its keep)

Let KK be compact, FF closed, KF=K \cap F = \emptyset in a metric space. Then

d(K,F)=inf{d(x,y):xK, yF}>0:d(K, F) = \inf\,\{d(x, y) : x \in K,\ y \in F\} > 0 :

the function xd(x,F)x \mapsto d(x, F) is continuous (Exercise 4.11) and positive on KK (d(x,F)=0d(x, F) = 0 would put xF=Fx \in \overline F = F), so it attains a positive minimum on the compact KK (Theorem 4.16 (3)). Compactness is not decorative: for two closed sets the infimum can vanish without being attained — in R2\R^2, the hyperbola F1={xy=1}F_1 = \{xy = 1\} and the axis F2={y=0}F_2 = \{y = 0\} are disjoint closed sets with d(F1,F2)=0d(F_1, F_2) = 0 (the points (n,1n)(n, \frac1n) approach the axis). Escape to infinity is exactly what compactness forbids.

Read in context →