Please verify if this proof is rigorous and correct. And if not provide feedback of what is wrong/lacking.
def1 $ A \subseteq B: \Leftrightarrow \forall x \in A \Rightarrow x \in B$
Given a function $f: X \rightarrow Y$, and subsets $A$ of $X$ and $B$ of $Y$ we define
def2 $f(A)=\{y \in Y \mid y=f(x)$ whenever $x \in A\}$ and
$f^{-1}(B)=\{x \in X \mid f(x) \in B\}$
Prov that:
$f^{-1}(G) \subseteq f^{-1}(H)$ whenere $G \subseteq H$
Let $ x \in f^{-1}(G)$, then by def 2 there exist $f(x) \in G$ by def 1 and the fact that $G \subseteq H$ this implies that $f(x) \in H$. Then it follows by def 2 that $x \in f^{-1}(H)$. therefore $f^{-1}(g) \subseteq f^{-1}(f)$