Random sequences are typical with respect to measure, and one may ask what they can compute. Two results point in opposite directions. Sacks’s theorem says that a non-computable set is computed by a null class of oracles only: a sequence chosen at random computes it with probability . The Kučera–Gács theorem says that every set is nevertheless computed by some Martin-Löf random sequence. The lesson ends with a computational property shared by all random sequences: they compute diagonally non-computable functions.
For a string , means that the computation of on input with oracle halts with output and only queries the oracle below ; by Proposition 1.5 of “Computation relative to an oracle”, it then holds with every oracle extending .
4.1 Upper cones are null
If is not computable, then .
The class is the union over of the classes . Each is Borel: if and only if for every there is a prefix of with . By subadditivity, it suffices to show that each is null.
Suppose that . By the density lemma (Lemma 1.6), there is a string with . For and , let be the open class generated by the strings with ; these classes are uniformly .
- , so .
- and are disjoint: a sequence in both would have prefixes with and , and by monotonicity the longer of the two would give both outputs. So .
To compute , enumerate and until the measure of the finite part of one of them inside exceeds , and output the corresponding . The search terminates by the first item, since the measure of is approached from below, and its output is by the second. This computes , a contradiction.
The proof is a majority vote: if a positive proportion of the oracles compute through , the oracles extending agree in their majority with , and the majority can be detected effectively. Sacks’s theorem is the measure-theoretic analogue of the fact that upper cones of non-computable sets are meager.
For every non-computable , almost every sequence fails to compute . In particular the class of sequences computing is null.
This class nevertheless contains random sequences, such as (Corollary 3.3). Martin-Löf tests capture only effectively null classes, and the null class , which is , is not contained in any of them.
4.2 Every set is computable from a random sequence
A computable tree in which every node has two incomparable extensions has members of every Turing degree above its own. The tree of a class may have dead ends, and one cannot tell effectively which nodes branch. When the class has positive measure, branching nodes appear at a bounded depth.
Let be a Borel class, a string and with . Then there are at least two strings of length with .
is the average of over the strings of length . If at most one of them had relative measure at least , this one being at most and the others less than , the average would be less than
a contradiction.
Let be a class of positive measure. For every set , there is with and . In particular, every set is computable from a Martin-Löf random sequence, and every Turing degree above contains a random sequence.
Let with computable, and let be such that . Let and . For a string of length , let be the set of strings of length with . By Lemma 4.3 with , if , then has at least two elements.
Construction. Let be the empty string; . Given of length with , let be the leftmost element of if , and the rightmost one if , for the lexicographic order. It satisfies . Let . Each meets , since it has positive relative measure, so every prefix of is extendible in and .
. By Proposition 1.3 (2) applied to the class , the relative measure is right-c.e., uniformly in . So the condition , for a rational , is : it fails if and only if some approximation from above falls below . With , one computes from , and with one chooses .
. The sets are co-c.e. uniformly in and : there are finite sets , computable from , , , decreasing in , with intersection . To compute , let and , and search for a stage at which is the leftmost or the rightmost element of ; output in the first case and in the second. Suppose , so that is the leftmost element of . The finitely many strings of length to the left of are not in , so they leave at some stage, and becomes leftmost. On the other hand, has an element to the right of , which belongs to every , so is never the rightmost element. The search therefore returns . The case is symmetric.
For the last statements, take for the class of random sequences of Corollary 2.5 (2), of measure at least . If , then , so .
The reduction of to reads only to compute , a computable bound on the use: it is a weak truth-table reduction. The encoding is not computable, since recognizing the nodes with large relative measure requires , but the decoding is: the decoder waits for the competitors of to reveal that they have small relative measure.
4.3 Random sequences compute DNC functions
Recall from Definition 3.1 of “Diagonally non-computable functions” that a function is diagonally non-computable if for every with . Strings are identified with numbers through the length-lexicographic enumeration of Plain Kolmogorov complexity.
A set computes a DNC function if and only if computes a function with for every .
() Let be as in Theorem 3.4 of “Diagonally non-computable functions” (2): whenever . Since is approximable from above, the set of strings with is c.e. uniformly in , and by SMN there is a total computable function such that is this set. It has fewer than elements, since distinct strings have distinct shortest descriptions, of length less than . Let . Then and , that is, .
() Let with for every . The machine is prefix-free, since its domain is contained in that of , and applied to a shortest description of gives when it converges. So there is a constant with
for every with , by Proposition 3.4 of “Prefix-free complexity” (2). Let be such that for . For with , , so . Modify on the finitely many , setting if and otherwise, and for . The function is -computable, as a finite modification of , and DNC.
Every Martin-Löf random sequence computes a DNC function. Consequently, the class of sequences computing a DNC function is conull, and no 1-generic set computes a Martin-Löf random sequence.
Let be random. By Theorem 3.1, there is with for every . The function is -computable and satisfies , so computes a DNC function by Theorem 4.5. The class MLR is conull (Corollary 2.5). A 1-generic set computes no DNC function, by a theorem of Demuth and Kučera proved in the course on Cohen genericity (Demuth, Kučera); hence it computes no random sequence.
The two notions of typicality, by measure and by category, are thus incompatible in the Turing degrees: no random sequence is computable from a 1-generic set. By Kučera–Gács, every 1-generic set is computable from a random sequence.
The converse fails: there are DNC functions that compute no random sequence (Ambos-Spies, Kjos-Hanssen, Lempp, Slaman, 2004). A set computes a DNC function if and only if it computes an infinite subset of a random sequence, by results of Kjos-Hanssen (2009) and of Greenberg and Miller (2009); this is admitted here. A random sequence computes a -valued DNC function only if it computes , by a theorem of Stephan (2006), also admitted.
4.4 Exercises
Show that if a random sequence is Turing equivalent to a c.e. set , then .
Solution
By Corollary 4.6, computes a DNC function, hence so does . By Arslanov’s completeness criterion (Arslanov's completeness criterion), .
Show that for every there is a random sequence , and that the class of such sequences is null.
Solution
Apply Theorem 4.4 to , which computes : the random sequence obtained satisfies . The class of sequences computing is null by Theorem 4.1, and contains the class considered.
Let be a class of positive measure. Show that has a member in every Turing degree above , and a member that is not computably dominated. Compare with the computably dominated basis theorem.
Solution
For , Theorem 4.4 gives with . With , the member is and not computable, hence not computably dominated (Definition 3.3 of “Basis theorems”). By Computably dominated basis theorem, also has a computably dominated member: a class of positive measure has members of both kinds.
4.5 Notes and references
Sacks’s theorem is from his monograph Degrees of Unsolvability (1963); de Leeuw, Moore, Shannon and Shapiro (1956) had proved that a set computed by a positive measure of oracles is computable, in the form of a theorem on probabilistic machines. The Kučera–Gács theorem was proved independently by Kučera (1985) and Gács (1986); Gács obtained a use bounded by , and Barmpalias and Lewis-Pye studied the optimal use. Kučera (1985) proved that random sequences compute DNC functions, and Kjos-Hanssen, Merkle and Stephan (2011) the characterization by complexity.
- G. E. Sacks, Degrees of Unsolvability, Annals of Mathematics Studies 55, Princeton University Press, 1963.
- A. Kučera, Measure, Π⁰₁-classes and complete extensions of PA, in: Recursion Theory Week, Lecture Notes in Mathematics 1141, Springer, 1985, 245–259.
- P. Gács, Every sequence is reducible to a random one, Information and Control 70 (1986), 186–192.
- B. Kjos-Hanssen, W. Merkle and F. Stephan, Kolmogorov complexity and the recursion theorem, Transactions of the American Mathematical Society 363 (2011), 5465–5480.
- B. Kjos-Hanssen, Infinite subsets of random sets of integers, Mathematical Research Letters 16 (2009), 103–110.
- N. Greenberg and J. S. Miller, Lowness for Kurtz randomness, Journal of Symbolic Logic 74 (2009), 665–678.
- F. Stephan, Martin-Löf random and PA-complete sets, in: Logic Colloquium ‘02, Lecture Notes in Logic 27, 2006, 342–348.