An infinite binary sequence is described by its initial segments . If is computable, these segments carry no more information than their length. One would like to call random when, on the contrary, its initial segments are incompressible. This lesson shows that plain complexity is not suited to this purpose: every sequence, however irregular, has initial segments compressible by any given constant. The reason is that a description of length also conveys the number ; the next lesson removes this effect.
2.1 Computable sequences
If is computable, then . In particular for .
The function is computable, so by Proposition 1.4. The function is computable, so .
Chaitin proved the converse, a characterization of the computable sequences by the complexity of their initial segments. Its proof requires a counting lemma on the number of descriptions of a string and a careful analysis of c.e. trees of bounded width; it is admitted here.
For a sequence , the following are equivalent:
- is computable;
- ;
- , for .
The implications (1 ⇒ 2 ⇒ 3) follow from Proposition 2.1 and . For (3 ⇒ 1), see the book of Downey and Hirschfeldt, Section 3.4. An exercise below shows that cannot be replaced by : the characteristic sequence of a c.e. set satisfies .
2.2 Oscillation
For every sequence and every , there are infinitely many with .
Let be the machine that, on input , outputs , where is the string associated with the number . Let be such that .
Let . Let , and let be the number associated with , so that . Let be the string of length such that . Since the string associated with is , . Hence
Each gives a length ; these lengths are unbounded, so there are infinitely many of them.
The prefix , read as a number , announces the length of the next block. A description of the block alone then suffices, since its length restores the prefix. The proof gives more: the deficiency at length is , and is about , so for infinitely many .
No sequence satisfies for every , whatever the constant .
The incompressible strings of Proposition 1.6 cannot be the initial segments of a single sequence at all lengths. A definition of random sequences through compressibility must use another complexity. Prefix-free complexity, introduced in the next lesson, does not suffer from this effect, and a sequence is random in the sense of the following course when for all .
2.3 The lower envelope of the complexity of numbers
For each , only finitely many numbers satisfy , since they have descriptions of length at most . So tends to infinity. It does so more slowly than any computable function tending to infinity.
Let . Then is non-decreasing and unbounded. For every total computable non-decreasing unbounded function , for all large enough .
The function is non-decreasing by definition, and unbounded since is finite for each .
Let be the least with ; it is total computable, since is unbounded. By Proposition 1.4, there is with for every . Let , and let be such that ; it exists since is non-decreasing and unbounded. Then , since , and , so . For large, is large, and .
For instance, is small for infinitely many in a range where is large: for . The function is a typical example of a function that tends to infinity, but slower than every computable function tending to infinity; it is computable in , since holds if and only if some string of length less than is a -description of a number , a c.e. condition.
2.4 Exercises
Show that for every there are strings , with .
Solution
Let and be as in the proof of Theorem 2.3, and such that for every . Let and . Let be a string of length with (Proposition 1.6). Let be the number associated with ; then , so . Write with . As in the proof of the theorem, , and . Hence .
Let be a c.e. set. Show that for .
Hint
is determined by and the number of elements of below . Code these two numbers by two strings whose lengths are linked, so that no separator is needed.
Solution
Let . Given and , enumerate until elements smaller than have appeared; these are exactly the elements of below , so is computed. Let be the string associated with , of length , and let be the binary representation of padded with leading zeros to length ; this is possible since . The machine that, on an input of odd length , splits it into of length and of length , and runs the enumeration above, outputs on the input . So . Since non-computable c.e. sets exist, this shows that the bound of Theorem 2.2 cannot be replaced by .
2.5 Notes and references
The oscillation theorem is due to Martin-Löf (1966), who introduced at the same time the definition of randomness through effective tests, treated in the next course. Chaitin’s characterization of the computable sequences dates from 1976; a form with conditional complexity is due to Loveland (1969). The bound for c.e. sets is due to Barzdin (1968). The lower envelope theorem is in Zvonkin and Levin’s survey (1970).
- P. Martin-Löf, The definition of random sequences, Information and Control 9 (1966), 602–619.
- G. J. Chaitin, Information-theoretic characterizations of recursive infinite strings, Theoretical Computer Science 2 (1976), 45–48.
- A. K. Zvonkin and L. A. Levin, The complexity of finite objects and the development of the concepts of information and randomness by means of the theory of algorithms, Russian Mathematical Surveys 25 (1970), 83–124.
- R. G. Downey and D. R. Hirschfeldt, Algorithmic Randomness and Complexity, Springer, 2010.