In my notes there is a proof of the the following:
Proposition. A function $f:[a,b]\to \mathbb{R}$ is Riemann integrable on $[a,b]$ if $f$ is bounded and
$$\text{disc}(f):=\{x\in [a,b] : f \text{ is discontinuous at } x \}$$
has measure zero.
However, am having trouble with some parts of the proof which I have highlighted in bold:
Proof. Suppose $f$ is bounded and $\text{disc}(f)$ has measure zero. Let $M=\sup_{[a,b]}|f|$ and let $\epsilon>0$ be given. By definition of measure zero, there exist $(a_j,b_j)$, $j\geq 1$, such that $\text{disc}(f)\subset \bigcup_{j\geq 1} (a_j,b_j)$ and $\sum_{j=1}^{\infty}(b_j-a_j)<\epsilon$. Define
$$A:=\bigcup_{j\geq 1} (a_j,b_j) \hspace{1cm} K:=[a,b]\setminus A$$
Note that $K$ is closed and bounded, hence compact. Also, continuity implies that, for each $x\in K$, there exist $\delta(x)=\boldsymbol{\delta(x,\epsilon)\in (0,\epsilon)}$ such that
$$ y\in[a,b], |x-y|\leq\delta(x) \implies |f(x)-f(y)|\leq \epsilon \hspace{0.5cm}(*)$$
The collection of open intervals $(x-\delta(x),x+\delta(x))$, $x\in K$, covers $K$. Since $K$ is compact, there exist finitely many elements of $K$, say $k_1,\dots,k_r\in K$, such that
$$K\subset \bigcup_{s=1}^r (k_s-\delta_s,k_s+\delta_s)$$ where $\delta_s:=\delta(k_s)$. Let $L$ be the set of all points of the form $k_s\pm \delta_s$ and consider the partition
$$P:=\{a,b\}\cup\{x\in L:a\leq x\leq b\}$$
of $[a,b]$. Let $\mathcal{I}(P)=\{I_1,\dots,I_n\}$ be the compact intervals determined by this partition. For $I_j\in \mathcal{I}(P)$ we distinguish between two cases:
Case 1. There exist $1\leq s\leq r$ such that $I_j\subset[k_s-\delta_s,k_s+\delta_s]$. We call $\mathcal{J}_{good}$ the set all such $j$. For $j\in\mathcal{J}_{good}$ we have, using $(*)$ above,
$$|f(x)-f(y)|\leq |f(x)-f(k_s)|+|f(k_s)-f(y)|\leq \epsilon+\epsilon=2\epsilon$$
for all $x,y\in I_j$. Hence $\text{osc}_f (I_j):=\sup_{x,y\in I_j}|f(x)-f(y)|\leq 2\epsilon$.
Case 2. There is no $1\leq s\leq r$ such that $I_j\subset[k_s-\delta_s,k_s+\delta_s]$. We call $\mathcal{J}_{bad}$ the set all such $j$. For $j\in\mathcal{J}_{bad}$ we have $\text{osc}_f (I_j)\leq 2M$. We claim that
$$\sum_{j\in\mathcal{J}_{bad}} |I_j|\leq 3\epsilon$$
Let $I_j=[x_{j-1},x_j]$. If $x_{j-1}=a$ or $x_{j}=b$ we have the bound $\boldsymbol{|I_j|\leq\epsilon}$. Hence we only have to show that
$$\sum\limits_{\substack{j\in\mathcal{J}_{bad} \\ a,b\notin I_j}} |I_j|\leq \epsilon \hspace{0.5cm} (**)$$
We know that in this case $x_{j-1},x_j \in L$. But then the only way that we can have $I_j\not\subset[k_s-\delta_s,k_s+\delta_s]$ for some $s$ is to have
$$I_j\subset [a,b]\setminus \bigcup_{s=1}^r (k_s-\delta_s,k_s+\delta_s)$$
and since $K\subset \bigcup_{s=1}^r (k_s-\delta_s,k_s+\delta_s)$ we find that
$$I_j\subset[a,b]\setminus K\subset A=\bigcup_{j\geq 1} (a_j,b_j) $$
Hence $$\bigcup\limits_{\substack{j\in\mathcal{J}_{bad} \\ a,b\notin I_j}}\subset \bigcup_{j\geq 1} (a_j,b_j) $$
Because the intervals $I_j$ have disjoints interiors, $(**)$ now follows from $\sum_{j=1}^{\infty}(b_j-a_j)<\epsilon$.
The proof then concludes using Darboux's criterion.
As you can see I have three issues:
- Why do we need $\delta(x)<\epsilon$?
- Why is the bound $|I_j|\leq \epsilon$ valid if $j\in\mathcal{J}_{bad}$ and $x_{j-1}=a$ or $x_j=b$?
- Why does $\sum\limits_{\substack{j\in\mathcal{J}_{bad} \\ a,b\notin I_j}} |I_j|\leq \epsilon $ follows from $\sum_{j=1}^{\infty}(b_j-a_j)<\epsilon$?
Any help is greatly appreciated.
I think this is a trick that is used in this proof ( just like $\epsilon 2^{-n}$ trick used in a lot of measure-theoretic results).
Suppose $x_{j-1} =a$. Clearly $a \notin L$ so $x_j$ must be either $k_s+\delta_s$ or $k_s-\delta_s $ for some $1\leq s\leq r$ (Because the endpoints of $I_js$ are formed by the points in $P$). In either case, there exists $k_{s'} \in K$ such that $|I_j| \leq |(a+\delta_{s'})-a|$, where $s'\leq r$. By the choice of $\delta_{s'} (=\delta(k_{s'}))\,$, $|I_j| \leq \epsilon$.
$I_js $ have disjoint interiors. So the result follows from the countable-additivity, sub-additivity & the monotonicity of the Lebesgue measure.
$|\cup I_j| = \sum |I_j| \leq |\cup (a_j , b_j)| \leq \sum (b_j - a_j) < \epsilon$ (the last inequlity is due to the choice of $(a_j ,b_j)$s)