A sequence chosen by tossing a fair coin for each bit belongs to a cylinder with probability . The uniform measure extends this assignment to a large family of classes, and a property is typical if the class of sequences without it has measure . Random sequences, in the sense of this course, are those that avoid every null class that can be described effectively. This lesson collects the facts about the measure that the course uses, and computes how complex the measure of an effective class is.
We use the notation of Trees and Π⁰₁ classes: is the cylinder of the sequences extending , the open class generated by a set of strings , and the set of strings of length .
1.1 The uniform measure
The Borel classes are the classes obtained from the cylinders by complements and countable unions, iterated transfinitely; they include the open, closed, and all arithmetical classes.
There is a unique function from the Borel classes of to such that for every string and is countably additive: if the classes are pairwise disjoint, then . Moreover is outer regular: for every Borel class and every , there is an open class with .
This is a theorem of measure theory, admitted here: the existence is Carathéodory’s extension theorem, and outer regularity holds for every finite Borel measure on a metrizable space. See Kechris, Classical Descriptive Set Theory, Section 17, or any textbook on measure theory. The function is the Lebesgue measure, or uniform measure, on ; it is the image of the Lebesgue measure on under the binary expansion.
The following consequences of countable additivity are used constantly:
- Monotonicity: if , then , and .
- Subadditivity: for every sequence of Borel classes.
- Continuity: if , then ; if , then .
For (2), the classes are pairwise disjoint, have the same union, and are contained in the classes . For (3), the first statement applies additivity to the differences , and the second follows by complementation.
1.2 Open classes
Two cylinders are either disjoint or contained in one another: unless and are comparable. A set of strings is prefix-free if no element of is a proper prefix of another; the cylinders , , are then pairwise disjoint, and by additivity
For an arbitrary set , subadditivity gives only . Every open class has a prefix-free generator: the set of with no proper prefix in generates . This set is not c.e. in general when is, but another prefix-free generator is.
From an index of a c.e. set of strings , one computes an index of a c.e. prefix-free set with and such that every element of extends an element of .
Enumerate as (if is finite, possibly empty, the stages after the last element of add nothing), and build as an increasing union of finite prefix-free sets , with and . At stage , let be the maximum of and of the lengths of the elements of , and let be together with every string of length that has no prefix in .
A new string has no prefix in , and no element of properly extends it, since these elements have length at most ; distinct new strings have the same length, so they are incomparable. Hence is prefix-free. Every new string extends , so . Conversely, let ; if has no prefix in , it is one of the new strings, so in every case . The construction is effective and uniform in an index of .
1.3 The measure of effective classes
A real number is left-c.e. if it is the limit of a computable non-decreasing sequence of rationals, and right-c.e. if it is the limit of a computable non-increasing sequence of rationals, that is, if is left-c.e. A real is computable if and only if it is both: given the two approximations, wait until they are within of each other to approximate to precision . Chaitin’s number is left-c.e. and not computable (Chaitin).
- If with c.e., then is left-c.e., uniformly in an index of : with as in Lemma 1.2, .
- If with a computable tree, then , a non-increasing limit. So is right-c.e., uniformly in an index of .
- In both cases the measure is computable in .
- The classes increase with union , and since is prefix-free. By continuity, is the supremum of these computable rationals.
- Let ; its measure is , since is prefix-free. Since is closed under prefixes, every node of length extends a node of length , so . A sequence belongs to every if and only if for every , that is, . By continuity, .
- A real that is left-c.e. or right-c.e. is the limit of a computable sequence of rationals that is monotone. With one decides, for a rational , whether some term of a non-decreasing sequence exceeds , a question; this suffices to compute the binary expansion, or approximations to any precision. The same holds for non-increasing sequences.
The bounds of the proposition are sharp: by the first exercise below, every left-c.e. real of is the measure of a class. Since is not computable, neither is the measure of the complementary class.
1.4 Null classes
A Borel class is null if , and conull, or of measure one, if its complement is null. A property of sequences holds for almost every if the class of sequences with this property is conull.
By outer regularity, is null if and only if, for every , it is contained in an open class of measure at most . A countable union of null classes is null, by subadditivity. A singleton is null, since it is contained in for every ; so every countable class is null, the class of computable sequences for instance.
- The class of sequences with for every is null and uncountable. Let be the set of strings of length with for . Then , and .
- For a computable infinite set , the class of sequences with for every is null: if enumerate , it is contained in the clopen class of sequences vanishing at , of measure .
In both examples, the covers are given by an algorithm: the open class of measure at most is computed from . The next lesson calls a sequence random if it avoids every null class that admits such an effective sequence of covers.
1.5 Relative measure and density
For a Borel class and a string , the relative measure of in is
It is the proportion of occupied by . Since is the disjoint union of and , is the average of and ; more generally, it is the average of over the extensions of of length .
A class of positive measure cannot be spread thinly over every cylinder: some cylinder is almost filled by it.
Let be a Borel class with . For every , there is a string with .
If , the empty string works, since ; so assume . By outer regularity, there is an open class with , a number larger than . Write with prefix-free. The classes , , are pairwise disjoint with union . If for every , then
a contradiction. So some satisfies .
Lebesgue proved a stronger statement, the density theorem: for almost every , tends to . The lemma suffices for this course.
1.6 Exercises
Show that for every left-c.e. real there is a class of measure . Deduce that there is a non-empty class whose measure is not computable.
Solution
Let be a computable non-decreasing sequence of rationals with limit ; replacing by , we may assume . For a string , let , and let be the c.e. set of strings with for some . For fixed and , let be the set of strings of length with . The numbers , , are the with , so has elements and . Both extensions of an element of belong to , and . So is the increasing union of the classes , and its measure is , since .
For the second statement, apply this to , which is left-c.e. and in : the complement of the class obtained is a class of measure , hence non-empty, and is not computable since is not.
Let be a class, with computable, such that . Show that there is a computable function , with a finite set of strings given by its canonical index, such that and for every . Show also that a class of positive measure has a non-computable member.
Solution
By Proposition 1.3 (2), tends to . Given , search for the least with , which exists and is found since is computable, and let . Then , as in the proof of the proposition.
For the second statement, the class of computable sequences is countable, hence null. If every member of were computable, would be null.
1.7 Notes and references
Borel introduced the measure of sets of reals in 1898; Lebesgue (1901, 1902) defined the measure of arbitrary sets through countable covers by intervals, which is the origin of outer regularity. Carathéodory (1914) gave the abstract construction. The computation of the measure of effective classes is folklore; the density theorem is due to Lebesgue (1904).
- A. S. Kechris, Classical Descriptive Set Theory, Springer, 1995.
- R. G. Downey and D. R. Hirschfeldt, Algorithmic Randomness and Complexity, Springer, 2010.
- A. Nies, Computability and Randomness, Oxford University Press, 2009.