This problem is present in "Supplements to the Exercises in Chapter 1-7 of Walter Rudin's Principles of Mathematical analysis" by Prof. George M. Bergman, which states as follows,
Let $X$ be a $4$-element set $\{w, x, y, z\}$, and let $d$ be the metric on $X$ under which the distance from $w$ to each of the other points is $1$, and the distance between any two of those points is $2$.
- Show that no function $f$ of $X$ into a space $\mathbb{R}^{k}$ is distance-preserving, i.e., satisfies $|f(p) - f(q)| = d(p, q)$ for all $p, q \in X$.
- The above example has the property that every $3$-point subset of $X$ can be embedded (mapped by a distance-preserving map) into space $\mathbb{R}^{k}$ for some $k$, but the whole $4$-point space cannot be so embedded for any $k$. Can you find a $5$-point metric space, every $4$-point subset of which can be so embedded but such that the whole $5$-point space cannot?
I searched on the internet about this topic and found the Cayley-Menger determinant may be helpful to part 2. However, here is a concrete $5$-point case and I was wondering if there are some intuitive counterexamples? And I also have no clue about part 1, can anyone give me some hints on it. Thanks in advance.
Suppose that $f$ exists. Without loss of generality, we may set $f(w) = 0$. Thus, $f(x)$, $f(y)$ and $f(z)$ must be the vertices of an equilateral triangle inscribed on the unit sphere, whose sides have length $2$. Alas, the largest equilateral triangles that you can inscribe on a unit sphere have sides of length $\sqrt 3$.
In general, let $X = \{ w, x_1, \dots, x_n \}$. Turn $X$ into a metric space by setting $d(w, x_i) = 1$ and $d(x_i, x_j) = \lambda$, where $\lambda$ is just large enough that you can inscribe a regular simplex with $n-1$ vertices on the unit sphere, but not a regular simplex with $n$ vertices.