Suppose continuity at failed. The negation of the relative-domain epsilon-delta definition gives an such that for every there is an with but . Choosing produces a sequence whose image does not converge to , contradicting the hypothesis. Thus is continuous at .
This proves the sequential characterization of continuity in metric spaces. At or , the same argument uses points only in , giving the appropriate one-sided continuity automatically.
The function is continuous at when, for every , there is such that implies .
If this holds and , eventually , so . Conversely, if continuity fails, some allows, for every , a point with but . Then while , a contradiction. This is the sequential characterization of continuity in metric spaces.
Assume the sequential condition, and let be open. If were not open, some would have no ball contained in . For each , choose
Then , so . Because is open, this forces eventually, a contradiction. Therefore is open. This proves the sequential characterization of continuity in metric spaces.