Let
S⊂R be the set of discontinuities of
f, that is,
S={x∈R:o(f,x)>0}. Suppose
S is a measure zero set:
m∗(S)=0. The trick to proving that
f is integrable is to isolate the bad set into a small set of subrectangles of a partition. A partition has finitely many subrectangles, so we need compactness. If
S were closed, then it would be compact and we could cover it by finitely many small rectangles. Unfortunately,
S itself is not closed in general, but the following set is. Given
ϵ>0, define
By
Proposition 10.4.2,
Sϵ is closed, and as it is also a subset of the bounded
R, Sϵ is compact. Moreover,
Sϵ⊂S and
S is of measure zero, so
Sϵ is of measure zero. Via
Proposition 10.3.7, there exist finitely many open rectangles
O1,O2,…,Ok that cover
Sϵ and
∑j=1∞V(Oj)<ϵ.