Given $n>1$. I wis to construct a function $f:\mathbb{R}^n\mapsto\mathbb R$ such that $$\|X_1-X_2\|\le\|Y_1-Y_2\|\implies|f(X_1)-f(X_2)|\le |f(Y_1)-f(Y_2)|$$ for all $X_1,X_2,Y_1,Y_2\in\mathbb{R},$ where $\|\cdot\|$ denotes the usual norm.
It is like finding a projection function, isn't it? I haven't a clue for this problem. I tried putting $f(X)=\|X\|$ but it doesn't work. Any suggestion?
Let $f:\mathbb{R}^n\to\mathbb{R}$ satisfy the desired condition. It follows that whenever $\|x_1-y_1\|=\|x_2-y_2\|, $ we have $|f(x_1)-f(y_1)|=|f(x_2)-f(y_2)|$, thus equilateral triangles are mapped by $f$ to equilateral triangles. Since all equilateral triangles on the line are trivial, and every $x,y\in\mathbb{R}^n$ are two verices of an equilaterla triangle, it follows that $f$ is constant.
Note furthermore that a similar argument can prove that for any $n<m$, every $f:\mathbb{R}^m\to\mathbb{R}^n$ with the above property is constant.