Let $X$ be a set and $(f_i)_{i \in I}$ a family of maps $f_i : X \to Y_i$, where $(Y_i, \tau_i’)$ is a topological space for each $i$. Show that the topology $\tau$ incuded by the family has the following property. Let $(Z, \tau’’)$ be a space and $g:Z \to X$, then $g$ is continuous if and only if $f_i \circ g$ is continuous for all $i$. Show also that the induced topology $\tau$ is the only topology on $X$ with the mentioned property.
Suppose that $g$ is continuous, then for any $O$ open in $X$ we have that $g^{-1}(O)$ is open in $Z$. But any $O$ open in $X$ is of form $f^{-1}_{i_1}(V_{i_1}) \cap \dots \cap f^{-1}_{i_m}(V_{i_m})$ so $g^{-1}(O)= g^{-1}\left( f^{-1}_{i_1}(V_{i_1}) \cap \dots \cap f^{-1}_{i_m}(V_{i_m}) \right) = \bigcap_{k=1}^m (f_{i_k}^{-1} \circ g^{-1})(V_{i_k})$ for any $i \in I$ so $f_i \circ g$ is continuous?