How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
The Riemann Integral: Definition and Integrability: Examples and Counterexamples
1 · Prerequisites
- Binary Operations, Monoids, Groups and Subgroups
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Continuity, IVT, EVT, and Uniform Continuity
- Countability and Uncountability
- Divisibility, Greatest Common Divisors and Bézout's Identity
- Foundations of the Real Numbers for Analysis
- Limits of Real Functions
- limsup, liminf, and Subsequential Limits
- Metric Spaces
- Monotone Functions, Discontinuities, and Continuity Sets
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Order, Zorn's Lemma, and the Axiom of Choice
- Relations, Functions, and Quotients
- Roots, Rational Powers, and Classical Inequalities
- Sequences and Limits
- Series: Convergence and the Nonnegative Tests
- Suprema and Infima
- The Cantor Set, Baire Category, and Measure Zero in ℝ
- The Riemann Integral: Definition and Integrability
- The ZFC Axioms and the Basic Set Constructions
- Topology of ℝ
2 · Summary
3 · Logical flowchart
4 · Definitions, theorems and proofs
None yet.
5 · Examples, counterexamples and false statements
, computed from the Darboux definition with uniform partitions and the closed form
Example
Let be (Integer powers ). Then is Riemann integrable on and
Everything is computed from the definition. For the uniform partition of into parts (Partition of as a finite strictly increasing list , its subintervals and their lengths, its mesh, refinement, and the common refinement of two partitions) the two Darboux sums (For bounded on and a partition : the infimum and supremum of on the -th subinterval, and the lower and upper Darboux sums and ) are
where a natural multiplying or dividing a real stands for its canonical natural (The canonical natural of a field), as in clause 2 of Laws of finite sums and finite products. Both expressions converge to as grows, the lower sums from below and the upper sums from above, and the gap is what Archimedes' property drives to .
The arithmetic rests on one closed form, valid for every :
which at reads and is the familiar written so that the empty sum is the case rather than an exception. Note the indexing: the sum runs over , so its last term is and not .
Facts & Assumptions
Given: with , and for the uniform partition of with for and lengths .
, , , , and for every partition ; when is integrable, is the common value of the two integrals (For bounded on and a partition : the infimum and supremum of on the -th subinterval, and the lower and upper Darboux sums and , The lower and upper Darboux integrals of a bounded on as and , Darboux integrability as their equality, and the notation ).
For one has ; a set with a least element has it as its infimum and one with a greatest element has it as its supremum (Monotonicity of and of , Integer powers , Greatest lower bound (infimum), Maximum and minimum of a set, Complete ordered field (least-upper-bound property)).
The closed form. For every , . This is an induction on (The principle of mathematical induction) from the recursion clause of Finite sums and finite products, by recursion and the identity , valid in any commutative ring and in particular for (Ordered field, Canonical naturals are positive and strictly increasing).
Finite sums: scaling, additivity, telescoping , and (Finite sums and finite products, by recursion, Laws of finite sums and finite products, The canonical natural of a field, Canonical naturals are positive and strictly increasing).
is continuous on , being a polynomial function, and a continuous function on a closed bounded interval with distinct endpoints is Riemann integrable (Sums, scalar multiples, products, absolute values, maxima, minima and quotients with nonvanishing denominator of continuous functions are continuous, as are constants, the identity and every polynomial function, Continuity of at a point of and on : the - condition, its agreement with at a limit point, and continuity at an isolated point, A continuous function on is Riemann integrable, by Heine-Cantor and Riemann's criterion).
For every real there is a natural with , and for (For every in a complete ordered field there is a natural with , Every complete ordered field is Archimedean, The canonical natural of a field, Canonical naturals are positive and strictly increasing).
Ordered-field arithmetic and the absolute value: adding a constant and multiplying by a positive quantity preserve an inequality; the order is total and transitive; whenever , and (Basic properties of the absolute value, Order is preserved by adding a constant and by adding inequalities, Sign rules for products and monotonicity of multiplication, Ordered field, Complete ordered field (least-upper-bound property)). These order-arithmetic facts are stated by their sources for the strict order only; the nonstrict forms used below follow by adjoining the equality case, in which the two sides coincide.
Verification
is continuous on and , so is Riemann integrable on by [L6]; write .
On with the function takes its least value at and its greatest at , by [L3]; both values are attained, so and by [L3] and [L1].
By [L2], [L5] and [L1], , and by [L4] this equals .
Likewise . Since by [L5] and , [L4] applied at gives .
Directly, , by telescoping in [L5].
Expanding by [L8], and for , so .
By [L2], as well.
Both and lie in the interval with endpoints and , whose length is by step 2.3, so for every natural , by [L8].
If then , and [L7] supplies with , contradicting step 4.1. Hence , that is .
Remarks
-
The first index is and the last term of the lower sum is not . The lower sum uses with running from , so its first term is and its last is ; the upper sum uses and so ends at . Reading the closed form with the other convention, , and attaching it to the wrong sum is the standard way to lose the factor and land on or instead of .
-
The gap is exactly , not merely . Step 2.3 computes it by telescoping without evaluating either sum, which is also the cheapest route to integrability through Riemann's criterion: a bounded on is Darboux integrable if and only if for every real there is a partition with : the continuity of is not needed for that, only for the shortcut taken in step 1.1.
-
What this example does not do. No antiderivative and no fundamental theorem of calculus is used or available at this point in the reading order; the value is extracted from the two sums and the Archimedean property alone. The same computation with needs and is no harder, but it is not carried out here.
One refinement worked out for on : adding the point to the trivial partition raises the lower sum from to and lowers the upper sum from to
Example
Let be (Integer powers ). Let be the trivial partition of , with point set , and let be the partition obtained by inserting the point , with point set (Partition of as a finite strictly increasing list , its subintervals and their lengths, its mesh, refinement, and the common refinement of two partitions). Then
so that
which is claim 1 of Refining a partition raises the lower Darboux sum and lowers the upper one, and every lower sum is at most every upper sum: when refines , and for arbitrary partitions and ; moreover the two changes are at most with both inequalities strict. The gap drops from to : exactly one refinement halves it, and , computed from the Darboux definition with uniform partitions and the closed form shows the uniform partitions drive it to .
Facts & Assumptions
Given: with ; the partition with and for ; and with , and for .
Both and are partitions of , and refines , since ; the subintervals of are with length , and those of are and , each of length (Partition of as a finite strictly increasing list , its subintervals and their lengths, its mesh, refinement, and the common refinement of two partitions, Intervals of : the nine order-convex forms, nondegeneracy, and length).
For one has , so on an interval with the function has least value and greatest value , both attained; a set with a least element has it as its infimum and one with a greatest element has it as its supremum (Monotonicity of and of , Integer powers , Greatest lower bound (infimum), Maximum and minimum of a set, Complete ordered field (least-upper-bound property)).
Finite sums of one and of two terms: and (Finite sums and finite products, by recursion, Laws of finite sums and finite products).
Ordered-field arithmetic: , , , and (Order is preserved by adding a constant and by adding inequalities, Sign rules for products and monotonicity of multiplication, Ordered field, Complete ordered field (least-upper-bound property)). These order-arithmetic facts are stated by their sources for the strict order only; the nonstrict forms used below follow by adjoining the equality case, in which the two sides coincide.
Verification
For the single subinterval is , so by [L3] and , and by [L2] and [L5], and .
For the two subintervals are and , each of length , so by [L3] the extreme values are , on the first and , on the second.
Hence by [L2], [L5] and [L6], and .
Comparing with step 1.1 and using [L6]: and , while . This is the chain of [L4] for the refinement of , here with every inequality strict.
Remarks
-
Refinement is an improvement, never a deterioration. That is the content of Refining a partition raises the lower Darboux sum and lowers the upper one, and every lower sum is at most every upper sum: when refines , and for arbitrary partitions and ; moreover the two changes are at most and it is what makes The lower and upper Darboux integrals of a bounded on as and , Darboux integrability as their equality, and the notation well posed: the lower sums increase and the upper sums decrease, so the supremum of the one and the infimum of the other are the right things to take.
-
A single insertion cannot close the gap. Here it halves it, from to , and no finite number of insertions makes zero for a non-constant : each is positive whenever is non-constant on . Integrability is the statement that the gap can be made arbitrarily small, not zero, which is exactly the form of Riemann's criterion: a bounded on is Darboux integrable if and only if for every real there is a partition with .
-
The values are exact rationals, and worth checking by hand. The lower sum of the refined partition is and the upper is ; the true integral is (, computed from the Darboux definition with uniform partitions and the closed form ), which indeed lies strictly between them.
: the floor function is nondecreasing, hence integrable, and the integral is computed from the uniform partitions
Example
Let be , the integer part (Integer part: for every real there is exactly one integer with ). Then is nondecreasing (Nondecreasing, increasing (strictly increasing), nonincreasing, decreasing, monotone and strictly monotone real functions on a subset of , with the dictionary to monotone sequences), hence Riemann integrable on (A monotone function on is Riemann integrable: for the uniform partition into parts the upper minus lower sum telescopes to ), and
is discontinuous at , and and continuous elsewhere on (Discontinuity of at a point of its domain, and its classification: removable discontinuity, jump discontinuity and essential discontinuity, equivalently Rudin's discontinuities of the first and of the second kind), so this is an integrable function with genuine jumps, not a continuous one in disguise; the value is , the three constant pieces weighted by their lengths.
The computation below uses the uniform partition into parts, , for which the lower sum is exactly at every and the upper sum is . So the lower sums do not merely approach the integral, they attain it.
Facts & Assumptions
Given: with ; a natural ; ; and the uniform partition of with for and lengths .
For every real there is exactly one integer with (Integer part: for every real there is exactly one integer with ).
is nondecreasing: for , , and , are integers, so , no integer lying strictly between and (Integer part: for every real there is exactly one integer with , Nondecreasing, increasing (strictly increasing), nonincreasing, decreasing, monotone and strictly monotone real functions on a subset of , with the dictionary to monotone sequences).
A monotone function on a closed bounded interval with distinct endpoints is bounded and Riemann integrable (A monotone function on is Riemann integrable: for the uniform partition into parts the upper minus lower sum telescopes to , The lower and upper Darboux integrals of a bounded on as and , Darboux integrability as their equality, and the notation ).
For a nondecreasing and a subinterval : and , both attained; , , and (For bounded on and a partition : the infimum and supremum of on the -th subinterval, and the lower and upper Darboux sums and , The lower and upper Darboux integrals of a bounded on as and , Darboux integrability as their equality, and the notation , Greatest lower bound (infimum), Maximum and minimum of a set, Complete ordered field (least-upper-bound property)).
Finite sums: splitting a sum over into the three blocks , and ; scaling; and (Finite sums and finite products, by recursion, Laws of finite sums and finite products).
For : when , when , and when ; and for . Each case is [L1] applied to the displayed inequalities , , and , which follow from being strictly increasing and additive (Canonical naturals are positive and strictly increasing, The canonical natural of a field, Order is preserved by adding a constant and by adding inequalities). These order-arithmetic facts are stated by their sources for the strict order only; the nonstrict forms used here follow by adjoining the equality case, in which the two sides coincide.
For every real there is a natural with , and for (For every in a complete ordered field there is a natural with , Every complete ordered field is Archimedean, The canonical natural of a field, Canonical naturals are positive and strictly increasing).
Ordered-field arithmetic and the absolute value: adding a constant and multiplying by a positive quantity preserve an inequality; the order is total and transitive (Basic properties of the absolute value, Order is preserved by adding a constant and by adding inequalities, Sign rules for products and monotonicity of multiplication, Ordered field, Complete ordered field (least-upper-bound property)). These order-arithmetic facts are stated by their sources for the strict order only; the nonstrict forms used below follow by adjoining the equality case, in which the two sides coincide.
Verification
is nondecreasing by [L2], and , so is Riemann integrable on by [L3]; write .
By [L5] and [L7], for the lower value is , which is for , for and for ; and the upper value is , which is for , for , for and for .
By [L6] and step 1.2, .
By [L6] and step 1.2, the upper values run over from to , giving indices with value , then with value , then with value , and the single index with value ; hence .
By [L5], for every natural .
Hence for every . If then and [L8] supplies with , that is , contradicting step 3.1. So , that is .
Remarks
-
Why is taken to be a multiple of . For a general the partition points do not land on the integers and , where jumps, and both sums acquire a boundary term. Restricting to costs nothing, since integrability is already known from A monotone function on is Riemann integrable: for the uniform partition into parts the upper minus lower sum telescopes to and only one sequence of partitions is needed to pin the value.
-
The lower sums are exactly , not merely close to it. This is a feature of the step function, not of the method: takes its value at the left endpoint of each subinterval of , so the lower sum is the exact area of the three rectangles. The upper sums overshoot by , the three jumps of size each spread over one subinterval of length .
-
The general identity for a monotone integrand. By A monotone function on is Riemann integrable: for the uniform partition into parts the upper minus lower sum telescopes to , ; here , and , so the gap is , which is what steps 2.1 and 2.2 compute directly.
The indicator of the Cantor set is discontinuous exactly on the Cantor set, which is null, so it is Riemann integrable with integral even though it is discontinuous at uncountably many points
Example
Let be the Cantor middle-thirds set (The Cantor middle-thirds set as the intersection of the sets obtained by removing open middle thirds) and let be its indicator, for and otherwise. Then:
- is discontinuous at every point of and continuous at every point of , so its set of discontinuities is exactly (Continuity of at a point of and on : the - condition, its agreement with at a limit point, and continuity at an isolated point, Discontinuity of at a point of its domain, and its classification: removable discontinuity, jump discontinuity and essential discontinuity, equivalently Rudin's discontinuities of the first and of the second kind);
- is Riemann integrable on , because has measure zero (The Cantor set is compact, perfect, uncountable, nowhere dense and of measure zero, and it contains no interval of positive length, so its only nonempty connected subsets are single points, Lebesgue's criterion for Riemann integrability: a bounded on is Riemann integrable if and only if its set of discontinuities has measure zero);
- .
The point of the example is claim 2 against claim 1. The discontinuity set is uncountable (The Cantor set is compact, perfect, uncountable, nowhere dense and of measure zero, and it contains no interval of positive length, so its only nonempty connected subsets are single points, Finite, countably infinite, countable, uncountable), so no cardinality argument such as A bounded function on whose set of discontinuities is at most countable is Riemann integrable applies; what makes the function integrable is that can be covered by intervals of arbitrarily small total length, and nothing else.
Only the implication "measure zero integrable" of Lebesgue's criterion for Riemann integrability: a bounded on is Riemann integrable if and only if its set of discontinuities has measure zero is used, so no choice principle is involved.
Facts & Assumptions
Given: The Cantor set and its indicator .
is closed and bounded, has measure zero, is uncountable, and contains no interval with two distinct endpoints; in particular is nowhere dense, so the interior of is empty and every nonempty open subset of contains a point outside (The Cantor set is compact, perfect, uncountable, nowhere dense and of measure zero, and it contains no interval of positive length, so its only nonempty connected subsets are single points, The Cantor middle-thirds set as the intersection of the sets obtained by removing open middle thirds, Measure zero (a countable cover by intervals of total length below every ) and content zero (a finite such cover), Nowhere dense, meager (first category), residual, and second category subsets of , Interior, closure, boundary and exterior of a subset of , Finite, countably infinite, countable, uncountable).
A set is closed exactly when every point outside it has a neighbourhood missing it (Open subset of (every point has a neighbourhood inside it), closed subset (complement open), and clopen, The -neighbourhood and the punctured -neighbourhood of a point of ).
A bounded on with is Riemann integrable if and only if its set of discontinuities has measure zero; the implication from "measure zero" to "integrable" uses no choice principle (Lebesgue's criterion for Riemann integrability: a bounded on is Riemann integrable if and only if its set of discontinuities has measure zero, Lower bound, bounded below, bounded set).
For a partition of : , , , , and is a nonempty open subset of (Partition of as a finite strictly increasing list , its subintervals and their lengths, its mesh, refinement, and the common refinement of two partitions, Intervals of : the nine order-convex forms, nondegeneracy, and length, Open subset of (every point has a neighbourhood inside it), closed subset (complement open), and clopen).
, , is the supremum of the lower sums, the infimum of the upper sums, and the integral is their common value when they agree (For bounded on and a partition : the infimum and supremum of on the -th subinterval, and the lower and upper Darboux sums and , The lower and upper Darboux integrals of a bounded on as and , Darboux integrability as their equality, and the notation ).
A set with a least element has it as its infimum; the supremum of is (Greatest lower bound (infimum), Maximum and minimum of a set, Complete ordered field (least-upper-bound property)).
Ordered-field arithmetic: for and a real the reals and satisfy and (Maximum and minimum of a set, Order is preserved by adding a constant and by adding inequalities, Sign rules for products and monotonicity of multiplication, Ordered field, Complete ordered field (least-upper-bound property), The -neighbourhood and the punctured -neighbourhood of a point of , Intervals of : the nine order-convex forms, nondegeneracy, and length). These order-arithmetic facts are stated by their sources for the strict order only; the nonstrict forms used below follow by adjoining the equality case, in which the two sides coincide.
Verification
takes only the values and , so it is bounded on and its Darboux sums and integrals are defined by [L5].
Discontinuity on . Let , so , and let a real be given. By [L8] the set is a nonempty open interval, so by [L1] it contains a point ; then , and . So the continuity condition fails at for .
Continuity off . Let with . Since is closed, [L2] gives a real with , so vanishes on and there for every .
So the set of discontinuities of in is exactly , which has measure zero by [L1]; by [L3] and , is Riemann integrable on .
Every lower sum is . Let be a partition of and . By [L4] the interval is a nonempty open subset of , so by [L1] it contains a point outside , at which takes the value ; since , the value is the least element of and by [L6]. Hence by [L5] and [L7].
The set of lower sums is , so by [L6]; and is integrable by step 2.1, so by [L5].
Remarks
-
Uncountably many discontinuities, and the integral does not notice. is uncountable (The Cantor set is compact, perfect, uncountable, nowhere dense and of measure zero, and it contains no interval of positive length, so its only nonempty connected subsets are single points), so this function is outside the reach of A bounded function on whose set of discontinuities is at most countable is Riemann integrable and is the standard demonstration that the Lebesgue criterion is strictly stronger than the countable one.
-
Every upper sum is at least the total length of the subintervals meeting , and that total goes to . The proof above does not need this, since integrability comes from the criterion and the value from the lower sums alone; but it is the reason the upper sums also converge to , and it is precisely where the Smith-Volterra-Cantor set behaves differently (The indicator of the Smith-Volterra-Cantor set is discontinuous exactly on a nowhere dense set, and is not Riemann integrable, because that set does not have measure zero).
-
The two hypotheses of claim 1 are the two properties of that matter. Closedness gives continuity off ; empty interior gives discontinuity on . A set with both is exactly a closed nowhere dense set, and any such set is the discontinuity set of its own indicator. Whether that indicator is integrable then depends only on whether the set is null, which is what FALSE: a bounded function on is Riemann integrable exactly when its set of discontinuities is nowhere dense settles in the negative for category.
Thomae's function is Riemann integrable on with integral : it is continuous at every irrational, so its discontinuity set is countable, and every lower Darboux sum is
Example
Let be Thomae's function restricted to : at a rational with least denominator it takes the value , and at an irrational the value (The Dirichlet function , and Thomae's function with at a rational in lowest terms with and at every irrational , The canonical natural of a field). Then is Riemann integrable on and
Two ingredients, and they pull in opposite directions. is continuous at every irrational and discontinuous at every rational (The Dirichlet function is continuous at no point of , and Thomae's function is continuous at every irrational and at no rational, so its set of continuity points is exactly the set of irrationals and its oscillation at equals ), so its discontinuity set is , which is infinite and dense — and countable, which is what A bounded function on whose set of discontinuities is at most countable is Riemann integrable needs. The value is then read off the lower sums, every one of which is because every subinterval contains an irrational (Both and are dense in , and every nonempty open subset of is uncountable).
Every upper sum, by contrast, is strictly positive, since every subinterval contains a rational; the upper integral is nevertheless , an infimum of positive numbers.
Facts & Assumptions
Given: Thomae's function as above.
with at a rational , and at an irrational ; hence everywhere and at every rational (The Dirichlet function , and Thomae's function with at a rational in lowest terms with and at every irrational , The canonical natural of a field, Canonical naturals are positive and strictly increasing).
Thomae's function on is continuous at every irrational and discontinuous at every rational (The Dirichlet function is continuous at no point of , and Thomae's function is continuous at every irrational and at no rational, so its set of continuity points is exactly the set of irrationals and its oscillation at equals ); a restriction is continuous at every point of the smaller domain at which the original is continuous, the same serving a condition quantified over fewer points (Continuity of at a point of and on : the - condition, its agreement with at a limit point, and continuity at an isolated point).
is countably infinite and every subset of an at most countable set is at most countable ( is countably infinite, Every subset of an at most countable set is at most countable, Finite, countably infinite, countable, uncountable).
A bounded function on with whose set of discontinuities is at most countable is Riemann integrable (A bounded function on whose set of discontinuities is at most countable is Riemann integrable, Lower bound, bounded below, bounded set).
The irrationals are dense in , so every nonempty open interval contains an irrational (Both and are dense in , and every nonempty open subset of is uncountable, The closure equals the set together with its limit points, equals the set of points every neighbourhood of which meets it, and is the smallest closed superset; a set is closed iff it contains its limit points, Interior, closure, boundary and exterior of a subset of , The -neighbourhood and the punctured -neighbourhood of a point of ).
For a partition of : , , , , and is a nonempty open interval (Partition of as a finite strictly increasing list , its subintervals and their lengths, its mesh, refinement, and the common refinement of two partitions, Intervals of : the nine order-convex forms, nondegeneracy, and length).
, , is the supremum of the lower sums and the infimum of the upper sums, and the integral is their common value when they agree (For bounded on and a partition : the infimum and supremum of on the -th subinterval, and the lower and upper Darboux sums and , The lower and upper Darboux integrals of a bounded on as and , Darboux integrability as their equality, and the notation ).
A set with a least element has it as its infimum; the supremum of is (Greatest lower bound (infimum), Maximum and minimum of a set, Complete ordered field (least-upper-bound property)).
Ordered-field arithmetic: the order is total and transitive, and a reciprocal of a positive quantity is positive (Order is preserved by adding a constant and by adding inequalities, Sign rules for products and monotonicity of multiplication, Ordered field, Complete ordered field (least-upper-bound property)). These order-arithmetic facts are stated by their sources for the strict order only; the nonstrict forms used below follow by adjoining the equality case, in which the two sides coincide.
Verification
is bounded on , with for every , by [L1].
By [L2], is continuous at every irrational point of , so its set of discontinuities in is contained in , which is at most countable by [L3]; a subset of it is then at most countable as well.
By [L4] applied on , with , is Riemann integrable on .
Every lower sum is . Let be a partition of and . By [L6] the interval is nonempty and open, so by [L5] it contains an irrational , and , so by [L1]. Since by [L1], the value is the least element of and by [L8]. Hence by [L7] and [L9].
The set of lower sums is therefore and by [L8]; since is integrable by step 2.1, by [L7].
Remarks
-
The discontinuity set is dense and the function is still integrable. meets every subinterval of , so no partition isolates the bad points; what saves the function is that the set is countable, hence null (Every at most countable subset of has measure zero). This is the cleanest witness that "small" for integrability means small in measure and not small in category or in closure.
-
The same function refutes a plausible converse. is nonnegative, integrable with integral , and positive at every rational, so a vanishing integral does not force a nonnegative integrand to vanish (Thomae's function is nonnegative, Riemann integrable on with integral , and nonzero at every rational, so a vanishing integral does not force a nonnegative integrand to vanish, FALSE: a nonnegative Riemann integrable function on with is identically zero).
-
Contrast with the Dirichlet function. is discontinuous everywhere and not integrable (The Dirichlet function on has lower Darboux integral and upper Darboux integral , so it is bounded and not Riemann integrable), yet it is nonzero at exactly the same points as . Only the values differ, and they differ in a way that makes continuous at every irrational; that is the whole of the difference.
The Dirichlet function on has lower Darboux integral and upper Darboux integral , so it is bounded and not Riemann integrable
Statement refuted
Refuted: that every bounded function on a closed bounded interval with distinct endpoints is Riemann integrable (FALSE: every bounded function on is Riemann integrable, The lower and upper Darboux integrals of a bounded on as and , Darboux integrability as their equality, and the notation ).
The witness is the Dirichlet function restricted to (The Dirichlet function , and Thomae's function with at a rational in lowest terms with and at every irrational ). It takes only the values and , so it is bounded (Lower bound, bounded below, bounded set); every lower Darboux sum is and every upper Darboux sum is ; hence
and the function is not Riemann integrable. The two Darboux integrals are as far apart as the range of the function allows.
Facts & Assumptions
Given: with for rational and for irrational (The Dirichlet function , and Thomae's function with at a rational in lowest terms with and at every irrational ).
The refuted claim: every bounded function on such an interval is Riemann integrable (FALSE: every bounded function on is Riemann integrable).
Both and are dense in , so every nonempty open interval contains a rational and an irrational (Both and are dense in , and every nonempty open subset of is uncountable, The closure equals the set together with its limit points, equals the set of points every neighbourhood of which meets it, and is the smallest closed superset; a set is closed iff it contains its limit points, Interior, closure, boundary and exterior of a subset of , The -neighbourhood and the punctured -neighbourhood of a point of ).
For a partition of : , , , , , and is a nonempty open interval contained in (Partition of as a finite strictly increasing list , its subintervals and their lengths, its mesh, refinement, and the common refinement of two partitions, Intervals of : the nine order-convex forms, nondegeneracy, and length).
, , , ; is the supremum of the lower sums and the infimum of the upper sums; is integrable exactly when they agree (For bounded on and a partition : the infimum and supremum of on the -th subinterval, and the lower and upper Darboux sums and , The lower and upper Darboux integrals of a bounded on as and , Darboux integrability as their equality, and the notation ).
A set with a least element has it as its infimum and one with a greatest element has it as its supremum; the supremum and infimum of are both (Greatest lower bound (infimum), Maximum and minimum of a set, Complete ordered field (least-upper-bound property)).
Finite sums: scaling and (Finite sums and finite products, by recursion, Laws of finite sums and finite products).
Ordered-field arithmetic: , and the order is total and transitive (Order is preserved by adding a constant and by adding inequalities, Sign rules for products and monotonicity of multiplication, Ordered field, Complete ordered field (least-upper-bound property)). These order-arithmetic facts are stated by their sources for the strict order only; the nonstrict forms used below follow by adjoining the equality case, in which the two sides coincide.
Counterexample
is bounded, with for every , so its Darboux sums and integrals are defined by [L3].
Let be any partition of and . By [L2] the interval is nonempty and open, so by [L1] it contains a rational and an irrational, both lying in . Hence and, by [L4], and .
Therefore and , for every partition of , by [L3], [L5] and [L2].
The set of lower sums is and the set of upper sums is , so and by [L4] and [L3]. Since by [L6], is not Riemann integrable on .
So is bounded on , an interval with , and is not Riemann integrable: [A1] is refuted.
Remarks
-
The failure is uniform over partitions. No partition does better than any other here: for every , so Riemann's criterion (Riemann's criterion: a bounded on is Darboux integrable if and only if for every real there is a partition with ) fails as badly as it can. Contrast the Cantor-set indicator, where the gap does go to (The indicator of the Cantor set is discontinuous exactly on the Cantor set, which is null, so it is Riemann integrable with integral even though it is discontinuous at uncountably many points).
-
The Lebesgue criterion gives the same verdict for the same reason. is discontinuous at every point of (The Dirichlet function is continuous at no point of , and Thomae's function is continuous at every irrational and at no rational, so its set of continuity points is exactly the set of irrationals and its oscillation at equals ), and is not null (A sequence of intervals covering has total length at least , so no interval of positive length has measure zero), so Lebesgue's criterion for Riemann integrability: a bounded on is Riemann integrable if and only if its set of discontinuities has measure zero refuses it too. The direct computation above is kept because it is elementary and costs no choice principle.
-
The Riemann sums are not even a warning. Every uniform partition with rational tags gives Riemann sum , so along that one sequence of tagged partitions the sums converge; this is precisely why the Riemann definition quantifies over all tagged partitions of small mesh (For the Dirichlet function every uniform partition with rational tags gives Riemann sum , so the sums converge along that sequence of tagged partitions although the function is not integrable: the mesh condition of the Riemann definition quantifies over all tagged partitions and cannot be weakened to one sequence).
The indicator of the Smith-Volterra-Cantor set is discontinuous exactly on a nowhere dense set, and is not Riemann integrable, because that set does not have measure zero
Statement refuted
Refuted: that a bounded function on is Riemann integrable whenever its set of discontinuities is nowhere dense (FALSE: a bounded function on is Riemann integrable exactly when its set of discontinuities is nowhere dense, Nowhere dense, meager (first category), residual, and second category subsets of ).
The witness is the indicator of the Smith-Volterra-Cantor set (The Smith-Volterra-Cantor set: the same construction removing, at stage , an open middle interval of length from each of the remaining intervals). Its set of discontinuities is exactly , which is closed, nowhere dense and not of measure zero (The Smith-Volterra-Cantor set is compact, perfect and nowhere dense, and does not have measure zero); and is not Riemann integrable, with
The contrast with the Cantor set is the whole point. The Cantor set is also closed and nowhere dense, and its indicator is integrable, with integral (The indicator of the Cantor set is discontinuous exactly on the Cantor set, which is null, so it is Riemann integrable with integral even though it is discontinuous at uncountably many points). The two sets differ only in measure, and that is what decides (Lebesgue's criterion for Riemann integrability: a bounded on is Riemann integrable if and only if its set of discontinuities has measure zero).
The proof below is direct, from claim 4 of The Smith-Volterra-Cantor set is compact, perfect and nowhere dense, and does not have measure zero; it does not go through the forward half of Lebesgue's criterion for Riemann integrability: a bounded on is Riemann integrable if and only if its set of discontinuities has measure zero and so uses no choice principle.
Facts & Assumptions
Given: The Smith-Volterra-Cantor set and its indicator , with for and otherwise.
The refuted claim: a bounded function on a closed bounded interval with distinct endpoints whose set of discontinuities is nowhere dense is Riemann integrable.
is closed, bounded and nowhere dense, so contains no nonempty open set; and if , are sequences of reals with , and for every , then (The Smith-Volterra-Cantor set is compact, perfect and nowhere dense, and does not have measure zero, The Smith-Volterra-Cantor set: the same construction removing, at stage , an open middle interval of length from each of the remaining intervals, Nowhere dense, meager (first category), residual, and second category subsets of , Interior, closure, boundary and exterior of a subset of , Measure zero (a countable cover by intervals of total length below every ) and content zero (a finite such cover)).
A set is closed exactly when every point outside it has a neighbourhood missing it (Open subset of (every point has a neighbourhood inside it), closed subset (complement open), and clopen, The -neighbourhood and the punctured -neighbourhood of a point of ).
For a partition of : , , , , , and is a nonempty open subset of (Partition of as a finite strictly increasing list , its subintervals and their lengths, its mesh, refinement, and the common refinement of two partitions, Intervals of : the nine order-convex forms, nondegeneracy, and length, Open subset of (every point has a neighbourhood inside it), closed subset (complement open), and clopen).
, , , ; is the supremum of the lower sums and the infimum of the upper sums; is integrable exactly when they agree (For bounded on and a partition : the infimum and supremum of on the -th subinterval, and the lower and upper Darboux sums and , The lower and upper Darboux integrals of a bounded on as and , Darboux integrability as their equality, and the notation , Lower bound, bounded below, bounded set).
A set with a least element has it as its infimum and one with a greatest element has it as its supremum; an infimum of a set all of whose members are is (Greatest lower bound (infimum), Maximum and minimum of a set, Complete ordered field (least-upper-bound property)).
Finite sums: scaling, splitting, monotonicity in the terms, ; and a finite list of closed intervals extends to a sequence by degenerate intervals of length without changing any partial total (Finite sums and finite products, by recursion, Laws of finite sums and finite products, Measure zero (a countable cover by intervals of total length below every ) and content zero (a finite such cover)).
Ordered-field arithmetic: for and a real the reals and satisfy and ; and (Maximum and minimum of a set, Order is preserved by adding a constant and by adding inequalities, Sign rules for products and monotonicity of multiplication, Ordered field, Complete ordered field (least-upper-bound property), The -neighbourhood and the punctured -neighbourhood of a point of , Intervals of : the nine order-convex forms, nondegeneracy, and length). These order-arithmetic facts are stated by their sources for the strict order only; the nonstrict forms used below follow by adjoining the equality case, in which the two sides coincide.
Counterexample
takes only the values and , so it is bounded on and its Darboux sums and integrals are defined by [L4].
Discontinuity on . Let , so , and let a real be given. By [L7] the interval is nonempty and open, so by [L1] it contains a point ; then , and , so continuity fails at for (Continuity of at a point of and on : the - condition, its agreement with at a limit point, and continuity at an isolated point, Discontinuity of at a point of its domain, and its classification: removable discontinuity, jump discontinuity and essential discontinuity, equivalently Rudin's discontinuities of the first and of the second kind).
Continuity off . Let with . Since is closed, [L2] gives a real with , so vanishes on and continuity holds at .
So the set of discontinuities of in is exactly , which is nowhere dense by [L1].
Every lower sum is . Let be a partition of and . By [L3] the interval is a nonempty open subset of , so by [L1] it contains a point outside , at which takes the value ; as , that value is the least element of and by [L5]. Hence by [L4] and [L6].
Every upper sum is at least . With as above put . For the set contains , so by [L5]; for one has and . Hence is the sum of the with , by [L4] and [L6].
The intervals with cover , since by [L3]. Extending that finite list to a sequence by degenerate intervals ([L6]) gives a cover of all of whose partial total lengths are at most , so [L1] gives .
By [L5] and step 2.2, ; by [L5] and step 3.1, . The two differ, so is not Riemann integrable by [L4].
So is bounded on , an interval with , its set of discontinuities is nowhere dense by step 2.1, and it is not Riemann integrable: [A1] is refuted.
Remarks
-
Nowhere dense and null are independent, and only the second matters here. is nowhere dense and not null; is null and dense. Thomae's function has the second as its discontinuity set and is integrable (Thomae's function is Riemann integrable on with integral : it is continuous at every irrational, so its discontinuity set is countable, and every lower Darboux sum is ); has the first and is not. Neither notion of smallness implies the other, and Lebesgue's criterion for Riemann integrability: a bounded on is Riemann integrable if and only if its set of discontinuities has measure zero names the one that decides.
-
The constant is what this library can state, and it is enough. No outer measure is defined here, so "the measure of is " is not a statement available; claim 4 of The Smith-Volterra-Cantor set is compact, perfect and nowhere dense, and does not have measure zero gives the quantitative form actually used, that no interval cover of has total length below . The upper integral is therefore at least ; whether it equals is not asserted.
-
What the argument uses about , and nothing more. Only three properties enter: is closed, has empty interior, and no interval cover of has total length below . Any set with those three properties would serve as a witness in exactly the same way, and the argument is written so that the particular construction of The Smith-Volterra-Cantor set: the same construction removing, at stage , an open middle interval of length from each of the remaining intervals is used only through The Smith-Volterra-Cantor set is compact, perfect and nowhere dense, and does not have measure zero.
For every subset of of measure zero there is a bounded Riemann integrable function on whose set of discontinuities is exactly
Example
Let be an subset of ( and subsets of ) of measure zero (Measure zero (a countable cover by intervals of total length below every ) and content zero (a finite such cover)). Then there is a bounded function , with values in , that is Riemann integrable on and whose set of discontinuities is exactly (Continuity of at a point of and on : the - condition, its agreement with at a limit point, and continuity at an isolated point, Discontinuity of at a point of its domain, and its classification: removable discontinuity, jump discontinuity and essential discontinuity, equivalently Rudin's discontinuities of the first and of the second kind).
The construction. Fix closed sets with and put
where is the least index of a closed set containing (The well-ordering principle). Nothing is selected: is the least element of a set determined by and the fixed sequence .
Why this is worth stating. Together with For the set of points of at which is discontinuous is the intersection with of an subset of , and the set of points at which is continuous is the intersection with of a subset; for the two sets are and outright, which shows that a discontinuity set is always the trace of an set, and with Lebesgue's criterion for Riemann integrability: a bounded on is Riemann integrable if and only if its set of discontinuities has measure zero, which shows that an integrable function has a null discontinuity set, the example says that the two necessary conditions are also jointly sufficient: null and is exactly what a discontinuity set of a Riemann integrable function on can be. The Cantor set and any at most countable subset of are instances.
Choice. The construction uses none; the only choice principle in the statement comes from the direction of Lebesgue's criterion for Riemann integrability: a bounded on is Riemann integrable if and only if its set of discontinuities has measure zero used at the end, and that direction, "null integrable", is a theorem of ZF.
Facts & Assumptions
Given: An set of measure zero, and a sequence of closed subsets of with .
is a union of a sequence of closed sets ( and subsets of , Sequences of reals: bounded, eventually, frequently, tails, subsequences).
Every nonempty subset of has a least element (The well-ordering principle).
A set is closed exactly when every point outside has a neighbourhood missing (Open subset of (every point has a neighbourhood inside it), closed subset (complement open), and clopen, The -neighbourhood and the punctured -neighbourhood of a point of ).
has measure zero and a subset of a null set is null, so contains no interval with two distinct endpoints: such an interval would be null, contradicting A sequence of intervals covering has total length at least , so no interval of positive length has measure zero (Measure zero (a countable cover by intervals of total length below every ) and content zero (a finite such cover)).
Powers: for every , , , and implies (Integer powers , Monotonicity of and of ).
Every nonempty finite set of reals has a minimum (Every nonempty finite set of reals has a maximum and a minimum, Maximum and minimum of a set).
For every real there is a natural with , and for , since by induction (For every in a complete ordered field there is a natural with , Every complete ordered field is Archimedean, The canonical natural of a field, Canonical naturals are positive and strictly increasing, Monotonicity of and of ).
A bounded function on with whose set of discontinuities has measure zero is Riemann integrable, and that implication uses no choice principle (Lebesgue's criterion for Riemann integrability: a bounded on is Riemann integrable if and only if its set of discontinuities has measure zero, Lower bound, bounded below, bounded set, The lower and upper Darboux integrals of a bounded on as and , Darboux integrability as their equality, and the notation ).
Ordered-field arithmetic and the absolute value: the order is total and transitive; for and a real the reals and satisfy and ; a nonempty open interval is a nondegenerate interval (Basic properties of the absolute value, Order is preserved by adding a constant and by adding inequalities, Sign rules for products and monotonicity of multiplication, Maximum and minimum of a set, Ordered field, Complete ordered field (least-upper-bound property), Intervals of : the nine order-convex forms, nondegeneracy, and length, The -neighbourhood and the punctured -neighbourhood of a point of , Interior, closure, boundary and exterior of a subset of , The closure equals the set together with its limit points, equals the set of points every neighbourhood of which meets it, and is the smallest closed superset; a set is closed iff it contains its limit points). These order-arithmetic facts are stated by their sources for the strict order only; the nonstrict forms used below follow by adjoining the equality case, in which the two sides coincide.
Verification
Fix the sequence of [L1] and define for , which exists by [L2] since the set is a nonempty subset of ; define by for and otherwise.
is bounded with values in : for by [L5], and off .
is discontinuous at every point of . Let , so by [L5], and let a real be given. By [L9] the interval is nonempty with , hence is a nondegenerate interval, so by [L4] it is not contained in : there is with , and then and . So the continuity condition fails at for .
is continuous at every point of . Let with , so , and let a real be given. By [L7] fix a natural with . For each one has , since , so [L3] supplies a real with ; put , which exists by [L6].
For with : if then ; and if then for every by step 2.3, so and by [L5] and step 2.3. In both cases , so is continuous at .
By steps 2.2 and 3.1 the set of discontinuities of in is exactly , which has measure zero by hypothesis; is bounded by step 2.1 and , so [L8] gives that is Riemann integrable on . The function constructed in step 1.1 therefore has all the stated properties.
Remarks
-
Where each hypothesis on is used. That is is what makes the exhaustion available and hence gives continuity off in step 3.1; that is null is used twice, once through [L4] to force discontinuity on , and once at the end through Lebesgue's criterion for Riemann integrability: a bounded on is Riemann integrable if and only if its set of discontinuities has measure zero. Dropping either hypothesis breaks the example, and by For the set of points of at which is discontinuous is the intersection with of an subset of , and the set of points at which is continuous is the intersection with of a subset; for the two sets are and outright and Lebesgue's criterion for Riemann integrability: a bounded on is Riemann integrable if and only if its set of discontinuities has measure zero neither can be dropped from the conclusion either.
-
The values are a convenience. Any sequence of positive reals tending to would do in their place; what the proof needs is that the value at a point of is small when is large, and that it is never on .
-
Two familiar instances. Taking at most countable recovers a function continuous exactly off a prescribed countable set, of which Thomae's function is the case in spirit though not in formula (Thomae's function is Riemann integrable on with integral : it is continuous at every irrational, so its discontinuity set is countable, and every lower Darboux sum is ); taking to be the Cantor set recovers a function of the type of The indicator of the Cantor set is discontinuous exactly on the Cantor set, which is null, so it is Riemann integrable with integral even though it is discontinuous at uncountably many points, the Cantor set being closed, hence , and null.
-
No analogue holds without nullity. The Smith-Volterra-Cantor set is closed, hence , and it is the discontinuity set of its own indicator, which is not integrable (The indicator of the Smith-Volterra-Cantor set is discontinuous exactly on a nowhere dense set, and is not Riemann integrable, because that set does not have measure zero). So the condition alone buys nothing.
For the Dirichlet function every uniform partition with rational tags gives Riemann sum , so the sums converge along that sequence of tagged partitions although the function is not integrable: the mesh condition of the Riemann definition quantifies over all tagged partitions and cannot be weakened to one sequence
Statement refuted
Refuted: that a bounded on is Riemann integrable with integral as soon as there is one sequence of tagged partitions with and (Tagged partitions of , with a tag in each subinterval, and the Riemann sum , The lower and upper Darboux integrals of a bounded on as and , Darboux integrability as their equality, and the notation ).
The witness is again the Dirichlet function on (The Dirichlet function , and Thomae's function with at a rational in lowest terms with and at every irrational ). Take , the uniform partition into parts, and tag each subinterval by its left endpoint , a rational. Then
so the Riemann sums converge, to ; and yet is not Riemann integrable on (The Dirichlet function on has lower Darboux integral and upper Darboux integral , so it is bounded and not Riemann integrable).
What this shows about The Darboux and Riemann definitions agree: a bounded on is Darboux integrable with integral if and only if for every real there is a real such that for every tagged partition of mesh below . Condition 2 there quantifies over every tagged partition of mesh below , tags included, and the quantifier cannot be replaced by the existence of one good sequence. Tagging the very same partition by irrationals instead gives Riemann sum , so for each the two taggings of give the two values and ; no real number is within of both.
Facts & Assumptions
Given: with for rational and for irrational ; for the uniform partition of with and ; and the tagging with for .
The refuted claim: if some sequence of tagged partitions of has meshes tending to and Riemann sums tending to , then is Riemann integrable with integral .
defines a tagging of , and (Tagged partitions of , with a tag in each subinterval, and the Riemann sum ).
Each is rational, being a quotient of canonical naturals with ; hence (The canonical natural of a field, Canonical naturals are positive and strictly increasing, The Dirichlet function , and Thomae's function with at a rational in lowest terms with and at every irrational ).
Finite sums: scaling and (Finite sums and finite products, by recursion, Laws of finite sums and finite products).
A constant sequence converges to its value; and for every real there is with , so the sequence converges to , its terms being positive and decreasing below every positive bound (Limits and Cauchy sequences of reals, Sequences of reals: bounded, eventually, frequently, tails, subsequences, For every in a complete ordered field there is a natural with , Every complete ordered field is Archimedean, Canonical naturals are positive and strictly increasing, Basic properties of the absolute value).
is not Riemann integrable on ; its lower Darboux integral is and its upper Darboux integral is (The Dirichlet function on has lower Darboux integral and upper Darboux integral , so it is bounded and not Riemann integrable, The lower and upper Darboux integrals of a bounded on as and , Darboux integrability as their equality, and the notation ).
Every nonempty open interval contains an irrational (Both and are dense in , and every nonempty open subset of is uncountable).
The Riemann condition of The Darboux and Riemann definitions agree: a bounded on is Darboux integrable with integral if and only if for every real there is a real such that for every tagged partition of mesh below requires, for each , a such that every tagged partition of mesh below has its Riemann sum within of the integral.
Ordered-field arithmetic: the order is total and transitive, for , and (Order is preserved by adding a constant and by adding inequalities, Sign rules for products and monotonicity of multiplication, Ordered field, Complete ordered field (least-upper-bound property)). These order-arithmetic facts are stated by their sources for the strict order only; the nonstrict forms used below follow by adjoining the equality case, in which the two sides coincide.
Counterexample
For each , is a tagged partition of of mesh , by [L1] and [L2].
By [L3] every tag is rational, so ; hence by [L2], [L4] and [L1], .
The sequence converges to and the sequence is constantly , hence converges to , by [L5].
So the hypothesis of [A1] is met with ; but is not Riemann integrable on by [L6]. [A1] is therefore refuted.
Moreover, for each the same partition carries a tagging whose Riemann sum is : by [L7] each open interval contains an irrational, and choosing one in each of the subintervals is a finite selection, giving a tagging of with for every and hence by [L2] and [L4]. So for every real there are tagged partitions of mesh below with Riemann sum and others with Riemann sum , and by [L9] no single real can satisfy the condition of [L8] at .
Remarks
-
What survives of the naive formulation. If is integrable then every sequence of tagged partitions with meshes tending to has Riemann sums tending to , by The Darboux and Riemann definitions agree: a bounded on is Darboux integrable with integral if and only if for every real there is a real such that for every tagged partition of mesh below ; the failure is only in the converse. So sequences of Riemann sums are a legitimate way to compute an integral once integrability is known, and no way at all to establish it.
-
The Darboux sums see the difference immediately. For every partition of one has and (The Dirichlet function on has lower Darboux integral and upper Darboux integral , so it is bounded and not Riemann integrable), and by Tagged partitions of , with a tag in each subinterval, and the Riemann sum every Riemann sum over lies between them. The rational tags realise the upper end and the irrational tags the lower end; the choice of tags moves the sum across the whole gap.
-
Choosing the irrational tags costs nothing. Step 4.1 selects one irrational in each of finitely many subintervals, which is a finite family; the same observation as in What this page costs in choice: Riemann's criterion, the Darboux-Riemann equivalence and integrability of a monotone function are theorems of ZF; integrability of a continuous function inherits the single use of countable choice inside Heine-Cantor; and only the forward half of the Lebesgue criterion spends countable choice, once, at the countable union of null sets applies, and no choice principle is used.
Thomae's function is nonnegative, Riemann integrable on with integral , and nonzero at every rational, so a vanishing integral does not force a nonnegative integrand to vanish
Statement refuted
Refuted: that a nonnegative Riemann integrable function on with vanishes identically (FALSE: a nonnegative Riemann integrable function on with is identically zero, The lower and upper Darboux integrals of a bounded on as and , Darboux integrability as their equality, and the notation ).
The witness is Thomae's function on (The Dirichlet function , and Thomae's function with at a rational in lowest terms with and at every irrational ). It satisfies , it is Riemann integrable with (Thomae's function is Riemann integrable on with integral : it is continuous at every irrational, so its discontinuity set is countable, and every lower Darboux sum is ), and it is positive at every rational point of — a dense set, and an infinite one. So the failure is not at a single stray point: the function is nonzero on a dense subset of the interval and the integral still vanishes.
The repaired statement asks for continuity. With continuous the conclusion is true, and the reason is exactly what fails here: a continuous function positive at one point is positive on a whole subinterval, whereas is positive only on a set that contains no interval (Both and are dense in , and every nonempty open subset of is uncountable). That repaired statement is not proved here, since the additivity of the integral over subintervals is not available at this point in the reading order.
Facts & Assumptions
Given: Thomae's function , with at a rational of least denominator and at an irrational (The Dirichlet function , and Thomae's function with at a rational in lowest terms with and at every irrational , The canonical natural of a field).
The refuted claim: a nonnegative Riemann integrable function on a closed bounded interval with distinct endpoints whose integral is vanishes identically.
for every , and at every rational , since (The Dirichlet function , and Thomae's function with at a rational in lowest terms with and at every irrational , The canonical natural of a field, Canonical naturals are positive and strictly increasing).
is Riemann integrable on and (Thomae's function is Riemann integrable on with integral : it is continuous at every irrational, so its discontinuity set is countable, and every lower Darboux sum is , The lower and upper Darboux integrals of a bounded on as and , Darboux integrability as their equality, and the notation ).
is discontinuous at every rational point and continuous at every irrational point, so its discontinuity set in is (The Dirichlet function is continuous at no point of , and Thomae's function is continuous at every irrational and at no rational, so its set of continuity points is exactly the set of irrationals and its oscillation at equals ).
is dense in , so every nonempty open interval contains a rational (Both and are dense in , and every nonempty open subset of is uncountable).
Ordered-field arithmetic: , so lies in and is rational; the order is total and transitive (Order is preserved by adding a constant and by adding inequalities, Sign rules for products and monotonicity of multiplication, Ordered field, Complete ordered field (least-upper-bound property), Intervals of : the nine order-convex forms, nondegeneracy, and length). These order-arithmetic facts are stated by their sources for the strict order only; the nonstrict forms used below follow by adjoining the equality case, in which the two sides coincide.
Counterexample
is nonnegative on by [L1], and it is Riemann integrable there with by [L2]; the interval has by [L5].
does not vanish identically: is a rational point of by [L5], so by [L1].
The hypotheses of [A1] hold for on and its conclusion fails, so [A1] is refuted.
The failure is dense, not isolated: by [L4] every nonempty open subinterval of contains a rational, at which is positive by [L1]; so meets every subinterval of with distinct endpoints. It is also exactly the set of discontinuities of , by [L3] and [L1].
Remarks
-
What the integral measures, and what it does not. says that the upper Darboux sums can be made arbitrarily small, not that is small anywhere in particular. The set where is positive is , which is null (Every at most countable subset of has measure zero); by Lebesgue's criterion for Riemann integrability: a bounded on is Riemann integrable if and only if its set of discontinuities has measure zero that is also exactly why is integrable at all.
-
Every upper Darboux sum is strictly positive. Each subinterval contains a rational, so for every and for every partition ; the upper integral is nevertheless , an infimum of a set of positive numbers. Nothing is contradictory here, and it is the cleanest reminder that an infimum need not be attained.
-
The Dirichlet function is not available as a witness. It is also nonnegative and nonzero on a dense set, but it is not integrable at all (The Dirichlet function on has lower Darboux integral and upper Darboux integral , so it is bounded and not Riemann integrable), so it cannot satisfy the hypotheses of the refuted claim. Thomae's function is the standard witness precisely because it repairs integrability while keeping the dense positive set.
Sources
Standard references
Recommended treatments; not extraction sources.
- Riemann integral (Wikipedia)
- Square pyramidal number (Wikipedia)
- J. Hunter, Chapter 11: The Riemann Integral
- Darboux integral (Wikipedia)
- J. Lebl, Basic Analysis I, The Riemann Integral
- Floor and ceiling functions (Wikipedia)
- MTH 421 Homework 1 (Michigan State University)
- Cantor set (Wikipedia)
- MAT425 Lecture Notes (Princeton University)
- Thomae's function (Wikipedia)
- MAT 125B Discussion 3 (UC Davis)
- Dirichlet function (Wikipedia)
- MIT 18.013A, Nonintegrable Functions
- Smith-Volterra-Cantor set (Wikipedia)
- Fsigma set (Wikipedia)
- M. Wodzicki, The Riemann Integral
- Sets of discontinuity (University of Richmond MATH 320)
- Riemann sum (Wikipedia)