How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Kolmogorov Complexity and Algorithmic Randomness
1 · Prerequisites
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Countability and Uncountability
- Decidable, Recognizable, and Enumerable Languages
- Finite Counting, Factorials and Binomial Coefficients
- Finite Probability Spaces and Random Variables
- Formal Languages, Encodings, and Decision Problems
- Foundations of the Real Numbers for Analysis
- Linear Recurrences and Rational Generating Functions
- Relations, Functions, and Quotients
- Robust Machine Models and Universal Computation
- Roots, Rational Powers, and Classical Inequalities
- Sequences and Limits
- The ZFC Axioms and the Basic Set Constructions
- Turing Machines, Configurations, and Computation
2 · Summary
Complexity depends on a chosen optimal machine up to an additive constant. Infinite-sequence randomness is formulated through effective tests in Cantor space; it is not a property of a single finite string.
3 · Logical flowchart
4 · Definitions, theorems and proofs
Description machines and plain Kolmogorov complexity
Definition
A description machine is a partial computable function (Computable and partial computable functions). For a finite binary string , its plain complexity relative to is , with value if no such exists. Finite strings and their lengths use Computation alphabets, words, the empty word, and .
Optimal description machines
Definition
A description machine is optimal if, for every description machine , there is a constant such that for every finite binary string . The constant may depend on but not on .
Invariance theorem for plain Kolmogorov complexity
Statement
An optimal description machine exists. Consequently, after fixing one , is invariant under replacement of by another optimal machine up to an additive constant.
Proof
Given: an effective enumeration of description machines.
Choose a computable prefix-free self-delimiting coding and define ; malformed inputs diverge. Prefix-freeness makes the split into and unique, so this is partial computable.
For a fixed , every -description becomes a -description of length , so is optimal by Optimal description machines. Applying this twice to two optimal machines gives the additive-constant comparison.
Most finite strings are incompressible
Statement
For every description machine and integers , at most strings of length have . Under the uniform distribution on , their probability is less than .
Proof
Given: and a description machine .
There are programs shorter than , and each has at most one output under Description machines and plain Kolmogorov complexity.
Therefore no more strings can have such a description; division by in the uniform finite probability space Finite probability spaces, outcome weights, events, and event probabilities gives the bound.
Kolmogorov complexity is not computable
Statement
For a fixed optimal description machine , the function is not computable.
Proof
Given: an optimal machine .
Suppose for contradiction that is computable. For each , search lexicographically among strings of length for the first with ; such an exists because fewer than programs have length below .
The search makes computable, so a fixed description machine maps a self-delimiting encoding of to using bits. Optimality Optimal description machines transfers this to , contradicting for large .
Conditional Kolmogorov complexity
Definition
A conditional description machine is a partial computable function with pairs represented through a fixed effective pairing and decoder as in Effective binary encodings and total decoders. Put with value when no such exists.
A conditional machine is optimal when, for every conditional machine , there is a constant such that for all strings . An optimal conditional machine exists by universal dispatch: prefix a program by a fixed self-delimiting code for an index of and simulate . Fix one such and write . This is the conditional version of Description machines and plain Kolmogorov complexity.
Basic conditional-complexity inequalities
Statement
For finite strings , and .
Facts & Assumptions
Given: a fixed optimal plain machine , the fixed optimal conditional machine , a fixed effective encoding of pairs, and shortest relevant descriptions. Write .
Proof
The conditional machine ignores its condition. Conditional optimality therefore gives .
Let be a shortest -description of and a shortest -description of conditional on . Self-delimit and and concatenate the two programs. A fixed plain description machine recovers , then , and outputs . Its description length is Optimality of , supplied by Invariance theorem for plain Kolmogorov complexity, transfers this bound to and proves the second inequality.
Prefix-free machines and prefix complexity
Definition
A description machine is prefix-free if its domain contains no two words one of which is a proper prefix of the other. Define , with when no description exists. This is relative complexity only; unqualified is not fixed until an optimal prefix-free machine is constructed. The underlying machine notion is Description machines and plain Kolmogorov complexity.
Kraft inequality and effective prefix-code allocation
Statement
If is prefix-free, then . Conversely, a computably enumerable request list with has an effective prefix-free allocation of codewords of lengths .
Proof
Given: a prefix-free set or a Kraft-bounded request list.
At depth , a word excludes exactly leaves; prefix-freeness makes these excluded sets disjoint. Divide their total by and let grow to obtain the inequality.
For requests, assign the leftmost currently available node of the requested depth. The Kraft bound says fewer than all leaves are occupied, so induction never gets stuck and keeps the allocated set prefix-free, as required by Prefix-free machines and prefix complexity.
Invariance theorem for prefix complexity
Statement
An optimal prefix-free machine exists. After fixing one , write .
Facts & Assumptions
Given: an acceptable enumeration of all partial computable description machines.
Proof
Dovetail the computations of on all inputs. Whenever a convergence first appears, retain it only if is prefix-comparable with no previously retained input for that same . The retained graph defines a partial computable machine with prefix-free domain. If already has prefix-free domain, no convergence is discarded, so .
Choose a computable prefix-free self-delimiting code (for example ) and set . The universal simulation supplied by Universal and acceptable numberings, together with the effective filter in step 1.1, makes partial computable.
Distinct are prefix-free and each has prefix-free domain, so the domain of is prefix-free. For every prefix-free machine , step 1.1 gives , and therefore . Thus is optimal by Prefix-free machines and prefix complexity.
Symmetry of information up to logarithmic terms
Statement
For finite strings , ; consequently this expression is symmetric in up to the same logarithmic order.
Facts & Assumptions
Given: finite strings , fixed optimal plain and conditional machines, and the fixed effective pairing used to define .
Proof
The concatenation construction in Basic conditional-complexity inequalities, with and exchanged, gives
Put and enumerate the finite set by dovetailing all programs of length at most ; it has fewer than elements. Let and . Given , the ordinal of in the enumeration of is a conditional description, so The set of whose fibre has at least elements is computably enumerable from and has fewer than members. The ordinal of in that enumeration gives Both decoder bounds transfer to the fixed machines by conditional optimality and Invariance theorem for plain Kolmogorov complexity. Adding them yields .
The elementary upper bounds on pair complexity make no larger than the displayed logarithmic order. Combining steps 1.1 and 1.2 proves the equality. Applying it after swapping proves the stated symmetry.
The incompressibility method
Definition
The incompressibility method first fixes an effective injective encoding of a finite family by binary strings (often all of one length). Since fewer than outputs can have descriptions of length below , if one may choose an encoded object whose description has length at least ; Most finite strings are incompressible is the fixed-length form of this count. One then derives structure from the impossibility of a shorter description. Conditional variants keep the auxiliary data and encoding fixed and choose large using Conditional Kolmogorov complexity.
Effectively open sets in Cantor space
Definition
Cantor space is the set of infinite binary sequences. For , let ; this cylinder has fair-coin measure .
A set is computably enumerable when it is the range of a partial computable enumeration procedure (equivalently, some algorithm prints exactly its members, repetitions allowed), in the partial-computability convention of Computable and partial computable functions. An effectively open set is a union for such a . String conventions are those of Computation alphabets, words, the empty word, and .
Martin-Löf tests and random sequences
Definition
A sequence is uniformly effectively open when there is one computably enumerable relation such that for every . Thus a single algorithm, given no oracle, enumerates all pairs and thereby enumerates the cylinders at every level uniformly.
A Martin-Löf test is a uniformly effectively open sequence with . A sequence is Martin-Löf random when for every such test. Computable enumerability, cylinders, and measure are as in Effectively open sets in Cantor space.
A universal Martin-Löf test exists
Statement
There is a Martin-Löf test such that every Martin-Löf test is contained in it after an index-dependent shift: for all .
Facts & Assumptions
Given: the acceptable numbering of partial computable functions and the uniform-enumeration convention for effectively open sequences.
Proof
Decode the outputs of the -th partial computable function as pairs , discarding malformed outputs. This enumerates a c.e. relation , and every c.e. relation occurs for some because Universal and acceptable numberings enumerates all partial computable functions. Hence the relations enumerate every uniformly effectively open candidate sequence.
For candidate , at component retain a newly enumerated cylinder only when the finite union retained so far would still have measure at most . The measure of a finite cylinder union is computable by reducing its strings to a finite prefix-free set. Thus the retained relation is uniformly c.e. and always obeys the component bound. If the candidate already is a Martin-Löf test, no cylinder is ever discarded, since every finite subunion has measure at most the final measure.
Let be the union of all retained -components at level . Dovetailing the enumerations makes uniformly effectively open, and subadditivity gives It is therefore a test by Martin-Löf tests and random sequences. If is a genuine test, step 2.1 does not trim it, so for all . Take to obtain the stated universality.
Levin--Schnorr characterization of Martin-Löf randomness
Statement
is Martin-Löf random iff some constant satisfies for every .
Facts & Assumptions
Given: and fixed optimal prefix complexity.
Proof
For , let The sequence is uniformly effectively open: dovetail the fixed prefix machine and enumerate at level when a description shorter than appears. Choose one shortest program for each such . These programs are distinct and belong to a prefix-free domain, so Kraft inequality and effective prefix-code allocation gives Thus is a Martin-Löf test. If the deficiencies are unbounded, then for every , so is not random.
Conversely, suppose fails a Martin-Löf test . For each , turn the enumeration of into a computable disjoint cylinder cover: when a cylinder arrives, enumerate a finite prefix-free partition of the part not covered at earlier stages. For every resulting cylinder , issue the request . Its length is nonnegative because one such cylinder already has measure at most , and the total request weight is The effective allocation clause of Kraft inequality and effective prefix-code allocation therefore gives a prefix-free machine with for every request. Prefix optimality Invariance theorem for prefix complexity supplies a constant with . Since , for every one of the covering strings gives deficiency at least . Hence the prefix deficiencies of are unbounded.
Step 1.1 says bounded deficiency is necessary for randomness, while step 1.2 says nonrandomness forces unbounded deficiency. Taking contrapositives under Martin-Löf tests and random sequences proves the equivalence.
Computable martingales on binary strings
Definition
A computable martingale is a total computable nonnegative real-valued function satisfying . For an infinite binary sequence , it succeeds on if . Binary-string conventions are from Computation alphabets, words, the empty word, and .
Martin-Löf randomness implies computable randomness
Statement
Every Martin-Löf random sequence is computably random.
Proof
Given: a computable martingale and a sequence on which it succeeds.
A successful martingale has , since a nonnegative martingale starting at is identically . For each , enumerate every string with and let be the union of its cylinders. Strict comparison with a computable real is computably enumerable, so is effectively open.
The prefix-minimal threshold-crossing strings have the same union as . The martingale conservation equation Computable martingales on binary strings bounds their total measure by (their total capital cannot exceed initial capital), so is a Martin-Löf test.
Success puts the sequence in every level of that test, contradicting Martin-Löf randomness as defined in Martin-Löf tests and random sequences.
Effective Hausdorff dimension
Definition
For , an effective -gale is a lower-semicomputable function satisfying for every binary string ; it succeeds on when . The effective dimension is the infimum of for which some effective -gale succeeds on . Equivalently it is characterized by effective covers made from the cylinders of Effectively open sets in Cantor space.
Effective dimension is the liminf prefix-complexity rate
Statement
For every , .
Proof
Given: .
If an effective -gale succeeds, its threshold prefix sets yield effective covers of with -weight bounded; Kraft allocation Kraft inequality and effective prefix-code allocation assigns infinitely many prefixes descriptions of length at most .
Conversely, infinitely many prefixes with provide a c.e. Kraft-bounded request family; its allocated codes define an effective -gale succeeding on .
Taking infima over in the definition Effective Hausdorff dimension and letting proves the equality; Invariance theorem for prefix complexity changes only .
False: Kolmogorov complexity is an absolute integer
Statement
The Kolmogorov complexity of a finite string is an absolute integer independent of the optimal machine.
Refutation
Given: an optimal machine .
Choose a finite word with ; such a word exists because there are infinitely many finite words but only three programs of length at most . Define and , undefined otherwise. Then is optimal because it simulates with one extra bit.
But . The invariance theorem Invariance theorem for plain Kolmogorov complexity asserts only additive-constant agreement, so the absolute claim is false.
False: normality implies algorithmic randomness
Statement
Every binary-normal sequence is Martin-Löf random.
Refutation
Given: the computable binary Champernowne sequence , which is binary normal.
For each , enumerate the single cylinder as . Computability of makes uniformly effectively open and its measure is .
Thus is a Martin-Löf test and , so is not Martin-Löf random by Martin-Löf tests and random sequences despite normality.
5 · Examples, counterexamples and false statements
None yet.
Sources
- Shen, Around Kolmogorov Complexity, §2
- Shen, Around Kolmogorov Complexity, §3
- Shen, Theorem 1
- Shen, §5
- Shen, Theorem 3
- Shen, §12
- Shen, §13
- Shen, §34
- Simpson, §6.3
- Shen, §36
- Shen, Theorem 11
- Shen, §§15,17
- Simpson, §7.3
- Simpson, §8.2
- Simpson, Theorem 8.4.8
- Shen, §38
- Franklin and Porter, Definition 2.8
- Franklin and Porter, Theorem 2.7
- Franklin and Porter, §4.5
- Franklin and Porter, Theorem 4.34
- Shen, §3
- A zoo of computable binary normal sequences, The Peculiarity of BinChamp