Question: Suppose X consists of only 2 points. Find all metrics on X.
My first thought was that there are none, because there must be 3 points in X to satisfy the triangle inequality using the definition of a metric:
I guess I don't understand how the empty set or a singleton set can have a metric (how do they satisfy the triangle inequality?). But if they can, then couldn't a set consisting of 2 points? How would I find the metrics on a 2-point set?
My first thought was that there are none, because there must be 3 points in X to satisfy the triangle inequality using the definition of a metric:
But then I was reading some books on metrics and looking online, and it seems that the empty set is a metric space with its only metric being the empty function. Also, a singleton set has a metric, the zero function. So now I am confused.A metric on a set X is a function (called the distance function or simply distance)
d : X × X → R
(where R is the set of real numbers). For all x, y, z in X, this function is required to satisfy the following conditions:
- d(x, y) ≥ 0
- d(x, y) = 0 if and only if x = y
- d(x, y) = d(y, x)
- d(x, z) ≤ d(x, y) + d(y, z).
I guess I don't understand how the empty set or a singleton set can have a metric (how do they satisfy the triangle inequality?). But if they can, then couldn't a set consisting of 2 points? How would I find the metrics on a 2-point set?