Axiomatizing distance generalizes the ε-ball — the shape of an open ball B(c,r) depends on the metric d. Compare the Euclidean disk, the max-norm square, and the extreme discrete metric.
d(x,y) takes only the values 0 or 1, so d(x,y)≥0. By definition d(x,y)=0 exactly when x=y, and d(x,y)=1 when x=y, so d(x,y)=0⟺x=y.
Symmetry: if x=y then d(x,y)=0=d(y,x), and if x=y then d(x,y)=1=d(y,x), so d(x,y)=d(y,x).
For the triangle inequality, argue by cases. If x=z then the left side is d(x,z)=0≤d(x,y)+d(y,z). If x=z then the left side is d(x,z)=1. For any y: if y equals x the right side is 0+1=1; if y equals z it is 1+0=1; if y equals neither it is 1+1=2. In every case 1≤d(x,y)+d(y,z).
Hence d(x,z)≤d(x,y)+d(y,z) holds for all x,y,z — the discrete metric satisfies all the metric axioms.
Prove every subset of a discrete metric space is open.
B(x,1/2)={x}
r=0.5<1 — every singleton is an open ball.Show proof
Let A be any subset of a discrete metric space, and take x∈A.
With r=1/2 we have B(x,1/2)={x}: if d(x,y)<1/2 then, since d(x,y) is only 0 or 1, we must have d(x,y)=0, i.e. y=x.
Hence B(x,1/2)={x}⊆A. Since x was arbitrary, every point of A is an interior point — A is open.
Prove a convergent sequence in a discrete metric space is eventually constant.
d(xn,x)<1/2⟹xn=x
r=1.5>1 — the ball becomes all six points.Show proof
Let xn→x. By the definition of convergence, with ε=1/2 there is an N such that d(xn,x)<1/2 for all n≥N.
In the discrete metric, d(xn,x)<1/2 forces d(xn,x)=0 since 0 is the only attainable value, and that means xn=x.
Thus xn=x for all n≥N — the sequence is eventually constant.