0

I was wondering if we can construct a continuous function $f:X \rightarrow \mathbb{R}$ that is not the constant function. Here X is an arbitrary infinite set with some metric d defined on it. The metric on $\mathbb{R}$ is the euclidean metric. I am solving a problem where I need to use the fact that such a function exists but I have no clue where to begin.

Edit: I have modified the problem to include a metric d on X.

Suraj
  • 133
  • 3
    Your question is very large. What is $X$? Talking about continuity requires a topology on $X$. If no topology is mentioned, there can be no answer – Didier May 28 '20 at 13:07
  • I was thinking the same thing. So a topology is necessarily required? – Suraj May 28 '20 at 13:12
  • If $X$ is an arbitrary set and You equip it with the trivial topology, the constant functions are the only continuous ones – Peter Melech May 28 '20 at 13:17

1 Answers1

2

Fix some $a \in X$. Then $f(x) = d(a,x)$ is a real-valued continuous function on $X$, which is non-constant if $X$ has more than one member.

Robert Israel
  • 448,999