Alphabeta Math
Session-authored (Fable 5 assisted)
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.

11 results · all verified · 11 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; all 11 also cleared it.

Monotone Functions, Discontinuities, and Continuity Sets: Examples and Counterexamples

1 · Prerequisites

2 · Summary

3 · Logical flowchart

4 · Definitions, theorems and proofs

None yet.

5 · Examples, counterexamples and false statements

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

Thomae's function computed: t(1/2)=1/2t(1/2) = 1/2, t(2/3)=1/3t(2/3) = 1/3, t(m)=1t(m) = 1 at every integer mm, t(x)=0t(x) = 0 at every irrational, and ωt(c)=t(c)\omega_t(c) = t(c) at every real cc

Example

Let tt be Thomae's function (The Dirichlet function 1Q1_{\mathbb{Q}}, and Thomae's function tt with t(x)=1/qt(x) = 1/q at a rational x=p/qx = p/q in lowest terms with q1q \ge 1 and t(x)=0t(x) = 0 at every irrational xx), so that t(x)=1/ι(q(x))t(x) = 1/\iota(q(x)) at a rational xx with least denominator q(x)q(x) and t(x)=0t(x) = 0 at an irrational xx. Then:

  1. t(0)=1t(0) = 1 and t(m)=1t(m) = 1 for every integer mm;
  2. t(1/2)=1/2t(1/2) = 1/2, and more generally t(1/ι(q))=1/ι(q)t(1/\iota(q)) = 1/\iota(q) for every natural q1q \ge 1;
  3. t(2/3)=1/3t(2/3) = 1/3;
  4. t(x)=0t(x) = 0 at every irrational xx;
  5. ωt(c)=t(c)\omega_{t}(c) = t(c) at every real cc (The oscillation ωf(S)=sup{f(x)f(y):x,yS}\omega_f(S) = \sup\{\,|f(x) - f(y)| : x, y \in S\,\} of ff on a set and the oscillation ωf(c)=infδ>0ωf(ANδ(c))\omega_f(c) = \inf_{\delta > 0} \omega_f(A \cap N_\delta(c)) at a point, both taken in the extended reals), so ωt\omega_{t} is 11 at every integer, 1/21/2 at every half-integer that is not an integer, and 00 at every irrational.

Claim 5 is claim 2 of The Dirichlet function is continuous at no point of R\mathbb{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 cc equals t(c)t(c) evaluated at the points computed here; nothing new is proved about the oscillation, and the point of the example is to see the numbers.

Facts & Assumptions

Given: Thomae's function tt, with q(x)=min{qN:q1 and ι(q)xZ}q(x) = \min\{\, q \in \mathbb{N} : q \ge 1 \text{ and } \iota(q)x \in \mathbb{Z} \,\} for rational xx; NZQR\mathbb{N} \subseteq \mathbb{Z} \subseteq \mathbb{Q} \subseteq \mathbb{R} are the canonical copies and ι(q)\iota(q) is the canonical natural (The rationals embed densely in the reals, The canonical natural ι(n)=n1F\iota(n) = n \cdot 1_F of a field).

[A1]
[L2]

No integer lies strictly between mm and m+1m+1; equivalently a real of the form k/ι(q)k/\iota(q) with 0<k<q0 < k < q naturals is not an integer, lying strictly between 00 and 11 (Integer part: for every real xx there is exactly one integer mm with mx<m+1m \le x < m + 1, Canonical naturals are positive and strictly increasing).

Verification

technique · direct
1.1

Claim 1: for an integer mm one has ι(1)m=mZ\iota(1)\,m = m \in \mathbb{Z}, so 1Q(m)1 \in Q(m) and q(m)=1q(m) = 1, the least element of a set of naturals 1\ge 1 containing 11; hence t(m)=1/ι(1)=1t(m) = 1/\iota(1) = 1. The case m=0m = 0 is included.

A1L2
1.2

Claim 2: let q1q \ge 1 be a natural and put x:=1/ι(q)x := 1/\iota(q). Then ι(q)x=1Z\iota(q)x = 1 \in \mathbb{Z}, so qQ(x)q \in Q(x) and q(x)qq(x) \le q. Conversely, if 1kq1 \le k \le q is a natural with ι(k)x=ι(k)/ι(q)Z\iota(k)x = \iota(k)/\iota(q) \in \mathbb{Z}, then k<qk < q would put ι(k)/ι(q)\iota(k)/\iota(q) strictly between 00 and 11, which no integer is; so k=qk = q. Hence q(x)=qq(x) = q and t(1/ι(q))=1/ι(q)t(1/\iota(q)) = 1/\iota(q). Taking q=2q = 2 gives t(1/2)=1/2t(1/2) = 1/2.

A1L2
1.3

Claim 3: put x:=2/3x := 2/3. Then ι(3)x=2Z\iota(3)x = 2 \in \mathbb{Z}, so q(x)3q(x) \le 3. Also ι(1)x=2/3\iota(1)x = 2/3 lies strictly between 00 and 11 and so is not an integer, and ι(2)x=4/3\iota(2)x = 4/3 lies strictly between 11 and 22 and so is not an integer. Hence q(x)=3q(x) = 3 and t(2/3)=1/3t(2/3) = 1/3.

A1L2
1.4

Claim 4 is the second clause of the definition of tt, and irrational reals exist.

A1L3
2.1

Claim 5: ωt(c)=t(c)\omega_{t}(c) = t(c) at every real cc. At an integer mm this is 11 by step 1.1; at a real of the form m+1/2m + 1/2 with mm an integer, the least denominator is 22, by the same computation as in step 1.2 applied to ι(2)(m+1/2)=2m+1Z\iota(2)(m + 1/2) = 2m + 1 \in \mathbb{Z} together with ι(1)(m+1/2)=m+1/2\iota(1)(m + 1/2) = m + 1/2 lying strictly between mm and m+1m+1, so the value is 1/21/2; and at an irrational it is 00.

step 1.1step 1.2step 1.4A1L1L2
3.1

In particular tt is continuous at every irrational, where ωt=0\omega_{t} = 0, and discontinuous at every rational, where ωt=t>0\omega_{t} = t > 0; the numbers above are the sizes of those failures.

step 2.1A1L1

Remarks

  • The least denominator is what the values record. tt is large exactly at the rationals with small denominators, and those are sparse: every point with least denominator qq is a multiple of 1/ι(q)1/\iota(q), and consecutive multiples of 1/ι(q)1/\iota(q) are 1/ι(q)1/\iota(q) apart. The graph is the familiar picture of tall spikes at the integers, half as tall at the half-integers, and so on down.

  • Every value 1/ι(q)1/\iota(q) is attained, by step 1.2, so the range of tt is exactly {0}{1/ι(q):qN, q1}\{0\} \cup \{\, 1/\iota(q) : q \in \mathbb{N},\ q \ge 1 \,\}; the value 00 is attained at every irrational.

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

A bounded nondecreasing f:RRf : \mathbb{R} \to \mathbb{R} whose set of discontinuities is exactly Q\mathbb{Q}, obtained from the prescribed-jump construction applied to one fixed enumeration of the rationals

Example

Write Q\mathbb{Q} for the canonical copy of the rationals inside R\mathbb{R} (The rationals embed densely in the reals). There is a function f:RRf : \mathbb{R} \to \mathbb{R} with all of the following properties:

  1. ff is nondecreasing (Nondecreasing, increasing (strictly increasing), nonincreasing, decreasing, monotone and strictly monotone real functions on a subset of R\mathbb{R}, with the dictionary to monotone sequences) and 0f(x)10 \le f(x) \le 1 for every real xx;
  2. ff is discontinuous at every rational and continuous at every irrational, so its discontinuity set is exactly Q\mathbb{Q};
  3. every discontinuity of ff is a jump (Discontinuity of ff 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).

Explicitly, fixing a bijection e:NQe : \mathbb{N} \to \mathbb{Q} (Q\mathbb{Q} is countably infinite), one may take

f(x)  =  k=0ak(x),ak(x)={1/2k+1if e(k)<x,0otherwise,f(x) \;=\; \sum_{k=0}^{\infty} a_{k}(x), \qquad a_{k}(x) = \begin{cases} 1/2^{\,k+1} & \text{if } e(k) < x,\\ 0 & \text{otherwise,}\end{cases}

which is the construction of Converse to Froda: for every at most countable ERE \subseteq \mathbb{R} there is a bounded nondecreasing f:RRf : \mathbb{R} \to \mathbb{R} whose set of discontinuities is exactly EE, every one of them a jump applied to E:=QE := \mathbb{Q} (Series, partial sums, convergence and the sum, divergence, and the tail series, For r<1|r| < 1, k0rk=1/(1r)\sum_{k \ge 0} r^k = 1/(1-r), and for r1|r| \ge 1 the series diverges).

This is the extreme case allowed by Froda's theorem. Froda's theorem: the set of discontinuities of a monotone function on an interval is at most countable, the injection into N\mathbb{N} being built from one fixed enumeration of the rationals by least index, so no choice principle is used says that a monotone function on an interval has at most countably many discontinuities; Q\mathbb{Q} is countable and dense, so the bound is attained by a set that meets every interval. A monotone function can therefore be discontinuous on a dense set, and it is nevertheless continuous on a set whose complement is countable.

Facts & Assumptions

Given: The canonical copy QR\mathbb{Q} \subseteq \mathbb{R} of the rationals.

[L1]

QN\mathbb{Q} \approx \mathbb{N}, and composing a bijection NQ\mathbb{N} \to \mathbb{Q} with the embedding qq^q \mapsto \hat q gives a bijection e:NQe : \mathbb{N} \to \mathbb{Q} onto the canonical copy; in particular that copy is nonempty and at most countable (Q\mathbb{Q} is countably infinite, The rationals embed densely in the reals, Finite, countably infinite, countable, uncountable, Equinumerous sets, ABA \approx B and ABA \preceq B, A nonempty set is at most countable iff it is a surjective image of N\mathbb{N}).

Verification

technique · direct
1.1

Q\mathbb{Q}, as a subset of R\mathbb{R}, is at most countable.

L1
2.1

Applying the prescribed-discontinuity theorem with E:=QE := \mathbb{Q} produces a nondecreasing f:RRf : \mathbb{R} \to \mathbb{R} with values in [0,1][0,1], continuous at every irrational, discontinuous at every rational, and with every discontinuity a jump. This is exactly claims 1, 2 and 3.

step 1.1L2
3.1

The displayed formula is the function the theorem constructs, for the surjection ee of [L1]: the construction there sums the masses 1/2k+11/2^{\,k+1} over the indices kk with e(k)<xe(k) < x.

step 2.1L1L2
4.1

The example is consistent with Froda's theorem and is extremal for it: the discontinuity set Q\mathbb{Q} is at most countable, as Froda requires, and no larger discontinuity set is possible for any monotone function.

step 2.1L1L3

Remarks

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

Froda's countable bound is attained: a bounded nondecreasing function on R\mathbb{R} discontinuous exactly at the points 11/(k+1)1 - 1/(k+1) for kNk \in \mathbb{N}, an infinite discontinuity set inside a bounded interval

Example

Put

E  :=  {11ι(k+1)  :  kN}  =  {0, 12, 23, 34, }    [0,1)E \;:=\; \Bigl\{\, 1 - \frac{1}{\iota(k+1)} \;:\; k \in \mathbb{N} \,\Bigr\} \;=\; \Bigl\{\, 0,\ \tfrac12,\ \tfrac23,\ \tfrac34,\ \dots \Bigr\} \;\subseteq\; [0,1)

(The canonical natural ι(n)=n1F\iota(n) = n \cdot 1_F of a field, Intervals of R\mathbb{R}: the nine order-convex forms, nondegeneracy, and length). Then:

  1. EE is countably infinite (Finite, countably infinite, countable, uncountable);
  2. there is a nondecreasing f:RRf : \mathbb{R} \to \mathbb{R} with 0f10 \le f \le 1 whose set of discontinuities is exactly EE, every one of them a jump (Converse to Froda: for every at most countable ERE \subseteq \mathbb{R} there is a bounded nondecreasing f:RRf : \mathbb{R} \to \mathbb{R} whose set of discontinuities is exactly EE, every one of them a jump, Nondecreasing, increasing (strictly increasing), nonincreasing, decreasing, monotone and strictly monotone real functions on a subset of R\mathbb{R}, with the dictionary to monotone sequences, Discontinuity of ff 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);
  3. EE is contained in the bounded interval [0,1)[0,1), so a monotone function may have infinitely many discontinuities inside a bounded interval.

Indexing. N\mathbb{N} contains 00, so the points are 11/ι(k+1)1 - 1/\iota(k+1) for kNk \in \mathbb{N} and never 11/ι(k)1 - 1/\iota(k), which is undefined at k=0k = 0; the first point of EE is 11/ι(1)=01 - 1/\iota(1) = 0.

The point 11 is not in EE and ff is continuous there. EE has 11 as a limit point but does not contain it, and claim 2 asserts continuity at every point outside EE, so in particular at 11: a monotone function may be continuous at a limit point of its own discontinuity set.

Facts & Assumptions

Given: The set E={11/ι(k+1):kN}E = \{\, 1 - 1/\iota(k+1) : k \in \mathbb{N} \,\}.

[L1]

A nonempty set that is the image of a map defined on N\mathbb{N} is at most countable; a set in bijection with N\mathbb{N} is countably infinite (A nonempty set is at most countable iff it is a surjective image of N\mathbb{N}, Finite, countably infinite, countable, uncountable, Equinumerous sets, ABA \approx B and ABA \preceq B, Injection, surjection, bijection).

[L2]

For every at most countable ERE \subseteq \mathbb{R} there is a nondecreasing f:RRf : \mathbb{R} \to \mathbb{R} with 0f10 \le f \le 1, continuous at every point outside EE and discontinuous at every point of EE, with every discontinuity a jump (Converse to Froda: for every at most countable ERE \subseteq \mathbb{R} there is a bounded nondecreasing f:RRf : \mathbb{R} \to \mathbb{R} whose set of discontinuities is exactly EE, every one of them a jump).

Verification

technique · direct
1.1

The map s:NRs : \mathbb{N} \to \mathbb{R}, s(k):=11/ι(k+1)s(k) := 1 - 1/\iota(k+1), has image EE, and EE is nonempty since s(0)=0s(0) = 0; so EE is at most countable.

L1L4
1.2

ss is injective: j<kj < k gives ι(j+1)<ι(k+1)\iota(j+1) < \iota(k+1), hence 1/ι(k+1)<1/ι(j+1)1/\iota(k+1) < 1/\iota(j+1), hence s(j)<s(k)s(j) < s(k). Being injective with image EE, it is a bijection NE\mathbb{N} \to E, so EE is countably infinite.

L1L4
1.3

E[0,1)E \subseteq [0,1): ι(k+1)1>0\iota(k+1) \ge 1 > 0 gives 0<1/ι(k+1)10 < 1/\iota(k+1) \le 1, so 0s(k)<10 \le s(k) < 1.

L4
2.1

Claim 2: applying the prescribed-discontinuity theorem to the at most countable set EE gives a nondecreasing f:RRf : \mathbb{R} \to \mathbb{R} with values in [0,1][0,1], discontinuous exactly at the points of EE, every discontinuity a jump.

step 1.1L2
3.1

Claims 1 and 3 are steps 1.1, 1.2 and 1.3, and the whole is consistent with Froda's theorem, which permits any at most countable discontinuity set and no larger one.

step 1.1step 1.2step 1.3step 2.1L3

Remarks

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

The nn-th root as a continuous inverse: for a natural n1n \ge 1 the map xxnx \mapsto x^{n} is continuous and strictly increasing on [0,)[0,\infty) with image [0,)[0,\infty), so its inverse xx1/nx \mapsto x^{1/n} is continuous and strictly increasing

Example

Let nNn \in \mathbb{N} with n1n \ge 1 and put I:=[0,)I := [0,\infty) (Intervals of R\mathbb{R}: the nine order-convex forms, nondegeneracy, and length) and p:IRp : I \to \mathbb{R}, p(x):=xnp(x) := x^{n} (Integer powers ama^m). Then:

  1. pp is continuous on II (Continuity of f:ARf : A \to \mathbb{R} at a point of AA and on AA: the ε\varepsilon-δ\delta condition, its agreement with limxcf(x)=f(c)\lim_{x \to c} f(x) = f(c) at a limit point, and continuity at an isolated point);
  2. pp is increasing on II (Nondecreasing, increasing (strictly increasing), nonincreasing, decreasing, monotone and strictly monotone real functions on a subset of R\mathbb{R}, with the dictionary to monotone sequences), hence injective (Injection, surjection, bijection);
  3. p[I]=Ip[I] = I;
  4. consequently the inverse map g:IIg : I \to I of pp is continuous on II and increasing, and g(a)=a1/ng(a) = a^{1/n} is the unique nonnegative nn-th root of aa (Existence and uniqueness of nn-th roots: a unique a1/n0a^{1/n} \ge 0 with (a1/n)n=a(a^{1/n})^n = a).

So the nn-th root function is continuous, and it is obtained from Continuous inverse theorem: a continuous injective ff on an interval II is a bijection onto the order-convex set f[I]f[I], and the inverse g:f[I]Ig : f[I] \to I is continuous and strictly monotone in the same sense as ff rather than from a direct ε\varepsilon-δ\delta estimate.

Facts & Assumptions

Given: A natural n1n \ge 1, the order-convex set I=[0,)I = [0,\infty) and p:IRp : I \to \mathbb{R} with p(x)=xnp(x) = x^{n}.

[L2]

If 0a<b0 \le a < b and n1n \ge 1 then an<bna^{n} < b^{n}; and a0a \ge 0 gives an0a^{n} \ge 0 (Monotonicity of xxnx \mapsto x^n and of nann \mapsto a^n, claims 1 and 2).

[L3]

For every real a0a \ge 0 and every natural n1n \ge 1 there is a unique real s0s \ge 0 with sn=as^{n} = a, written a1/na^{1/n} (Existence and uniqueness of nn-th roots: a unique a1/n0a^{1/n} \ge 0 with (a1/n)n=a(a^{1/n})^n = a, Rational powers ara^r of a positive base).

Verification

technique · direct
1.1

Claim 1: pp is the restriction to II of a polynomial function, hence continuous on II.

L1
1.2

Claim 2: for 0x<y0 \le x < y one has xn<ynx^{n} < y^{n} since n1n \ge 1, so pp is increasing on II; an increasing function is injective.

L2
1.3

Claim 3: p[I]Ip[I] \subseteq I, since x0x \ge 0 gives xn0x^{n} \ge 0; and Ip[I]I \subseteq p[I], since for a0a \ge 0 the real s:=a1/n0s := a^{1/n} \ge 0 lies in II and satisfies p(s)=sn=ap(s) = s^{n} = a.

L2L3
2.1

Claim 4: II is order-convex and pp is continuous and injective on it, so by the continuous inverse theorem pp is a bijection onto the order-convex set p[I]p[I], which is II by step 1.3, and the inverse g:IIg : I \to I is continuous and strictly monotone in the same sense as pp, that is increasing.

step 1.1step 1.2step 1.3L4L5
3.1

The value g(a)g(a) is the unique s0s \ge 0 with sn=as^{n} = a, since gg inverts pp and p(s)=snp(s) = s^{n}; so g(a)=a1/ng(a) = a^{1/n} in the notation of the root theorem.

step 2.1L3

Remarks

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

The Cantor set has measure zero, yet the Cantor function maps it onto all of [0,1][0,1]: a null set can have image an interval of length 11

Example

Let CC be the Cantor set (The Cantor middle-thirds set as the intersection of the sets CnC_n obtained by removing open middle thirds) and let c:[0,1]Rc : [0,1] \to \mathbb{R} be the Cantor function (The Cantor function on [0,1][0,1], defined on the Cantor set through ternary digits and extended constantly across each removed interval). Then:

  1. CC has measure zero (Measure zero (a countable cover by intervals of total length below every ε\varepsilon) and content zero (a finite such cover));
  2. c[C]=[0,1]c[C] = [0,1]: the Cantor function maps the Cantor set onto the whole of [0,1][0,1] (Injection, surjection, bijection);
  3. [0,1][0,1] does not have measure zero (A sequence of intervals covering [a,b][a,b] has total length at least bab - a, so no interval of positive length has measure zero).

So a continuous function can carry a set of measure zero onto a set that is not of measure zero, and indeed onto an interval of length 11: being null is not preserved by continuous images.

Facts & Assumptions

Given: The Cantor set CC and the Cantor function c:[0,1]Rc : [0,1] \to \mathbb{R}.

[L2]

cc is surjective onto [0,1][0,1] as a function on [0,1][0,1], that is c[[0,1]]=[0,1]c[\,[0,1]\,] = [0,1]; and cc is constant on [u,v][u,v] whenever u<vu < v lie in CC with (u,v)C=(u,v) \cap C = \varnothing, while every point of [0,1]C[0,1] \setminus C lies in the open interval (u,v)(u,v) of such a pair (The Cantor function is well defined, satisfies c(x)c(y)c(x) \le c(y) whenever xyx \le y, is surjective onto [0,1][0,1], and is constant on every interval removed from the Cantor set, claims 3 and 4).

[L4]

cc is continuous on [0,1][0,1] (The Cantor function is continuous on [0,1][0,1]).

Verification

technique · direct
1.1

Claim 1 is claim 2 of the Cantor set theorem.

L1
1.2

Claim 3 is the nondegenerate-interval lemma applied to [0,1][0,1], whose endpoints 00 and 11 are distinct.

L3
1.3

c[C][0,1]c[C] \subseteq [0,1], since c[[0,1]]=[0,1]c[\,[0,1]\,] = [0,1] and C[0,1]C \subseteq [0,1].

L2
1.4

[0,1]c[C][0,1] \subseteq c[C]: let y[0,1]y \in [0,1] and take x[0,1]x \in [0,1] with c(x)=yc(x) = y. If xCx \in C we are done. Otherwise x[0,1]Cx \in [0,1] \setminus C, so xx lies in the open interval (u,v)(u,v) of a pair u<vu < v of points of CC with (u,v)C=(u,v) \cap C = \varnothing, and cc is constant on [u,v][u,v]; hence y=c(x)=c(u)y = c(x) = c(u) with uCu \in C, so yc[C]y \in c[C].

L2
2.1

Claim 2 follows from steps 1.3 and 1.4: c[C]=[0,1]c[C] = [0,1]. With claims 1 and 3 this says that the null set CC has image the set [0,1][0,1], which is not null, under the continuous function cc.

step 1.1step 1.2step 1.3step 1.4L4

Remarks

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

The function equal to qq at a rational p/qp/q in lowest terms and to 00 at every irrational is finite at every point and unbounded on every nondegenerate interval

Example

Let q(x)q(x) be the least denominator of a rational xx (The Dirichlet function 1Q1_{\mathbb{Q}}, and Thomae's function tt with t(x)=1/qt(x) = 1/q at a rational x=p/qx = p/q in lowest terms with q1q \ge 1 and t(x)=0t(x) = 0 at every irrational xx) and define h:RRh : \mathbb{R} \to \mathbb{R} by

h(x):=ι(q(x))  for xQ,h(x):=0  for xQ,h(x) := \iota(q(x)) \ \text{ for } x \in \mathbb{Q}, \qquad h(x) := 0 \ \text{ for } x \notin \mathbb{Q},

where ι(q)\iota(q) is the canonical natural (The canonical natural ι(n)=n1F\iota(n) = n \cdot 1_F of a field) and Q\mathbb{Q} is the canonical copy of the rationals inside R\mathbb{R} (The rationals embed densely in the reals). Equivalently h(x)=1/t(x)h(x) = 1/t(x) at a rational xx, where tt is Thomae's function. Then:

  1. h(x)h(x) is a real number for every real xx: hh is finite at every point;
  2. hh is unbounded on every nondegenerate interval (Lower bound, bounded below, bounded set, Intervals of R\mathbb{R}: the nine order-convex forms, nondegeneracy, and length): for all reals a<ba < b and every real MM there is x(a,b)x \in (a,b) with h(x)>Mh(x) > M.

So a function may be finite at every single point and yet fail to be bounded on every interval, however short. In particular hh is bounded on no neighbourhood of any point.

Facts & Assumptions

Given: The function hh above, with q(x)=min{qN:q1 and ι(q)xZ}q(x) = \min\{\, q \in \mathbb{N} : q \ge 1 \text{ and } \iota(q)x \in \mathbb{Z} \,\} for xQx \in \mathbb{Q}.

[A1]

q(x)1q(x) \ge 1 is a natural with ι(q(x))xZ\iota(q(x))\,x \in \mathbb{Z}, and q(x)qq(x) \le q for every natural q1q \ge 1 with ι(q)xZ\iota(q)x \in \mathbb{Z} (The Dirichlet function 1Q1_{\mathbb{Q}}, and Thomae's function tt with t(x)=1/qt(x) = 1/q at a rational x=p/qx = p/q in lowest terms with q1q \ge 1 and t(x)=0t(x) = 0 at every irrational xx).

[L2]

A nonzero integer has absolute value at least 11, since no integer lies strictly between 00 and 11 (Integer part: for every real xx there is exactly one integer mm with mx<m+1m \le x < m + 1, Basic properties of the absolute value).

[L3]

For every real η>0\eta > 0 there is a natural n1n \ge 1 with 1/ι(n)<η1/\iota(n) < \eta, and for every real xx a natural n1n \ge 1 with x<ι(n)x < \iota(n); ι\iota is positive and strictly increasing on the naturals 1\ge 1 (For every ε>0\varepsilon > 0 in a complete ordered field there is a natural n1n \ge 1 with 1/n<ε1/n < \varepsilon, Every complete ordered field is Archimedean, Canonical naturals are positive and strictly increasing, The canonical natural ι(n)=n1F\iota(n) = n \cdot 1_F of a field).

[L4]

R\mathbb{R} is an ordered field (Complete ordered field (least-upper-bound property)).

Verification

technique · direct
1.1

Claim 1: for a rational xx the value h(x)=ι(q(x))h(x) = \iota(q(x)) is a canonical natural, hence a real number, and for an irrational xx the value is 00. Every real falls under exactly one clause, so hh is a function RR\mathbb{R} \to \mathbb{R}.

A1
1.2

Separation of rationals by their denominators. Let xyx \ne y be rationals. Then xy1/(ι(q(x))ι(q(y)))|x - y| \ge 1/(\iota(q(x))\,\iota(q(y))). Indeed, put q1:=q(x)q_{1} := q(x), q2:=q(y)q_{2} := q(y), p1:=ι(q1)xp_{1} := \iota(q_{1})x and p2:=ι(q2)yp_{2} := \iota(q_{2})y, all integers; then xy=(p1ι(q2)p2ι(q1))/(ι(q1)ι(q2))x - y = (p_{1}\iota(q_{2}) - p_{2}\iota(q_{1}))/(\iota(q_{1})\iota(q_{2})), the numerator is an integer, and it is nonzero because xyx \ne y; so its absolute value is at least 11.

A1L2L4
2.1

Claim 2: let a<ba < b be reals and let MM be real. Take a rational x1x_{1} with a<x1<ba < x_{1} < b and put q1:=q(x1)q_{1} := q(x_{1}). Take a natural N1N \ge 1 with M<ι(N)M < \iota(N), and put η:=min{1ι(q1)ι(N), bx1}>0.\eta := \min\Bigl\{\, \frac{1}{\iota(q_{1})\,\iota(N)},\ b - x_{1} \,\Bigr\} > 0 .

step 1.2L1L3L4
3.1

With x1x_{1}, q1q_{1}, NN and η\eta as in step 2.1, take a rational yy with x1<y<x1+ηx_{1} < y < x_{1} + \eta. Then a<x1<y<ba < x_{1} < y < b, so y(a,b)y \in (a,b); and yx1y \ne x_{1} with yx1<η1/(ι(q1)ι(N))|y - x_{1}| < \eta \le 1/(\iota(q_{1})\iota(N)).

step 2.1L1
4.1

Hence q(y)>Nq(y) > N. If instead q(y)Nq(y) \le N then ι(q(y))ι(N)\iota(q(y)) \le \iota(N), and step 1.2 would give yx11/(ι(q1)ι(q(y)))1/(ι(q1)ι(N))|y - x_{1}| \ge 1/(\iota(q_{1})\iota(q(y))) \ge 1/(\iota(q_{1})\iota(N)), contradicting step 3.1.

step 1.2step 3.1L3
5.1

Therefore h(y)=ι(q(y))>ι(N)>Mh(y) = \iota(q(y)) > \iota(N) > M, and y(a,b)y \in (a,b): the values of hh on (a,b)(a,b) exceed every real, so hh is unbounded on (a,b)(a,b), and hence on every set containing it.

step 2.1step 3.1step 4.1L3

Remarks

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

The Dirichlet function is the pointwise limit of a sequence of Baire class one functions and is itself not Baire class one, so the Baire hierarchy on [0,1][0,1] is already strict at the first level

Example

Let D:[0,1]RD : [0,1] \to \mathbb{R} be the restriction to [0,1][0,1] (Intervals of R\mathbb{R}: the nine order-convex forms, nondegeneracy, and length) of the Dirichlet function (The Dirichlet function 1Q1_{\mathbb{Q}}, and Thomae's function tt with t(x)=1/qt(x) = 1/q at a rational x=p/qx = p/q in lowest terms with q1q \ge 1 and t(x)=0t(x) = 0 at every irrational xx), so D(x)=1D(x) = 1 at a rational xx and D(x)=0D(x) = 0 at an irrational xx. Then:

  1. DD is the pointwise limit on [0,1][0,1] of a sequence (gm)mN(g_m)_{m \in \mathbb{N}} of functions each of which is of Baire class one on [0,1][0,1] (Pointwise convergence of a sequence of real functions, and the Baire class one functions as the pointwise limits of sequences of continuous functions), namely the indicators of the finite sets {s(0),,s(m)}\{s(0), \dots, s(m)\} for a fixed surjection s:NQ[0,1]s : \mathbb{N} \to \mathbb{Q} \cap [0,1];
  2. DD is not of Baire class one on [0,1][0,1].

So the class of pointwise limits of sequences of Baire class one functions is strictly larger than the class of Baire class one functions. That larger class is classically called Baire class two; no definition of it is given in this library and none is used, the statement above being phrased entirely in terms of pointwise limits (Pointwise convergence of a sequence of real functions, and the Baire class one functions as the pointwise limits of sequences of continuous functions).

Facts & Assumptions

Given: The Dirichlet function restricted to [0,1][0,1], written DD, and Q\mathbb{Q} for the canonical copy of the rationals inside R\mathbb{R} (The rationals embed densely in the reals).

[A1]

D(x)=1D(x) = 1 for xQ[0,1]x \in \mathbb{Q} \cap [0,1] and D(x)=0D(x) = 0 for x[0,1]Qx \in [0,1] \setminus \mathbb{Q} (The Dirichlet function 1Q1_{\mathbb{Q}}, and Thomae's function tt with t(x)=1/qt(x) = 1/q at a rational x=p/qx = p/q in lowest terms with q1q \ge 1 and t(x)=0t(x) = 0 at every irrational xx).

[L1]

Q[0,1]\mathbb{Q} \cap [0,1] is nonempty and at most countable, so it is the image of a surjection s:NQ[0,1]s : \mathbb{N} \to \mathbb{Q} \cap [0,1] (Q\mathbb{Q} is countably infinite, Finite, countably infinite, countable, uncountable, A nonempty set is at most countable iff it is a surjective image of N\mathbb{N}, The rationals embed densely in the reals).

[L5]

A nonempty finite set of reals presented as {a0,,am}\{a_{0}, \dots, a_{m}\} has a minimum, which is one of its members (Every nonempty finite set of reals has a maximum and a minimum, Maximum and minimum of a set).

[L7]

uwuv+vw|u - w| \le |u - v| + |v - w| and u0|u| \ge 0 (Basic properties of the absolute value); a sequence of reals converges to LL when it is eventually within every positive ε\varepsilon of LL (Limits and Cauchy sequences of reals, Sequences of reals: bounded, eventually, frequently, tails, subsequences).

Verification

technique · contradiction
1.1

Fix a surjection s:NQ[0,1]s : \mathbb{N} \to \mathbb{Q} \cap [0,1] and, for mNm \in \mathbb{N}, let gm:[0,1]Rg_{m} : [0,1] \to \mathbb{R} be the indicator of {s(0),,s(m)}\{s(0), \dots, s(m)\}: gm(x)=1g_{m}(x) = 1 if x=s(j)x = s(j) for some jmj \le m, and gm(x)=0g_{m}(x) = 0 otherwise.

L1construct
1.2

Suppose, for contradiction, that DD is of Baire class one on [0,1][0,1].

assume-contra
1.3

But DD is continuous at no point of [0,1][0,1]. Let c[0,1]c \in [0,1] and let δ>0\delta > 0 be real; put u:=max{0, cδ/2}u := \max\{0,\ c - \delta/2\} and v:=min{1, c+δ/2}v := \min\{1,\ c + \delta/2\}, so that u<vu < v and [u,v][0,1]Nδ(c)[u,v] \subseteq [0,1] \cap N_{\delta}(c), the strict inequality holding because c[0,1]c \in [0,1], 0<10 < 1 and δ>0\delta > 0. The nondegenerate interval (u,v)(u,v) contains a rational y1y_{1} and an irrational y2y_{2}, with D(y1)D(y2)=1D(y_{1}) - D(y_{2}) = 1, so one of D(y1)D(c)|D(y_{1}) - D(c)| and D(y2)D(c)|D(y_{2}) - D(c)| equals 11; hence no δ\delta witnesses continuity at cc for ε=1\varepsilon = 1. This is the argument of the Dirichlet claim, restricted to the domain [0,1][0,1].

A1L2L7L8
2.1

For mNm \in \mathbb{N} define ρm:[0,1]R\rho_{m} : [0,1] \to \mathbb{R} by ρm(x):=min{xs(j):jm}\rho_{m}(x) := \min\{\, |x - s(j)| : j \le m \,\}, the minimum of a nonempty finite set of reals. Then ρm(x)0\rho_{m}(x) \ge 0, and ρm(x)=0\rho_{m}(x) = 0 exactly when x=s(j)x = s(j) for some jmj \le m, the minimum being attained.

step 1.1L5L7
2.2

Then the set of points of [0,1][0,1] at which DD is continuous is dense in [0,1][0,1], since 0<10 < 1; in particular it is nonempty.

step 1.2L3
3.1

ρm\rho_{m} is 11-Lipschitz, hence continuous: choosing j0mj_{0} \le m with ρm(x)=xs(j0)\rho_{m}(x) = |x - s(j_{0})| gives ρm(y)ys(j0)yx+ρm(x)\rho_{m}(y) \le |y - s(j_{0})| \le |y - x| + \rho_{m}(x), and exchanging xx and yy gives ρm(x)ρm(y)xy|\rho_{m}(x) - \rho_{m}(y)| \le |x - y|; so δ:=ε\delta := \varepsilon witnesses continuity at every point.

step 2.1L4L5L7
4.1

For m,nNm, n \in \mathbb{N} define hm,n:[0,1]Rh_{m,n} : [0,1] \to \mathbb{R} by hm,n(x):=max{0, 1ι(n)ρm(x)}h_{m,n}(x) := \max\{\, 0,\ 1 - \iota(n)\,\rho_{m}(x) \,\}; the index runs over the whole of N\mathbb{N}, the term at n=0n = 0 being the constant 11 since ι(0)=0\iota(0) = 0, so that nhm,nn \mapsto h_{m,n} is a sequence in the sense of Sequences of reals: bounded, eventually, frequently, tails, subsequences. Each hm,nh_{m,n} is continuous on [0,1][0,1], being the pointwise maximum of the constant 00 and the continuous function x1ι(n)ρm(x)x \mapsto 1 - \iota(n)\rho_{m}(x).

step 3.1L4L6
5.1

For each fixed mm the sequence nhm,nn \mapsto h_{m,n} converges pointwise on [0,1][0,1] to gmg_{m}. If ρm(x)=0\rho_{m}(x) = 0 then hm,n(x)=max{0,1}=1=gm(x)h_{m,n}(x) = \max\{0,1\} = 1 = g_{m}(x) for every nn. If ρm(x)>0\rho_{m}(x) > 0 then, taking a natural n01n_{0} \ge 1 with ι(n0)>1/ρm(x)\iota(n_{0}) > 1/\rho_{m}(x), every nn0n \ge n_{0} has ι(n)ρm(x)ι(n0)ρm(x)>1\iota(n)\rho_{m}(x) \ge \iota(n_{0})\rho_{m}(x) > 1, so hm,n(x)=0=gm(x)h_{m,n}(x) = 0 = g_{m}(x).

step 2.1step 4.1L6L7
6.1

Hence each gmg_{m} is of Baire class one on [0,1][0,1], being the pointwise limit of a sequence of continuous functions.

step 4.1step 5.1
7.1

The sequence (gm)mN(g_{m})_{m \in \mathbb{N}} converges pointwise on [0,1][0,1] to DD. If xQ[0,1]x \in \mathbb{Q} \cap [0,1] then x=s(k)x = s(k) for some kk, since ss is onto, and gm(x)=1=D(x)g_{m}(x) = 1 = D(x) for every mkm \ge k. If x[0,1]x \in [0,1] is irrational then xs(j)x \ne s(j) for every jj, so gm(x)=0=D(x)g_{m}(x) = 0 = D(x) for every mm. Claim 1 is proved.

step 1.1step 6.1A1L1L7
8.1

Steps 2.2 and 1.3 contradict one another, so the assumption of step 1.2 is false and DD is not of Baire class one on [0,1][0,1]: claim 2 holds, and with step 7.1 the example is complete.

step 7.1step 1.2step 2.2step 1.3discharge-contradiction

Remarks

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

An additive f:RRf : \mathbb{R} \to \mathbb{R} that is not xcxx \mapsto cx: the coefficient of one fixed Hamel basis vector. It is unbounded above and below on every nondegenerate interval, its graph is dense in R2\mathbb{R}^{2}, and every nonempty level set is dense in R\mathbb{R}

Example

Assume the Axiom of Choice (The Axiom of Choice), which enters through Assuming the Axiom of Choice, R\mathbb{R} has a Hamel basis over Q\mathbb{Q}: there is BRB \subseteq \mathbb{R} such that every real is a finite Q\mathbb{Q}-linear combination of elements of BB in exactly one way, and each basis vector carries a well-defined Q\mathbb{Q}-linear coefficient map and hence through Zorn's lemma. Fix a Hamel basis BB of R\mathbb{R} over the canonical copy QR\mathbb{Q} \subseteq \mathbb{R} of the rationals (The rationals embed densely in the reals, A field is a vector space over itself, and over any subfield KFK \subseteq F every FF-vector space is a KK-vector space by restricting the scalars, Vector space over a field), fix bBb_{\star} \in B, and let

f  :=  Λb:RRf \;:=\; \Lambda_{b_{\star}} : \mathbb{R} \to \mathbb{R}

be the coefficient map of bb_{\star} (Assuming the Axiom of Choice, R\mathbb{R} has a Hamel basis over Q\mathbb{Q}: there is BRB \subseteq \mathbb{R} such that every real is a finite Q\mathbb{Q}-linear combination of elements of BB in exactly one way, and each basis vector carries a well-defined Q\mathbb{Q}-linear coefficient map, claim 4). Write W:=Wb=span(B{b})W := W_{b_{\star}} = \operatorname{span}(B \setminus \{b_{\star}\}) (Linear combination of a finite list, and the span span(S)\operatorname{span}(S) as the smallest linear subspace containing SS). Then:

  1. ff is additive (Cauchy's functional equation f(x+y)=f(x)+f(y)f(x+y) = f(x) + f(y), and the additive functions RR\mathbb{R} \to \mathbb{R}) and is not of the form xcxx \mapsto cx for any real cc (FALSE: every additive f:RRf : \mathbb{R} \to \mathbb{R} is of the form xcxx \mapsto cx for a single real cc);
  2. ff is bounded neither above nor below on any nondegenerate interval (Lower bound, bounded below, bounded set, Intervals of R\mathbb{R}: the nine order-convex forms, nondegeneracy, and length), is monotone on no nondegenerate interval (Nondecreasing, increasing (strictly increasing), nonincreasing, decreasing, monotone and strictly monotone real functions on a subset of R\mathbb{R}, with the dictionary to monotone sequences), is of constant sign on none, and is continuous at no point of R\mathbb{R} (Continuity of f:ARf : A \to \mathbb{R} at a point of AA and on AA: the ε\varepsilon-δ\delta condition, its agreement with limxcf(x)=f(c)\lim_{x \to c} f(x) = f(c) at a limit point, and continuity at an isolated point);
  3. the graph {(x,f(x)):xR}\{(x,f(x)) : x \in \mathbb{R}\} is dense in R2\mathbb{R}^{2} for the metric dd_\infty (Rn\mathbb{R}^n as the set of functions nRn \to \mathbb{R}, and d1d_1, d2d_2, dd_\infty are metrics on it, Interior, closure, boundary, limit point, isolated point and dense subset of a metric space);
  4. the values of ff are exactly the rationals, and for every rational rr the level set f1({r})={xR:f(x)=r}f^{-1}(\{r\}) = \{\, x \in \mathbb{R} : f(x) = r \,\} is dense in R\mathbb{R}; for an irrational vv the level set f1({v})f^{-1}(\{v\}) is empty.

Claim 2 is the contrapositive of Six regularity conditions each force an additive f:RRf : \mathbb{R} \to \mathbb{R} to be xf(1)xx \mapsto f(1)x: continuity at a single point, monotonicity on a nondegenerate interval, boundedness above on one, boundedness below on one, constancy of sign on one, and a graph that is not dense in R2\mathbb{R}^{2} applied to claim 1, clause by clause, and claim 3 is the contrapositive of its sixth clause.

Facts & Assumptions

Given: The Axiom of Choice; a Hamel basis BB of R\mathbb{R} over Q\mathbb{Q}; a fixed bBb_{\star} \in B; the coefficient map f=Λbf = \Lambda_{b_{\star}} and W=span(B{b})W = \operatorname{span}(B \setminus \{b_{\star}\}).

[A1]

The Axiom of Choice (The Axiom of Choice, Zorn's lemma).

[L1]

Assume the Axiom of Choice. Then a Hamel basis BB exists; for bBb_{\star} \in B the coefficient map Λb:RQ\Lambda_{b_{\star}} : \mathbb{R} \to \mathbb{Q} is well defined, additive, Q\mathbb{Q}-homogeneous, has range all of Q\mathbb{Q}, has {x:Λb(x)=0}=W\{x : \Lambda_{b_{\star}}(x) = 0\} = W, and W{0}W \ne \{0\} (Assuming the Axiom of Choice, R\mathbb{R} has a Hamel basis over Q\mathbb{Q}: there is BRB \subseteq \mathbb{R} such that every real is a finite Q\mathbb{Q}-linear combination of elements of BB in exactly one way, and each basis vector carries a well-defined Q\mathbb{Q}-linear coefficient map, claims 1, 4 and 5, Linear combination of a finite list, and the span span(S)\operatorname{span}(S) as the smallest linear subspace containing SS, Linear subspace of a vector space).

[L2]

There is an additive RR\mathbb{R} \to \mathbb{R} that is not of the form xcxx \mapsto cx, namely a coefficient map Λb\Lambda_{b_{\star}}: it takes only rational values while c0c \ne 0 would force irrational values (FALSE: every additive f:RRf : \mathbb{R} \to \mathbb{R} is of the form xcxx \mapsto cx for a single real cc, Both Q\mathbb{Q} and RQ\mathbb{R} \setminus \mathbb{Q} are dense in R\mathbb{R}, and every nonempty open subset of R\mathbb{R} is uncountable).

[L3]

If an additive g:RRg : \mathbb{R} \to \mathbb{R} is bounded above on a nondegenerate interval, or bounded below on one, or monotone on one, or of constant sign on one, or continuous at a single point, or has non-dense graph in R2\mathbb{R}^{2}, then g(x)=g(1)xg(x) = g(1)x for every real xx (Six regularity conditions each force an additive f:RRf : \mathbb{R} \to \mathbb{R} to be xf(1)xx \mapsto f(1)x: continuity at a single point, monotonicity on a nondegenerate interval, boundedness above on one, boundedness below on one, constancy of sign on one, and a graph that is not dense in R2\mathbb{R}^{2}).

[L5]

WW is a linear subspace of R\mathbb{R} over Q\mathbb{Q}, so wWw \in W and qQq \in \mathbb{Q} give qwWqw \in W, and WW is closed under addition (Linear subspace of a vector space, Linear combination of a finite list, and the span span(S)\operatorname{span}(S) as the smallest linear subspace containing SS).

[L6]

Strictly between any two distinct reals there lies a rational, and R\mathbb{R} is an ordered field (The rationals embed densely in the reals, Complete ordered field (least-upper-bound property)).

Verification

technique · constructive
1.1

Assume the Axiom of Choice, fix BB and bBb_{\star} \in B, and put f:=Λbf := \Lambda_{b_{\star}} and W:=WbW := W_{b_{\star}}.

A1L1construct
2.1

Claim 1: ff is additive, and it is not of the form xcxx \mapsto cx for any real cc.

step 1.1L1L2
2.2

Claim 4, the range: the range of ff is exactly Q\mathbb{Q}, so f1({v})=f^{-1}(\{v\}) = \varnothing for every irrational vv and f1({r})f^{-1}(\{r\}) \ne \varnothing for every rational rr.

step 1.1L1
2.3

WW is dense in R\mathbb{R}: by [L1] there is w0Ww_{0} \in W with w00w_{0} \ne 0, and qw0Wq w_{0} \in W for every rational qq; given reals u<vu < v, the two reals u/w0u/w_{0} and v/w0v/w_{0} are distinct, so a rational qq lies strictly between them, and then qw0q w_{0} lies strictly between uu and vv if w0>0w_{0} > 0, and strictly between vv and uu if w0<0w_{0} < 0. Either way WW meets (u,v)(u,v).

step 1.1L1L5L6
3.1

Claim 2, clause by clause. Were ff bounded above on a nondegenerate interval, or bounded below on one, or monotone on one, or of constant sign on one, or continuous at a single point, the regularity theorem would give f(x)=f(1)xf(x) = f(1)x for every real xx, contradicting step 2.1. So none of the five holds.

step 2.1L3
3.2

Claim 3: were the graph of ff not dense in R2\mathbb{R}^{2}, the sixth clause of the regularity theorem would give the same contradiction. So the graph is dense.

step 2.1L3L4
3.3

For a rational rr the level set f1({r})f^{-1}(\{r\}) is xr+Wx_{r} + W for any xrx_{r} with f(xr)=rf(x_{r}) = r: indeed f(y)=rf(y) = r holds exactly when f(yxr)=f(y)f(xr)=0f(y - x_{r}) = f(y) - f(x_{r}) = 0, that is exactly when yxrWy - x_{r} \in W. Here f(x)=f(x)f(-x) = -f(x) follows from additivity.

step 1.1step 2.2L1L7
4.1

Each such level set is dense in R\mathbb{R}: given reals u<vu < v, the interval (uxr, vxr)(u - x_{r},\ v - x_{r}) meets WW by step 2.3, say in ww, and then xr+wf1({r})x_{r} + w \in f^{-1}(\{r\}) lies in (u,v)(u,v). Claim 4 is proved, and with steps 2.1, 3.1 and 3.2 so are claims 1, 2 and 3.

step 2.1step 3.1step 3.2step 2.2step 2.3step 3.3discharge-construct

Remarks

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

A bounded function on R\mathbb{R} with no local maximum and no local minimum at any point, upper semicontinuous at no point and lower semicontinuous at no point: compose the Hamel coefficient with a strictly increasing injection of R\mathbb{R} into (0,1)(0,1)

Example

Assume the Axiom of Choice (The Axiom of Choice, Zorn's lemma), which enters through Assuming the Axiom of Choice, R\mathbb{R} has a Hamel basis over Q\mathbb{Q}: there is BRB \subseteq \mathbb{R} such that every real is a finite Q\mathbb{Q}-linear combination of elements of BB in exactly one way, and each basis vector carries a well-defined Q\mathbb{Q}-linear coefficient map. Let f=Λb:RRf = \Lambda_{b_{\star}} : \mathbb{R} \to \mathbb{R} be the Hamel coefficient map of An additive f:RRf : \mathbb{R} \to \mathbb{R} that is not xcxx \mapsto cx: the coefficient of one fixed Hamel basis vector. It is unbounded above and below on every nondegenerate interval, its graph is dense in R2\mathbb{R}^{2}, and every nonempty level set is dense in R\mathbb{R}, whose values are exactly the rationals and each of whose nonempty level sets is dense in R\mathbb{R}. Define

φ:RR,φ(u)  :=  12+u2(1+u),g:=φf.\varphi : \mathbb{R} \to \mathbb{R}, \qquad \varphi(u) \;:=\; \frac{1}{2} + \frac{u}{2\,(1 + |u|)}, \qquad g := \varphi \circ f .

Say that xx is a local maximum point of gg when there is a real δ>0\delta > 0 with g(y)g(x)g(y) \le g(x) for every yNδ(x)y \in N_\delta(x) (The ε\varepsilon-neighbourhood and the punctured ε\varepsilon-neighbourhood of a point of R\mathbb{R}), and a local minimum point when there is a real δ>0\delta > 0 with g(y)g(x)g(y) \ge g(x) for every yNδ(x)y \in N_\delta(x). Then:

  1. 0<g(x)<10 < g(x) < 1 for every real xx, so gg is bounded (Lower bound, bounded below, bounded set);
  2. gg has no local maximum point and no local minimum point;
  3. gg is upper semicontinuous at no point of R\mathbb{R} and lower semicontinuous at no point (Upper and lower semicontinuity of f:ARf : A \to \mathbb{R} at a point of AA and on AA); in particular it is continuous at no point (Continuity of f:ARf : A \to \mathbb{R} at a point of AA and on AA: the ε\varepsilon-δ\delta condition, its agreement with limxcf(x)=f(c)\lim_{x \to c} f(x) = f(c) at a limit point, and continuity at an isolated point).

Why φ\varphi and not a bijection onto Q(0,1)\mathbb{Q} \cap (0,1). All that is needed of φ\varphi is that it be strictly increasing, take values in (0,1)(0,1), and send rationals to rationals; the explicit formula above does all three and costs no countability argument.

Facts & Assumptions

Given: The Axiom of Choice; the Hamel coefficient map ff; the map φ\varphi above; and g=φfg = \varphi \circ f.

[A1]

The Axiom of Choice (The Axiom of Choice, Zorn's lemma).

[L2]

A set SRS \subseteq \mathbb{R} is dense exactly when SNδ(x)S \cap N_\delta(x) \ne \varnothing for every real xx and every real δ>0\delta > 0 (Both Q\mathbb{Q} and RQ\mathbb{R} \setminus \mathbb{Q} are dense in R\mathbb{R}, and every nonempty open subset of R\mathbb{R} is uncountable, The ε\varepsilon-neighbourhood and the punctured ε\varepsilon-neighbourhood of a point of R\mathbb{R}).

[L4]

R\mathbb{R} is an ordered field, and u0|u| \ge 0 with u=u|u| = u for u0u \ge 0 and u=u|u| = -u for u0u \le 0 (Complete ordered field (least-upper-bound property), Basic properties of the absolute value).

[L5]

mm is a maximum of a set when it belongs to it and dominates it, and dually for a minimum (Maximum and minimum of a set); Nδ(x)=(xδ,x+δ)N_\delta(x) = (x-\delta, x+\delta) is a nondegenerate interval (The ε\varepsilon-neighbourhood and the punctured ε\varepsilon-neighbourhood of a point of R\mathbb{R}, Intervals of R\mathbb{R}: the nine order-convex forms, nondegeneracy, and length).

Verification

technique · constructive
1.1

Assume the Axiom of Choice and fix ff as in [L1]; define φ(u):=1/2+u/(2(1+u))\varphi(u) := 1/2 + u/(2(1+|u|)) and g:=φfg := \varphi \circ f.

A1L1construct
2.1

φ\varphi is strictly increasing. For 0u1<u20 \le u_{1} < u_{2}: u1(1+u2)<u2(1+u1)u_{1}(1+u_{2}) < u_{2}(1+u_{1}) reduces to u1<u2u_{1} < u_{2}, and dividing by the positive (1+u1)(1+u2)(1+u_{1})(1+u_{2}) gives u1/(1+u1)<u2/(1+u2)u_{1}/(1+u_{1}) < u_{2}/(1+u_{2}). For u1<u20u_{1} < u_{2} \le 0: u1(1u2)<u2(1u1)u_{1}(1-u_{2}) < u_{2}(1-u_{1}) reduces to u1<u2u_{1} < u_{2}, and dividing by the positive (1u1)(1u2)(1-u_{1})(1-u_{2}) gives u1/(1u1)<u2/(1u2)u_{1}/(1-u_{1}) < u_{2}/(1-u_{2}). For u1<0u2u_{1} < 0 \le u_{2} the first quantity is negative and the second is nonnegative. In every case u1/(1+u1)<u2/(1+u2)u_{1}/(1+|u_{1}|) < u_{2}/(1+|u_{2}|), and φ\varphi is an increasing function of that quantity.

step 1.1L4
3.1

0<φ(u)<10 < \varphi(u) < 1 for every real uu, since u/(1+u)<1|u|/(1+|u|) < 1 gives 1<u/(1+u)<1-1 < u/(1+|u|) < 1; and φ\varphi takes rationals to rationals, since u|u| and 1+u01 + |u| \ne 0 are rational when uu is. Claim 1 follows: 0<g(x)<10 < g(x) < 1 for every real xx.

step 1.1step 2.1L4
3.2

Let xx be real and put r:=f(x)r := f(x), a rational, and v:=g(x)=φ(r)v := g(x) = \varphi(r). The reals r1r - 1 and r+1r + 1 are rational, and φ(r1)<v<φ(r+1)\varphi(r-1) < v < \varphi(r+1) by step 2.1.

step 1.1step 2.1L1
4.1

With rr and vv as in step 3.2, every real δ>0\delta > 0 gives points y,y+Nδ(x)y_{-}, y_{+} \in N_\delta(x) with g(y)=φ(r1)<vg(y_{-}) = \varphi(r-1) < v and g(y+)=φ(r+1)>vg(y_{+}) = \varphi(r+1) > v: the level sets f1({r1})f^{-1}(\{r-1\}) and f1({r+1})f^{-1}(\{r+1\}) are dense in R\mathbb{R}, hence meet Nδ(x)N_\delta(x).

step 3.2L1L2
5.1

Claim 2: xx is not a local maximum point, since every Nδ(x)N_\delta(x) contains y+y_{+} with g(y+)>g(x)g(y_{+}) > g(x); and xx is not a local minimum point, since every Nδ(x)N_\delta(x) contains yy_{-} with g(y)<g(x)g(y_{-}) < g(x). As xx was arbitrary, gg has no local maximum point and no local minimum point.

step 4.1L5
5.2

Claim 3: put ε+:=φ(r+1)v>0\varepsilon_{+} := \varphi(r+1) - v > 0. For every real δ>0\delta > 0 the point y+y_{+} of step 4.1 lies in Nδ(x)N_\delta(x) and satisfies g(y+)=v+ε+g(y_{+}) = v + \varepsilon_{+}, so the inequality g(y+)<g(x)+ε+g(y_{+}) < g(x) + \varepsilon_{+} fails; hence no δ\delta witnesses upper semicontinuity at xx for ε+\varepsilon_{+}, and gg is upper semicontinuous at no point.

step 3.2step 4.1L3
6.1

Symmetrically, with ε:=vφ(r1)>0\varepsilon_{-} := v - \varphi(r-1) > 0 the point yy_{-} satisfies g(y)=vεg(y_{-}) = v - \varepsilon_{-}, so g(y)>g(x)εg(y_{-}) > g(x) - \varepsilon_{-} fails and gg is lower semicontinuous at no point; being continuous at a point would require both, so gg is continuous at no point.

step 3.2step 4.1step 5.2L3
7.1

Claims 1, 2 and 3 hold for the function gg constructed in step 1.1.

step 3.1step 5.1step 5.2step 6.1discharge-construct

Remarks

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

An upper semicontinuous function on [0,1][0,1] that is bounded below and attains no minimum, so the semicontinuous extreme value theorem is genuinely one-sided

Statement refuted

Refuted claim: an upper semicontinuous function on a nonempty compact subset of R\mathbb{R} that is bounded below attains a minimum (Upper and lower semicontinuity of f:ARf : A \to \mathbb{R} at a point of AA and on AA, Maximum and minimum of a set).

What Semicontinuous extreme value theorem: an upper semicontinuous function on a nonempty compact KRK \subseteq \mathbb{R} is bounded above and attains a maximum, and a lower semicontinuous one is bounded below and attains a minimum proves is the one-sided statement: an upper semicontinuous function on a nonempty compact set attains a maximum, and a lower semicontinuous one attains a minimum. The refuted claim mixes the two, and it is false.

Counterexample

Define f:[0,1]Rf : [0,1] \to \mathbb{R} (Intervals of R\mathbb{R}: the nine order-convex forms, nondegeneracy, and length) by

f(0):=1,f(x):=xfor 0<x1.f(0) := 1, \qquad f(x) := x \quad \text{for } 0 < x \le 1 .

Then ff is upper semicontinuous on [0,1][0,1], bounded below by 00, with inff[[0,1]]=0\inf f[\,[0,1]\,] = 0 (Greatest lower bound (infimum)), and f(x)>0f(x) > 0 for every x[0,1]x \in [0,1]: the infimum is not attained, so ff has no minimum. It does attain a maximum, namely 11 at x=0x = 0, as Semicontinuous extreme value theorem: an upper semicontinuous function on a nonempty compact KRK \subseteq \mathbb{R} is bounded above and attains a maximum, and a lower semicontinuous one is bounded below and attains a minimum requires.

Facts & Assumptions

Given: The function f:[0,1]Rf : [0,1] \to \mathbb{R} with f(0)=1f(0) = 1 and f(x)=xf(x) = x for 0<x10 < x \le 1.

[L1]

ff is upper semicontinuous at cc when for every real ε>0\varepsilon > 0 there is a real δ>0\delta > 0 with f(x)<f(c)+εf(x) < f(c) + \varepsilon for every x[0,1]Nδ(c)x \in [0,1] \cap N_\delta(c) (Upper and lower semicontinuity of f:ARf : A \to \mathbb{R} at a point of AA and on AA, The ε\varepsilon-neighbourhood and the punctured ε\varepsilon-neighbourhood of a point of R\mathbb{R}).

[L3]

A nonempty set of reals bounded below has a greatest lower bound (Every nonempty set bounded below has an infimum, Greatest lower bound (infimum), Lower bound, bounded below, bounded set); mm is a minimum of SS when mSm \in S and msm \le s for every sSs \in S (Maximum and minimum of a set).

[L4]

For every real η>0\eta > 0 there is a natural n1n \ge 1 with 1/n<η1/n < \eta (For every ε>0\varepsilon > 0 in a complete ordered field there is a natural n1n \ge 1 with 1/n<ε1/n < \varepsilon).

Verification

technique · direct
1.1

ff is upper semicontinuous at 00: f(0)=1f(0) = 1 and f(x)1f(x) \le 1 for every x[0,1]x \in [0,1], so f(x)<f(0)+ε=1+εf(x) < f(0) + \varepsilon = 1 + \varepsilon for every x[0,1]x \in [0,1] and every real ε>0\varepsilon > 0; any δ\delta works.

L1
1.2

ff is upper semicontinuous at every c(0,1]c \in (0,1]: taking δ:=min{c,ε}>0\delta := \min\{c, \varepsilon\} > 0, every x[0,1]x \in [0,1] with xc<δ|x - c| < \delta satisfies x>cδ0x > c - \delta \ge 0, hence x0x \ne 0 and f(x)=x<c+ε=f(c)+εf(x) = x < c + \varepsilon = f(c) + \varepsilon.

L1L2
1.3

ff is bounded below by 00 and f(x)>0f(x) > 0 for every x[0,1]x \in [0,1]: for x=0x = 0 the value is 1>01 > 0, and for 0<x10 < x \le 1 the value is x>0x > 0.

L3
2.1

inff[[0,1]]=0\inf f[\,[0,1]\,] = 0: the set f[[0,1]]f[\,[0,1]\,] is nonempty and bounded below by 00 by step 1.3, so its infimum \ell exists and 0\ell \ge 0; and for every real η>0\eta > 0 there is a natural n1n \ge 1 with 1/n<η1/n < \eta, and then f(1/n)=1/n<ηf(1/n) = 1/n < \eta, so no positive real is a lower bound and =0\ell = 0.

step 1.3L3L4
3.1

ff has no minimum: a minimum would be a value f(x0)f(x_{0}) that is a lower bound of f[[0,1]]f[\,[0,1]\,], hence at most the infimum 00; but every value of ff is strictly positive.

step 1.3step 2.1L3
4.1

So ff is upper semicontinuous on the nonempty compact set [0,1][0,1], is bounded below, and attains no minimum, which refutes the claim. It does attain a maximum, f(0)=1f(x)f(0) = 1 \ge f(x) for every x[0,1]x \in [0,1], in agreement with the semicontinuous extreme value theorem.

step 1.1step 1.2step 3.1L5

Remarks

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

A continuous injection on [0,1][2,3][0,1] \cup [2,3] that is not monotone, so the interval hypothesis cannot be dropped from the strict-monotonicity theorem

Statement refuted

Counterexample

Let A:=[0,1][2,3]A := [0,1] \cup [2,3] and define f:ARf : A \to \mathbb{R} by

f(x):=xfor x[0,1],f(x):=5xfor x[2,3].f(x) := x \quad \text{for } x \in [0,1], \qquad f(x) := 5 - x \quad \text{for } x \in [2,3].

Then ff is continuous on AA and injective, and it is not monotone: f(0)=0<1=f(1)f(0) = 0 < 1 = f(1) while f(2)=3>2=f(3)f(2) = 3 > 2 = f(3). The set AA is not order-convex, since 0,3A0, 3 \in A and 3/2A3/2 \notin A.

Facts & Assumptions

Given: The set A=[0,1][2,3]A = [0,1] \cup [2,3] and the function ff above.

[L1]

ff is continuous at cAc \in A when for every real ε>0\varepsilon > 0 there is a real δ>0\delta > 0 with f(x)f(c)<ε|f(x) - f(c)| < \varepsilon for every xANδ(c)x \in A \cap N_\delta(c) (Continuity of f:ARf : A \to \mathbb{R} at a point of AA and on AA: the ε\varepsilon-δ\delta condition, its agreement with limxcf(x)=f(c)\lim_{x \to c} f(x) = f(c) at a limit point, and continuity at an isolated point, The ε\varepsilon-neighbourhood and the punctured ε\varepsilon-neighbourhood of a point of R\mathbb{R}).

[L3]

ff is increasing when f(x)<f(y)f(x) < f(y) for all x<yx < y in AA, decreasing when f(x)>f(y)f(x) > f(y) for all x<yx < y in AA, and monotone when nondecreasing or nonincreasing (Nondecreasing, increasing (strictly increasing), nonincreasing, decreasing, monotone and strictly monotone real functions on a subset of R\mathbb{R}, with the dictionary to monotone sequences).

[L4]

AA is order-convex when x,yAx, y \in A and xzyx \le z \le y imply zAz \in A (Intervals of R\mathbb{R}: the nine order-convex forms, nondegeneracy, and length).

Verification

technique · direct
1.1

f[[0,1]]=[0,1]f[\,[0,1]\,] = [0,1] and f[[2,3]]=[2,3]f[\,[2,3]\,] = [2,3]: on [0,1][0,1] the map is the identity, and on [2,3][2,3] the map x5xx \mapsto 5-x sends 22 to 33 and 33 to 22 and is order-reversing, so its image is [2,3][2,3].

L2
1.2

ff is continuous on AA. Let c[0,1]c \in [0,1] and let ε>0\varepsilon > 0 be real; take δ:=min{1,ε}\delta := \min\{1, \varepsilon\}. Every xAx \in A with xc<δ|x - c| < \delta satisfies x<c+12x < c + 1 \le 2, so x[0,1]x \in [0,1] and f(x)f(c)=xc<ε|f(x) - f(c)| = |x - c| < \varepsilon.

L1L2
1.3

Let c[2,3]c \in [2,3] and let ε>0\varepsilon > 0 be real; take δ:=min{1,ε}\delta := \min\{1, \varepsilon\}. Every xAx \in A with xc<δ|x - c| < \delta satisfies x>c11x > c - 1 \ge 1, so x[2,3]x \in [2,3] and f(x)f(c)=(5x)(5c)=xc<ε|f(x) - f(c)| = |(5-x)-(5-c)| = |x - c| < \varepsilon.

L1L2
1.4

ff is not monotone: 0<10 < 1 with f(0)=0<1=f(1)f(0) = 0 < 1 = f(1) rules out nonincreasing, and 2<32 < 3 with f(2)=3>2=f(3)f(2) = 3 > 2 = f(3) rules out nondecreasing.

L3
1.5

AA is not order-convex: 0A0 \in A, 3A3 \in A and 03/230 \le 3/2 \le 3, but 3/2[0,1][2,3]3/2 \notin [0,1] \cup [2,3].

L4
2.1

ff is injective: it is injective on [0,1][0,1], being the identity there; it is injective on [2,3][2,3], since 5x=5y5 - x = 5 - y gives x=yx = y; and the two images [0,1][0,1] and [2,3][2,3] are disjoint, so no point of one piece has the same value as a point of the other.

step 1.1
3.1

So ff is a continuous injection on AA that is not monotone, refuting the claim; and the hypothesis that fails is exactly order-convexity of the domain, which is what the theorem assumes.

step 2.1step 1.2step 1.3step 1.4step 1.5L5

Remarks

Sources