Let $M$ be a metric space, and $S=\{d(x,y):x,y\in M\}$ be the set of all distances between points in $M$. Let's call $M$ a unique distance space if for all $x\in M$ and all $r\in S$, there exists a unique $y\in M$ with $d(x,y)=r$. As an example, the vertices of a generic box in $\mathbb{R}^n$ will be a unique distance space with $|S|=2^n$. On the other hand, $\mathbb{R}$ with the usual metric is not a unique distance space, because given $x\in \mathbb{R}$ and $r>0$, there are two points of distance $r$ from $x$.
Main Question: Does there exist a unique distance space with $S=\mathbb{R}_{\geq 0}$?
One attempt
Let $M$ be a vector space over $\mathbb{F}_2$ with basis $B$, and let $f:B\to\mathbb{R}_{>0}$. If for $x,y\in M$ we define $d(x,y)$ to be the sum of $f(b)$ over all $b\in B$ where the coefficient of $b$ in $x$ and $y$ are different, then $d$ is a metric on $M$. If we choose $f$ so that the values of $\sum_{b\in T}f(b)$ are distinct for all finite subsets $T\subseteq B$, then $M$ is a unique distance space.
Some examples of this construction:
- If $M$ is finite-dimensional, then $M$ can be isometrically embedded as a box in $\mathbb{R}^n$ under the $L^1$ ("Manhattan") metric.
- If $B=\{e_n:n\in\mathbb{Z}\}$ and $f(e_n):=2^{n}$, then we can map $M$ bijectively onto the non-negative dyadic rationals $\mathbb{Z}[\frac12]_{\geq 0}$ by $e_n\mapsto 2^n$, and $d$ will correspond to the bitwise XOR operator. The fact that $M$ is a unique distance space can be seen directly by noting that $r=x\text{ XOR }y$ if and only if $y=x\text{ XOR }r$.
In order to use this technique to solve the original problem, we would need the following question to have a positive answer:
Question 2: Does there exist a set $A\subseteq\mathbb{R}_{\geq 0}$ such that every positive real number can be expressed uniquely as a sum of finitely many distinct elements of $A$?
If such a set $A$ existed, we could use it as a basis for $M$ with $f(a)=a$, giving an affirmative answer to the Main Question. At first this seems like a straightforward transfinite induction argument (well-order $\mathbb{R}_{>0}$, then successively include in $A$ any values that haven't yet occurred as a finite sum), but the problem is that $x$ can't be included in $A$ if it equals a difference of two previously occurring finite sums. If this happens, we will need to include other elements in $A$ that sum to $x$ (while simultaneously worrying about the fact that each of those elements may not be allowed in $A$, etc). I don't see a straightforward way to handle this.
Other constructions?
We could take the metric space completion of the dyadic rational example above. This comes extremely close to working, except for the fact that binary expansions of real numbers are not unique. Specifically, if $x,r\in \mathbb{R}_{\geq 0}-\mathbb{Z}[\frac12]$, then there is a unique point of distance $r$ from $x$ (and likewise if either $x$ or $r$ is zero). But if $x$ and $r$ are positive real numbers and at least one of them is in $\mathbb{Z}[\frac12]$, then there are two points of distance $r$ from $x$.
Question 3: Are there any other general methods for constructing unique distance spaces besides the ones mentioned above?
While I would be happy to hear any thoughts on this more open-ended question, I won't accept such a response as an official answer unless significant time passes without any answers to the Main Question.
Even for finite metric spaces this appears to be a fairly subtle combinatorial problem. Any finite unique distance space $M$ with $|M|>1$ must have $|M|$ even (given a nonzero $r\in S$, the set of pairs $\{x,y\}$ with $d(x,y)=r$ partitions $M$), but can every even number occur as a cardinality of a unique distance space? The box construction shows that powers of $2$ are possible, and I worked out an example with $|M|=6$ by hand, but I don't know of any other ways to generate examples.