I have the following statement.
Let $X$ a compact metric space. Let $f: X \rightarrow X$ a continuous function. If $\lbrace A_{n} \rbrace$ is a decreasing sequence of nonempty closed sets on $X$, then
$$f\left( \bigcap_{n=1}^{\infty}A_{n}\right) = \bigcap_{n=1}^{\infty}f(A_{n}) $$
Now, it is easy to see that
$$f\left( \bigcap_{n=1}^{\infty}A_{n}\right) \subseteq \bigcap_{n=1}^{\infty}f(A_{n}) $$
Could someone give a suggestion to get the other part?
Hint Let $y \in \bigcap_{n=1}^{\infty}f(A_{n})$. Then, there exists some $x_n \in A_n$ such that $f(x_n)=y$.
Now, by the compactness of $X$, $x_n$ has a convergent subsequence $x_{k_n}\to x$. By the continuity of $f$ you have $f(x)=y$.
Show that $x \in \bigcap_n A_n$.