We will use
(6.2.1) for the only if part.
Suppose that
\(f\) is Riemann integrable on
\(R\text{.}\) For each
\(k\in \bbN\text{,}\) we will prove that
\(D_{k}:=\{\by: \osc(f)(\by)\ge \frac 1k\}\) is a set of content
\(0\text{.}\)
Given any \(\epsilon >0\text{.}\) There exists a partition \(\cP=\{R_{\alpha}\}\) of \(R\) such that
\begin{equation*}
\sum_{\alpha} \osc(f, R_{\alpha})\vert R_{\alpha} \vert < \frac{\epsilon}{2k}.
\end{equation*}
The rectangles in \(\cP\) are divided into two subgroups: the subgroup \(\cL_{k}\) consisting those \(R_{\alpha}\) such that \(\osc(f, R_{\alpha})\ge \frac{1}{2k}\text{,}\) and the subgroup \(\cS_{k}\) consisting those \(R_{\alpha}\) such that \(\osc(f, R_{\alpha})< \frac{1}{2k}\text{.}\) Then it follows from
\begin{equation*}
\frac{1}{2k} \sum_{R_{\alpha}\in \cL_{k} } \vert R_{\alpha} \vert \le
\sum_{R_{\alpha}\in \cL_{k} } \osc(f, R_{\alpha})\vert R_{\alpha} \vert < \frac{\epsilon}{2k}
\end{equation*}
that
\begin{equation*}
\sum_{R_{\alpha}\in \cL_{k} } \vert R_{\alpha} \vert < \epsilon.
\end{equation*}
We now claim that
\begin{equation*}
D_{k}\subset \cup_{R_{\alpha}\in \cL_{k} } R_{\alpha}.
\end{equation*}
This will show that \(D_{k}\) is a set of content \(0\text{.}\)
If the claim were not true, there would exist some
\(\bx \in D_{k}
\setminus \cup_{R_{\alpha}\in \cL_{k} } R_{\alpha}\text{.}\) Thus
\(\bx \in \cup_{R_{\alpha}\in \cS_{k} } R_{\alpha}\text{.}\) Since the complement of
\(\cup_{R_{\alpha}\in \cL_{k} } R_{\alpha}\) is open, there exists some ball
\(B(\bx, r)
\subset \cup_{R_{\alpha}\in \cS_{k} } R_{\alpha}\text{.}\) If
\(\bx\in \text{ interior}(R_{\alpha})\) for some
\(R_{\alpha} \in \cS_{k}\text{,}\) it would force
\(\frac 1k \le \osc(f)(\bx)\le \osc(f, R_{\alpha}) < \frac{1}{2k}\text{,}\) which would be a contradiction. So
\(\bx\) can only be on the boundary of one or more
\(R_{\alpha} \in \cS_{k}\text{.}\) We can choose
\(r>0\) small enough such that any
\(\by\in B(\bx, r)\) and
\(\bx\) will be in one such common rectangle. Therefore,
\(\vert f(\by)-f(\bx)\vert < \frac{1}{2k}\text{.}\) This would lead to
\(\osc(f)(\bx)\le \osc(f, B(\bx, r)) < \frac 1k\text{,}\) contradicting
\(\bx \in D_{k}\text{.}\)
The proof for the if part will be added.