Proposition (function measurable iff preimages of generating sets are measurable)
Let $(E,\mathcal{A})$ and $(F,\mathcal{B})$ be measurable spaces.
Suppose $\mathcal{B} ={}$$σ$$(\mathcal{C})$ for some $\mathcal{C} \subseteq \mathcal{P}(F)$. Then $f: E\to F$ is measurable iff $f\inv(C)\in \mathcal{A}$ for all $C\in \mathcal{C}$.
Continuous functions are measurable with respect to Borel $σ$-algebras.