member 587159
nuuskur said:Let [itex]C(f) := \{x\in X \mid f\text{ is continuous at }x\}[/itex] (may also be empty). It is sufficient to show [itex]C(f)[/itex] is a Borel set. Then [itex]C(f)^c = D(f)[/itex] is also a Borel set. We show [itex]C(f)[/itex] is a countable intersection of open sets. By definition, [itex]f[/itex] is continuous at [itex]x[/itex], if
[tex] \forall n\in\mathbb N,\quad \exists\delta >0,\quad f(B(x,\delta)) \subseteq B(f(x), n^{-1}).[/tex]
Note that arbitrary unions of open sets are open. We have the following equality
[tex] C(f) = \bigcap _{n\in\mathbb N} \bigcup\left \{U\subseteq X \mid U\text{ is open and } \sup _{u,v\in U} d_Y(f(u),f(v)) \leq n^{-1} \right \}.[/tex]
Indeed, let [itex]f[/itex] be continuous at [itex]x[/itex]. Take the open set [itex]B(f(x), (2n)^{-1})\subseteq Y[/itex]. By continuity at [itex]x[/itex], there exists an open set [itex]U\subseteq X[/itex] satisfying [itex]f(U) \subseteq B(f(x), (2n)^{-1})[/itex]. We then have [itex]d_Y(f(u),f(v)) \leq n^{-1}[/itex] for all [itex]u,v\in U[/itex]. The converse inclusion reads exactly as the definition of continuity at a point.
Close enough. The reverse inequality is not quite the definition of continuity but you need a routine triangle inequality argument to get there, like you did in the other inclusion. But I'm sure you could have filled up the little gap. Well done! I think your solution is the the shortest possible.