If the domain $[0,1] \cap{\mathbb{Q}}$ of a continuous function $f$ consists of all rationals between zero and one, inclusive, how can the function not be uniformly continuous?
From my understanding, a continuous function can't be uniformly continuous if its image tends to an infinity, because then there can't exist a fixed delta such that the images are always within epsilon distance from each other.
I don't see how the "rationals only" aspect of the domain allows for the range to approach an infinity. Or is there some other condition that can make a continuous function not uniformly continuous?
Here is an example:$f(x)=1/(x-\sqrt\frac12)$. This is well-defined in $[0,1]\cap \Bbb Q$, and continuous at every rational point. But it is unbounded on $[0,1]\cap \Bbb Q$, so it can't be uniformly continuous.