Alphabeta Math
TheoremStatement: AI-adaptedProof: AI-generatedprecheck passverified 2026-08-09 (gpt-5.6-terra-codex-subscription)
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.

Every Gδ subset of R is the set of continuity points of some f:R→R, so the Gδ sets are exactly the continuity sets

Statement

Let G⊆R be a Gδ set (Fσ and Gδ subsets of R). Then there is a function f:R→R whose set of continuity points (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) is exactly G.

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 says that the continuity set of every f:R→R is a Gδ set, this identifies the two classes:

{ continuity sets of functions R→R }  =  { Gδ subsets of R }.

The construction. Write G=⋂n∈NVn with each Vn open and put Wn:=V0∩⋯∩Vn, so that the Wn are open and decreasing with ⋂nWn=G. For x∉G let n(x) be the least n with x∉Wn, and set

f(x):=0  for x∈G,f(x):=1ι(n(x)+1)  for x∉G, x∈Q,f(x):=−1ι(n(x)+1)  for x∉G, x∉Q.

The sign carries the whole of the discontinuity: near a point outside G there are points of the opposite rationality, where f has the opposite sign or is 0, and the values cannot come close.

Facts & Assumptions

Given: A Gδ set G=⋂n∈NVn⊆R with each Vn open.

[L2]

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

[L4]

For every real η>0 there is a natural m≥1 with 1/ι(m)<η, and ι is positive and strictly increasing on the naturals ≥1, so j<k gives 1/ι(k+1)<1/ι(j+1) (For every ε>0 in a complete ordered field there is a natural n≥1 with 1/n<ε, The canonical natural ι(n)=n⋅1F of a field, Canonical naturals are positive and strictly increasing).

Proof

technique · constructive
1.1

Put Wn:=⋂j≤nVj for n∈N. Each Wn is open, being a finite intersection of open sets; Wn+1⊆Wn; and ⋂nWn=⋂nVn=G, since a point lies in every Wn exactly when it lies in every Vj.

L1construct
2.1

For x∉G the set { n∈N:x∉Wn } is nonempty, so n(x):=min⁡{ n:x∉Wn } is defined; and x∈Wj for every j<n(x), by minimality.

step 1.1L2construct
2.2

f is continuous at every x∈G. Let ε>0 be real and take a natural m≥1 with 1/ι(m)<ε. Since x∈G⊆Wm and Wm is open, there is a real ρ>0 with Nρ(x)⊆Wm.

step 1.1L1L4
3.1

Define f:R→R by f(x):=0 for x∈G, f(x):=1/ι(n(x)+1) for x∉G with x rational, and f(x):=−1/ι(n(x)+1) for x∉G with x irrational. Then f(x)=0 exactly for x∈G, since 1/ι(n+1)>0 for every n∈N; moreover f(x)>0 at a rational outside G and f(x)<0 at an irrational outside G.

step 2.1L4construct
4.1

With m and ρ as in step 2.2, let y∈Nρ(x). If y∈G then f(y)=0. If y∉G then y∈Wm, so n(y)≠m and indeed n(y)>m, because y∈Wm forces y∈Wj for every j≤m; hence ∣f(y)∣=1/ι(n(y)+1)<1/ι(m)<ε, using n(y)+1>m. In both cases ∣f(y)−f(x)∣=∣f(y)∣<ε, since f(x)=0.

step 1.1step 2.1step 3.1step 2.2L4
4.2

f is discontinuous at every x∉G. Put ε:=1/ι(n(x)+1)>0, so that ∣f(x)∣=ε, and let δ>0 be real. If x is rational then f(x)=ε>0; the neighbourhood Nδ(x) contains an irrational y, and f(y)≤0, whether y∈G or not. If x is irrational then f(x)=−ε<0; the neighbourhood Nδ(x) contains a rational y, and f(y)≥0.

step 2.1step 3.1L3
5.1

In either case of step 4.2 the point y satisfies ∣f(y)−f(x)∣≥ε, since f(x) and f(y) have opposite weak signs and ∣f(x)∣=ε. So no δ witnesses the continuity condition at x for this ε, and f is discontinuous at x.

step 4.2
6.1

By steps 4.1 and 5.1 the set of continuity points of the function f constructed in step 3.1 is exactly G, which proves the theorem. Combined with the fact that every continuity set is Gδ, the two classes coincide.

step 3.1step 4.1step 5.1L5discharge-construct∎

Remarks

  • Why the Vn are replaced by the decreasing Wn. The index n(x) is useful only because y∈Wm implies y∈Wj for all j≤m, which is what makes n(y)>m in step 4.1. For an arbitrary sequence (Vn) that implication fails, and n(x) would carry no information about how deep x sits in the intersection. Passing to the finite intersections costs nothing, since they are still open and still intersect to G.

  • Two extreme cases. For G=R the construction gives f=0, continuous everywhere. For G=∅, obtained as the intersection of the sequence constantly ∅, every x lies outside W0=∅, so n(x)=0 and f takes the value 1 at every rational and −1 at every irrational; it is nowhere continuous, as the Dirichlet function is (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)).

  • The construction does not guarantee monotonicity, and the theorem does not claim it. The function built above always takes values in [−1,1], so it is bounded; no further behaviour beyond its continuity set is asserted.

Depends on

Used by

Nothing in the library uses this result yet.

Dependency tree · two levels

56 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources