I'm having some trouble trying to understand the validity of the following lemma:
Lemma: Let $(S,\mathcal{A})$ and $(T,\mathcal{B})$ be two measurable spaces and let $f:S\to T$. Suppose that $\mathcal{F}\subseteq \mathcal{B}$ is such that $\sigma(\mathcal{F})=\mathcal{B}$. If $f^{-1}(F)\in\mathcal{A}$ for all $F\in\mathcal{F}$, then $f$ is measurable.
The proof revolves around proving that $\tilde{\mathcal{B}} = \mathcal{B}$, with $\tilde{\mathcal{B}} = \{B\in\mathcal{B}:f^{-1}(B)\in\mathcal{A}\}.$ I just don't understand why $f^{-1}(F)\in\mathcal{A}$ for all $F\in\mathcal{F}$, means that $f$ is measurable (considering that $\mathcal{B} = \tilde{\mathcal{B}}$). I guess that it somehow shows that we have $f^{-1}(B)\in\mathcal{A}$ for all $B\in\mathcal{B}$, but I don't see it.
Question: Why can this lemma be proved by showing that $\mathcal{B} = \{B\in\mathcal{B}:f^{-1}(B)\in\mathcal{A}\}$?
Thanks!