$f$ is continuous in $\mathbb{R}$ if and only if for every open set $G$, the set $f^{-1}(G)=\{x:f(x)\in G\} $ is open.
Prove $\epsilon$-$\delta$ definition of continuity implies the open set definition for real function