Let $A$ be some finite alphabet. Let $A$ be equipped with the discrete topology and $A^{\mathbb{Z}}$ equipped with the associated product topology.
Am I right that each function
$f\colon A^{\mathbb{Z}}\to A^{\mathbb{Z}}$ is continuous?
Let $A$ be some finite alphabet. Let $A$ be equipped with the discrete topology and $A^{\mathbb{Z}}$ equipped with the associated product topology.
Am I right that each function
$f\colon A^{\mathbb{Z}}\to A^{\mathbb{Z}}$ is continuous?
Let $A=\left\{a,b\right\}$. Consider the map $f:A^{\mathbb{Z}}\rightarrow A^{\mathbb{Z}}$ that maps $f(\prod_{-\infty}^{\infty}a)= \prod_{-\infty}^{\infty}a$ and anything else to $\prod_{-\infty}^{\infty}b$. Then $f^{-1}(\prod_{i=-\infty}^{\infty}X_i)= \prod_{-\infty}^{\infty}\left\{a\right\}$ where $X_i=A$ for all $i\neq 0$ and $X_0=\left\{a\right\}$. Since $\prod_{i=-\infty}^{\infty}X_i$ is open in $A^{\mathbb{Z}}$ and $\prod_{-\infty}^{\infty}\left\{a\right\}$ is not, $f$ is not continuous. Using this argument you can easily see that $f$ need not be continuous as soon as $|A|\geq 2$.
Note that $X = A^{\mathbb Z}$ is Hausdorff but not discrete. So there is a point $p \in X$ such that the singleton $\{p\}$ is not an open set. Choose a second point $q \ne p$. Define $f : X \to X$ by $$ f(p) = q,\qquad\text{and}\qquad f(x) = p \text{ for all $x \ne p$}. $$ Then $U = X \setminus \{p\}$ is open, but $f^{-1}(U) = \{p\}$ is not open.