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
- Acceptable Numberings, the s-m-n Theorem, and Recursion
- Compactness in Metric Spaces
- 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
- Infinite Product Measures and Kolmogorov Extension
- limsup, liminf, and Subsequential Limits
- Linear Recurrences and Rational Generating Functions
- Measurable Functions and Simple Approximation
- Measure Preserving Transformations and Poincare Recurrence
- Measures and Their Basic Properties
- Metric Spaces
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Order, Zorn's Lemma, and the Axiom of Choice
- Outer Measure and the Caratheodory Extension Theorem
- Primitive Recursive and Partial Computable Functions
- Product Measures and the Fubini Tonelli Theorems
- Relations, Functions, and Quotients
- Robust Machine Models and Universal Computation
- Roots, Rational Powers, and Classical Inequalities
- Sequences and Limits
- Sigma Algebras and Borel Sets
- Suprema and Infima
- The Lebesgue Integral and the Convergence Theorems
- The ZFC Axioms and the Basic Set Constructions
- Topological Spaces and Continuity
- Topology of ℝ
- 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 by the fixed computable pairing The leading unary length determines the end of , leaving as the remainder, so both encoding and decoding are Turing computable; in particular this is an effective encoding in the sense of 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. Enumerate conditional machines by their finite Turing-machine codes. On program and condition , a single conditional machine decodes the machine code and simulates that machine on using the universal interpreter (A universal Turing machine exists for the chosen coding). For each fixed choose one of its codes ; this adds only bits to , independently of . Fix this optimal machine 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, maintain a finite prefix-free set of free tree nodes, initially for the empty word . Require that its nodes have pairwise distinct lengths and that their cylinders are exactly the unallocated part of the binary tree. After finitely many requests, the total free capacity is . For the next request of length , this capacity is at least by the bound on the entire request list. If every node of had length greater than , distinctness of the lengths would make its capacity at most , with strict inequality because is finite. Therefore contains a node of length at most . Choose the one of greatest such length ; it is unique because the free-node lengths are distinct.
Remove from . Allocate the descendant as the requested codeword, and insert the siblings for into . Their depths are ; no existing free node has one of these depths, by maximality of among depths at most . The new free nodes are prefix-free and partition exactly the part of outside the allocated cylinder, so both invariants and the capacity identity persist. Each step is a finite computable operation on the current finite set . Processing the computable enumeration in order therefore gives distinct codewords of the requested lengths and a prefix-free effective allocation, including the empty-word case .
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.
Choice-free fair-coin content on open subsets of binary sequence space
Statement
Let , let be its algebra of finite unions of cylinders, and let be the fair-coin content of Binary-sequence cylinders and fair-coin content. For every open define its fair-coin open content by This definition and the following assertions are choice-free: , , for every prefix cylinder, is monotone, and for every sequence of open sets For pairwise disjoint open sets equality holds. If countable choice is assumed, the unique Borel fair-coin probability of Fair-coin measure on binary sequences satisfies for every open . No Borel measure on all Borel sets is asserted in the choice-free part.
Facts & Assumptions
Given: The cylinder algebra and content , and an arbitrary sequence of open subsets of .
The cylinder algebra consists of finite unions of clopen cylinders; is monotone and finitely additive, with total mass one and the displayed cylinder masses (Binary-sequence cylinders and fair-coin content).
Binary sequence space is compact and its prefix cylinders form a countable base, by an explicit finite-branching argument without choice (Binary-sequence space is compact without Tychonoff).
Under countable choice, there is a Borel probability extending (Fair-coin measure on binary sequences, The Axiom of Countable Choice ()).
Proof
The collection in the supremum is nonempty because it contains , and all its values lie in by [F1], so the real supremum exists. Monotonicity follows by inclusion of the collections being supremized. The empty and whole-space values follow directly from and . If is clopen, [F1] gives ; taking gives the reverse bound and proves the cylinder formula.
Let , and fix with . The family is an open cover of . By [F2] finitely many , indexed by a finite set , cover . Consider all prefix cylinders contained in at least one with ; they cover because prefix cylinders form a base. Together with they cover , so compactness gives finitely many such cylinders covering . Assign each selected cylinder to the least eligible , and let be the finite union of cylinders assigned to . Then and . By [F1], . Taking the supremum over proves countable subadditivity. No choice of a cylinder for each point was made; the finite selections came from the stated compactness conclusion.
If are disjoint and open, clopen and are disjoint, so [F1] gives . Taking the two suprema yields ; step 2.1 gives the reverse inequality. Induction yields finite additivity on pairwise disjoint opens. For a disjoint sequence, monotonicity then gives for every ; take the supremum in and combine with step 2.1 to obtain equality.
Now assume countable choice and take the Borel measure of [F3]. Enumerate all prefix cylinders contained in an open in the canonical length-then-binary-value order, and let be the union of those among the first strings that are contained in . Each belongs to , the sequence increases, and by [F2]. Continuity from below of gives . Conversely, if lies in , then the open cover of compact has a finite subcover. Since the increase, for some . Thus , and taking the supremum proves .
Effectively open sets in Cantor space
Definition
Cantor space is the set of infinite binary sequences. For , let . Its choice-free fair-coin content is , as in Binary-sequence cylinders and fair-coin content. The choice-free fair-coin open content of Choice-free fair-coin content on open subsets of binary sequence space assigns this same value to and is countably subadditive on open sets. Assuming countable choice (The Axiom of Countable Choice ()), agrees on open sets with the unique Borel fair-coin probability of Fair-coin measure on binary sequences.
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 . The definition of effective openness and the open-content value require no choice principle.
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. This notion uses only the cylinders of Effectively open sets in Cantor space and requires no choice principle.
For open write , the choice-free fair-coin open content of Choice-free fair-coin content on open subsets of binary sequence space.
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 open content are as in Effectively open sets in Cantor space. Under countable choice this is the usual Borel fair-coin measure of each ; the test definition itself requires no choice principle.
A universal Martin-Löf test exists
Statement
Assume countable choice and dependent choice. 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: Countable and dependent choice, the acceptable numbering of partial computable functions, and the uniform-enumeration convention for effectively open sequences. The fair-coin measure on is the product of two-point laws with mass at each bit; Assuming countable and dependent choice, countable products of arbitrary probability spaces supplies it under these choice hypotheses and gives each cylinder mass .
Proof
Dovetail the universal evaluation of the -th partial computable function over all natural inputs and running times. Decode any output as a pair and discard malformed outputs. This uniformly enumerates a c.e. relation for each . Conversely, an enumeration program for any c.e. relation appears in the numbering Universal and acceptable numberings, so the relations cover 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 . Delete strings extending another string in the finite list; the remaining prefix-free cylinders are disjoint, so their rational measures sum to the exactly computable union measure. The retention rule is therefore uniform and c.e. Its finite retained unions have measure at most , and continuity from below Continuity from below for measures gives the same bound for their increasing union. If the candidate already is a Martin-Löf test, none of its cylinders is discarded, since every finite subunion is contained in its component of measure at most .
Let be the union of all retained -components at level . Dovetailing the enumerations makes uniformly effectively open, and countable subadditivity Finite and countable subadditivity of measures 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 . Enumerate the pairs satisfying and let be the union of the cylinders of strings enumerated with first coordinate . Strict comparison of computable reals is semidecidable uniformly in , so one algorithm enumerates all these pairs and is uniformly effectively open.
The prefix-minimal threshold-crossing strings have the same union as and are prefix-free. For any finite set of them, the martingale conservation equation Computable martingales on binary strings gives : extend the strings to one common length, where their descendant cylinders are disjoint. Since every , it follows that . Taking increasing finite subsets gives , 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: .
Let an effective -gale succeed on , and fix a rational . For enumerate , possible because is lower semicomputable. Iterating the gale identity gives , so . Choose an integer such that for every . Such a fixed exists since and is finite (Effective Hausdorff dimension).
For the reverse inequality write , which is finite since a self-delimiting code for followed by bits gives . Independently choose rationals with . Let be the fixed optimal prefix-free machine. For each halted program with output , put mass uniformly on the cylinder : its value on a cylinder is if , if , and if and are incompatible. Denote the sum of these values over all halted by . Kraft's inequality (Kraft inequality and effective prefix-code allocation) gives ; each summand is nonnegative and obeys , so the sum has the same identity.
Give a computable self-delimiting code of length , followed by a fixed-length -bit index into the enumeration of . These codes form a prefix-free machine: the first code identifies , and all following indices then have the same length. Its output on an index is the corresponding enumerated string when that index appears. Thus, by optimality of (Invariance theorem for prefix complexity), each has . Success of makes at infinitely many, hence unboundedly many, lengths . It follows that . Since rational was arbitrary, the liminf is at most , and therefore at most .
Set . Because is rational and the halted computations can be enumerated, is lower semicomputable; the preceding identity makes it an effective -gale (Effective Hausdorff dimension). At any with a shortest program , its contribution alone gives (Prefix-free machines and prefix complexity). There are infinitely many lengths with by the definition of the liminf. On them , which tends to infinity. Thus succeeds and . Letting rational decrease to completes the equality.
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
- Eriksson and Weigert, Examples 2.8-2.9, cylinder algebra and finite fair-coin content
- 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