Let $X=(\omega^\omega,d)$ be Baire space with the metric $d$ defined in assignment $1$. Define a function $G:X\to X$ by letting, for $f\in X$, the function $G(f)$ be defined by: $$(G(f))(n)=\begin{cases}f(n/2),&\text{if }n\text{ is even; and}\\0,&\text{if }n\text{ is odd.}\end{cases}$$ Show that $G$ is continuous at the identity function $f(n)=n$.
Can anyone please tell me how to prove continuity in this case? Thanks a lot
The metric is shown below

I’ll outline the approach.
It may be a little easier to think of the points of $X$ as infinite sequences: $f\in X$ is simply the sequence $\langle f(n):n\in\omega\rangle$. In particular, if $f$ is the identity function, the sequence is $\langle 0,1,2,3,\ldots\rangle$.
A tabular display may be helpful:
$$\begin{array}{rcc} n:&0&1&2&3&4&5&6&7&8\\ f(n):&0&1&2&3&4&5&6&7&8\\ g(n):&0&0&1&0&2&0&3&0&4 \end{array}$$
For $x\in X$ and $n\in\omega$ let $B_n(x)=\{y\in X:d(x,y)<2^{-n}\}$.
The following observation will be useful:
In order to show that $G$ is continuous at $f$, you must show that for each $\epsilon>0$ there is a $\delta>0$ such that if $d(f,x)<\delta$, then $d(g,G(x))<\epsilon$.