A limit can jump at every fraction
Worth reading first: A limit that forgets to be continuous · Countable, and everywhere.
The functions are each as smooth as a function can be, and at every point of the interval they settle — on 0 to the left of 1 and on 1 at 1. The limit has a jump. One jump at one point, created by a sequence with none, was the first sign that a pointwise limit does not inherit continuity.
The obvious next question is how many jumps a limit can have. One is possible. A function with a jump at every fraction would be far worse, and a function discontinuous at every point worse still. Both can be written down. Only one of them can be reached by a single limit of continuous functions.
The limit here is Thomae’s function. It is at the fraction in lowest terms and at every irrational number. It is discontinuous at every fraction — the value there is , while arbitrarily close by there are irrationals where it is — and continuous at every irrational. It jumps on a set that is dense, meeting every interval however short, and it is nevertheless a pointwise limit of continuous functions.
Building it out of tents
The approximating functions are built from nothing but triangles. For each , put a tent over every fraction with : height at the fraction, falling linearly to at distance on either side. The -th function takes, at each point, the height of the tallest tent over it. It is continuous, since it is the largest of finitely many continuous functions.
Two things have to be checked, and the figure checks both before drawing. At a fraction , once has reached , the tent over gives the value , and no other tent reaches that point. Another fraction lies at least away — two different fractions cannot be closer than one over the product of their denominators — while its tent is only wide, which is smaller whenever . So from that stage on the value at is exactly , and the limit there is .
At an irrational point the limit is . Fix a threshold . Only finitely many fractions have denominator at most , and is some positive distance from all of them; once is large, their tents have shrunk out of reach of , and every other tent that could reach has height below . So eventually the values at are below , for every .
The picture shows the price. At the tents are wide and there are five of them; at there are twenty-three, the tall ones narrow and the short ones narrower. The convergence is as far from uniform as it could be. Every function has height at and , and near every fraction there is a tent that has not yet become thin enough.
Measuring a jump
The tool that separates the possible from the impossible is the size of the jump at a point. The oscillation of at is how much varies on small intervals around — the gap between its largest and smallest values there, in the limit as the interval shrinks. It is exactly where is continuous. At a fraction Thomae’s function has oscillation ; at an irrational, .
For any threshold , the set where the oscillation is at least is always closed: if points jumping by that much crowd towards a point, the jumping crowds towards it too. What varies is how large the set is. For Thomae’s function it is finite — the fractions with denominator at most — and so it is closed and contains no interval. The whole discontinuity set is the union of these, one for each : a countable union of closed sets with no interval inside any of them.
For the indicator of the rationals the picture on the right is the opposite extreme. Every interval contains fractions, where the function is , and irrationals, where it is , so the oscillation is at every point. The set where it jumps by at least a half is the whole interval.
That difference is exactly what Baire’s theorem is about.
Baire’s theorem, and why it has to hold
René Baire proved in his thesis of 1899 that for a pointwise limit of continuous functions, the set where the oscillation is at least contains no interval, for any . Consequently the discontinuity set is a countable union of closed sets with no interval in them, and — by a second theorem also named after Baire — such a union cannot fill any interval. So a pointwise limit of continuous functions is continuous at a dense set of points.
The proof is a squeeze, and the step that matters is the one where continuity of the approximants is used. Suppose the limit had oscillation at least at every point of some interval . Fix a small and, for each , collect the points of where all the members from onwards stay within of one another. Each of these collections is closed, because the members are continuous. And together they cover , because at every point the sequence settles. A closed interval cannot be a countable union of closed sets with no interval in them — that is the category theorem, proved by nesting intervals — so one of the collections contains an interval .
On , then, stays within of the single continuous function . A continuous function varies by less than on a small enough subinterval, so varies by less than there. With below , that contradicts the oscillation being at least everywhere on .
Thomae’s function passes the test, since its sets are finite. The indicator of the rationals fails it at the first threshold. So no sequence of continuous functions converges at every point to the indicator of the rationals. Nor could any sequence converge to a function continuous exactly at the rationals and nowhere else. Its continuity points would be the fractions, a countable set, and the proof shows that the continuity points of a limit are what remains after removing countably many closed sets with no interval in them — a set that no countable list can exhaust, by the same nesting of intervals that shows a countable set can be everywhere and still leave almost everything out. The rationals can be where a limit jumps; they cannot be where it is continuous.
The theorem has a consequence for a subject that seems to have nothing to do with sequences. Every derivative is a pointwise limit of continuous functions. If is differentiable, its derivative at is the limit of the difference quotients , and each of those is continuous in because is. So every derivative is continuous at a dense set of points, however wild it is elsewhere. A derivative can exist everywhere and be discontinuous at many points — the standard example is built from — but no function differentiable everywhere has a derivative that jumps at every point, and in particular the indicator of the rationals is nobody’s derivative. The restriction was proved by looking at a derivative as the end of a sequence rather than as a slope.
Thin is not the same as short
Baire’s theorem says a limit’s discontinuities are thin. It is tempting to read that as small in length, and that reading is wrong.
Remove the middle quarter of the interval, then the middle sixteenth of each of the two pieces left, then the middle sixty-fourth of each of the four after that, and so on. The total removed is , so the set that remains has length one half. Yet it contains no interval, since every interval eventually has a middle piece removed from it.
Its indicator — on the set, off it — is a pointwise limit of continuous functions: take , where is the distance from to the set. On the set these are all ; at a point off it the distance is positive, and for large the value is . And the indicator is discontinuous at every point of the set, because every point of the set has points off it arbitrarily close.
So a pointwise limit of continuous functions can be discontinuous on a set of positive length — here half the interval. What Baire’s theorem forbids is a discontinuity set that is thick in the sense of containing intervals within every threshold’s set, and the fat Cantor set, for all its length, contains none. Length and category are independent measures of size, and a set can be large by one and small by the other.
The same function is the standard example in the essay on which functions can be added up: its discontinuities have positive length, so Riemann’s integral cannot handle it. Riemann’s integral cares about length; Baire’s theorem cares about gaps. One function sits on opposite sides of the two lines.
Two limits in a row
The indicator of the rationals is not a single limit of continuous functions, but it is a limit of limits.
Fix . The function is exactly where is a whole number, and strictly between and everywhere else. Raise it to a high even power: the value survives at those points and everything else collapses towards . So as grows, converges at every point to the function that is at the multiples of and elsewhere — a function with finitely many spikes, three at and seven at .
Now let grow. Every fraction is a multiple of as soon as , because divides , and once it is, it stays one. An irrational number is never a multiple of anything of the form . So the spike functions converge, at every point, to on the rationals and on the irrationals.
This is the start of Baire’s hierarchy. The continuous functions are class zero; their pointwise limits are class one, which includes Thomae’s function and the fat Cantor indicator; limits of class-one functions are class two, which includes the indicator of the rationals; and so on. Henri Lebesgue showed in 1905 that the hierarchy never stops: every level, through every countable stage, contains functions that the levels below it do not.
Where Riemann’s integral loses track
The double limit has a consequence for integration that was one of the historical reasons for replacing Riemann’s integral.
Each spike function is zero except at finitely many points, and a function like that has upper and lower sums closing on zero: the pieces containing a spike number at most twice the spikes, each of width , so the upper sum is at most a fixed number divided by . The curves in the figure are jagged — the upper sum jumps when a spike lands on the boundary between two pieces and is counted in both — but all three fall to . Every spike function has Riemann integral .
The spike functions increase towards the indicator of the rationals, each one at every point where the previous one was. It would be natural for the limit’s integral to be the limit of the integrals, . But the limit has no Riemann integral at all. Every piece of every partition contains a rational and an irrational, so its upper sum is always and its lower sum always , and the two never meet.
Lebesgue’s integral repairs exactly this. For an increasing sequence of functions its monotone convergence theorem guarantees that the integral of the limit is the limit of the integrals, and the rationals have length zero, so the indicator of the rationals has Lebesgue integral as it should. Riemann’s integral was not wrong about any function it could handle; it was unable to follow a limit that stays inside the functions it could handle at every stage and leaves them only at the end.
What the pictures cannot show
Every figure here is drawn on a finite grid. Thomae’s function is shown as dots at the fractions with denominator up to 24, which is a sample of a function defined at uncountably many points and nonzero at countably many. The indicator of the rationals is drawn as two dashed levels, because it cannot be drawn at all: at the resolution of any picture it looks like a filled band, and the band is misleading, since the set of points at the top has length zero.
The figure of the double limit shows two values of , and the second limit is the whole content of the claim. Nothing drawn establishes what happens at ; the argument that it converges to the indicator of the rationals is the sentence about dividing .
Nor can a picture show category. That the fat Cantor set contains no interval is visible after four rounds only as small gaps, and the set after four rounds does contain intervals — sixteen of them. The claim is about the limit of the construction, and it is proved by noting that each remaining piece has a middle removed at the next round, not by looking. The ordinary middle-thirds set would look the same at this resolution and has length zero, so the drawing cannot even distinguish the two measures of size the section on thin sets separates.
The question it leaves: what one limit still guarantees
A single pointwise limit of continuous functions can be badly discontinuous, but not arbitrarily so; the discontinuities are thin in Baire’s sense and may still be long. That leaves the other half of the question the first picture of raised. The convergence there failed to be uniform on a strip next to 1, and the strip could be taken as short as anyone liked.
Is that general? Egorov’s theorem says it is, on any interval: pointwise convergence of continuous functions — indeed of any measurable ones — is uniform once a set of arbitrarily small length is removed. And Lusin’s theorem says the analogous thing about a single function, that even the indicator of the rationals becomes continuous once a small enough set is thrown away. Both are about length rather than category, the other measure of smallness, and both are drawn in the essay on convergence that is uniform except on a small set.
The two answers are complementary rather than competing. Baire’s theorem says the bad set of a limit is thin in category and can be long; Egorov’s says the set where the convergence fails to be uniform can be made short and, as the fat Cantor set suggests, need not be thin. Neither measure of size is the right one in general. Which one a proof needs depends on whether it is about continuity — gaps — or about integrals, where only length counts. The guarantee that a bounded family with a shared bound on its steepness has a convergent subsequence is a third kind of answer, where the smallness is built into the hypothesis rather than extracted from the conclusion.
Two measures of small
The theme of this page is that a pointwise limit is controlled, and the control is of a particular kind. The jumps of a limit of continuous functions can be at every fraction, dense in the interval, and they can fill half its length. What they cannot do is fill an interval at any fixed size of jump, and that restriction is sharp: the indicator of the rationals violates it at every point, and needs a second limit to be reached.
The cost of that second limit is visible in the integral. Riemann’s integral follows the first limit and loses the second. Lebesgue’s follows both, because it measures sets by length and the rationals have none. Each extra limit the hierarchy allows makes a strictly larger class of functions, and the whole structure rests on the argument about oscillation, where continuity of the approximants turned a covering by closed sets into an interval on which the limit could not jump.
It is worth setting that beside the rest of the subject. Uniform convergence is the strong hypothesis under which continuity passes to the limit, and a curve with a corner at every point is built as a uniform limit so that it is continuous for free. Reading a power series at the edge of its interval needs continuity up to the boundary, and Abel’s theorem supplies it. Here the hypothesis is only pointwise, and continuity does not pass — but a large set of continuity points survives anyway, which is the most that could be hoped for from a hypothesis this weak and exactly what Baire proved.
What links here
Computed from the collection, not written here: the essays that point at this one.
Reads more easily once this is understood
Essays that name this one as worth reading first.
Shares its objects with
Essays that name at least two of the same things, and that neither author linked.
- A curve that has area — both name cantor set, continuity, counterexample
- The staircase that is not the diagonal — both name continuity, counterexample, riemann sum
- A ball whose outside is not one — both name cantor set, counterexample
- A line with as many points as a square — both name continuity, counterexample
- A staircase with no steps — both name cantor set, continuity
- Area is the undoing of slope — both name continuity, riemann sum
Named objects
A dashed tag is an object no other essay names yet.
Baire categoryCantor setContinuityCounterexampleNowhere denseOscillationPointwise convergenceRational numberRiemann sumUniform convergence