I want to prove the following:
Let $(Y,\tau)$ be a topological space and $X\neq \emptyset$ a set. Let $f$ be a function from $X$ to $Y$. Then, $\tau_1=\{f^{-1}(S): S\in \tau\}$ is a topology on $X$
My attempt:
$\emptyset \in \tau$ and $Y\in \tau$. $\emptyset=f^{-1}(\emptyset)\in \tau_1$ and $X=f^{-1}(Y)\in \tau_1$
Let $\{U_i: i\in I\}$ be an indexed family of elements of $\tau$. Then $$\bigcup_{i\in I}{f^{-1}(U_i)}=f^{-1}(\bigcup_{i\in I}{U_i})\in \tau_1$$
Let $U_1,U_2\in \tau$. Then $f^{-1}(U_1) \cap f^{-1}(U_2)=f^{-1}(U_1\cap U_2)\in \tau_1$
Is it correct?