\begin{proof} If {Vα} is an open cover of f(K), then {f−1(Vα)} is an open cover of K, hence K⊂f−1(Vα1)∪⋯∪f−1(Vαn) for some α1,…,αn and therefore (since f(f−1(Vαi))⊂Vαi) f(K)⊂f(i=1⋃nf−1(Vαi))=f(i=1⋃n{x∈X:f(x)∈Vαi})=f({x∈X:f(x)∈i=1⋃nVαi})=i=1⋃nVαi. \end{proof}