Alphabeta Math
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.

✓ 10 results · all verified · 9 also independently AI-judged
Every result on this page is machine-checked by a proof checker and read in full and owner-audited; the judge is an additional, independent cross-model AI review of the proofs. The 1 not AI-judged were verified by owner audit (typically over a confirmed judge false positive), not failures.

The Riemann Integral: Definition and Integrability: Examples and Counterexamples

1 · Prerequisites

2 · Summary

3 · Logical flowchart

4 · Definitions, theorems and proofs

None yet.

5 · Examples, counterexamples and false statements

ExampleConstruction: Literature-sourcedVerification: AI-adaptedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-28Open item page →

∫01x2=1/3, computed from the Darboux definition with uniform partitions and the closed form ∑k<nk2=n(n−1)(2n−1)/6

Example

Let f:[0,1]→R be f(x)=x2 (Integer powers am). Then f is Riemann integrable on [0,1] and

∫01x2 dx  =  13.

Everything is computed from the definition. For the uniform partition UN of [0,1] into N≥1 parts (Partition of [a,b] as a finite strictly increasing list a=t0<t1<⋯<tn=b, its subintervals and their lengths, its mesh, refinement, and the common refinement of two partitions) the two Darboux sums (For bounded f on [a,b] and a partition P: the infimum mi and supremum Mi of f on the i-th subinterval, and the lower and upper Darboux sums L(f,P)=∑imiΔi and U(f,P)=∑iMiΔi) are

L(f,UN)  =  (N−1)(2N−1)6N2,U(f,UN)  =  (N+1)(2N+1)6N2,U(f,UN)−L(f,UN)  =  1N,

where a natural N multiplying or dividing a real stands for its canonical natural ι(N) (The canonical natural ι(n)=n⋅1F of a field), as in clause 2 of Laws of finite sums and finite products. Both expressions converge to 1/3 as N grows, the lower sums from below and the upper sums from above, and the gap 1/N is what Archimedes' property drives to 0.

The arithmetic rests on one closed form, valid for every n∈N:

6∑k<nι(k)2  =  ι(n)(ι(n)−1)(2ι(n)−1),

which at n=0 reads 0=0 and is the familiar n(n−1)(2n−1)/6 written so that the empty sum is the case n=0 rather than an exception. Note the indexing: the sum runs over k<n, so its last term is ι(n−1)2 and not ι(n)2.

Facts & Assumptions

Given: f:[0,1]→R with f(x)=x2, and for N≥1 the uniform partition UN=(N,t) of [0,1] with ti=ι(i)/ι(N) for i≤N and lengths Δi=1/ι(N).

[L2]

mi=inf⁡f[Ii], Mi=sup⁡f[Ii], L(f,P)=∑i<NmiΔi, U(f,P)=∑i<NMiΔi, and L(f,P)≤∫01‾f≤∫01‾f≤U(f,P) for every partition P; when f is integrable, ∫01f is the common value of the two integrals (For bounded f on [a,b] and a partition P: the infimum mi and supremum Mi of f on the i-th subinterval, and the lower and upper Darboux sums L(f,P)=∑imiΔi and U(f,P)=∑iMiΔi, The lower and upper Darboux integrals of a bounded f on [a,b] as sup⁡PL(f,P) and inf⁡PU(f,P), Darboux integrability as their equality, and the notation ∫abf).

[L3]

For 0≤a<b one has a2<b2; a set with a least element has it as its infimum and one with a greatest element has it as its supremum (Monotonicity of x↦xn and of n↦an, Integer powers am, Greatest lower bound (infimum), Maximum and minimum of a set, Complete ordered field (least-upper-bound property)).

[L4]

The closed form. For every n∈N, 6∑k<nι(k)2=ι(n)(ι(n)−1)(2ι(n)−1). This is an induction on n (The principle of mathematical induction) from the recursion clause ∑k<n+1=∑k<n+ι(n)2 of Finite sums and finite products, by recursion and the identity x(x−1)(2x−1)+6x2=x(x+1)(2x+1), valid in any commutative ring and in particular for x=ι(n) (Ordered field, Canonical naturals are positive and strictly increasing).

[L5]

Finite sums: scaling, additivity, telescoping ∑i<N(ci+1−ci)=cN−c0, and ι(i+1)=ι(i)+1 (Finite sums and finite products, by recursion, Laws of finite sums and finite products, The canonical natural ι(n)=n⋅1F of a field, Canonical naturals are positive and strictly increasing).

[L8]

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; ∣u−v∣≤w whenever c≤u≤d, c≤v≤d and d−c≤w (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

technique · direct
1.1

f is continuous on [0,1] and 0<1, so f is Riemann integrable on [0,1] by [L6]; write J:=∫01f.

givenL6
1.2

On Ii=[ti,ti+1] with 0≤ti<ti+1 the function f takes its least value at ti and its greatest at ti+1, by [L3]; both values are attained, so mi=ti2=ι(i)2/ι(N)2 and Mi=ti+12=ι(i+1)2/ι(N)2 by [L3] and [L1].

givenL1L3
2.1

By [L2], [L5] and [L1], L(f,UN)=∑i<Nι(i)2ι(N)2⋅1ι(N)=1ι(N)3∑i<Nι(i)2, and by [L4] this equals ι(N)(ι(N)−1)(2ι(N)−1)6 ι(N)3=(ι(N)−1)(2ι(N)−1)6 ι(N)2.

step 1.2L1L2L4L5
2.2

Likewise U(f,UN)=1ι(N)3∑i<Nι(i+1)2. Since ∑i<Nι(i+1)2=∑k<N+1ι(k)2−ι(0)2=∑k<N+1ι(k)2 by [L5] and ι(0)=0, [L4] applied at N+1 gives U(f,UN)=(ι(N)+1)(2ι(N)+1)6 ι(N)2.

step 1.2L1L2L4L5
2.3

Directly, U(f,UN)−L(f,UN)=1ι(N)3∑i<N(ι(i+1)2−ι(i)2)=ι(N)2−ι(0)2ι(N)3=1ι(N), by telescoping in [L5].

step 1.2L1L2L5
3.1

Expanding by [L8], 13−L(f,UN)=3ι(N)−16 ι(N)2>0 and U(f,UN)−13=3ι(N)+16 ι(N)2>0 for N≥1, so L(f,UN)<13<U(f,UN).

step 2.1step 2.2L7L8
3.2

By [L2], L(f,UN)≤J≤U(f,UN) as well.

step 1.1step 2.1step 2.2L2
4.1

Both J and 1/3 lie in the interval with endpoints L(f,UN) and U(f,UN), whose length is 1/ι(N) by step 2.3, so ∣J−1/3∣≤1/ι(N) for every natural N≥1, by [L8].

step 2.3step 3.1step 3.2L8
5.1

If J≠1/3 then ∣J−1/3∣>0, and [L7] supplies N≥1 with 1/ι(N)<∣J−1/3∣, contradicting step 4.1. Hence J=1/3, that is ∫01x2 dx=1/3.

step 4.1L7L8∎

Remarks

  • The first index is 0 and the last term of the lower sum is not 1. The lower sum uses mi=ti2 with i running from 0, so its first term is 0 and its last is ((N−1)/N)2⋅(1/N); the upper sum uses Mi=ti+12 and so ends at 1⋅(1/N). Reading the closed form with the other convention, ∑k=1nk2=n(n+1)(2n+1)/6, and attaching it to the wrong sum is the standard way to lose the factor and land on 1/2 or 1/6 instead of 1/3.

  • The gap is exactly 1/N, not merely O(1/N). 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 f on [a,b] is Darboux integrable if and only if for every real ε>0 there is a partition P with U(f,P)−L(f,P)<ε: the continuity of x2 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 1/3 is extracted from the two sums and the Archimedean property alone. The same computation with x3 needs ∑k<nk3 and is no harder, but it is not carried out here.

ExampleConstruction: AI-adaptedVerification: AI-generatedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-28Open item page →

One refinement worked out for f(x)=x2 on [0,1]: adding the point 1/2 to the trivial partition raises the lower sum from 0 to 1/8 and lowers the upper sum from 1 to 5/8

Example

Let f:[0,1]→R be f(x)=x2 (Integer powers am). Let P0 be the trivial partition of [0,1], with point set {0,1}, and let P1:=P0+12 be the partition obtained by inserting the point 1/2, with point set {0,12,1} (Partition of [a,b] as a finite strictly increasing list a=t0<t1<⋯<tn=b, its subintervals and their lengths, its mesh, refinement, and the common refinement of two partitions). Then

L(f,P0)=0,L(f,P1)=18,U(f,P1)=58,U(f,P0)=1,

so that

0  =  L(f,P0)  ≤  L(f,P1)  ≤  U(f,P1)  ≤  U(f,P0)  =  1,

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: L(f,P)≤L(f,P′)≤U(f,P′)≤U(f,P) when P′ refines P, and L(f,P)≤U(f,Q) for arbitrary partitions P and Q; moreover the two changes are at most 2M(n′−n)∥P∥ with both inequalities strict. The gap drops from U(f,P0)−L(f,P0)=1 to U(f,P1)−L(f,P1)=12: exactly one refinement halves it, and ∫01x2=1/3, computed from the Darboux definition with uniform partitions and the closed form ∑k<nk2=n(n−1)(2n−1)/6 shows the uniform partitions drive it to 0.

Facts & Assumptions

Given: f:[0,1]→R with f(x)=x2; the partition P0=(1,t) with t0=0 and tk=1 for k≥1; and P1=(2,s) with s0=0, s1=1/2 and sk=1 for k≥2.

[L1]

Both P0 and P1 are partitions of [0,1], and P1 refines P0, since pts⁡(P0)={0,1}⊆{0,12,1}=pts⁡(P1); the subintervals of P0 are [0,1] with length 1, and those of P1 are [0,12] and [12,1], each of length 12 (Partition of [a,b] as a finite strictly increasing list a=t0<t1<⋯<tn=b, its subintervals and their lengths, its mesh, refinement, and the common refinement of two partitions, Intervals of R: the nine order-convex forms, nondegeneracy, and length).

[L2]

mi=inf⁡f[Ii], Mi=sup⁡f[Ii], L(f,P)=∑i<nmiΔi and U(f,P)=∑i<nMiΔi (For bounded f on [a,b] and a partition P: the infimum mi and supremum Mi of f on the i-th subinterval, and the lower and upper Darboux sums L(f,P)=∑imiΔi and U(f,P)=∑iMiΔi).

[L3]

For 0≤a<b one has a2<b2, so on an interval [c,d]⊆[0,1] with c<d the function f has least value c2 and greatest value d2, 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 x↦xn and of n↦an, Integer powers am, Greatest lower bound (infimum), Maximum and minimum of a set, Complete ordered field (least-upper-bound property)).

[L5]

Finite sums of one and of two terms: ∑i<1ai=a0 and ∑i<2ai=a0+a1 (Finite sums and finite products, by recursion, Laws of finite sums and finite products).

[L6]

Ordered-field arithmetic: (12)2=14, 14⋅12=18, 18+12=58, and 0<18<58<1 (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

technique · direct
1.1

For P0 the single subinterval is [0,1], so by [L3] m0=02=0 and M0=12=1, and by [L2] and [L5], L(f,P0)=0⋅1=0 and U(f,P0)=1⋅1=1.

givenL1L2L3L5
1.2

For P1 the two subintervals are [0,12] and [12,1], each of length 12, so by [L3] the extreme values are m0=0, M0=(12)2=14 on the first and m1=14, M1=1 on the second.

givenL1L3L6
2.1

Hence by [L2], [L5] and [L6], L(f,P1)=0⋅12+14⋅12=18 and U(f,P1)=14⋅12+1⋅12=18+12=58.

step 1.2L2L5L6
3.1

Comparing with step 1.1 and using [L6]: L(f,P0)=0<18=L(f,P1) and U(f,P1)=58<1=U(f,P0), while L(f,P1)=18<58=U(f,P1). This is the chain of [L4] for the refinement P1 of P0, here with every inequality strict.

step 1.1step 2.1L1L4L6∎

Remarks

ExampleConstruction: AI-adaptedVerification: AI-generatedprecheck passverified 2026-08-09 (gpt-5.6-terra-codex-subscription)Open item page →

∫03⌊x⌋=3: the floor function is nondecreasing, hence integrable, and the integral is computed from the uniform partitions

Example

Let g:[0,3]→R be g(x)=⌊x⌋, the integer part (Integer part: for every real x there is exactly one integer m with m≤x<m+1). Then g is nondecreasing (Nondecreasing, increasing (strictly increasing), nonincreasing, decreasing, monotone and strictly monotone real functions on a subset of R, with the dictionary to monotone sequences), hence Riemann integrable on [0,3] (A monotone function on [a,b] is Riemann integrable: for the uniform partition into N parts the upper minus lower sum telescopes to ∣f(b)−f(a)∣ (b−a)/ι(N)), and

∫03⌊x⌋ dx  =  3.

g is discontinuous at x=1, x=2 and x=3 and continuous elsewhere on [0,3] (Discontinuity of f 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 3 is 0⋅1+1⋅1+2⋅1, the three constant pieces weighted by their lengths.

The computation below uses the uniform partition into N=3M parts, M≥1, for which the lower sum is exactly 3 at every M and the upper sum is 3+3/M. So the lower sums do not merely approach the integral, they attain it.

Facts & Assumptions

Given: g:[0,3]→R with g(x)=⌊x⌋; a natural M≥1; N:=3M; and the uniform partition UN=(N,t) of [0,3] with ti=3ι(i)/ι(N)=ι(i)/ι(M) for i≤N and lengths Δi=3/ι(N)=1/ι(M).

[L1]

For every real x there is exactly one integer ⌊x⌋ with ⌊x⌋≤x<⌊x⌋+1 (Integer part: for every real x there is exactly one integer m with m≤x<m+1).

[L2]

g is nondecreasing: for x≤y, ⌊x⌋≤x≤y<⌊y⌋+1, and ⌊x⌋, ⌊y⌋ are integers, so ⌊x⌋≤⌊y⌋, no integer lying strictly between ⌊y⌋ and ⌊y⌋+1 (Integer part: for every real x there is exactly one integer m with m≤x<m+1, Nondecreasing, increasing (strictly increasing), nonincreasing, decreasing, monotone and strictly monotone real functions on a subset of R, with the dictionary to monotone sequences).

[L6]

Finite sums: splitting a sum over i<3M into the three blocks i<M, M≤i<2M and 2M≤i<3M; scaling; and ∑i<Mc=ι(M)c (Finite sums and finite products, by recursion, Laws of finite sums and finite products).

[L7]

For i∈N: ⌊ι(i)/ι(M)⌋=0 when i<M, =1 when M≤i<2M, and =2 when 2M≤i<3M; and ⌊ι(j)/ι(M)⌋=3 for j=3M. Each case is [L1] applied to the displayed inequalities 0≤ι(i)/ι(M)<1, 1≤ι(i)/ι(M)<2, 2≤ι(i)/ι(M)<3 and ι(3M)/ι(M)=3, which follow from ι being strictly increasing and additive (Canonical naturals are positive and strictly increasing, The canonical natural ι(n)=n⋅1F 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.

[L9]

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

technique · direct
1.1

g is nondecreasing by [L2], and 0<3, so g is Riemann integrable on [0,3] by [L3]; write J:=∫03g.

givenL2L3
1.2

By [L5] and [L7], for i<N=3M the lower value is mi=g(ti)=⌊ι(i)/ι(M)⌋, which is 0 for i<M, 1 for M≤i<2M and 2 for 2M≤i<3M; and the upper value is Mi=g(ti+1)=⌊ι(i+1)/ι(M)⌋, which is 0 for i+1<M, 1 for M≤i+1<2M, 2 for 2M≤i+1<3M and 3 for i+1=3M.

givenL1L4L5L7
2.1

By [L6] and step 1.2, L(g,UN)=1ι(M)(∑i<M0+∑M≤i<2M1+∑2M≤i<3M2)=1ι(M)(0+ι(M)+2ι(M))=3.

step 1.2L4L5L6L9
2.2

By [L6] and step 1.2, the upper values run over j=i+1 from 1 to 3M, giving ι(M)−1 indices with value 0, then ι(M) with value 1, then ι(M) with value 2, and the single index j=3M with value 3; hence U(g,UN)=1ι(M)(0+ι(M)+2ι(M)+3)=3+3ι(M).

step 1.2L4L5L6L9
3.1

By [L5], 3=L(g,UN)≤∫03‾g≤J≤∫03‾g≤U(g,UN)=3+3/ι(M) for every natural M≥1.

step 1.1step 2.1step 2.2L5
4.1

Hence 0≤J−3≤3/ι(M) for every M≥1. If J>3 then (J−3)⋅3−1>0 and [L8] supplies M≥1 with 1/ι(M)<(J−3)⋅3−1, that is 3/ι(M)<J−3, contradicting step 3.1. So J=3, that is ∫03⌊x⌋ dx=3.

step 3.1L8L9∎

Remarks

ExampleConstruction: Literature-sourcedVerification: AI-adaptedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-28Open item page →

The indicator of the Cantor set is discontinuous exactly on the Cantor set, which is null, so it is Riemann integrable with integral 0 even though it is discontinuous at uncountably many points

Example

Let C⊆[0,1] be the Cantor middle-thirds set (The Cantor middle-thirds set as the intersection of the sets Cn obtained by removing open middle thirds) and let 1C:[0,1]→R be its indicator, 1C(x)=1 for x∈C and 1C(x)=0 otherwise. Then:

  1. 1C is discontinuous at every point of C and continuous at every point of [0,1]∖C, so its set of discontinuities is exactly C (Continuity of f:A→R at a point of A and on A: the ε-δ condition, its agreement with lim⁡x→cf(x)=f(c) at a limit point, and continuity at an isolated point, Discontinuity of f 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);
  2. 1C is Riemann integrable on [0,1], because C 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 f on [a,b] is Riemann integrable if and only if its set of discontinuities has measure zero);
  3. ∫011C=0.

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 [a,b] whose set of discontinuities is at most countable is Riemann integrable applies; what makes the function integrable is that C 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 f on [a,b] 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 C⊆[0,1] and its indicator 1C:[0,1]→R.

[L3]

A bounded f on [a,b] with a<b 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 f on [a,b] is Riemann integrable if and only if its set of discontinuities has measure zero, Lower bound, bounded below, bounded set).

[L6]

A set with a least element has it as its infimum; the supremum of {0} is 0 (Greatest lower bound (infimum), Maximum and minimum of a set, Complete ordered field (least-upper-bound property)).

[L8]

Ordered-field arithmetic: for 0≤x≤1 and a real ρ>0 the reals u:=max⁡{0,x−ρ} and v:=min⁡{1,x+ρ} satisfy u<v and (u,v)⊆Nρ(x)∩[0,1] (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 R, Intervals of R: 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

technique · direct
1.1

1C takes only the values 0 and 1, so it is bounded on [0,1] and its Darboux sums and integrals are defined by [L5].

givenL5
1.2

Discontinuity on C. Let x∈C, so 1C(x)=1, and let a real ρ>0 be given. By [L8] the set (u,v)⊆Nρ(x)∩[0,1] is a nonempty open interval, so by [L1] it contains a point y∉C; then y∈[0,1], ∣y−x∣<ρ and ∣1C(x)−1C(y)∣=1. So the continuity condition fails at x for ε:=1.

givenL1L8
1.3

Continuity off C. Let x∈[0,1] with x∉C. Since C is closed, [L2] gives a real ρ>0 with Nρ(x)∩C=∅, so 1C vanishes on Nρ(x)∩[0,1] and ∣1C(y)−1C(x)∣=0<ε there for every ε>0.

givenL1L2
2.1

So the set of discontinuities of 1C in [0,1] is exactly C, which has measure zero by [L1]; by [L3] and 0<1, 1C is Riemann integrable on [0,1].

step 1.1step 1.2step 1.3L1L3
2.2

Every lower sum is 0. Let P=(n,t) be a partition of [0,1] and i<n. By [L4] the interval (ti,ti+1) is a nonempty open subset of [0,1], so by [L1] it contains a point outside C, at which 1C takes the value 0; since 1C≥0, the value 0 is the least element of 1C[Ii] and mi=0 by [L6]. Hence L(1C,P)=0 by [L5] and [L7].

step 1.1L1L4L5L6L7
3.1

The set of lower sums is {0}, so ∫01‾1C=0 by [L6]; and 1C is integrable by step 2.1, so ∫011C=0 by [L5].

step 2.1step 2.2L5L6∎

Remarks

ExampleConstruction: Literature-sourcedVerification: AI-adaptedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-28Open item page →

Thomae's function is Riemann integrable on [0,1] with integral 0: it is continuous at every irrational, so its discontinuity set is countable, and every lower Darboux sum is 0

Example

Let t:[0,1]→R be Thomae's function restricted to [0,1]: at a rational x with least denominator q(x)≥1 it takes the value 1/ι(q(x)), and at an irrational x the value 0 (The Dirichlet function 1Q, and Thomae's function t with t(x)=1/q at a rational x=p/q in lowest terms with q≥1 and t(x)=0 at every irrational x, The canonical natural ι(n)=n⋅1F of a field). Then t is Riemann integrable on [0,1] and

∫01t  =  0.

Two ingredients, and they pull in opposite directions. t is continuous at every irrational and discontinuous at every rational (The Dirichlet function is continuous at no point of R, 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 c equals t(c)), so its discontinuity set is Q∩[0,1], which is infinite and dense — and countable, which is what A bounded function on [a,b] 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 0 because every subinterval contains an irrational (Both Q and R∖Q are dense in R, and every nonempty open subset of R is uncountable).

Every upper sum, by contrast, is strictly positive, since every subinterval contains a rational; the upper integral is nevertheless 0, an infimum of positive numbers.

Facts & Assumptions

Given: Thomae's function t:[0,1]→R as above.

[L1]

t(x)=1/ι(q(x)) with ι(q(x))≥1>0 at a rational x, and t(x)=0 at an irrational x; hence 0≤t(x)≤1 everywhere and t(x)>0 at every rational x (The Dirichlet function 1Q, and Thomae's function t with t(x)=1/q at a rational x=p/q in lowest terms with q≥1 and t(x)=0 at every irrational x, The canonical natural ι(n)=n⋅1F of a field, Canonical naturals are positive and strictly increasing).

[L3]

Q is countably infinite and every subset of an at most countable set is at most countable (Q is countably infinite, Every subset of an at most countable set is at most countable, Finite, countably infinite, countable, uncountable).

[L4]

A bounded function on [a,b] with a<b whose set of discontinuities is at most countable is Riemann integrable (A bounded function on [a,b] whose set of discontinuities is at most countable is Riemann integrable, Lower bound, bounded below, bounded set).

[L6]

For a partition P=(n,s) of [0,1]: n≥1, si<si+1, Δi>0, Ii=[si,si+1]⊆[0,1], and (si,si+1) is a nonempty open interval (Partition of [a,b] as a finite strictly increasing list a=t0<t1<⋯<tn=b, its subintervals and their lengths, its mesh, refinement, and the common refinement of two partitions, Intervals of R: the nine order-convex forms, nondegeneracy, and length).

[L8]

A set with a least element has it as its infimum; the supremum of {0} is 0 (Greatest lower bound (infimum), Maximum and minimum of a set, Complete ordered field (least-upper-bound property)).

[L10]

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

technique · direct
1.1

t is bounded on [0,1], with 0≤t(x)≤1 for every x, by [L1].

givenL1L10
1.2

By [L2], t is continuous at every irrational point of [0,1], so its set of discontinuities in [0,1] is contained in Q∩[0,1], which is at most countable by [L3]; a subset of it is then at most countable as well.

givenL2L3
2.1

By [L4] applied on [0,1], with 0<1, t is Riemann integrable on [0,1].

step 1.1step 1.2L4
2.2

Every lower sum is 0. Let P=(n,s) be a partition of [0,1] and i<n. By [L6] the interval (si,si+1) is nonempty and open, so by [L5] it contains an irrational y, and y∈Ii⊆[0,1], so t(y)=0 by [L1]. Since t≥0 by [L1], the value 0 is the least element of t[Ii] and mi=0 by [L8]. Hence L(t,P)=0 by [L7] and [L9].

step 1.1L1L5L6L7L8L9
3.1

The set of lower sums is therefore {0} and ∫01‾t=0 by [L8]; since t is integrable by step 2.1, ∫01t=0 by [L7].

step 2.1step 2.2L7L8∎

Remarks

CounterexampleConstruction: Literature-sourcedVerification: AI-adaptedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-28Open item page →

The Dirichlet function on [0,1] has lower Darboux integral 0 and upper Darboux integral 1, 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 [a,b] is Riemann integrable, The lower and upper Darboux integrals of a bounded f on [a,b] as sup⁡PL(f,P) and inf⁡PU(f,P), Darboux integrability as their equality, and the notation ∫abf).

The witness is the Dirichlet function 1Q restricted to [0,1] (The Dirichlet function 1Q, and Thomae's function t with t(x)=1/q at a rational x=p/q in lowest terms with q≥1 and t(x)=0 at every irrational x). It takes only the values 0 and 1, so it is bounded (Lower bound, bounded below, bounded set); every lower Darboux sum is 0 and every upper Darboux sum is 1; hence

∫01‾1Q  =  0  ≠  1  =  ∫01‾1Q,

and the function is not Riemann integrable. The two Darboux integrals are as far apart as the range of the function allows.

Facts & Assumptions

[A1]

The refuted claim: every bounded function on such an interval is Riemann integrable (FALSE: every bounded function on [a,b] is Riemann integrable).

[L2]

For a partition P=(n,t) of [0,1]: n≥1, ti<ti+1, Δi>0, ∑i<nΔi=1, Ii=[ti,ti+1], and (ti,ti+1) is a nonempty open interval contained in Ii (Partition of [a,b] as a finite strictly increasing list a=t0<t1<⋯<tn=b, its subintervals and their lengths, its mesh, refinement, and the common refinement of two partitions, Intervals of R: the nine order-convex forms, nondegeneracy, and length).

[L3]

mi=inf⁡g[Ii], Mi=sup⁡g[Ii], L(g,P)=∑i<nmiΔi, U(g,P)=∑i<nMiΔi; ∫01‾g is the supremum of the lower sums and ∫01‾g the infimum of the upper sums; g is integrable exactly when they agree (For bounded f on [a,b] and a partition P: the infimum mi and supremum Mi of f on the i-th subinterval, and the lower and upper Darboux sums L(f,P)=∑imiΔi and U(f,P)=∑iMiΔi, The lower and upper Darboux integrals of a bounded f on [a,b] as sup⁡PL(f,P) and inf⁡PU(f,P), Darboux integrability as their equality, and the notation ∫abf).

[L4]

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 {c} are both c (Greatest lower bound (infimum), Maximum and minimum of a set, Complete ordered field (least-upper-bound property)).

[L5]
[L6]

Ordered-field arithmetic: 0≠1, 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

technique · direct
1.1

g is bounded, with 0≤g(x)≤1 for every x∈[0,1], so its Darboux sums and integrals are defined by [L3].

givenL3
1.2

Let P=(n,t) be any partition of [0,1] and i<n. By [L2] the interval (ti,ti+1) is nonempty and open, so by [L1] it contains a rational and an irrational, both lying in Ii. Hence g[Ii]={0,1} and, by [L4], mi=0 and Mi=1.

givenL1L2L4
2.1

Therefore L(g,P)=∑i<n0⋅Δi=0 and U(g,P)=∑i<n1⋅Δi=∑i<nΔi=1, for every partition P of [0,1], by [L3], [L5] and [L2].

step 1.2L2L3L5
3.1

The set of lower sums is {0} and the set of upper sums is {1}, so ∫01‾g=0 and ∫01‾g=1 by [L4] and [L3]. Since 0≠1 by [L6], g is not Riemann integrable on [0,1].

step 2.1L3L4L6
4.1

So g is bounded on [0,1], an interval with 0<1, and is not Riemann integrable: [A1] is refuted.

step 1.1step 3.1A1∎

Remarks

CounterexampleConstruction: Literature-sourcedVerification: AI-adaptedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-28Open item page →

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 [a,b] is Riemann integrable whenever its set of discontinuities is nowhere dense (FALSE: a bounded function on [a,b] is Riemann integrable exactly when its set of discontinuities is nowhere dense, Nowhere dense, meager (first category), residual, and second category subsets of R).

The witness is the indicator g of the Smith-Volterra-Cantor set S⊆[0,1] (The Smith-Volterra-Cantor set: the same construction removing, at stage n≥1, an open middle interval of length 4−n from each of the 2n−1 remaining intervals). Its set of discontinuities is exactly S, 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 g is not Riemann integrable, with

∫01‾g  =  0,∫01‾g  ≥  12.

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 0 (The indicator of the Cantor set is discontinuous exactly on the Cantor set, which is null, so it is Riemann integrable with integral 0 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 f on [a,b] 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 f on [a,b] 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 S⊆[0,1] and its indicator g:[0,1]→R, with g(x)=1 for x∈S and g(x)=0 otherwise.

[A1]

The refuted claim: a bounded function on a closed bounded interval with distinct endpoints whose set of discontinuities is nowhere dense is Riemann integrable.

[L5]

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 ≥c is ≥c (Greatest lower bound (infimum), Maximum and minimum of a set, Complete ordered field (least-upper-bound property)).

[L6]

Finite sums: scaling, splitting, monotonicity in the terms, ∑i<n0=0; and a finite list of closed intervals extends to a sequence by degenerate intervals of length 0 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)).

[L7]

Ordered-field arithmetic: for 0≤x≤1 and a real ρ>0 the reals u:=max⁡{0,x−ρ} and v:=min⁡{1,x+ρ} satisfy u<v and (u,v)⊆Nρ(x)∩[0,1]; and 0<2−1<1 (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 R, Intervals of R: 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

technique · direct
1.1

g takes only the values 0 and 1, so it is bounded on [0,1] and its Darboux sums and integrals are defined by [L4].

givenL4
1.2

Discontinuity on S. Let x∈S, so g(x)=1, and let a real ρ>0 be given. By [L7] the interval (u,v)⊆Nρ(x)∩[0,1] is nonempty and open, so by [L1] it contains a point y∉S; then ∣y−x∣<ρ, y∈[0,1] and ∣g(x)−g(y)∣=1, so continuity fails at x for ε:=1 (Continuity of f:A→R at a point of A and on A: the ε-δ condition, its agreement with lim⁡x→cf(x)=f(c) at a limit point, and continuity at an isolated point, Discontinuity of f 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).

givenL1L7
1.3

Continuity off S. Let x∈[0,1] with x∉S. Since S is closed, [L2] gives a real ρ>0 with Nρ(x)∩S=∅, so g vanishes on Nρ(x)∩[0,1] and continuity holds at x.

givenL1L2
2.1

So the set of discontinuities of g in [0,1] is exactly S, which is nowhere dense by [L1].

step 1.2step 1.3L1
2.2

Every lower sum is 0. Let P=(n,t) be a partition of [0,1] and i<n. By [L3] the interval (ti,ti+1) is a nonempty open subset of [0,1], so by [L1] it contains a point outside S, at which g takes the value 0; as g≥0, that value is the least element of g[Ii] and mi=0 by [L5]. Hence L(g,P)=0 by [L4] and [L6].

step 1.1L1L3L4L5L6
2.3

Every upper sum is at least 2−1. With P as above put B:={ i<n:Ii∩S≠∅ }. For i∈B the set g[Ii] contains 1, so Mi=1 by [L5]; for i∉B one has g[Ii]={0} and Mi=0. Hence U(g,P) is the sum of the Δi with i∈B, by [L4] and [L6].

step 1.1L4L5L6
3.1

The intervals Ii with i∈B cover S, since S⊆[0,1]=⋃i<nIi by [L3]. Extending that finite list to a sequence by degenerate intervals [0,0] ([L6]) gives a cover of S all of whose partial total lengths are at most U(g,P), so [L1] gives U(g,P)≥2−1.

step 2.3L1L3L6
4.1

By [L5] and step 2.2, ∫01‾g=0; by [L5] and step 3.1, ∫01‾g≥2−1>0. The two differ, so g is not Riemann integrable by [L4].

step 2.2step 3.1L4L5L7
5.1

So g is bounded on [0,1], an interval with 0<1, its set of discontinuities is nowhere dense by step 2.1, and it is not Riemann integrable: [A1] is refuted.

step 2.1step 4.1A1∎

Remarks

ExampleConstruction: AI-adaptedVerification: AI-generatedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-28Open item page →

For every Fσ subset E of [0,1] of measure zero there is a bounded Riemann integrable function on [0,1] whose set of discontinuities is exactly E

Example

Let E⊆[0,1] be an Fσ subset of R (Fσ and Gδ subsets of R) 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 h:[0,1]→R, with values in [0,1], that is Riemann integrable on [0,1] and whose set of discontinuities is exactly E (Continuity of f:A→R at a point of A and on A: the ε-δ condition, its agreement with lim⁡x→cf(x)=f(c) at a limit point, and continuity at an isolated point, Discontinuity of f 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 F0,F1,F2,… with E=⋃n∈NFn and put

h(x)  :=  2−n(x)  for x∈E,h(x)  :=  0  for x∈[0,1]∖E,

where n(x):=min⁡{ n∈N:x∈Fn } is the least index of a closed set containing x (The well-ordering principle). Nothing is selected: n(x) is the least element of a set determined by x and the fixed sequence (Fn).

Why this is worth stating. Together with For f:A→R the set of points of A at which f is discontinuous is the intersection with A of an Fσ subset of R, and the set of points at which f is continuous is the intersection with A of a Gδ subset; for A=R the two sets are Fσ and Gδ outright, which shows that a discontinuity set is always the trace of an Fσ set, and with Lebesgue's criterion for Riemann integrability: a bounded f on [a,b] 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 Fσ is exactly what a discontinuity set of a Riemann integrable function on [0,1] can be. The Cantor set and any at most countable subset of [0,1] 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 f on [a,b] 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 Fσ set E⊆[0,1] of measure zero, and a sequence (Fn)n∈N of closed subsets of R with E=⋃nFn.

[L2]

Every nonempty subset of N has a least element (The well-ordering principle).

[L4]
[L5]

Powers: 2−n>0 for every n∈N, 20=1, 2−n≤1, and m<n implies 2−n<2−m (Integer powers am, Monotonicity of x↦xn and of n↦an).

[L9]

Ordered-field arithmetic and the absolute value: the order is total and transitive; for 0≤x≤1 and a real ρ>0 the reals u:=max⁡{0,x−ρ} and v:=min⁡{1,x+ρ} satisfy u<v and (u,v)⊆Nρ(x)∩[0,1]; 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 R: the nine order-convex forms, nondegeneracy, and length, The ε-neighbourhood and the punctured ε-neighbourhood of a point of R, Interior, closure, boundary and exterior of a subset of R, 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

technique · constructive
1.1

Fix the sequence (Fn) of [L1] and define n(x):=min⁡{ n∈N:x∈Fn } for x∈E, which exists by [L2] since the set is a nonempty subset of N; define h:[0,1]→R by h(x):=2−n(x) for x∈E and h(x):=0 otherwise.

givenL1L2L5construct
2.1

h is bounded with values in [0,1]: 0<2−n(x)≤20=1 for x∈E by [L5], and h=0 off E.

step 1.1L5
2.2

h is discontinuous at every point of E. Let x∈E, so h(x)=2−n(x)>0 by [L5], and let a real ρ>0 be given. By [L9] the interval (u,v)⊆Nρ(x)∩[0,1] is nonempty with u<v, hence is a nondegenerate interval, so by [L4] it is not contained in E: there is y∈(u,v) with y∉E, and then h(y)=0 and ∣h(x)−h(y)∣=2−n(x). So the continuity condition fails at x for ε:=2−n(x).

step 1.1L4L5L9
2.3

h is continuous at every point of [0,1]∖E. Let x∈[0,1] with x∉E, so h(x)=0, and let a real ε>0 be given. By [L7] fix a natural N≥1 with 2−N≤1/ι(N)<ε. For each n≤N one has x∉Fn, since Fn⊆E, so [L3] supplies a real ρn>0 with Nρn(x)∩Fn=∅; put ρ:=min⁡{ρ0,…,ρN}>0, which exists by [L6].

step 1.1L3L6L7L9choose
3.1

For y∈[0,1] with ∣y−x∣<ρ: if y∉E then h(y)=0; and if y∈E then y∉Fn for every n≤N by step 2.3, so n(y)>N and h(y)=2−n(y)<2−N<ε by [L5] and step 2.3. In both cases ∣h(y)−h(x)∣=h(y)<ε, so h is continuous at x.

step 1.1step 2.3L5L9
4.1

By steps 2.2 and 3.1 the set of discontinuities of h in [0,1] is exactly E, which has measure zero by hypothesis; h is bounded by step 2.1 and 0<1, so [L8] gives that h is Riemann integrable on [0,1]. The function h constructed in step 1.1 therefore has all the stated properties.

step 2.1step 2.2step 3.1givenL8discharge-construct∎

Remarks

CounterexampleConstruction: AI-adaptedVerification: AI-generatedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-28Open item page →

For the Dirichlet function every uniform partition with rational tags gives Riemann sum 1, 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 f on [a,b] is Riemann integrable with integral I as soon as there is one sequence (PN,ξN) of tagged partitions with ∥PN∥→0 and S(f,PN,ξN)→I (Tagged partitions of [a,b], with a tag ξi in each subinterval, and the Riemann sum S(f,P,ξ)=∑if(ξi) Δi, The lower and upper Darboux integrals of a bounded f on [a,b] as sup⁡PL(f,P) and inf⁡PU(f,P), Darboux integrability as their equality, and the notation ∫abf).

The witness is again the Dirichlet function on [0,1] (The Dirichlet function 1Q, and Thomae's function t with t(x)=1/q at a rational x=p/q in lowest terms with q≥1 and t(x)=0 at every irrational x). Take PN:=UN, the uniform partition into N≥1 parts, and tag each subinterval by its left endpoint ξiN:=ι(i)/ι(N), a rational. Then

∥UN∥=1ι(N)⟶0,S(1Q,UN,ξN)=1  for every N≥1,

so the Riemann sums converge, to 1; and yet 1Q is not Riemann integrable on [0,1] (The Dirichlet function on [0,1] has lower Darboux integral 0 and upper Darboux integral 1, so it is bounded and not Riemann integrable).

What this shows about The Darboux and Riemann definitions agree: a bounded f on [a,b] is Darboux integrable with integral I if and only if for every real ε>0 there is a real δ>0 such that ∣S(f,P,ξ)−I∣<ε 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 0, so for each N the two taggings of UN give the two values 1 and 0; no real number is within 1/2 of both.

Facts & Assumptions

Given: g:[0,1]→R with g(x)=1 for rational x and g(x)=0 for irrational x; for N≥1 the uniform partition UN=(N,t) of [0,1] with ti=ι(i)/ι(N) and Δi=1/ι(N); and the tagging ξN with ξiN:=ti for i<N.

[A1]

The refuted claim: if some sequence of tagged partitions of [0,1] has meshes tending to 0 and Riemann sums tending to I, then g is Riemann integrable with integral I.

[L1]

For UN: ti=ι(i)/ι(N)∈[0,1], ti<ti+1, Δi=1/ι(N), ∑i<NΔi=1, and ∥UN∥=1/ι(N) (Partition of [a,b] as a finite strictly increasing list a=t0<t1<⋯<tn=b, its subintervals and their lengths, its mesh, refinement, and the common refinement of two partitions, Intervals of R: the nine order-convex forms, nondegeneracy, and length).

[L2]

ξiN:=ti∈Ii defines a tagging of UN, and S(g,UN,ξN)=∑i<Ng(ξiN)Δi (Tagged partitions of [a,b], with a tag ξi in each subinterval, and the Riemann sum S(f,P,ξ)=∑if(ξi) Δi).

[L4]

Finite sums: scaling and ∑i<N1⋅Δi=∑i<NΔi (Finite sums and finite products, by recursion, Laws of finite sums and finite products).

[L5]

A constant sequence converges to its value; and for every real η>0 there is N≥1 with 1/ι(N)<η, so the sequence N↦1/ι(N) converges to 0, 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 ε>0 in a complete ordered field there is a natural n≥1 with 1/n<ε, Every complete ordered field is Archimedean, Canonical naturals are positive and strictly increasing, Basic properties of the absolute value).

[L9]

Ordered-field arithmetic: the order is total and transitive, ι(N)>0 for N≥1, and 0≠1 (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

technique · direct
1.1

For each N≥1, (UN,ξN) is a tagged partition of [0,1] of mesh 1/ι(N), by [L1] and [L2].

givenL1L2
1.2

By [L3] every tag ξiN=ti is rational, so g(ξiN)=1; hence by [L2], [L4] and [L1], S(g,UN,ξN)=∑i<N1⋅Δi=∑i<NΔi=1.

givenL1L2L3L4
2.1

The sequence N↦∥UN∥=1/ι(N) converges to 0 and the sequence N↦S(g,UN,ξN) is constantly 1, hence converges to 1, by [L5].

step 1.1step 1.2L5
3.1

So the hypothesis of [A1] is met with I:=1; but g is not Riemann integrable on [0,1] by [L6]. [A1] is therefore refuted.

step 2.1A1L6
4.1

Moreover, for each N≥1 the same partition carries a tagging whose Riemann sum is 0: by [L7] each open interval (ti,ti+1) contains an irrational, and choosing one in each of the N subintervals is a finite selection, giving a tagging ζ of UN with g(ζi)=0 for every i<N and hence S(g,UN,ζ)=0 by [L2] and [L4]. So for every real δ>0 there are tagged partitions of mesh below δ with Riemann sum 1 and others with Riemann sum 0, and by [L9] no single real I can satisfy the condition of [L8] at ε:=2−1.

step 1.1step 1.2L2L4L5L7L8L9∎

Remarks

CounterexampleConstruction: Literature-sourcedVerification: AI-adaptedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-28Open item page →

Thomae's function is nonnegative, Riemann integrable on [0,1] with integral 0, 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 [a,b] with ∫abf=0 vanishes identically (FALSE: a nonnegative Riemann integrable function on [a,b] with ∫abf=0 is identically zero, The lower and upper Darboux integrals of a bounded f on [a,b] as sup⁡PL(f,P) and inf⁡PU(f,P), Darboux integrability as their equality, and the notation ∫abf).

The witness is Thomae's function t on [0,1] (The Dirichlet function 1Q, and Thomae's function t with t(x)=1/q at a rational x=p/q in lowest terms with q≥1 and t(x)=0 at every irrational x). It satisfies 0≤t≤1, it is Riemann integrable with ∫01t=0 (Thomae's function is Riemann integrable on [0,1] with integral 0: it is continuous at every irrational, so its discontinuity set is countable, and every lower Darboux sum is 0), and it is positive at every rational point of [0,1] — 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 f 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 t is positive only on a set that contains no interval (Both Q and R∖Q are dense in R, and every nonempty open subset of R 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 t:[0,1]→R, with t(x)=1/ι(q(x)) at a rational x of least denominator q(x)≥1 and t(x)=0 at an irrational x (The Dirichlet function 1Q, and Thomae's function t with t(x)=1/q at a rational x=p/q in lowest terms with q≥1 and t(x)=0 at every irrational x, The canonical natural ι(n)=n⋅1F of a field).

[A1]

The refuted claim: a nonnegative Riemann integrable function on a closed bounded interval with distinct endpoints whose integral is 0 vanishes identically.

[L4]

Q is dense in R, so every nonempty open interval contains a rational (Both Q and R∖Q are dense in R, and every nonempty open subset of R is uncountable).

[L5]

Ordered-field arithmetic: 0<2−1<1, so 2−1 lies in [0,1] 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 R: 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

technique · direct
1.1

t is nonnegative on [0,1] by [L1], and it is Riemann integrable there with ∫01t=0 by [L2]; the interval [0,1] has 0<1 by [L5].

givenL1L2L5
1.2

t does not vanish identically: 2−1 is a rational point of [0,1] by [L5], so t(2−1)>0 by [L1].

givenL1L5
2.1

The hypotheses of [A1] hold for t on [0,1] and its conclusion fails, so [A1] is refuted.

step 1.1step 1.2A1
3.1

The failure is dense, not isolated: by [L4] every nonempty open subinterval of [0,1] contains a rational, at which t is positive by [L1]; so { x∈[0,1]:t(x)>0 } meets every subinterval of [0,1] with distinct endpoints. It is also exactly the set of discontinuities of t, by [L3] and [L1].

step 1.2L1L3L4∎

Remarks

Sources