Write H for the family of all subsets B of Y with fβ1(B)βF.
Claim 1. Preimages satisfy three identities, each verified by testing membership of a point xβX through the location of f(x): first, fβ1(Y)=X, since f(x)βY always; second, fβ1(YβB)=Xβfβ1(B), since f(x)β/B is the negation of f(x)βB; third, for any sequence (Bmβ)mβNβ of subsets of Y,
fβ1(mβNββBmβ)=mβNββfβ1(Bmβ),
since f(x) lies in the union exactly when f(x)βBmβ for some m.
Now YβH because fβ1(Y)=XβF. If BβH then fβ1(YβB)=Xβfβ1(B)βF, since F is closed under complements, so YβBβH. If (Bmβ)mβNβ is a sequence in H then the preimage of βmβBmβ is the union of the sets fβ1(Bmβ)βF, which lies in F because F is closed under countable unions, so βmβBmββH. These are the three defining properties in Sigma-Algebra and Measurable Space, so H is a Ο-algebra on Y.
Claim 2. The hypothesis says exactly that CβH, and H is a Ο-algebra on Y by claim 1. Since G=Ο(C) is the smallest Ο-algebra on Y containing C by Generated Sigma-Algebra, it follows that GβH, that is, fβ1(B)βF for every BβG. This is measurability of f with respect to F and G.