In his book, Calculus of manifolds Spivak gives following theorem about oscillations:
Let $A \subset \mathbb R^n $ be closed. If $ f:A \rightarrow \mathbb R$ is any bounded function, and $\epsilon >0, $ then $ \{x\in A : o(f,x) \geq \epsilon\}$ is closed.
The quantity $o(f,x)$, known as the oscillation of $f$ at $x$, is defined as $$ \lim_{\delta\to 0}\bigl(M(x,f,\delta)-m(x,f,\delta)\bigr) \, , $$ where $M(x,f,\delta)$ is the supremum of $f(z)$ for $|z-x|<\delta$, and $m(x,f,\delta)$ is the infimum. (It is implicit that $\delta>0$, and so the limit above is a right-hand limit.)
What is the implication of this theorem? What does it mean intuitively? I understand the theorem but want a feel for it.
Let $D_n = \{x \in A: \, o(f,x) \geqslant 1/n\}$.
A function $f$ is continuous at $x$ if and only if the oscillation $o(f,x) = 0$. Hence, the set of points in $A$ where $f$ is discontinuous is
$$D_f = \bigcup_{n \in \mathbb{N}}D_n ,$$
and, with the $D_n$ closed, this leads to the useful characterization of $D_f$ as an $\mathcal{F}_\sigma$ set.
There are many implications of the fact that $D_n$ is closed, including two important theorems.
The second theorem is important in that it shows that while a sequence of continuous functions can converge to a discontinuous function, the set of points where it is discontinuous is small in some sense (meager).