105. Sets of intervals on a line. The Heine-Borel Theorem.
We shall now proceed to prove some theorems concerning the oscillation of a function which are of a somewhat abstract character but of very great importance, particularly, as we shall see later, in the theory of integration. These theorems depend upon a general theorem concerning intervals on a line.
Suppose that we are given a set of intervals in a straight line, that is to say an aggregate each of whose members is an interval . We make no restriction as to the nature of these intervals; they may be finite or infinite in number; they may or may not overlap; and any number of them may be included in others.
It is worth while in passing to give a few examples of sets of intervals to which we shall have occasion to return later.
(i) If the interval is divided into equal parts then the intervals thus formed define a finite set of non-overlapping intervals which just cover up the line.
(ii) We take every point of the interval , and associate with the interval , where is a positive number less than , except that with we associate and with we associate , and in general we reject any part of any interval which projects outside the interval . We thus define an infinite set of intervals, and it is obvious that many of them overlap with one another.
(iii) We take the rational points of the interval , and associate with the interval where is positive and less than . We regard as and as : in these two cases we reject the part of the interval which lies outside . We obtain thus an infinite set of intervals, which plainly overlap with one another, since there are an infinity of rational points, other than , in the interval associated with .
The Heine-Borel Theorem. Suppose that we are given an interval , and a set of intervals each of whose members is included in . Suppose further that possesses the following properties:
(i) every point of , other than and , lies inside at least one interval of ;
(ii) is the left-hand end point, and the right-hand end point, of at least one interval of .
Then it is possible to choose a finite number of intervals from the set which form a set of intervals possessing the properties (i) and (ii).
We know that is the left-hand end point of at least one interval of , say . We know also that lies inside at least one interval of , say . Similarly lies inside an interval of . It is plain that this argument may be repeated indefinitely, unless after a finite number of steps coincides with .
If does coincide with after a finite number of steps then there is nothing further to prove, for we have obtained a finite set of intervals, selected from the intervals of , and possessing the properties required. If never coincides with , then the points , , , … must (since each lies to the right of its predecessor) tend to a limiting position, but this limiting position may, so far as we can tell, lie anywhere in .
Let us suppose now that the process just indicated, starting from , is performed in all possible ways, so that we obtain all possible sequences of the type , , , …. Then we can prove that there must be at least one such sequence which arrives at after a finite number of steps.

There are two possibilities with regard to any point between and . Either (i) lies to the left of some point of some sequence or (ii) it does not. We divide the points into two classes and according as to whether (i) or (ii) is true. The class certainly exists, since all points of the interval belong to . We shall now prove that does not exist, so that every point belongs to .
If exists then lies entirely to the left of , and the classes , form a section of the real numbers between and , to which corresponds a number . The point lies inside an interval of , say , and belongs to , and so lies to the left of some term of some sequence. But then we can take as the interval associated with in our construction of the sequence , , , …; and all points to the left of lie to the left of . There are therefore points of to the right of , and this contradicts the definition of . It is therefore impossible that should exist.
Thus every point belongs to . Now is the right-hand end point of an interval of , say , and belongs to . Hence there is a member of a sequence , , , … such that . But then we may take the interval corresponding to to be , and so we obtain a sequence in which the term after the th coincides with , and therefore a finite set of intervals having the properties required. Thus the theorem is proved.
It is instructive to consider the examples of § 105 in the light of this theorem.
(i) Here the conditions of the theorem are not satisfied: the points , , , … do not lie inside any interval of .
(ii) Here the conditions of the theorem are satisfied. The set of intervals associated with the points , , , …, , possesses the properties required.
(iii) In this case we can prove, by using the theorem, that there are, if is small enough, points of which do not lie in any interval of .
If every point of lay inside an interval of (with the obvious reservation as to the end points), then we could find a finite number of intervals of possessing the same property and having therefore a total length greater than . Now there are two intervals, of total length , for which , and intervals, of total length , associated with any other value of . The sum of any finite number of intervals of can therefore not be greater than times that of the series which will be shown to be convergent in Ch. VIII. Hence it follows that, if is small enough, the supposition that every point of lies inside an interval of leads to a contradiction.
The reader may be tempted to think that this proof is needlessly elaborate, and that the existence of points of the interval, not in any interval of , follows at once from the fact that the sum of all these intervals is less than . But the theorem to which he would be appealing is (when the set of intervals is infinite) far from obvious, and can only be proved rigorously by some such use of the Heine-Borel Theorem as is made in the text.
106.
We shall now apply the Heine-Borel Theorem to the proof of two important theorems concerning the oscillation of a continuous function.
Theorem I. If is continuous throughout the interval , then we can divide into a finite number of sub-intervals , , …, , in each of which the oscillation of is less than an assigned positive number .
Let be any number between and . Since is continuous for , we can determine an interval such that the oscillation of in this interval is less than . It is indeed obvious that there are an infinity of such intervals corresponding to every and every , for if the condition is satisfied for any particular value of , then it is satisfied a fortiori for any smaller value. What values of are admissible will naturally depend upon ; we have at present no reason for supposing that a value of admissible for one value of will be admissible for another. We shall call the intervals thus associated with the -intervals of .
If then we can determine an interval , and so an infinity of such intervals, having the same property. These we call the -intervals of , and we can define in a similar manner the -intervals of .
Consider now the set of intervals formed by taking all the -intervals of all points of . It is plain that this set satisfies the conditions of the Heine-Borel Theorem; every point interior to the interval is interior to at least one interval of , and and are end points of at least one such interval. We can therefore determine a set which is formed by a finite number of intervals of , and which possesses the same property as itself.
The intervals which compose the set will in general overlap as in Fig. 34. But their end points obviously divide up into a finite set of intervals each of which is included in an interval of , and in each of which the oscillation of is less than . Thus Theorem I is proved.

Theorem II. Given any positive number , we can find a number such that, if the interval is divided in any manner into sub-intervals of length less than , then the oscillation of in each of them will be less than .
Take , and construct, as in Theorem I, a finite set of sub-intervals in each of which the oscillation of is less than . Let be the length of the least of these sub-intervals . If now we divide into parts each of length less than , then any such part must lie entirely within at most two successive sub-intervals . Hence, in virtue of (3) of § 103, the oscillation of , in one of the parts of length less than , cannot exceed twice the greatest oscillation of in a sub-interval , and is therefore less than , and therefore than .
This theorem is of fundamental importance in the theory of definite integrals (Ch. VII). It is impossible, without the use of this or some similar theorem, to prove that a function continuous throughout an interval necessarily possesses an integral over that interval.