6.6 Measure Zero and Lebesgue’s Theorem 177
PROOF. First suppose that f is Riemann integrable. Then for each k ≥ 1, there is
a finite partition P
k
of [a, b] so that U (f, P
k
), −L(f, P
k
) < 4
−k
. Let u
k
and l
k
be
the step functions that are constant on the intervals of P
k
and bound f from above
and below (as in Exercise 6.3.H) so that
Z
b
a
u
k
(x) − l
k
(x) dx < 4
−k
.
The set B
k
= {x : u
k
(x) − l
k
(x) ≥ 2
−k
} is the union of certain intervals of
the partition P
k
, say J
k,i
for i ∈ S
k
. Compute
4
−k
>
Z
b
a
u
k
(x) − l
k
(x) dx ≥
X
i∈S
k
2
−k
|J
k,i
|.
Then
P
i∈S
k
|J
k,i
| < 2
−k
. Let A
1
=
T
k≥1
intB
k
and let A
2
=
S
k≥1
P
k
. Observe
that {intJ
k,i
: i ∈ S
k
} covers A
1
for each k. As these intervals have length sum-
ming to less than 2
−k
, it follows that A
1
has measure zero. Since A
2
is countable,
it also has measure zero. Thus the set A = A
1
∪ A
2
has measure zero.
For any x 6∈ A and any ε > 0, choose k so that 2
−k
< ε and x 6∈ B
k
. Then
u
k
(x) − l
k
(x) < 2
−k
< ε. As x is not a point in P
k
, it is an interior point of some
interval J of this partition. Choose r > 0 so that (x − r, x + r) ⊂ J. For any y
with |x − y| < r, we have l
k
(x) ≤ f(y), f(x) ≤ u
k
(x). Thus |f(x) − f(y)| < ε
and so f is continuous at x.
Conversely, suppose that f is continuous almost everywhere on [a, b] and is
bounded by M. Let
A
k
= {x ∈ [a, b] : osc(f, x) ≥ 2
−k
}.
Then each A
k
has measure zero, and the set of points of discontinuity is A =
S
k≥1
A
k
. Observe that A
k
is closed. Indeed suppose that x is the limit of a se-
quence (x
n
) with all x
n
in A
k
. By definition, there are points y
n
and z
n
with
|x
n
− y
n
| < 1/n and |x
n
− z
n
| < 1/n such that |f(y
n
) − f (z
n
)| ≥ 2
−k
− 2
−n
.
Therefore,
lim
n→∞
y
n
= lim
n→∞
z
n
= x.
Consequently, osc(f, x) ≥ 2
−k
.
By Proposition 6.6.3(4), each A
k
has content zero. Cover A
k
with a finite
number of open intervals J
k,i
such that
P
i
|J
k,i
| < 2
−k
. The complement X
consists of a finite number of closed intervals on which osc(f, x) < 2
−k
for all
x ∈ X. Thus there is an open interval J
x
containing x so that osc(f, J
x
) < 2
−k
.
Notice that X is a closed and bounded subset of [a, b] and so is compact. The
collection {J
x
: x ∈ X} is an open cover of X. By the Borel–Lebesgue Theorem,
there is a finite subcover J
x
1
, . . . , J
x
p
. Let P
k
be the finite partition consisting of
all the endpoints of all of these intervals together with the endpoints of each J
k,i
.
Let us estimate the upper and lower sums for this partition. As usual, let
M
j
(f, P
k
) and m
j
(f, P
k
) be the supremum and infimum of f over the jth interval,
namely I
k,j
= [x
k,j−1
, x
k,j
]. These intervals split into two groups, those contained
in X and those contained in U
k
=
S
i
J
k,i
. For the first group, the oscillation is less
than 2
−k
and thus M
j
− m
j
≤ 2
−k
. For the second group, the total length of the