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.