Lebesgue's Criterion for Riemann Integrability
Which bounded functions on a closed interval are Riemann integrable? A student may have met the Equivalence of Riemann and Darboux Integrals. They may also know the theorem on Integrability of Monotone Functions. By now they have seen a patchwork of sufficient conditions. Continuity suffices, monotonicity suffices, finitely many jump discontinuities suffice. These feel like separate tricks rather than instances of one phenomenon. The natural question is different. Is there a single structural property of a function's discontinuity set? Such a property would exactly characterize Riemann integrability. It would unify every example and counterexample encountered so far. The answer, due to Henri Lebesgue, is a striking dichotomy. A bounded function on is Riemann integrable if and only if one condition holds. The set of points where it is discontinuous must have Lebesgue measure zero. This single criterion instantly explains several things. It shows why continuous functions are integrable (empty discontinuity set). It shows why monotone functions are integrable (discontinuity set is at most countable). It shows why the Dirichlet function fails to be integrable (discontinuous everywhere, and does not have measure zero). It also shows why modifying a function on a "thin" set does not destroy integrability. The result matters because it reframes Riemann integration. Rather than an ad hoc collection of special cases, it is governed by measure theory. This holds true at a moment before measure theory has been fully developed. It is historically important for a specific reason. It is one of the first places where the notion of a "small" set becomes indispensable. Such a set is negligible in a precise, quantitative sense. This notion is needed for stating a clean theorem in classical analysis. It also exposes the genuine limitation of the Riemann integral. Some functions have bad behavior spread over a set of positive measure. However bounded, these simply cannot be integrated in this theory. This motivates the eventual passage to the Lebesgue integral. This article states the criterion with full precision. It discusses the structure of the proof. The proof is a technical argument bridging two languages. It connects the discrete language of partitions and the continuous language of measure. The article also works through the criterion on nontrivial examples. These include a bounded function discontinuous on a Cantor-type set of positive measure. This example shows the boundary of the theorem is sharp.
- A bounded is Riemann integrable iff its discontinuity set has Lebesgue measure zero.
- This single theorem subsumes: continuous functions, monotone functions, and functions with countably many discontinuities are all integrable.
- The proof needs a quantitative version of continuity/discontinuity called oscillation, and expresses as a countable union of closed "bad" sets.
- Measure zero means: for every , the set can be covered by countably many intervals of total length .
- Sharpness: there exist bounded, integrable functions discontinuous on infinite (even uncountable) sets, as long as that set has measure zero, and non-integrable functions discontinuous only on a measure-zero-sized-looking but actually positive-measure Cantor set.
- Key idea: Riemann integrability is not about how many discontinuities a function has, but about how much length they collectively occupy.
Where this lives today
Lebesgue's criterion is the standard bridge topic between elementary real analysis and measure theory in every rigorous analysis course, and it is the theorem that makes precise why the Riemann integral is inadequate for many purposes in modern mathematics. In functional analysis and Fourier analysis, it explains which functions arising as limits of continuous functions (e.g. pointwise limits, which can have wild discontinuity sets) remain Riemann integrable, informing when term-by-term integration of series is legitimate before invoking the more powerful Dominated Convergence Theorem from Lebesgue theory. In probability and statistics, indicator functions of measure-zero versus positive-measure sets govern which "boundary" or "singular" events can be safely ignored when computing expectations via Riemann-style integrals, and the language of "almost everywhere" properties traces directly to this dichotomy. In numerical analysis, quadrature rules (e.g. Simpson's rule, Newton–Cotes methods) implicitly rely on integrand regularity; the criterion tells the practitioner exactly how much discontinuity a function can tolerate before Riemann-based quadrature schemes lose their theoretical justification. In computer science and information theory, functions defined via case splits on Diophantine or number-theoretic conditions (analogues of Thomae's function) are analyzed via exactly this kind of discontinuity-set argument to establish integrability of complexity-theoretic or combinatorial generating functions. Finally, in mathematical logic and descriptive set theory, the criterion is a first, concrete example of how the "size" of a set (measure) rather than its cardinality governs analytic properties, a theme that recurs throughout the theory of Borel and analytic sets.
:::quiz[Which of the following bounded functions on is Riemann integrable by Lebesgue's criterion?]
- The indicator function of
- The indicator function of a fat Cantor set of measure
- Thomae's function (discontinuous exactly on the rationals) ✓
- The function equal to near and elsewhere (unbounded)
:::quiz[A bounded function on is discontinuous at every point of a nowhere-dense closed set of Lebesgue measure . Is it Riemann integrable?]
- Yes, since nowhere-dense sets are always measure zero
- No, since the discontinuity set has positive measure () ✓
- Yes, since the set is closed
- Cannot be determined without knowing the function's specific values
Ask the tutor: Can you show me in full detail why the oscillation function is well-defined and why being closed doesn't require to be continuous anywhere at all?
Let be bounded.
Oscillation on a set. For nonempty, define
Oscillation at a point. For and , let , and define the oscillation of at by
This limit exists (in ) because is nonnegative, non-decreasing as decreases... more precisely nondecreasing as increases, and bounded above (as is bounded), so the limit as is the infimum over :
Key fact used throughout: is continuous at if and only if .
Discontinuity set. .
Measure zero. A set has (Lebesgue) measure zero if for every there exists a countable collection of open intervals with
where denotes the length of . (Equivalently one may require finitely many intervals when is compact, by compactness — this equivalence is used in the proof below.)
Intuition
The classical theorems already known — continuity implies integrability, monotonicity implies integrability, finitely many jumps do not obstruct integrability — all share a hidden feature: in each case the "bad set" (where fails to be continuous) is either empty, finite, or at worst countable. Riemann's integral is built from upper and lower Darboux sums, and what actually damages a Darsboux sum is not the number of discontinuities but the total width of intervals over which 's values swing by a fixed nontrivial amount. A single jump discontinuity contributes an error to proportional to the width of the one subinterval containing it — negligible in the limit. Infinitely many jumps can still be negligible if they can be corralled into subintervals of arbitrarily small total length. That corralling condition is exactly measure zero. The right way to organize the discontinuity set is by how badly oscillates, not simply whether it is continuous. Define for each the set
Each turns out to be closed (a compactness-friendly set), and
since a point has iff for some . This decomposition is the technical heart of the theorem: it converts a statement about an arbitrary discontinuity set into a countable union of compact oscillation-level sets, each of which can be attacked with a finite subcover argument reminiscent of the Heine–Borel theorem. The picture below shows a bounded function with a large jump at one point, a countable sequence of shrinking jumps accumulating at another point, and continuity elsewhere — illustrating a discontinuity set that is countably infinite yet still measure zero, hence integrable by Lebesgue's criterion.
Let be a bounded function, and let
Then is Riemann integrable on if and only if has Lebesgue measure zero.
We use the Equivalence of Riemann and Darboux Integrals, so it suffices to prove:
Fix with for all , so all oscillations below lie in .
Step 1: The level-set decomposition. For define
Claim: is closed (hence compact, being a closed subset of ). We show is open in . Let , so . By definition of as an infimum, there is with . For any , we have (triangle inequality on the real line), so
hence , i.e. . Thus is an open neighborhood of (relative to ) missing , proving closed. (claim) Since for some , we get
Step 2 (): measure zero implies integrable. Suppose has measure zero. Fix . We must produce a partition with . Set . Since and subsets of measure-zero sets have measure zero (any cover of by intervals of total length also covers ), has measure zero. As is compact, we may extract a finite subcover: there is a finite collection of open intervals with
(Start from a countable cover of total length , which exists by measure zero, and extract a finite subcover of the compact set by Heine–Borel; the finite subcollection has total length no larger than the original countable sum.) Let . Then is compact (closed and bounded, complement of a finite union of open sets intersected with ), and every point of has oscillation (since ). For each , since , there is an open interval with . The collection covers ; by compactness extract a finite subcover . Now form a partition of fine enough that:
- the endpoints of and of (intersected with ) are all among the (refine the finite covers into a common partition), and
- every subinterval is entirely contained in some or entirely contained in some .
(Such a partition exists: take all the endpoints of all the and , together with , sort them; because covers , every resulting subinterval lies inside at least one of these open sets, since an open cover of a closed bounded interval by finitely many open intervals, when all endpoints are marked, yields subintervals each contained in a single covering interval.) Split the index set into:
For , for some , so . Then
For the first sum, use always, and the subintervals indexed by have total length at most (each such subinterval sits inside some , and subintervals inside a common from a partition are disjoint, so their lengths sum to at most ):
For the second sum, use and the total length of all subintervals is at most :
Adding, . Since was arbitrary, satisfies the Riemann/Darboux Cauchy criterion for integrability, so is integrable.
Step 3 (): integrable implies measure zero. Suppose is integrable. By it suffices to show each has measure zero, since a countable union of measure-zero sets has measure zero (a standard fact about measure zero: cover the -th set by intervals of total length , and take the union of all covers, total length ). Fix and let ; we show has measure zero. Fix . Since is integrable, by the Cauchy criterion there is a partition with
Let . If lies in the open subinterval for some , then since this subinterval is an open neighborhood of , (because over any set containing a neighborhood of is at least the oscillation at , using that is an infimum over shrinking neighborhoods, hence a lower bound is inherited by any larger enclosing set... precisely: for small , so ). Then
Dividing by : . Now, , where is the finite set of partition points together with any points of that are partition points themselves and not covered — in any case is finite. (Every point of either lies in some open subinterval , in which case that by definition of , or is itself one of the finitely many partition points .) Cover (finite, say points) by open intervals of total length (e.g. each point by an interval of length ). Combining with the intervals , , of total length , we obtain a countable (here finite) cover of by open intervals of total length . Since was arbitrary, has measure zero. As this holds for every , and is a countable union of measure-zero sets, has measure zero.
∎Worked examples
Example 1: A function with a countable, non-eventually-isolated discontinuity set. Let be defined by
This is Thomae's function. Its discontinuity set is : one can show directly is continuous at every irrational and discontinuous at every rational (a standard fact, provable via the – definition using that only finitely many rationals in have denominator below any bound ). Since is countable, and every countable set has measure zero — enumerate it as , cover by an interval of length , total length — Lebesgue's criterion gives immediately that is Riemann integrable, without any need to estimate Darboux sums directly. (One further computes , but the criterion alone settles integrability.)
Example 2: A bounded function discontinuous on a "fat" set — non-integrable, showing sharpness. We build a fat Cantor set : a Cantor-like set with positive Lebesgue measure, and a bounded function whose discontinuity set is exactly , hence not integrable. Construction of . Start with . At stage , remove the open middle interval of length (not ) from , leaving two closed intervals of total length . At stage , from each of the remaining closed intervals, remove an open middle interval of length times... concretely, remove middle open intervals of total length at stage across all remaining pieces combined (there are standard variants; we specify total removed length at stage is where , chosen so total removed length across all stages is
Let . Then is closed (complement of a union of open intervals), nowhere dense (contains no interval, since at every stage every remaining piece is subdivided further), uncountable (it is a Cantor set, homeomorphic to the standard middle-thirds Cantor set via the tree of choices at each stage), and has measure
The function. Define
This is bounded (). Its discontinuity set is exactly : at any , since is nowhere dense, every neighborhood of contains points not in (where ) and (since itself, or by density of in itself at non-isolated points — one checks has no isolated points by construction) also points of arbitrarily close, so for all , giving ; at , since is open, a whole neighborhood of avoids , so near and is continuous there. Since has measure , Lebesgue's criterion says is not Riemann integrable — and indeed one can check directly that for every partition , every subinterval of positive length meets both and its complement (since is nowhere dense but has positive measure, no subinterval can avoid it or be swallowed by it), so and for every partition, giving always — confirming non-integrability directly, exactly as the criterion predicts.
The hypothesis that is bounded cannot be dropped. Consider
Here is continuous at every point of and also, trivially, "continuous" only in the sense of being defined at ; in fact is discontinuous only at (a single point, since on it agrees with the continuous function , and at it fails to have a limit at all — actually it fails even to be bounded near ). So , a single point, which trivially has measure zero. Yet is not Riemann integrable on , because Riemann integrability of unbounded functions is not even defined within the Darboux framework: upper and lower sums and require and of on each subinterval to be finite, and any subinterval touching has there. So for every partition , and the Darboux integral is not defined. This shows boundedness is not a technical nicety but a load-bearing hypothesis: without it, " has measure zero" says nothing about integrability because the very notion of Riemann/Darboux integrability presupposes bounded , and the proof of Lebesgue's criterion uses boundedness essentially (the constant bounding all oscillations, used to control the sum over in Step 2).
Scope, edge cases & common traps
| Situation | What the criterion says |
|---|---|
| continuous on | , measure zero, integrable — recovers the basic continuity theorem |
| monotone on | is at most countable (jump discontinuities of a monotone function are countable), hence measure zero, integrable — recovers Integrability of Monotone Functions |
| has finitely many discontinuities | Finite sets have measure zero; integrable regardless of the size of the jumps (as long as bounded) |
| = indicator of a countable dense set (e.g. Dirichlet-type on rationals) | Discontinuous everywhere on ; , measure ; not integrable |
| = indicator of a fat Cantor set (positive measure, nowhere dense) | has positive measure even though it's nowhere dense and "looks Cantor-thin"; not integrable — see counterexample-style Example 2 above |
| unbounded | Criterion inapplicable; Darboux sums undefined |
The mathematician behind it
Origins · 1 minHenri Léon Lebesgue and how this was discovered
Henri Lebesgue transformed integration theory by constructing a new integral based on measuring the size of sets on which a function takes given ranges of values, rather than partitioning the domain into intervals as Riemann had done. His 1902 doctoral thesis "Intégrale, longueur, aire" introduced the Lebesgue measure and Lebesgue integral, and as a corollary produced the precise characterization of Riemann integrability treated in this article: a bounded function is Riemann integrable exactly when its discontinuities form a measure-zero set. This theorem sits at the hinge between the classical Riemann integral and the modern Lebesgue integral, both explaining the successes of the former and motivating the necessity of the latter for functions whose bad behavior is spread over sets of positive measure.
Does Lebesgue's criterion tell you the value of the integral?
No. The criterion is purely an existence statement: it tells you whether exists as a Riemann integral, based solely on the size (in the measure-zero sense) of the discontinuity set. It gives no information about the numerical value of the integral. To actually compute once integrability is established, you still need the usual tools: the Fundamental Theorem of Calculus when an antiderivative is available, direct computation of Darboux sums, or other integration techniques. For example, knowing Thomae's function is integrable by the criterion tells you nothing directly about the fact that its integral equals ; that requires a separate argument bounding upper and lower sums.
Is "measure zero" the same as "countable"?
No, and this is the most important subtlety of the theorem. Every countable set has measure zero (cover the -th point with an interval of length ), but there exist uncountable sets of measure zero — the standard middle-thirds Cantor set is the classic example, having measure zero despite having the cardinality of the continuum. Conversely, there exist uncountable, even nowhere-dense, sets of positive measure (the "fat Cantor sets" constructed by removing smaller relative amounts at each stage). So measure zero is a strictly different, and strictly weaker in one direction stronger in another, notion than countability — neither notion implies the other in general, though countable always implies measure zero.
Why does the proof need both a countable union decomposition and a compactness argument?
The discontinuity set itself need not be closed or compact — for instance for Thomae's function is dense, not closed. Directly analyzing with compactness tools (like finite subcovers) is not possible. The trick is to decompose into oscillation level sets , each of which is closed (proven via a direct – argument on oscillation), hence compact by Heine–Borel. Compactness of each is what allows extracting finite subcovers from measure-zero covers, which is essential to constructing a single finite partition controlling the Darboux sum difference.
Does this theorem generalize to higher dimensions, e.g. Riemann integration on ?
Yes. The multivariable Riemann integral over a rectangle (or more general Jordan-measurable region) in satisfies the exact analogue: a bounded function is Riemann integrable if and only if its set of discontinuities has -dimensional Lebesgue measure zero. The proof strategy is essentially identical, with oscillation defined via balls or cubes in and the compactness/finite-subcover argument carried out with -dimensional boxes instead of intervals. This is the standard route to justifying Fubini-type iterated integration for Riemann integrals of several variables.
How does this theorem foreshadow the Lebesgue integral?
It exposes exactly the failure mode of Riemann integration: whenever a bounded function's bad behavior is spread over a set of positive measure (how ever "thin" that set looks topologically, e.g. nowhere dense), Riemann integration simply cannot assign it a value. Lebesgue's own integral, built by partitioning the range of and measuring preimages, integrates such functions (e.g. the indicator of a fat Cantor set is trivially Lebesgue integrable with integral equal to the measure of the set) with no restriction on the discontinuity set at all. In this sense, Lebesgue's criterion for the Riemann integral is historically and logically the doorway through which the more general Lebesgue integral enters analysis.
Is the converse direction (integrable measure zero) really necessary to check, or is it "obvious"?
It is not obvious, and both directions require genuine work; this is a common misconception. The forward direction (measure zero integrable) matches intuition — few "big" discontinuities should still be tolerable if their total width is small. But the converse, that integrability forces the discontinuity set to have measure zero, is a nontrivial constraint: it says you can never "hide" oscillation of size over a set of positive measure and still have small Darboux sum differences. The proof of the converse (Step 3 above) directly uses the Cauchy criterion for integrability to bound the total length of subintervals where oscillation is large, which is the crux of why the theorem is an if and only if, not merely a sufficient condition.
What role does the choice of play in the proof, and is it arbitrary?
It is a deliberate quantitative choice ensuring the "good" part of the Darboux sum (subintervals of small oscillation) contributes at most to , since each such subinterval has oscillation and the subintervals have total length at most . Simultaneously the "bad" part (subintervals overlapping the finite cover of ) is engineered via the measure-zero hypothesis to have total length small enough that, even with the crude bound , its contribution is also at most . The specific constants (, ) are not sacred; they are simply calibrated so the two error terms each land at , summing to . Any similarly calibrated split works.