The author of the question being raised in Proving that $C$ is a subset of $f^{-1}[f(C)]$ received some similar proofs. I can follow them but there's something I don't understand.
It's probably a stupid question, but could someone explain me why $f(x)$ should be defined for all $x$? Like when we have $F=[(0,1)]$ on $X=[0,2]$ then $F^{-1}(F(\{0,2\}))=F^{-1}(\{1\})=\{0\}$. Where is my mistake?