A map between metric spaces is continuous exactly when xn→x always implies f(xn)→f(x). If an inverse image of an open set were not open, points outside it could be chosen within distance 1/n of a point inside it, proving the converse by contradiction.