Compressibility (computer Science)
   HOME

TheInfoList



OR:

In algorithmic information theory (a subfield of
computer science Computer science is the study of computation, information, and automation. Computer science spans Theoretical computer science, theoretical disciplines (such as algorithms, theory of computation, and information theory) to Applied science, ...
and
mathematics Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
), the Kolmogorov complexity of an object, such as a piece of text, is the length of a shortest
computer program A computer program is a sequence or set of instructions in a programming language for a computer to Execution (computing), execute. It is one component of software, which also includes software documentation, documentation and other intangibl ...
(in a predetermined
programming language A programming language is a system of notation for writing computer programs. Programming languages are described in terms of their Syntax (programming languages), syntax (form) and semantics (computer science), semantics (meaning), usually def ...
) that produces the object as output. It is a measure of the
computation A computation is any type of arithmetic or non-arithmetic calculation that is well-defined. Common examples of computation are mathematical equation solving and the execution of computer algorithms. Mechanical or electronic devices (or, hist ...
al resources needed to specify the object, and is also known as algorithmic complexity, Solomonoff–Kolmogorov–Chaitin complexity, program-size complexity, descriptive complexity, or algorithmic entropy. It is named after
Andrey Kolmogorov Andrey Nikolaevich Kolmogorov ( rus, Андре́й Никола́евич Колмого́ров, p=ɐnˈdrʲej nʲɪkɐˈlajɪvʲɪtɕ kəlmɐˈɡorəf, a=Ru-Andrey Nikolaevich Kolmogorov.ogg, 25 April 1903 – 20 October 1987) was a Soviet ...
, who first published on the subject in 1963 and is a generalization of classical information theory. The notion of Kolmogorov complexity can be used to state and prove impossibility results akin to
Cantor's diagonal argument Cantor's diagonal argument (among various similar namesthe diagonalisation argument, the diagonal slash argument, the anti-diagonal argument, the diagonal method, and Cantor's diagonalization proof) is a mathematical proof that there are infin ...
, Gödel's incompleteness theorem, and Turing's halting problem. In particular, no program ''P'' computing a
lower bound In mathematics, particularly in order theory, an upper bound or majorant of a subset of some preordered set is an element of that is every element of . Dually, a lower bound or minorant of is defined to be an element of that is less th ...
for each text's Kolmogorov complexity can return a value essentially larger than ''P'''s own length (see section ); hence no single program can compute the exact Kolmogorov complexity for infinitely many texts.


Definition


Intuition

Consider the following two strings of 32 lowercase letters and digits: : abababababababababababababababab , and : 4c1j5b2p0cv4w1x8rx2y39umgw5q85s7 The first string has a short English-language description, namely "write ab 16 times", which consists of 17 characters. The second one has no obvious simple description (using the same character set) other than writing down the string itself, i.e., "write 4c1j5b2p0cv4w1x8rx2y39umgw5q85s7" which has 38 characters. Hence the operation of writing the first string can be said to have "less complexity" than writing the second. More formally, the
complexity Complexity characterizes the behavior of a system or model whose components interact in multiple ways and follow local rules, leading to non-linearity, randomness, collective dynamics, hierarchy, and emergence. The term is generally used to c ...
of a string is the length of the shortest possible description of the string in some fixed universal description language (the sensitivity of complexity relative to the choice of description language is discussed below). It can be shown that the Kolmogorov complexity of any string cannot be more than a few bytes larger than the length of the string itself. Strings like the ''abab'' example above, whose Kolmogorov complexity is small relative to the string's size, are not considered to be complex. The Kolmogorov complexity can be defined for any mathematical object, but for simplicity the scope of this article is restricted to strings. We must first specify a description language for strings. Such a description language can be based on any computer programming language, such as
Lisp Lisp (historically LISP, an abbreviation of "list processing") is a family of programming languages with a long history and a distinctive, fully parenthesized Polish notation#Explanation, prefix notation. Originally specified in the late 1950s, ...
, Pascal, or
Java Java is one of the Greater Sunda Islands in Indonesia. It is bordered by the Indian Ocean to the south and the Java Sea (a part of Pacific Ocean) to the north. With a population of 156.9 million people (including Madura) in mid 2024, proje ...
. If P is a program which outputs a string ''x'', then P is a description of ''x''. The length of the description is just the length of P as a character string, multiplied by the number of bits in a character (e.g., 7 for
ASCII ASCII ( ), an acronym for American Standard Code for Information Interchange, is a character encoding standard for representing a particular set of 95 (English language focused) printable character, printable and 33 control character, control c ...
). We could, alternatively, choose an encoding for
Turing machine A Turing machine is a mathematical model of computation describing an abstract machine that manipulates symbols on a strip of tape according to a table of rules. Despite the model's simplicity, it is capable of implementing any computer algori ...
s, where an ''encoding'' is a function which associates to each Turing Machine M a bitstring . If M is a Turing Machine which, on input ''w'', outputs string ''x'', then the concatenated string ''w'' is a description of ''x''. For theoretical analysis, this approach is more suited for constructing detailed formal proofs and is generally preferred in the research literature. In this article, an informal approach is discussed. Any string ''s'' has at least one description. For example, the second string above is output by the pseudo-code: function GenerateString2() return "4c1j5b2p0cv4w1x8rx2y39umgw5q85s7" whereas the first string is output by the (much shorter) pseudo-code: function GenerateString1() return "ab" × 16 If a description ''d''(''s'') of a string ''s'' is of minimal length (i.e., using the fewest bits), it is called a minimal description of ''s'', and the length of ''d''(''s'') (i.e. the number of bits in the minimal description) is the Kolmogorov complexity of ''s'', written ''K''(''s''). Symbolically, :''K''(''s'') = , ''d''(''s''), . The length of the shortest description will depend on the choice of description language; but the effect of changing languages is bounded (a result called the ''invariance theorem'', see
below Below may refer to: *Earth *Ground (disambiguation) *Soil *Floor * Bottom (disambiguation) *Less than *Temperatures below freezing *Hell or underworld People with the surname * Ernst von Below (1863–1955), German World War I general * Fred Belo ...
).


Plain Kolmogorov complexity ''C''

There are two definitions of Kolmogorov complexity: ''plain'' and ''prefix-free''. The plain complexity is the minimal description length of any program, and denoted C(x) while the prefix-free complexity is the minimal description length of any program encoded in a
prefix-free code A prefix code is a type of code system distinguished by its possession of the prefix property, which requires that there is no whole code word in the system that is a prefix (initial segment) of any other code word in the system. It is trivially t ...
, and denoted K(x). The plain complexity is more intuitive, but the prefix-free complexity is easier to study. By default, all equations hold only up to an additive constant. For example, f(x) = g(x) really means that f(x) = g(x) + O(1), that is, \exists c, \forall x, , f(x) - g(x), \leq c. Let U: 2^* \to 2^* be a computable function mapping finite binary strings to binary strings. It is a universal function if, and only if, for any computable f: 2^* \to 2^*, we can encode the function in a "program" s_f, such that \forall x \in 2^*, U(s_fx) = f(x) . We can think of U as a program interpreter, which takes in an initial segment describing the program, followed by data that the program should process. One problem with plain complexity is that C(xy) \not < C(x) + C(y), because intuitively speaking, there is no general way to tell where to divide an output string just by looking at the concatenated string. We can divide it by specifying the length of x or y, but that would take O(\min(\ln x, \ln y)) extra symbols. Indeed, for any c > 0 there exists x, y such that C(xy) \geq C(x) + C(y) + c. Typically, inequalities with plain complexity have a term like O(\min(\ln x, \ln y)) on one side, whereas the same inequalities with prefix-free complexity have only O(1). The main problem with plain complexity is that there is something extra sneaked into a program. A program not only represents for something with its code, but also represents its own length. In particular, a program x may represent a binary number up to \log_2 , x, , simply by its own length. Stated in another way, it is as if we are using a termination symbol to denote where a word ends, and so we are not using 2 symbols, but 3. To fix this defect, we introduce the prefix-free Kolmogorov complexity.


Prefix-free Kolmogorov complexity ''K''

A prefix-free code is a subset of 2^* such that given any two different words x, y in the set, neither is a prefix of the other. The benefit of a prefix-free code is that we can build a machine that reads words from the code forward in one direction, and as soon as it reads the last symbol of the word, it ''knows'' that the word is finished, and does not need to backtrack or a termination symbol. Define a prefix-free Turing machine to be a Turing machine that comes with a prefix-free code, such that the Turing machine can read any string from the code in one direction, and stop reading as soon as it reads the last symbol. Afterwards, it may compute on a work tape and write to a write tape, but it cannot move its read-head anymore. This gives us the following formal way to describe ''K''. * Fix a prefix-free universal Turing machine, with three tapes: a read tape infinite in one direction, a work tape infinite in two directions, and a write tape infinite in one direction. * The machine can read from the read tape in one direction only (no backtracking), and write to the write tape in one direction only. It can read and write the work tape in both directions. * The work tape and write tape start with all zeros. The read tape starts with an input prefix code, followed by all zeros. * Let S be the prefix-free code on 2^*, used by the universal Turing machine. Note that some universal Turing machines may not be programmable with prefix codes. We must pick only a prefix-free universal Turing machine. The prefix-free complexity of a string x is the shortest prefix code that makes the machine output x:K(x) := \min\


Invariance theorem


Informal treatment

There are some description languages which are optimal, in the following sense: given any description of an object in a description language, said description may be used in the optimal description language with a constant overhead. The constant depends only on the languages involved, not on the description of the object, nor the object being described. Here is an example of an optimal description language. A description will have two parts: * The first part describes another description language. * The second part is a description of the object in that language. In more technical terms, the first part of a description is a computer program (specifically: a compiler for the object's language, written in the description language), with the second part being the input to that computer program which produces the object as output. The invariance theorem follows: Given any description language ''L'', the optimal description language is at least as efficient as ''L'', with some constant overhead. Proof: Any description ''D'' in ''L'' can be converted into a description in the optimal language by first describing ''L'' as a computer program ''P'' (part 1), and then using the original description ''D'' as input to that program (part 2). The total length of this new description ''D′'' is (approximately): :, ''D′'' , = , ''P'', + , ''D'', The length of ''P'' is a constant that doesn't depend on ''D''. So, there is at most a constant overhead, regardless of the object described. Therefore, the optimal language is universal
up to Two Mathematical object, mathematical objects and are called "equal up to an equivalence relation " * if and are related by , that is, * if holds, that is, * if the equivalence classes of and with respect to are equal. This figure of speech ...
this additive constant.


A more formal treatment

Theorem: If ''K''1 and ''K''2 are the complexity functions relative to
Turing complete Alan Mathison Turing (; 23 June 1912 – 7 June 1954) was an English mathematician, computer scientist, logician, cryptanalyst, philosopher and theoretical biologist. He was highly influential in the development of theoretical comput ...
description languages ''L''1 and ''L''2, then there is a constant ''c'' – which depends only on the languages ''L''1 and ''L''2 chosen – such that :∀''s''. −''c'' ≤ ''K''1(''s'') − ''K''2(''s'') ≤ ''c''. Proof: By symmetry, it suffices to prove that there is some constant ''c'' such that for all strings ''s'' :''K''1(''s'') ≤ ''K''2(''s'') + ''c''. Now, suppose there is a program in the language ''L''1 which acts as an
interpreter Interpreting is translation from a spoken or signed language into another language, usually in real time to facilitate live communication. It is distinguished from the translation of a written text, which can be more deliberative and make use o ...
for ''L''2: function InterpretLanguage(string ''p'') where ''p'' is a program in ''L''2. The interpreter is characterized by the following property: : Running InterpretLanguage on input ''p'' returns the result of running ''p''. Thus, if P is a program in ''L''2 which is a minimal description of ''s'', then InterpretLanguage(P) returns the string ''s''. The length of this description of ''s'' is the sum of # The length of the program InterpretLanguage, which we can take to be the constant ''c''. # The length of P which by definition is ''K''2(''s''). This proves the desired upper bound.


History and context

Algorithmic information theory is the area of computer science that studies Kolmogorov complexity and other complexity measures on strings (or other
data structure In computer science, a data structure is a data organization and storage format that is usually chosen for Efficiency, efficient Data access, access to data. More precisely, a data structure is a collection of data values, the relationships amo ...
s). The concept and theory of Kolmogorov Complexity is based on a crucial theorem first discovered by Ray Solomonoff, who published it in 1960, describing it in "A Preliminary Report on a General Theory of Inductive Inference" as part of his invention of algorithmic probability. He gave a more complete description in his 1964 publications, "A Formal Theory of Inductive Inference," Part 1 and Part 2 in ''Information and Control''. Andrey Kolmogorov later independently published this theorem in ''Problems Inform. Transmission'' in 1965.
Gregory Chaitin Gregory John Chaitin ( ; born 25 June 1947) is an Argentina, Argentine-United States, American mathematician and computer scientist. Beginning in the late 1960s, Chaitin made contributions to algorithmic information theory and metamathematics, ...
also presents this theorem in ''J. ACM'' – Chaitin's paper was submitted October 1966 and revised in December 1968, and cites both Solomonoff's and Kolmogorov's papers. The theorem says that, among algorithms that decode strings from their descriptions (codes), there exists an optimal one. This algorithm, for all strings, allows codes as short as allowed by any other algorithm up to an additive constant that depends on the algorithms, but not on the strings themselves. Solomonoff used this algorithm and the code lengths it allows to define a "universal probability" of a string on which inductive inference of the subsequent digits of the string can be based. Kolmogorov used this theorem to define several functions of strings, including complexity, randomness, and information. When Kolmogorov became aware of Solomonoff's work, he acknowledged Solomonoff's priority. For several years, Solomonoff's work was better known in the Soviet Union than in the Western World. The general consensus in the scientific community, however, was to associate this type of complexity with Kolmogorov, who was concerned with randomness of a sequence, while Algorithmic Probability became associated with Solomonoff, who focused on prediction using his invention of the universal prior probability distribution. The broader area encompassing descriptional complexity and probability is often called Kolmogorov complexity. The computer scientist Ming Li considers this an example of the
Matthew effect The Matthew effect, sometimes called the Matthew principle or cumulative advantage, is the tendency of individuals to accrue social or economic success in proportion to their initial level of popularity, friends, and wealth. It is sometimes summar ...
: "...to everyone who has, more will be given..." There are several other variants of Kolmogorov complexity or algorithmic information. The most widely used one is based on self-delimiting programs, and is mainly due to
Leonid Levin Leonid Anatolievich Levin ( ; ; ; born November 2, 1948) is a Soviet-American mathematician and computer scientist. He is known for his work in randomness in computing, algorithmic complexity and intractability, average-case complexity, fou ...
(1974). An axiomatic approach to Kolmogorov complexity based on Blum axioms (Blum 1967) was introduced by Mark Burgin in the paper presented for publication by Andrey Kolmogorov. In the late 1990s and early 2000s, methods developed to approximate Kolmogorov complexity relied on popular compression algorithms like LZW, which made difficult or impossible to provide any estimation to short strings until a method based on Algorithmic probability was introduced, offering the only alternative to compression-based methods.


Basic results

We write K(x, y) to be K((x,y)), where (x, y) means some fixed way to code for a tuple of strings x and y.


Inequalities

We omit additive factors of O(1). This section is based on. Theorem. K(x) \leq C(x) + 2\log_2 C(x) Proof. Take any program for the universal Turing machine used to define plain complexity, and convert it to a prefix-free program by first coding the length of the program in binary, then convert the length to prefix-free coding. For example, suppose the program has length 9, then we can convert it as follows:9 \mapsto 1001 \mapsto 11-00-00-11-\color where we double each digit, then add a termination code. The prefix-free universal Turing machine can then read in any program for the other machine as follows:
text Text may refer to: Written word * Text (literary theory) In literary theory, a text is any object that can be "read", whether this object is a work of literature, a street sign, an arrangement of buildings on a city block, or styles of clothi ...
\text]
text Text may refer to: Written word * Text (literary theory) In literary theory, a text is any object that can be "read", whether this object is a work of literature, a street sign, an arrangement of buildings on a city block, or styles of clothi ...
/math>The first part programs the machine to simulate the other machine, and is a constant overhead O(1). The second part has length \leq 2 \log_2 C(x) + 3. The third part has length C(x). Theorem: There exists c such that \forall x, C(x) \leq , x, + c. More succinctly, C(x) \leq , x, . Similarly, K(x) \leq , x, + 2\log_2 , x, , and K(x , , x, ) \leq , x, . Proof. For the plain complexity, just write a program that simply copies the input to the output. For the prefix-free complexity, we need to first describe the length of the string, before writing out the string itself. Theorem. (extra information bounds, subadditivity) * K(x , y) \leq K(x) \leq K(x, y) \leq \max( K(x, y) + K(y), K(y, x) + K(x)) \leq K(x) + K(y) * K(xy) \leq K(x, y) Note that there is no way to compare K(xy) and K(x, y) or K(x) or K(y, x) or K(y). There are strings such that the whole string xy is easy to describe, but its substrings are very hard to describe. Theorem. (symmetry of information) K(x, y) = K(x , y, K(y)) + K(y) = K(y, x). Proof. One side is simple. For the other side with K(x, y) \geq K(x , y, K(y)) + K(y), we need to use a counting argument (page 38 ). Theorem. (information non-increase) For any computable function f, we have K(f(x)) \leq K(x) + K(f). Proof. Program the Turing machine to read two subsequent programs, one describing the function and one describing the string. Then run both programs on the work tape to produce f(x), and write it out.


Uncomputability of Kolmogorov complexity


A naive attempt at a program to compute ''K''

At first glance it might seem trivial to write a program which can compute ''K''(''s'') for any ''s'', such as the following: function KolmogorovComplexity(string s) for i = 1 to infinity: for each string p of length exactly i if isValidProgram(p) and evaluate(p)

s return i This program iterates through all possible programs (by iterating through all possible strings and only considering those which are valid programs), starting with the shortest. Each program is executed to find the result produced by that program, comparing it to the input ''s''. If the result matches then the length of the program is returned. However this will not work because some of the programs ''p'' tested will not terminate, e.g. if they contain infinite loops. There is no way to avoid all of these programs by testing them in some way before executing them due to the non-computability of the
halting problem In computability theory (computer science), computability theory, the halting problem is the problem of determining, from a description of an arbitrary computer program and an input, whether the program will finish running, or continue to run for ...
. What is more, no program at all can compute the function ''K'', be it ever so sophisticated. This is proven in the following.


Formal proof of uncomputability of ''K''

Theorem: There exist strings of arbitrarily large Kolmogorov complexity. Formally: for each natural number ''n'', there is a string ''s'' with ''K''(''s'') ≥ ''n''.However, an ''s'' with ''K''(''s'') = ''n'' need not exist for every ''n''. For example, if ''n'' is not a multiple of 7, no
ASCII ASCII ( ), an acronym for American Standard Code for Information Interchange, is a character encoding standard for representing a particular set of 95 (English language focused) printable character, printable and 33 control character, control c ...
program can have a length of exactly ''n'' bits.
Proof: Otherwise all of the infinitely many possible finite strings could be generated by the finitely manyThere are 1 + 2 + 22 + 23 + ... + 2''n'' = 2''n''+1 − 1 different program texts of length up to ''n'' bits; cf.
geometric series In mathematics, a geometric series is a series (mathematics), series summing the terms of an infinite geometric sequence, in which the ratio of consecutive terms is constant. For example, 1/2 + 1/4 + 1/8 + 1/16 + ⋯, the series \tfrac12 + \tfrac1 ...
. If program lengths are to be multiples of 7 bits, even fewer program texts exist.
programs with a complexity below ''n'' bits. Theorem: ''K'' is not a
computable function Computable functions are the basic objects of study in computability theory. Informally, a function is ''computable'' if there is an algorithm that computes the value of the function for every value of its argument. Because of the lack of a precis ...
. In other words, there is no program which takes any string ''s'' as input and produces the integer ''K''(''s'') as output. The following proof by contradiction uses a simple Pascal-like language to denote programs; for sake of proof simplicity assume its description (i.e. an
interpreter Interpreting is translation from a spoken or signed language into another language, usually in real time to facilitate live communication. It is distinguished from the translation of a written text, which can be more deliberative and make use o ...
) to have a length of bits. Assume for contradiction there is a program function KolmogorovComplexity(string s) which takes as input a string ''s'' and returns ''K''(''s''). All programs are of finite length so, for sake of proof simplicity, assume it to be bits. Now, consider the following program of length bits: function GenerateComplexString() for i = 1 to infinity: for each string s of length exactly i if KolmogorovComplexity(s) ≥ 8000000000 return s Using KolmogorovComplexity as a subroutine, the program tries every string, starting with the shortest, until it returns a string with Kolmogorov complexity at least bits,By the previous theorem, such a string exists, hence the for loop will eventually terminate. i.e. a string that cannot be produced by any program shorter than bits. However, the overall length of the above program that produced ''s'' is only bits,including the language interpreter and the subroutine code for KolmogorovComplexity which is a contradiction. (If the code of KolmogorovComplexity is shorter, the contradiction remains. If it is longer, the constant used in GenerateComplexString can always be changed appropriately.)If KolmogorovComplexity has length ''n'' bits, the constant ''m'' used in GenerateComplexString needs to be adapted to satisfy , which is always possible since ''m'' grows faster than log10(''m''). The above proof uses a contradiction similar to that of the Berry paradox: "The smallest positive integer that cannot be defined in fewer than twenty English words". It is also possible to show the non-computability of ''K'' by reduction from the non-computability of the halting problem ''H'', since ''K'' and ''H'' are
Turing-equivalent Turing equivalence may refer to: * As related to Turing completeness, Turing equivalence means having computational power equivalent to a universal Turing machine * Turing degree In computer science and mathematical logic the Turing degree (named ...
. There is a corollary, humorously called the " full employment theorem" in the programming language community, stating that there is no perfect size-optimizing compiler.


Chain rule for Kolmogorov complexity

The chain rule for Kolmogorov complexity states that there exists a constant ''c'' such that for all ''X'' and ''Y'': :''K''(''X'',''Y'') = ''K''(''X'') + ''K''(''Y'', ''X'') + c*max(1,log(''K''(''X'',''Y''))). It states that the shortest program that reproduces ''X'' and ''Y'' is no more than a logarithmic term larger than a program to reproduce ''X'' and a program to reproduce ''Y'' given ''X''. Using this statement, one can define an analogue of mutual information for Kolmogorov complexity.


Compression

It is straightforward to compute upper bounds for ''K''(''s'') – simply
compress compress is a Unix shell compression program based on the LZW compression algorithm. Compared to gzip's fastest setting, compress is slightly slower at compression, slightly faster at decompression, and has a significantly lower compression ...
the string ''s'' with some method, implement the corresponding decompressor in the chosen language, concatenate the decompressor to the compressed string, and measure the length of the resulting string – concretely, the size of a
self-extracting archive A self-extracting archive (SFX or SEA) is a computer executable program which combines compressed data in an archive file with machine-executable code to extract the information. Running on a compatible operating system, it does not need a ...
in the given language. A string ''s'' is compressible by a number ''c'' if it has a description whose length does not exceed , ''s'', − ''c'' bits. This is equivalent to saying that . Otherwise, ''s'' is incompressible by ''c''. A string incompressible by 1 is said to be simply ''incompressible'' – by the
pigeonhole principle In mathematics, the pigeonhole principle states that if items are put into containers, with , then at least one container must contain more than one item. For example, of three gloves, at least two must be right-handed or at least two must be l ...
, which applies because every compressed string maps to only one uncompressed string, incompressible strings must exist, since there are 2''n'' bit strings of length ''n'', but only 2''n'' − 1 shorter strings, that is, strings of length less than ''n'', (i.e. with length 0, 1, ..., ''n'' − 1).As there are strings of length ''L'', the number of strings of lengths is = , which is a finite
geometric series In mathematics, a geometric series is a series (mathematics), series summing the terms of an infinite geometric sequence, in which the ratio of consecutive terms is constant. For example, 1/2 + 1/4 + 1/8 + 1/16 + ⋯, the series \tfrac12 + \tfrac1 ...
with sum =
For the same reason, most strings are complex in the sense that they cannot be significantly compressed – their ''K''(''s'') is not much smaller than , ''s'', , the length of ''s'' in bits. To make this precise, fix a value of ''n''. There are 2''n'' bitstrings of length ''n''. The
uniform A uniform is a variety of costume worn by members of an organization while usually participating in that organization's activity. Modern uniforms are most often worn by armed forces and paramilitary organizations such as police, emergency serv ...
probability Probability is a branch of mathematics and statistics concerning events and numerical descriptions of how likely they are to occur. The probability of an event is a number between 0 and 1; the larger the probability, the more likely an e ...
distribution on the space of these bitstrings assigns exactly equal weight 2−''n'' to each string of length ''n''. Theorem: With the uniform probability distribution on the space of bitstrings of length ''n'', the probability that a string is incompressible by ''c'' is at least . To prove the theorem, note that the number of descriptions of length not exceeding ''n'' − ''c'' is given by the geometric series: : 1 + 2 + 22 + ... + 2''n'' − ''c'' = 2''n''−''c''+1 − 1. There remain at least : 2''n'' − 2''n''−''c''+1 + 1 bitstrings of length ''n'' that are incompressible by ''c''. To determine the probability, divide by 2''n''.


Chaitin's incompleteness theorem

By the above theorem (), most strings are complex in the sense that they cannot be described in any significantly "compressed" way. However, it turns out that the fact that a specific string is complex cannot be formally proven, if the complexity of the string is above a certain threshold. The precise formalization is as follows. First, fix a particular
axiomatic system In mathematics and logic, an axiomatic system is a set of formal statements (i.e. axioms) used to logically derive other statements such as lemmas or theorems. A proof within an axiom system is a sequence of deductive steps that establishes ...
S for the
natural number In mathematics, the natural numbers are the numbers 0, 1, 2, 3, and so on, possibly excluding 0. Some start counting with 0, defining the natural numbers as the non-negative integers , while others start with 1, defining them as the positive in ...
s. The axiomatic system has to be powerful enough so that, to certain assertions A about complexity of strings, one can associate a formula FA in S. This association must have the following property: If FA is provable from the axioms of S, then the corresponding assertion A must be true. This "formalization" can be achieved based on a
Gödel numbering In mathematical logic, a Gödel numbering is a function that assigns to each symbol and well-formed formula of some formal language a unique natural number, called its Gödel number. Kurt Gödel developed the concept for the proof of his incom ...
. Theorem: There exists a constant ''L'' (which only depends on S and on the choice of description language) such that there does not exist a string ''s'' for which the statement :''K''(''s'') ≥ ''L''       (as formalized in S) can be proven within S. Proof Idea: The proof of this result is modeled on a self-referential construction used in
Berry's paradox The Berry paradox is a self-referential paradox arising from an expression like "The smallest positive integer not definable in under sixty letters" (a phrase with fifty-seven letters). Bertrand Russell, the first to discuss the paradox in print, ...
. We firstly obtain a program which enumerates the proofs within S and we specify a procedure ''P'' which takes as an input an integer ''L'' and prints the strings ''x'' which are within proofs within S of the statement ''K''(''x'') ≥ ''L''. By then setting ''L'' to greater than the length of this procedure ''P'', we have that the required length of a program to print ''x'' as stated in ''K''(''x'') ≥ ''L'' as being at least ''L'' is then less than the amount ''L'' since the string ''x'' was printed by the procedure ''P''. This is a contradiction. So it is not possible for the proof system S to prove ''K''(''x'') ≥ ''L'' for ''L'' arbitrarily large, in particular, for ''L'' larger than the length of the procedure ''P'', (which is finite). Proof: We can find an effective enumeration of all the formal proofs in S by some procedure function NthProof(int ''n'') which takes as input ''n'' and outputs some proof. This function enumerates all proofs. Some of these are proofs for formulas we do not care about here, since every possible proof in the language of S is produced for some ''n''. Some of these are complexity formulas of the form ''K''(''s'') ≥ ''n'' where ''s'' and ''n'' are constants in the language of S. There is a procedure function NthProofProvesComplexityFormula(int ''n'') which determines whether the ''n''th proof actually proves a complexity formula ''K''(''s'') ≥ ''L''. The strings ''s'', and the integer ''L'' in turn, are computable by procedure: function StringNthProof(int ''n'') function ComplexityLowerBoundNthProof(int ''n'') Consider the following procedure: function GenerateProvablyComplexString(int ''n'') for i = 1 to infinity: if NthProofProvesComplexityFormula(i) and ComplexityLowerBoundNthProof(i) ≥ ''n'' return StringNthProof(''i'') Given an ''n'', this procedure tries every proof until it finds a string and a proof in the formal system S of the formula ''K''(''s'') ≥ ''L'' for some ''L'' ≥ ''n''; if no such proof exists, it loops forever. Finally, consider the program consisting of all these procedure definitions, and a main call: GenerateProvablyComplexString(''n''0) where the constant ''n''0 will be determined later on. The overall program length can be expressed as ''U''+log2(''n''0), where ''U'' is some constant and log2(''n''0) represents the length of the integer value ''n''0, under the reasonable assumption that it is encoded in binary digits. We will choose ''n''0 to be greater than the program length, that is, such that ''n''0 > ''U''+log2(''n''0). This is clearly true for ''n''0 sufficiently large, because the left hand side grows linearly in ''n''0 whilst the right hand side grows logarithmically in ''n''0 up to the fixed constant ''U''. Then no proof of the form "''K''(''s'')≥''L''" with ''L''≥''n''0 can be obtained in S, as can be seen by an indirect argument: If ComplexityLowerBoundNthProof(i) could return a value ≥''n''0, then the loop inside GenerateProvablyComplexString would eventually terminate, and that procedure would return a string ''s'' such that This is a contradiction,
Q.E.D. Q.E.D. or QED is an initialism of the List of Latin phrases (full), Latin phrase , meaning "that which was to be demonstrated". Literally, it states "what was to be shown". Traditionally, the abbreviation is placed at the end of Mathematical proof ...
As a consequence, the above program, with the chosen value of ''n''0, must loop forever. Similar ideas are used to prove the properties of
Chaitin's constant In the computer science subfield of algorithmic information theory, a Chaitin constant (Chaitin omega number) or halting probability is a real number that, informally speaking, represents the probability that a randomly constructed program will ...
.


Minimum message length

The minimum message length principle of statistical and inductive inference and machine learning was developed by C.S. Wallace and D.M. Boulton in 1968. MML is Bayesian (i.e. it incorporates prior beliefs) and information-theoretic. It has the desirable properties of statistical invariance (i.e. the inference transforms with a re-parametrisation, such as from polar coordinates to Cartesian coordinates), statistical consistency (i.e. even for very hard problems, MML will converge to any underlying model) and efficiency (i.e. the MML model will converge to any true underlying model about as quickly as is possible). C.S. Wallace and D.L. Dowe (1999) showed a formal connection between MML and algorithmic information theory (or Kolmogorov complexity).


Kolmogorov randomness

''Kolmogorov randomness'' defines a string (usually of
bit The bit is the most basic unit of information in computing and digital communication. The name is a portmanteau of binary digit. The bit represents a logical state with one of two possible values. These values are most commonly represented as ...
s) as being
random In common usage, randomness is the apparent or actual lack of definite pattern or predictability in information. A random sequence of events, symbols or steps often has no order and does not follow an intelligible pattern or combination. ...
if and only if every
computer program A computer program is a sequence or set of instructions in a programming language for a computer to Execution (computing), execute. It is one component of software, which also includes software documentation, documentation and other intangibl ...
that can produce that string is at least as long as the string itself. To make this precise, a universal computer (or
universal Turing machine In computer science, a universal Turing machine (UTM) is a Turing machine capable of computing any computable sequence, as described by Alan Turing in his seminal paper "On Computable Numbers, with an Application to the Entscheidungsproblem". Co ...
) must be specified, so that "program" means a program for this universal machine. A random string in this sense is "incompressible" in that it is impossible to "compress" the string into a program that is shorter than the string itself. For every universal computer, there is at least one algorithmically random string of each length. Whether a particular string is random, however, depends on the specific universal computer that is chosen. This is because a universal computer can have a particular string hard-coded in itself, and a program running on this universal computer can then simply refer to this hard-coded string using a short sequence of bits (i.e. much shorter than the string itself). This definition can be extended to define a notion of randomness for ''infinite'' sequences from a finite alphabet. These
algorithmically random sequence Intuitively, an algorithmically random sequence (or random sequence) is a sequence of binary digits that appears random to any algorithm running on a (prefix-free or not) universal Turing machine. The notion can be applied analogously to sequen ...
s can be defined in three equivalent ways. One way uses an effective analogue of
measure theory In mathematics, the concept of a measure is a generalization and formalization of geometrical measures (length, area, volume) and other common notions, such as magnitude (mathematics), magnitude, mass, and probability of events. These seemingl ...
; another uses effective martingales. The third way defines an infinite sequence to be random if the prefix-free Kolmogorov complexity of its initial segments grows quickly enough — there must be a constant ''c'' such that the complexity of an initial segment of length ''n'' is always at least ''n''−''c''. This definition, unlike the definition of randomness for a finite string, is not affected by which universal machine is used to define prefix-free Kolmogorov complexity.


Relation to entropy

For dynamical systems, entropy rate and algorithmic complexity of the trajectories are related by a theorem of Brudno, that the equality K(x;T) = h(T) holds for almost all x. It can be shown that for the output of Markov information sources, Kolmogorov complexity is related to the
entropy Entropy is a scientific concept, most commonly associated with states of disorder, randomness, or uncertainty. The term and the concept are used in diverse fields, from classical thermodynamics, where it was first recognized, to the micros ...
of the information source. More precisely, the Kolmogorov complexity of the output of a Markov information source, normalized by the length of the output, converges almost surely (as the length of the output goes to infinity) to the
entropy Entropy is a scientific concept, most commonly associated with states of disorder, randomness, or uncertainty. The term and the concept are used in diverse fields, from classical thermodynamics, where it was first recognized, to the micros ...
of the source. Theorem. (Theorem 14.2.5 ) The conditional Kolmogorov complexity of a binary string x_ satisfies\frac 1n K(x_ , n ) \leq H_b\left(\frac 1n \sum_i x_i\right) + \frac + O(1/n) where H_b is the
binary entropy function Binary may refer to: Science and technology Mathematics * Binary number, a representation of numbers using only two values (0 and 1) for each digit * Binary function, a function that takes two arguments * Binary operation, a mathematical op ...
(not to be confused with the entropy rate).


Halting problem

The Kolmogorov complexity function is equivalent to deciding the halting problem. If we have a halting oracle, then the Kolmogorov complexity of a string can be computed by simply trying every halting program, in lexicographic order, until one of them outputs the string. The other direction is much more involved. It shows that given a Kolmogorov complexity function, we can construct a function p, such that p(n) \geq BB(n) for all large n, where BB is the
Busy Beaver In theoretical computer science, the busy beaver game aims to find a terminating Computer program, program of a given size that (depending on definition) either produces the most output possible, or runs for the longest number of steps. Since an ...
shift function (also denoted as S(n)). By modifying the function at lower values of n we get an upper bound on BB, which solves the halting problem. Consider this program p_K, which takes input as n, and uses K. * List all strings of length \leq 2n + 1. * For each such string x, enumerate all (prefix-free) programs of length K(x) until one of them does output x. Record its runtime n_x. * Output the largest n_x. We prove by contradiction that p_K(n) \geq BB(n) for all large n. Let p_ be a Busy Beaver of length n. Consider this (prefix-free) program, which takes no input: * Run the program p_, and record its runtime length BB(n). * Generate all programs with length \leq 2n. Run every one of them for up to BB(n) steps. Note the outputs of those that have halted. * Output the string with the lowest lexicographic order that has not been output by any of those. Let the string output by the program be x. The program has length \leq n + 2\log_2 n + O(1), where n comes from the length of the Busy Beaver p_, 2\log_2 n comes from using the (prefix-free) Elias delta code for the number n, and O(1) comes from the rest of the program. Therefore,K(x) \leq n + 2\log_2 n + O(1) \leq 2nfor all big n. Further, since there are only so many possible programs with length \leq 2n, we have l(x) \leq 2n + 1 by
pigeonhole principle In mathematics, the pigeonhole principle states that if items are put into containers, with , then at least one container must contain more than one item. For example, of three gloves, at least two must be right-handed or at least two must be l ...
. By assumption, p_K(n) < BB(n), so every string of length \leq 2n + 1 has a minimal program with runtime < BB(n). Thus, the string x has a minimal program with runtime < BB(n). Further, that program has length K(x) \leq 2n. This contradicts how x was constructed.


Universal probability

Fix a universal Turing machine U, the same one used to define the (prefix-free) Kolmogorov complexity. Define the (prefix-free) universal probability of a string x to beP(x) = \sum_ 2^In other words, it is the probability that, given a uniformly random binary stream as input, the universal Turing machine would halt after reading a certain prefix of the stream, and output x. Note. U(p) = x does not mean that the input stream is p000\cdots, but that the universal Turing machine would halt at some point after reading the initial segment p, without reading any further input, and that, when it halts, its has written x to the output tape. Theorem. (Theorem 14.11.1) \log \frac = K(x) + O(1)


Implications in biology

In the context of biology to argue that the symmetries and modular arrangements observed in multiple species emerge from the tendency of evolution to prefer minimal Kolmogorov complexity. Considering the genome as a program that must solve a task or implement a series of functions, shorter programs would be preferred on the basis that they are easier to find by the mechanisms of evolution. An example of this approach is the eight-fold symmetry of the compass circuit that is found across insect species, which correspond to the circuit that is both functional and requires the minimum Kolmogorov complexity to be generated from self-replicating units.


Conditional versions

The conditional Kolmogorov complexity of two strings K(x, y) is, roughly speaking, defined as the Kolmogorov complexity of ''x'' given ''y'' as an auxiliary input to the procedure. There is also a length-conditional complexity K(x, L(x)), which is the complexity of ''x'' given the length of ''x'' as known/input.


Time-bounded complexity

Time-bounded Kolmogorov complexity is a modified version of Kolmogorov complexity where the space of programs to be searched for a solution is confined to only programs that can run within some pre-defined number of steps. It is hypothesised that the possibility of the existence of an efficient algorithm for determining approximate time-bounded Kolmogorov complexity is related to the question of whether true
one-way function In computer science, a one-way function is a function that is easy to compute on every input, but hard to invert given the image of a random input. Here, "easy" and "hard" are to be understood in the sense of computational complexity theory, s ...
s exist.


See also

* Berry paradox * Code golf *
Data compression In information theory, data compression, source coding, or bit-rate reduction is the process of encoding information using fewer bits than the original representation. Any particular compression is either lossy or lossless. Lossless compressi ...
*
Descriptive complexity theory Descriptive complexity is a branch of computational complexity theory and of finite model theory that characterizes complexity classes by the type of logic needed to express the languages in them. For example, PH, the union of all complexity cla ...
*
Grammar induction Grammar induction (or grammatical inference) is the process in machine learning of learning a formal grammar (usually as a collection of ''re-write rules'' or '' productions'' or alternatively as a finite-state machine or automaton of some kind) ...
*
Inductive reasoning Inductive reasoning refers to a variety of method of reasoning, methods of reasoning in which the conclusion of an argument is supported not with deductive certainty, but with some degree of probability. Unlike Deductive reasoning, ''deductive'' ...
*
Kolmogorov structure function In 1973, Andrey Kolmogorov proposed a non-probabilistic approach to statistics and model selection. Let each datum be a finite binary string and a model be a finite set of binary strings. Consider model classes consisting of models of given maxim ...
* Levenshtein distance *
Manifold hypothesis The manifold hypothesis posits that many high-dimensional data sets that occur in the real world actually lie along low-dimensional latent manifolds inside that high-dimensional space. As a consequence of the manifold hypothesis, many data sets t ...
* Solomonoff's theory of inductive inference * Sample entropy


Notes


References


Further reading

* * * * * * * *


External links


The Legacy of Andrei Nikolaevich Kolmogorov

Chaitin's online publications




by J. Schmidhuber * * Tromp's lambda calculus computer model offers a concrete definition of K()] * Universal AI based on Kolmogorov Complexity by Marcus Hutter, M. Hutter:
David Dowe


an

pages. * {{DEFAULTSORT:Kolmogorov Complexity * * Computability theory Descriptive complexity Measures of complexity Computational complexity theory Data compression