The course on Kolmogorov complexity proposed to call a sequence random when its initial segments are incompressible, and showed that plain complexity cannot be used for this purpose (Corollary 2.4 of “Complexity of initial segments”). With prefix-free complexity, the proposal succeeds, and gives exactly the Martin-Löf random sequences. This theorem of Levin and Schnorr connects the measure-theoretic definition of the previous lesson with the definition by incompressibility. It shows at once that is random, and leads to finer information on the complexity of random sequences.
Throughout, is the prefix-free complexity defined by an optimal prefix-free machine , and denotes inequality up to an additive constant.
3.1 Randomness and incompressibility
A sequence is Martin-Löf random if and only if there is a constant with for every .
() Suppose that for every there is with . For each , let be the open class generated by the set of strings with . This set is c.e., uniformly in , since is approximable from above: if and only if for some of length less than . Let be the set of the minimal elements of this set, those with no proper prefix in it; it is prefix-free and generates . Then
by Proposition 3.4 of “Prefix-free complexity” (4), if is non-empty; otherwise . So is a Martin-Löf test, and belongs to every by hypothesis, so it is not random.
() Suppose that is captured by a Martin-Löf test . By Lemma 1.2, there are c.e. prefix-free sets , uniformly in , with . Every satisfies , so . Enumerate the requests for and ; their lengths are at least . Their weight is
By the KC theorem (KC theorem; Levin, Schnorr, Chaitin), there is a constant with for every and . Since , some prefix belongs to , and . As is arbitrary, no constant bounds .
The two directions use the two faces of . Incompressibility fails on an effectively open class of small measure, because satisfies the Kraft inequality and is approximable from above. Conversely, the KC theorem turns a test into a machine that compresses the strings generating its components, the gain being paid for by the measure of the component used.
The classes form a universal Martin-Löf test.
The first part of the proof shows that is a Martin-Löf test. The second shows that if is captured by some test, then for every there is with , that is, .
3.2 The halting probability is random
The binary expansion of is Martin-Löf random. In particular there is a random sequence Turing equivalent to , and a random left-c.e. real.
By Chaitin, for every , and . Apply Theorem 3.1.
Random sequences can therefore be computationally powerful, unlike the low random sequences of Corollary 2.5. A left-c.e. real of is random if and only if it is the halting probability of some optimal prefix-free machine, by results of Calude, Hertling, Khoussainov and Wang, and of Kučera and Slaman (2001); this is admitted here.
3.3 The ample excess lemma
The Levin–Schnorr theorem gives a lower bound on the complexity of the prefixes of a random sequence. The excess is in fact large for most .
A sequence is Martin-Löf random if and only if .
() If the sum is at most , each term is, so for every , and is random by Theorem 3.1.
() For a string of length , let . For each , let be the set of strings of length with , and . Since is approximable from above, is the limit of a computable non-decreasing sequence of rationals, so is a property of and , and is uniformly .
A string extending an element of has a larger value of , so . We bound the size of by summing over all strings of length . Each string of length is the prefix of strings of length , so
when is non-empty, by Proposition 3.4 of “Prefix-free complexity” (4). Hence for every , and by continuity. So is a Martin-Löf test. If the sum diverges for , then for some , for every , and is captured.
The proof is an averaging argument: the average of over all sequences is , and the test collects the sequences on which the sum is large.
A sequence is Martin-Löf random if and only if .
If is random, the terms of a convergent series tend to , so tends to . Conversely, if the limit is infinite, is bounded from below, and is random by Theorem 3.1.
The lemma says more than the corollary. Let be the set of with . Each contributes more than to the convergent series, so : for a random sequence, the excess falls below only on a sparse set of lengths.
3.4 Exercises
Let be Martin-Löf random and a strictly increasing computable function. Show that the sequence is random.
Solution
For a string , the class of with for is a clopen class of measure , computable from . If is captured by , write with c.e. prefix-free (Lemma 1.2), and let . The classes , , are pairwise disjoint since the strings are incomparable, so . The sequence is uniformly , and it captures .
Let be Martin-Löf random. Show that for almost every , the bits are not all .
Hint
Use a Solovay test whose -th component has measure .
Solution
Let be the class of sequences with for every . It is the union over of the clopen classes defined with instead of , where approximates from above; these increase with , so is uniformly . Its measure is , so by the Kraft inequality. By Theorem 2.9, belongs to only finitely many .
Identify a sequence with the real . Let be random, and suppose that there is a computable sequence of rationals converging to with . Show that is left-c.e. or right-c.e.
Solution
For rationals , the class of with is a class of measure at most , uniformly in and : it is generated by the strings whose dyadic interval is contained in . Let be this class for the open interval with endpoints and (empty if they are equal). This is a Solovay test, so there is such that lies strictly between and for no . The real is not rational: a sequence with rational is eventually periodic, hence computable, hence not random. So for every , and for , and lie on the same side of . All , , are then on the same side. If they are below , the computable non-decreasing sequence converges to , which is left-c.e.; if they are above, is right-c.e. by the symmetric argument.
3.5 Notes and references
The characterization of randomness by prefix-free complexity was found independently by Levin (1973), with monotone complexity, and Schnorr (1973), with process complexity; the form with , and Corollary 3.5, are due to Chaitin. The ample excess lemma is due to Miller and Yu (2008). A third characterization of randomness, by the failure of c.e. martingales to win unbounded capital, is due to Schnorr (1971); see Downey and Hirschfeldt, Chapter 6. The last exercise is due to Rettinger, as reported by Nies.
- L. A. Levin, On the notion of a random sequence, Soviet Mathematics Doklady 14 (1973), 1413–1416.
- C.-P. Schnorr, Process complexity and effective random tests, Journal of Computer and System Sciences 7 (1973), 376–388.
- G. J. Chaitin, A theory of program size formally identical to information theory, Journal of the ACM 22 (1975), 329–340.
- J. S. Miller and L. Yu, On initial segment complexity and degrees of randomness, Transactions of the American Mathematical Society 360 (2008), 3193–3210.
- A. Kučera and T. A. Slaman, Randomness and recursive enumerability, SIAM Journal on Computing 31 (2001), 199–211.