0

My class was deleted, due to the virus.

I am supposed to solve the following problem:

Let $A$ be any set of positive real numbers. Construct a metric space $(X, d)$ so that the set $A$ is identical to the set of all distances of different points of the space $X$.

My solution: \begin{align*} X&=\left \{ 0 \right \}\cup A\\ d(x,y)&= \begin{cases} 0 & \text{if $x=y$,}\\ \max\{x,y\} & \text{if $x\neq y$.} \end{cases} \end{align*}

Is that correct? How should I continue?

Shelley
  • 483
  • 2
  • 7

1 Answers1

0

Triangle inequality: If $x,y,z$ are all distinct the n $x \leq \max \{x,z\}\leq d(x,z)+d(z,y)$ and $y \leq \max \{y,z\}\leq d(x,z)+d(z,y)$. Hence $d(x,y) =\max \{x,y\} \leq d(x,z)+d(z,y)$. The case when the points are not distinct is trivial.