# Incompressibility method

In mathematics, the incompressibility method is a proof method like the probabilistic method, the counting method or the pigeonhole principle. To prove that an object in a certain class (on average) satisfies a certain property, select an object of that class which is incompressible. If it does not satisfy the property, it can be compressed by computable coding. Since it can be generally proven that almost all objects in a given class are incompressible, the argument demonstrates that almost all objects in the class have the property involved (not just the average). To select an incompressible object is ineffective, and cannot be done by a computer program. However, a simple counting argument usually shows that almost all objects of a given class can be compressed by only a few bits (are incompressible).

## History

The incompressibity method depends on an objective, fixed notion of incompressibility. Such a notion was provided by the Kolmogorov complexity theory, named for Andrey Kolmogorov.[1]

One of the first uses of the incompressibility method with Kolmogorov complexity its theory of computation was to[2] prove that the running time of a one-tape Turing machine is quadratic for accepting a palindromic language and sorting algorithms require at least ${\displaystyle n\log n}$ time to sort ${\displaystyle n}$ items. The first influential paper using the incompressibility method was published in 1980.[3] The method was applied to a number of fields, and its name was coined in a textbook.[4]

## Summary

The Kolmogorov complexity of an object, represented by a finite, binary string, is the length of the shortest binary program on a fixed, optimal universal Turing machine. Since the machine is fixed and the program concerned is the shortest, the Kolmogorov complexity is a definite positive integer. The Kolmogorov complexity of an object is the length of the shortest binary program from which it can be computed. Therefore, it is a lower bound on the length of a computably-compressed version (in bits) of that object by any existing (or future) compression program.

## Applications

### Number theory

According to an elegant Euclidian proof, there is an infinite number of prime numbers. Bernhard Riemann demonstrated that the number of primes less than a given number is connected with the 0s of the Riemann zeta function. Jacques Hadamard and Charles Jean de la Vallée-Poussin proved in 1896 that this number of primes is asymptotic to ${\displaystyle n/\ln n}$ ; see Prime number theorem (use ${\displaystyle \ln }$ for the natural logarithm an ${\displaystyle \log }$ for the binary logarithm). Using the incompressibility method, G. J. Chaitin argued as follows: Each ${\displaystyle n}$ can be described by its prime factorization ${\displaystyle n=p_{1}^{n_{1}}\cdots p_{k}^{n_{k}}}$ (which is unique), where ${\displaystyle p_{1},\ldots ,p_{k}}$ are the first ${\displaystyle k}$ primes which are (at most) ${\displaystyle n}$ and the exponents (possibly) 0. Each exponent is (at most) ${\displaystyle \log n}$ , and can be described by ${\displaystyle \log \log n}$ bits. The description of ${\displaystyle n}$ can be given in ${\displaystyle k\log \log n}$ bits, provided we know the value of ${\displaystyle \log \log n}$ (enabling one to parse the consecutive blocks of exponents). To describe ${\displaystyle \log \log n}$ requires only ${\displaystyle \log \log \log n}$ bits. Using the incompressibility of most positive integers, for each ${\displaystyle k>0}$ there is a positive integer ${\displaystyle n}$ of binary length ${\displaystyle l\approx \log n}$ which cannot be described in fewer than ${\displaystyle l}$ bits. This shows that the number of primes, ${\displaystyle \pi (n)}$ less than ${\displaystyle n}$ , satisfies

${\displaystyle \pi (n)\geq {\frac {\log n}{\log \log n}}-o(1).}$

A more-sophisticated approach attributed to Piotr Berman (present proof partially by John Tromp) describes every incompressible ${\displaystyle n}$ by ${\displaystyle k}$ and ${\displaystyle n/p_{k}}$ , where ${\displaystyle p_{k}}$ is the largest prime number dividing ${\displaystyle n}$ . Since ${\displaystyle n}$ is incompressible, the length of this description must exceed ${\displaystyle \log n}$ . To parse the first block of the description ${\displaystyle k}$ must be given in prefix form ${\displaystyle P(k)=\log k+\log \log k+\log \varepsilon (k)}$ , where ${\displaystyle \varepsilon (k)}$ is an arbitrary, small, positive function. Therefore, ${\displaystyle \log p_{k}\leq P(k)}$ . Hence, ${\displaystyle p_{k}\leq n_{k}}$ with ${\displaystyle n_{k}=\varepsilon (k)k\log k}$ for a special sequence of values ${\displaystyle n_{1},n_{2},\ldots }$ . This shows that the expression below holds for this special sequence, and a simple extension shows that it holds for every ${\displaystyle n>0}$ :

${\displaystyle \pi (n)\geq {\frac {n}{\varepsilon (n)\log n}}.}$

Both proofs are presented in more detail.[4]

### Graph theory

A labeled graph ${\displaystyle G=(V,E)}$ with ${\displaystyle n}$ nodes can be represented by a string ${\displaystyle E(G)}$ of ${\displaystyle {n \choose 2}}$ bits, where each bit indicates the presence (or absence) of an edge between the pair of nodes in that position. ${\displaystyle K(G)\geq {n \choose 2}}$ , and the degree ${\displaystyle d}$ of each vertex satisfies

${\displaystyle |d-n/2|=O\left({\sqrt {n\log n}}\right).}$

To prove this by the incompressibity method, if the deviation is larger we can compress the description of ${\displaystyle G}$ below ${\displaystyle K(G)}$ ; this provides the required contradiction. This theorem is required in a more complicated proof, where the incompressibility argument is used a number of times to show that the number of unlabeled graphs is

${\displaystyle \sim {\frac {2^{n \choose 2}}{n!}}.}$ [5]

### Combinatorics

A transitive tournament is a complete directed graph, ${\displaystyle G=(V,E)}$ ; if ${\displaystyle (i,j),(j,k)\in E}$ , ${\displaystyle (i,k)\in E}$ . Consider the set of all transitive tournaments on ${\displaystyle n}$ nodes. Since a tournament is a labeled, directed complete graph, it can be encoded by a string ${\displaystyle E(G)}$ of ${\displaystyle {n \choose 2}}$ bits where each bit indicates the direction of the edge between the pair of nodes in that position. Using this encoding, every transitive tournament contains a transitive subtournament on (at least) ${\displaystyle v(n)}$ vertices with

${\displaystyle v(n)\leq 1+\lfloor 2\log n\rfloor .}$

This was shown as the first problem.[6] It is easily solved by the incompressibility method,[7] as are the coin-weighing problem, the number of covering families and expected properties; for example, at least a fraction of ${\displaystyle 1-1/n}$ of all transitive tournaments on ${\displaystyle n}$ vertices have transitive subtournaments on not more than ${\displaystyle 1+2\lceil 2\log n\rceil }$ vertices. ${\displaystyle n}$ is large enough.

If a number of events are independent (in probability theory) of one another, the probability that none of the events occur can be easily calculated. If the events are dependent, the problem becomes difficult. Lovász local lemma[8] is a principle that if events are mostly independent of one another and have an individually-small probability, there is a positive probability that none of them will occur.[9] It was proven by the incompressibility method.[10] Using the incompressibility method, several versions of expanders and superconcentrator graphs were shown to exist.[11]

### Topological combinatorics

In the Heilbronn triangle problem, throw ${\displaystyle n}$ points in the unit square and determine the maximum of the minimal area of a triangle formed by three of the points over all possible arrangements. This problem was solved for small arrangements, and much work was done on asymptotic expression as a function of ${\displaystyle n}$ . The original conjecture of Heilbronn was ${\displaystyle O(1/n^{2})}$ during the early 1950s. Paul Erdős proved that this bound is correct for ${\displaystyle n}$ , a prime number. The general problem remains unsolved, apart from the best-known lower bound ${\displaystyle \Omega ((\log n)/n^{2})}$ (achievable; hence, Heilbronn's conjecture is not correct for general ${\displaystyle n}$ ) and upper bound ${\displaystyle \exp(c{\sqrt {\log n}})/n^{8/7}}$ (proven by Komlos, Pintsz and Szemeredi in 1982 and 1981, respectively). Using the incompressibility method, the average case was studied. It was proven that if the area is too small (or large) it can be compressed below the Kolmogorov complexity of a uniformly-random arrangement (high Kolmogorov complexity). This proves that for the overwhelming majority of the arrangements (and the expectation), the area of the smallest triangle formed by three of ${\displaystyle n}$ points thrown uniformly at random in the unit square is ${\displaystyle \Theta (1/n^{3})}$ . In this case, the incompressibility method proves the lower and upper bounds of the property involved.[12]

### Probability

The law of the iterated logarithm, the law of large numbers and the recurrence property were shown to hold using the incompressibility method[13] and Kolmogorov's zero–one law,[14] with normal numbers expressed as binary strings (in the sense of E. Borel) and the distribution of 0s and 1s in binary strings of high Kolmogorov complexity.[15]

### Turing-machine time complexity

The basic Turing machine, as conceived by Alan Turing in 1936, consists of a memory: a tape of potentially-infinite cells on which a symbol can be written and a finite control, with a read-write head attached, which scans a cell on the tape. At each step, the read-write head can change the symbol in the cell being scanned and move one cell left, right, or not at all according to instruction from the finite control. Turing machines with two tape symbols may be considered for convenience, but this is not essential.

In 1968, F. C. Hennie showed that such a Turing machine requires order ${\displaystyle n^{2}}$ to recognize the language of binary palindromes in the worst case. In 1977, W. J. Paul[2] presented an incompressibility proof which showed that order ${\displaystyle n^{2}}$ time is required in the average case. For every integer ${\displaystyle n}$ , consider all words of that length. For convenience, consider words with the middle third of the word consisting of 0s. The accepting Turing machine ends with an accept state on the left (the beginning of the tape). A Turing-machine computation of a given word gives for each location (the boundary between adjacent cells) a sequence of crossings from left to right and right to left, each crossing in a particular state of the finite control. Positions in the middle third of a candidate word all have a crossing sequence of length ${\displaystyle O(n)}$ (with a total computation time of ${\displaystyle O(n^{2})}$ ), or some position has a crossing sequence of ${\displaystyle o(n)}$ . In the latter case, the word (if it is a palindrome) can be identified by that crossing sequence.

If other palindromes (ending in an accepting state on the left) have the same crossing sequence, the word (consisting of a prefix up to the position of the involved crossing sequence) of the original palindome concatenated with a suffix the remaining length of the other palindrome would be accepted as well. Taking the palindrome of ${\displaystyle \Omega (n)}$ , the Kolmogorov complexity described by ${\displaystyle o(n)}$ bits is a contradiction.

Since the overwhelming majority of binary palindromes have a high Kolmogorov complexity, this gives a lower bound on the average-case running time. The result is much more difficult, and shows that Turing machines with ${\displaystyle k+1}$ work tapes are more powerful than those with ${\displaystyle k}$ work tapes in real time (here one symbol per step).[3]

In 1984, W. Maass[16] and M. Li and P. M. B. Vitanyi [17] showed that the simulation of two work tapes by one work tape of a Turing machine takes ${\displaystyle \Theta (n^{2})}$ time deterministically (optimally, solving a 30-year open problem) and ${\displaystyle \Omega (n^{2}/(\log n\log \log n))}$ time nondeterministically [17] (in,[16] this is ${\displaystyle \Omega (n^{2}/(\log ^{2}n\log \log n))}$ . More results concerning tapes, stacks and queues, deterministically and nondeterministically,[17] were proven with the incompressibiity method.[4]

### Theory of computation

Heapsort is a sorting method, invented by J. W. J. Williams and refined by R. W. Floyd, which always runs in ${\displaystyle O(n\log n)}$ time. It is questionable whether Floyd's method is better than Williams' on average, although it is better in the worst case. Using the incompressibility method, it was shown[4] that Williams' method runs on average in ${\displaystyle 2n\log n+O(n)}$ time and Floyd's method runs on average in ${\displaystyle n\log n+O(n)}$ time. The proof was suggested by Ian Munro.

Shellsort, discovered by Donald Shell in 1959, is a comparison sort which divides a list to be sorted into sublists and sorts them separately. The sorted sublists are then merged, reconstituting a partially-sorted list. This process repeats a number of times (the number of passes). The difficulty of analyzing the complexity of the sorting process is that it depends on the number ${\displaystyle n}$ of keys to be sorted, on the number ${\displaystyle p}$ of passes and the increments governing the scattering in each pass; the sublist is the list of keys which are the increment parameter apart. Although this sorting method inspired a large number of papers, only the worst case was established. For the average running time, only the best case for a two-pass Shellsort[18] and an upper bound of ${\displaystyle O(n^{23/15})}$ [19] for a particular increment sequence for three-pass Shellsort were established. A general lower bound on an average ${\displaystyle p}$ -pass Shellsort was given[20] which was the first advance in this problem in four decades. In every pass, the comparison sort moves a key to another place a certain distance (a path length). All these path lengths are logarithmically coded for length in the correct order (of passes and keys). This allows the reconstruction of the unsorted list from the sorted list. If the unsorted list is incompressible (or nearly so), since the sorted list has near-zero Kolmogorov complexity (and the path lengths together give a certain code length) the sum must be at least as large as the Kolmogorov complexity of the original list. The sum of the path lengths corresponds to the running time, and the running time is lower-bounded in this argument by ${\displaystyle \Omega (pn^{1+1/p})}$ . This was improved in [21] to a lower bound of

${\displaystyle \Omega \left(n\sum _{k=1}^{p}h_{k-1}/h_{k}\right)}$

where ${\displaystyle h_{0}=n}$ . This implies for example the Jiang-Li-Vitanyi lower bound for all ${\displaystyle p}$ -pass increment sequences and improves that lower bound for particular increment sequences; the Janson-Knuth upper bound is matched by a lower bound for the used increment sequence, showing that three pass Shellsort for this increment sequence uses ${\displaystyle \Theta (n^{23/15})}$ inversions.

Another example is as follows. ${\displaystyle n,r,s}$ are natural numbers and ${\displaystyle 2\log n\leq r,s\leq n/4}$ , it was shown that for every ${\displaystyle n}$ there is a Boolean ${\displaystyle n\times n}$ matrix; every ${\displaystyle s\times (n-r)}$ submatrix has a rank at least ${\displaystyle n/2}$ by the incompressibility method.

### Logic

According to Gödel's first incompleteness theorem, in every formal system with computably enumerable theorems (or proofs) strong enough to contain Peano arithmetic, there are true (but unprovable) statements or theorems. This is proved by the incompressibility method; every formal system ${\displaystyle F}$ can be described finitely (for example, in ${\displaystyle f}$ bits). In such a formal system, we can express ${\displaystyle K(x)\geq |x|}$ since it contains arithmetic. Given ${\displaystyle F}$ , we can search exhaustively for a proof that some string ${\displaystyle y}$ of length ${\displaystyle n\gg f}$ satisfies ${\displaystyle K(y)\geq n}$ . In this way, we obtain the first such string; ${\displaystyle K(y)\leq \log n+f}$ : contradiction.[22]

## Comparison with other methods

Although the probabilistic method generally shows the existence of an object with a certain property in a class, the incompressibility method tends to show that the overwhelming majority of objects in the class (the average, or the expectation) have that property. It is sometimes easy to turn a probabilistic proof into an incompressibility proof or vice versa. In some cases, it is difficult or impossible to turn a proof by incompressibility into a probabilistic (or counting proof). In virtually all the cases of Turing-machine time complexity cited above, the incompressibility method solved problems which had been open for decades; no other proofs are known. Sometimes a proof by incompressibility can be turned into a proof by counting, as happened in the case of the general lower bound on the running time of Shellsort.[20]