I'm trying to prove that $Ω_f (x) = 0$ iff f is continuous at x.
Given the follow definitions:
Let $(X, T )$ be a topological space. For $x ∈ X$ let $N (x)$ denote the collection of all neighborhoods of $x$. For any function $f : X → R$ we define the function $Ω_f : X → R$ by $Ω_f (x) := \inf_{U∈N(x)}diam(f(U))$, where we have used the notation $diam(A) := sup_{x,y∈A}|x − y|$, for subsets $A ⊂ R$.
I was thinking that by the continuity of the metric in real space, you can make a neighborhood as small as you'd like. But does that imply by the definition of continuity in topological spaces that it's preimage in $X$ can also be made arbitrarily small?
I.e. can I say that for $V = (y-e, y+e)$, as $e \to 0 $,
$diamf^{-1}(V) \to 0$
Similarly, can I say the same going in the other direction? Or is there more to the proof than that?