Documentation

CslibFrontier.Computability.Kolmogorov.Incompleteness

Chaitin's incompleteness theorem for plain Kolmogorov complexity #

A statement n ≤ C(x) ("x has complexity at least n") is true for infinitely many n, because the complexity is unbounded. Chaitin's incompleteness theorem says that every computably enumerable collection of such statements that contains only true ones has bounded n. More precisely, the bound is the complexity of a code semi-deciding the collection plus a constant Chaitin, Li and Vitányi, Chapter 2. The proof is Berry's paradox: the program "the first x in the collection with n above my own length" would describe, with |p| bits, an object of complexity above |p| + O(1).

Formal systems are represented by r.e. sets, not by a logic. A theory is an r.e. predicate T : σ → Prop on a Primcodable type of sentences, with a computable read : σ → Option (α × ℕ) recognizing the sentences that assert n ≤ C(x). Soundness is the hypothesis that every such sentence of T is true.

The complexity is that of any description method U for a Primcodable type α that is at most an additive constant worse than every partial recursive decoder List Bool →. α (MinorizesPartrec). The universal method DescriptionMethod.universal for natural numbers has this property (minorizesPartrec_universal), and so does its pushforward along any map with a computable section (MinorizesPartrec.map), for example the decoding to binary strings. The constant in the quantitative theorem is measured with the plain complexity under universal of the number encode e of a code e of Nat.Partrec.Code semi-deciding the collection.

Following the rest of the library, the complexity here is plain complexity, which Li and Vitányi write C; this file has no prefix-free version.

Main definitions #

Main results #

References #

The description method U minorizes partial recursive decoders: for every partial recursive g : List Bool →. α there is a constant c with C_U(x) ≤ |p| + c whenever x ∈ g p. This is the half of additive optimality for the partial recursive description methods Li and Vitányi, Section 2.1 that lower-bound arguments use; U itself need not be partial recursive.

A description method that is additively optimal for the partial recursive description methods of natural numbers minorizes every partial recursive decoder.

The universal description method minorizes every partial recursive decoder.

theorem Cslib.Kolmogorov.DescriptionMethod.MinorizesPartrec.map {α : Type u_1} [Primcodable α] {β : Type u_3} [Primcodable β] {U : DescriptionMethod α} (hU : U.MinorizesPartrec) {f : α → β} {s : β → α} (hs : Computable s) (hfs : ∀ (y : β), f (s y) = y) :

Pushing forward along f preserves minorization when f has a computable section s.

def Cslib.Kolmogorov.DescriptionMethod.chaitinSearch {α : Type u_1} {σ : Type u_2} [Primcodable σ] (read : σ → Option (α × ℕ)) (m B j : ℕ) :

Step j of the search of the code ofNat Code m for a statement n ≤ C(x) with n > B: j encodes a sentence t and a fuel s; the step succeeds with x if the code halts on encode t within fuel s and t reads as (x, n) with B < n.

theorem Cslib.Kolmogorov.DescriptionMethod.computable₂_chaitinSearch {α : Type u_1} {σ : Type u_2} [Primcodable α] [Primcodable σ] {read : σ → Option (α × ℕ)} (hread : Computable read) :
Computable₂ fun (mB : ℕ × ℕ) (j : ℕ) => chaitinSearch read mB.1 mB.2 j
theorem Cslib.Kolmogorov.DescriptionMethod.partrec_chaitinBerryDecoder {α : Type u_1} {σ : Type u_2} [Primcodable α] [Primcodable σ] {read : σ → Option (α × ℕ)} (hread : Computable read) {f : List Bool →. ℕ} (hf : Partrec f) :
Partrec fun (p : List Bool) => (f (List.drop (List.idxOf false p + 1) p)).bind fun (m : ℕ) => Nat.rfindOpt (chaitinSearch read m (p.length + List.idxOf false p))

Partial recursiveness of the Berry search decoder: 1^k 0 r runs the decoder f on r to get a code m, then searches for a proof of n ≤ C_U(x) with n > |1^k 0 r| + k.

theorem Cslib.Kolmogorov.DescriptionMethod.chaitin_berry_bound {α : Type u_1} {σ : Type u_2} [Primcodable σ] {read : σ → Option (α × ℕ)} {f : List Bool →. ℕ} {U : DescriptionMethod α} {k : ℕ} (hk : ∀ (p : List Bool), ∀ x ∈ (f (List.drop (List.idxOf false p + 1) p)).bind fun (m : ℕ) => Nat.rfindOpt (chaitinSearch read m (p.length + List.idxOf false p)), U.ecomplexity x ≤ ↑p.length + ↑k) {e : Nat.Partrec.Code} {T : σ → Prop} (hT : ∀ (t : σ), T t ↔ (e.eval (Encodable.encode t)).Dom) (hsound : ∀ (t : σ), T t → ∀ (x : α) (n : ℕ), read t = some (x, n) → ↑n ≤ U.ecomplexity x) {r : List Bool} (hr : Encodable.encode e ∈ f r) {t : σ} (ht : T t) {x : α} {n : ℕ} (hxn : read t = some (x, n)) :
n ≤ r.length + (2 * k + 1)

Shared Berry-paradox bound for Chaitin's incompleteness theorem: given a partial decoder f : List Bool →. ℕ, if the Berry search decoder 1^k 0 r ↦ Nat.rfindOpt (chaitinSearch read m (|p| + k)) is minorized by U with additive constant k, then any r decoding to encode e bounds every n proved in T by |r| + (2 * k + 1).

Chaitin's theorem #

theorem Cslib.Kolmogorov.DescriptionMethod.MinorizesPartrec.exists_forall_le_complexity_universal_add_of_read {α : Type u_1} {σ : Type u_2} [Primcodable α] [Primcodable σ] {U : DescriptionMethod α} (hU : U.MinorizesPartrec) {read : σ → Option (α × ℕ)} (hread : Computable read) :
∃ (c : ℕ), ∀ (e : Nat.Partrec.Code) (T : σ → Prop), (∀ (t : σ), T t ↔ (e.eval (Encodable.encode t)).Dom) → (∀ (t : σ), T t → ∀ (x : α) (n : ℕ), read t = some (x, n) → ↑n ≤ U.ecomplexity x) → ∀ (t : σ), T t → ∀ (x : α) (n : ℕ), read t = some (x, n) → n ≤ universal.complexity (Encodable.encode e) + c

Chaitin's incompleteness theorem, quantitative form for theories Chaitin, Li and Vitányi, Chapter 2. Let read recognize the sentences asserting n ≤ C_U(x). There is a constant c such that every theory semi-decided by a code e all of whose such sentences are true proves n ≤ C_U(x) only for n ≤ C(encode e) + c, where C is the plain complexity under universal.

The proof is Berry's paradox. The program 1^k 0 r, where r describes encode e, searches the theory for a sentence asserting n ≤ C_U(x) with n > |r| + 2k + 1 and outputs x; this is a partial recursive decoder, so C_U(x) ≤ (|r| + k + 1) + k when k is its constant.

theorem Cslib.Kolmogorov.DescriptionMethod.MinorizesPartrec.exists_forall_le_complexity_universal_add {α : Type u_1} [Primcodable α] {U : DescriptionMethod α} (hU : U.MinorizesPartrec) :
∃ (c : ℕ), ∀ (e : Nat.Partrec.Code) (S : Set (α × ℕ)), (∀ (xn : α × ℕ), xn ∈ S ↔ (e.eval (Encodable.encode xn)).Dom) → (∀ (x : α) (n : ℕ), (x, n) ∈ S → ↑n ≤ U.ecomplexity x) → ∀ (x : α) (n : ℕ), (x, n) ∈ S → n ≤ universal.complexity (Encodable.encode e) + c

Chaitin's incompleteness theorem, quantitative form Chaitin, Li and Vitányi, Chapter 2. There is a constant c such that, whenever a code e semi-decides a set S of pairs (x, n) with n ≤ C_U(x) for every member, every member has n ≤ C(encode e) + c, where C is the plain complexity under universal.

theorem Cslib.Kolmogorov.DescriptionMethod.MinorizesPartrec.exists_forall_le_of_rePred_of_read {α : Type u_1} {σ : Type u_2} [Primcodable α] [Primcodable σ] {U : DescriptionMethod α} (hU : U.MinorizesPartrec) {read : σ → Option (α × ℕ)} (hread : Computable read) {T : σ → Prop} (hT : REPred T) (hsound : ∀ (t : σ), T t → ∀ (x : α) (n : ℕ), read t = some (x, n) → ↑n ≤ U.ecomplexity x) :
∃ (c : ℕ), ∀ (t : σ), T t → ∀ (x : α) (n : ℕ), read t = some (x, n) → n ≤ c

Chaitin's incompleteness theorem for theories: a sound r.e. theory proves n ≤ C_U(x) only for boundedly many n.

theorem Cslib.Kolmogorov.DescriptionMethod.MinorizesPartrec.exists_forall_le_of_rePred {α : Type u_1} [Primcodable α] {U : DescriptionMethod α} (hU : U.MinorizesPartrec) {S : Set (α × ℕ)} (hS : REPred fun (x : α × ℕ) => x ∈ S) (hsound : ∀ (x : α) (n : ℕ), (x, n) ∈ S → ↑n ≤ U.ecomplexity x) :
∃ (c : ℕ), ∀ (x : α) (n : ℕ), (x, n) ∈ S → n ≤ c

Chaitin's incompleteness theorem: an r.e. set of pairs (x, n) with n ≤ C_U(x) for every member has bounded n.

theorem Cslib.Kolmogorov.DescriptionMethod.MinorizesPartrec.exists_notMem_of_rePred {α : Type u_1} [Primcodable α] [Infinite α] {U : DescriptionMethod α} (hU : U.MinorizesPartrec) {S : Set (α × ℕ)} (hS : REPred fun (x : α × ℕ) => x ∈ S) (hsound : ∀ (x : α) (n : ℕ), (x, n) ∈ S → ↑n ≤ U.ecomplexity x) :
∃ (x : α) (n : ℕ), ↑n ≤ U.ecomplexity x ∧ (x, n) ∉ S

Incompleteness. Every r.e. set of true statements n ≤ C_U(x) misses one: some x has complexity at least n without (x, n) belonging to the set.

Immunity of the incompressible objects #

theorem Cslib.Kolmogorov.DescriptionMethod.MinorizesPartrec.finite_of_rePred {α : Type u_1} [Primcodable α] {U : DescriptionMethod α} (hU : U.MinorizesPartrec) {ℓ : α → ℕ} (hℓ : Computable ℓ) (hfin : ∀ (n : ℕ), {x : α | ℓ x ≤ n}.Finite) {A : Set α} (hA : REPred fun (x : α) => x ∈ A) (hsound : ∀ x ∈ A, ↑(ℓ x) ≤ U.ecomplexity x) :

An r.e. set A on which a computable ℓ with finite sublevel sets is a lower bound for the complexity, ℓ x ≤ C_U(x), is finite.

For every description method of binary strings, the incompressible strings, |x| ≤ C(x), form an infinite set: there is one of every length.

The incompressible strings are immune. Every r.e. set of incompressible strings, |x| ≤ C_U(x), is finite. With infinite_setOf_length_le_ecomplexity, the incompressible strings form an infinite set with no infinite r.e. subset.

The natural numbers whose binary length is at most their plain complexity form an infinite set.

Immunity for natural numbers. Every r.e. set of natural numbers whose binary length is at most their plain complexity is finite.