A pair (X, d) is called a metric space if X is non-empty and d is a distance function (called metric) defined on X. ℝ is a metric space with the metric d(x,y) = |x-y| for all real numbers x, y.