Description: The distance function of a constructed metric space. (Contributed by Mario Carneiro, 28-Aug-2015)