Baire Class 1 Functions

Pointwise limits of continuous functions — Baire class 1. Thomae's function T(p/q)=1/qT(p/q) = 1/q (reduced), T(x)=0T(x) = 0 (irrational) is the pointwise limit of sums fnf_n of disjoint tents. TT is continuous at irrationals, discontinuous at rationals — a living example of Baire's theorem that the continuity points contain a dense GδG_\delta.

fn(x)=∑1≤q≤ngcd⁡(p,q)=11q tri ⁣(n3(x−pq))→T(x)f_n(x) = \sum_{\substack{1 \le q \le n \\ \gcd(p,q)=1}} \frac{1}{q}\,\mathrm{tri}\!\left(n^3\left(x - \tfrac{p}{q}\right)\right) \to T(x)
Baire-1 f ⟹ continuity points⊇dense Gδ\text{Baire-1 } f \ \Longrightarrow\ \text{continuity points} \supseteq \text{dense } G_\delta

Part of these learning paths

Examples & Exercises

For n≥2n \ge 2 let fn(x)=∑1q tri(n3(x−p/q))f_n(x) = \sum \frac{1}{q}\,\mathrm{tri}(n^3(x - p/q)), summed over reduced fractions with 1≤q≤n1 \le q \le n, 0≤p≤q0 \le p \le q, gcd⁡(p,q)=1\gcd(p,q) = 1, where tri(t)=max⁡(0,1−∣t∣)\mathrm{tri}(t) = \max(0, 1 - |t|). Prove each fnf_n is continuous on [0,1][0, 1] and converges pointwise to Thomae's function TT (1/q1/q at reduced p/qp/q, 00 at irrationals, T(0)=T(1)=1T(0) = T(1) = 1): fn(x)→T(x)f_n(x) \to T(x) for every xx.

fn(x)=∑1≤q≤n0≤p≤qgcd⁡(p,q)=11q tri ⁣(n3(x−pq))f_n(x) = \sum_{\substack{1 \le q \le n \\ 0 \le p \le q \\ \gcd(p,q)=1}} \frac{1}{q}\,\mathrm{tri}\!\left(n^3\left(x - \tfrac{p}{q}\right)\right)
tent width 2n3<1n(n−1)≤ spacing of reduced fractions  ⟹  disjoint tents\text{tent width } \frac{2}{n^3} < \frac{1}{n(n-1)} \le \text{ spacing of reduced fractions} \;\Longrightarrow\; \text{disjoint tents}
N=12N = 12: 47 pairwise disjoint tents. f12(1/2)=0.5f_{12}(1/2) = 0.5, f12(2/2)=0f_{12}(\sqrt{2}/2) = 0, f12(1/3)=1/3f_{12}(1/3) = 1/3 — the probes already match Thomae exactly. The proof below is the machine behind this pointwise convergence.
Show proof
  1. First, why the sum is over reduced fractions only. Summing over all pairs (p,q)(p, q) counts each rational many times (1/2=2/4=3/6=⋯1/2 = 2/4 = 3/6 = \cdots): at x=1/2x = 1/2 the stacked heights 1/2+1/4+1/6+⋯1/2 + 1/4 + 1/6 + \cdots would diverge, so the sum could never converge to Thomae. With reduced fractions each rational appears exactly once.
  2. Each tent x↦tri(n3(x−p/q))x \mapsto \mathrm{tri}(n^3(x - p/q)) is continuous (a composition of continuous maps), and the sum is finite (at most ∑q≤n(q+1)\sum_{q \le n}(q+1) terms), so fnf_n is continuous. Also fn≥0f_n \ge 0.
  3. The tents are pairwise disjoint. For distinct reduced fractions p/q≠r/sp/q \ne r/s with denominators ≤n\le n, ∣pq−rs∣=∣ps−qr∣qs≥1qs\left|\frac{p}{q} - \frac{r}{s}\right| = \frac{|ps - qr|}{qs} \ge \frac{1}{qs}. If qs≤n(n−1)qs \le n(n-1) this is ≥1/(n(n−1))\ge 1/(n(n-1)); if qs=n2qs = n^2 then q=s=nq = s = n, so ∣ps−qr∣=n∣p−r∣≥n|ps - qr| = n|p - r| \ge n and the quotient is ≥1/n≥1/(n(n−1))\ge 1/n \ge 1/(n(n-1)). Hence the spacing is always ≥1/(n(n−1))\ge 1/(n(n-1)).
  4. Each tent's support has width 2/n32/n^3, and 2/n3<1/(n(n−1))2/n^3 < 1/(n(n-1)) (since 2(n−1)<n22(n-1) < n^2, i.e. (n−1)2+1>0(n-1)^2 + 1 > 0). So no two tent supports overlap: at each xx at most one tent is nonzero.
  5. For rational x=a/bx = a/b in lowest terms (0≤a≤b0 \le a \le b): if n≥bn \ge b, the tent at (a,b)(a, b) contributes 1b tri(0)=1/b\frac{1}{b}\,\mathrm{tri}(0) = 1/b. Every other reduced p/qp/q (q≤nq \le n) is at distance ≥1/(n(n−1))>1/n3\ge 1/(n(n-1)) > 1/n^3 from xx, so its tent vanishes at xx. Hence fn(a/b)=1/b=T(a/b)f_n(a/b) = 1/b = T(a/b) — exact from n≥bn \ge b onward.
  6. For irrational xx: given ε>0\varepsilon > 0, pick an integer Q0≥1Q_0 \ge 1 with 1/Q0<ε1/Q_0 < \varepsilon. The reduced rationals in [0,1][0, 1] with denominator ≤Q0\le Q_0 are finitely many, all different from xx, so c:=min⁡∣x−p/q∣>0c := \min|x - p/q| > 0. For nn with n3c>1n^3 c > 1, the tents with denominator ≤Q0\le Q_0 miss xx; every other tent has height ≤1/(Q0+1)<ε\le 1/(Q_0+1) < \varepsilon; and at most one tent is nonzero at xx. Hence 0≤fn(x)<ε0 \le f_n(x) < \varepsilon — i.e. fn(x)→0=T(x)f_n(x) \to 0 = T(x).

Prove Thomae's function TT is discontinuous at every rational and continuous at every irrational. That is, the continuity set of TT is exactly the irrationals — a dense GδG_\delta.

T(x)={1/qx=p/q in lowest terms0x irrationalT(x) = \begin{cases} 1/q & x = p/q \text{ in lowest terms} \\ 0 & x \text{ irrational} \end{cases}
{x:T continuous at x}=R∖Q=⋂q=1∞⋃p∈Z(R∖{pq})\{x : T \text{ continuous at } x\} = \mathbb{R} \setminus \mathbb{Q} = \bigcap_{q=1}^{\infty} \bigcup_{p \in \mathbb{Z}} \left(\mathbb{R} \setminus \left\{\tfrac{p}{q}\right\}\right)
N=5N = 5: f5f_5 is continuous, built from 11 tents. The limit TT spikes (0.5,1/30.5, 1/3) at the rationals 1/2,1/31/2, 1/3 but sinks to 00 at irrationals — the proof below is why the split happens.
Show proof
  1. At a rational r=a/br = a/b in lowest terms, T(r)=1/b>0T(r) = 1/b > 0. The irrationals are dense, so there is a sequence of irrationals xk→rx_k \to r with T(xk)=0↛1/b=T(r)T(x_k) = 0 \not\to 1/b = T(r). Hence TT is discontinuous at rr.
  2. At an irrational x0x_0, T(x0)=0T(x_0) = 0. Given ε>0\varepsilon > 0, pick an integer M>1/εM > 1/\varepsilon. The rationals with 1/b≥ε1/b \ge \varepsilon, i.e. denominator b≤Mb \le M, are finitely many in [x0−1,x0+1][x_0 - 1, x_0 + 1]. Let δ\delta be the minimum distance from x0x_0 to this finite set (δ>0\delta > 0 since x0x_0 is irrational). Then for ∣x−x0∣<δ|x - x_0| < \delta: if xx is rational its denominator exceeds MM, so T(x)<εT(x) < \varepsilon; if irrational, T(x)=0T(x) = 0. Thus ∣T(x)−T(x0)∣<ε|T(x) - T(x_0)| < \varepsilon — TT is continuous at x0x_0.
  3. Hence the continuity set is exactly the irrationals R∖Q\mathbb{R} \setminus \mathbb{Q}. Each singleton {p/q}\{p/q\} is closed, so its complement is open, and R∖Q=⋂q≥1⋃p(R∖{p/q})\mathbb{R} \setminus \mathbb{Q} = \bigcap_{q \ge 1}\bigcup_{p}(\mathbb{R} \setminus \{p/q\}) is a countable intersection of open sets — a GδG_\delta. The irrationals are dense, so it is a dense GδG_\delta.

Let f:R→Rf: \mathbb{R} \to \mathbb{R} be Baire class 1 (a pointwise limit of continuous functions). For the oscillation ωf(x)=inf⁡{diam f(U):U a neighborhood of x}\omega_f(x) = \inf\{\mathrm{diam}\,f(U) : U \text{ a neighborhood of } x\}, prove each set {x:ωf(x)<1/k}\{x : \omega_f(x) < 1/k\} is open and dense, and conclude via the Baire category theorem that the continuity set of ff contains a dense GδG_\delta.

ωf(x)=inf⁡U∋xdiam f(U),ωf(x)=0  ⟺  f continuous at x\omega_f(x) = \inf_{U \ni x} \mathrm{diam}\,f(U), \qquad \omega_f(x) = 0 \iff f \text{ continuous at } x
{x:f continuous at x}⊇⋂k=1∞{x:ωf(x)<1k}, a dense Gδ\{x : f \text{ continuous at } x\} \supseteq \bigcap_{k=1}^{\infty} \left\{x : \omega_f(x) < \tfrac{1}{k}\right\}, \text{ a dense } G_\delta
N=5N = 5: Thomae's function is Baire-1 yet discontinuous — but its continuity points (the irrationals) still form a dense GδG_\delta. The proof below shows this holds for every Baire-1 function.
Show proof
  1. First, ωf(x)=0\omega_f(x) = 0 iff ff is continuous at xx. (⇒\Rightarrow) If ωf(x)=0\omega_f(x) = 0, every ε>0\varepsilon > 0 admits a neighborhood UU with diam f(U)<ε\mathrm{diam}\,f(U) < \varepsilon, so ∣f(y)−f(x)∣≤diam f(U)<ε|f(y) - f(x)| \le \mathrm{diam}\,f(U) < \varepsilon for y∈Uy \in U. (⇐\Leftarrow) If ff is continuous at xx, every ε>0\varepsilon > 0 admits a neighborhood UU with f(U)⊆(f(x)−ε,f(x)+ε)f(U) \subseteq (f(x) - \varepsilon, f(x) + \varepsilon), so diam f(U)≤2ε\mathrm{diam}\,f(U) \le 2\varepsilon and ωf(x)≤2ε\omega_f(x) \le 2\varepsilon; ε\varepsilon arbitrary gives ωf(x)=0\omega_f(x) = 0.
  2. {x:ωf(x)<1/k}\{x : \omega_f(x) < 1/k\} is open: if ωf(x0)<c<1/k\omega_f(x_0) < c < 1/k, some neighborhood UU has diam f(U)<c\mathrm{diam}\,f(U) < c; for every x∈Ux \in U, UU is itself a neighborhood of xx, so ωf(x)≤diam f(U)<c<1/k\omega_f(x) \le \mathrm{diam}\,f(U) < c < 1/k. Thus U⊆{ωf<1/k}U \subseteq \{\omega_f < 1/k\}.
  3. Now density. Let fn→ff_n \to f pointwise with fnf_n continuous. Cover R\mathbb{R} by closed intervals VjV_j (j∈Zj \in \mathbb{Z}) of length <1/(2k)< 1/(2k) whose interiors also cover R\mathbb{R} (e.g. Vj=[j8k−18k,j8k+18k]V_j = [\frac{j}{8k} - \frac{1}{8k}, \frac{j}{8k} + \frac{1}{8k}]). Fix a nonempty open U0U_0. For each x∈U0x \in U_0, f(x)f(x) lies in some int(Vj)\mathrm{int}(V_j), and since fm(x)→f(x)f_m(x) \to f(x) there is nn with fm(x)∈Vjf_m(x) \in V_j for all m≥nm \ge n. Hence U0=⋃n,jHn,jU_0 = \bigcup_{n,j} H_{n,j}, where Hn,j={x∈U0:fm(x)∈Vj ∀m≥n}H_{n,j} = \{x \in U_0 : f_m(x) \in V_j \ \forall m \ge n\} is relatively closed in U0U_0 (fmf_m continuous, VjV_j closed).
  4. U0U_0, open in the complete space R\mathbb{R}, is itself a Baire space (the usual nested-closed-ball proof of Baire's theorem works verbatim inside U0U_0, using completeness of R\mathbb{R}). Hence some Hn0,j0H_{n_0,j_0} has nonempty interior in U0U_0: there is a nonempty open W⊆U0W \subseteq U_0 with W⊆Hn0,j0W \subseteq H_{n_0,j_0}. For y∈Wy \in W, fm(y)∈Vj0f_m(y) \in V_{j_0} for all m≥n0m \ge n_0, and Vj0V_{j_0} closed gives f(y)∈Vj0f(y) \in V_{j_0}. So f(W)⊆Vj0f(W) \subseteq V_{j_0} and diam f(W)<1/(2k)\mathrm{diam}\,f(W) < 1/(2k). Since WW is a neighborhood of each of its points xx, ωf(x)≤diam f(W)<1/k\omega_f(x) \le \mathrm{diam}\,f(W) < 1/k. Thus W⊆U0∩{ωf<1/k}≠∅W \subseteq U_0 \cap \{\omega_f < 1/k\} \ne \varnothing — {ωf<1/k}\{\omega_f < 1/k\} is dense.
  5. Each {ωf<1/k}\{\omega_f < 1/k\} is open and dense, so by the Baire category theorem G:=⋂k=1∞{ωf<1/k}G := \bigcap_{k=1}^{\infty}\{\omega_f < 1/k\} is a dense GδG_\delta. By the first step, G⊆{ωf=0}=G \subseteq \{\omega_f = 0\} = the continuity set of ff, so the continuity set of ff contains a dense GδG_\delta. ∎

4. Topology