The chain rule for Kolmogorov complexity is an analogue of the chain rule for information entropy, which states: That is, the combined randomness of two sequences X and Y is the sum of the randomness of Xpluswhatever randomness is left in Y once we know X. This follows immediately from the definitions of conditional and joint entropy, and the fact from probability theory that the joint probability is the product of the marginal and conditional probability: The equivalent statement for Kolmogorov complexity does not hold exactly; it is true only up to a logarithmic term: = KP + KP + O, holds for the prefix complexity KP, where x* is a shortest program for x.) It states that the shortest program printing X and Y is obtained by concatenating a shortest program printing X with a program printing Y given X, plus at most a logarithmic factor. The results implies that algorithmic mutual information, an analogue of mutual information for Kolmogorov complexity is symmetric: I = I + O for all x,y.
Proof
The ≤ direction is obvious: we can write a program to producex and y by concatenating a program to produce x, a program to produce y given access to x, and the length of one of the programs, so that we know where to separate the two programs for x and y|x. For the ≥ direction, it suffices to show that for all k,l such that k+l = K we have that either K ≤ k + O or K ≤ l + O. Consider the list ,,..., of all pairs' produced by programs of length exactly K . Note that this list
First, suppose that xappears less than 2l times as first element. We can specify y given x,k,l by enumerating ,,... and then selecting ' in the sub-list of pairs '. By assumption, the index of in this sub-list is less than 2l and hence, there is a program for y given x,k,l of length l + O. Now, suppose that x appears at least 2l times as first element. This can happen for at most 2K-l = 2k different strings. These strings can be enumerated given k,l and hence x can be specified by its index in this enumeration. The corresponding program for x has sizek + O. Theorem proved.