Algorithmic probability and Levin's coding theorem #
For any description method M : DescriptionMethod α, the algorithmic (or a priori)
probability of x : α is the probability that a prefix-free program halts with output x:
M.universalProb x = ∑' p : {p : List Bool // M.Produces p x}, (2 : ℝ)⁻¹ ^ p.1.length.
When M is prefix-free (M.IsPrefixFree), the fibers {p // M.Produces p x} partition
M.haltingSet, so ∑' x, M.universalProb x = M.chaitinOmega ≤ 1
(IsPrefixFree.tsum_universalProb_eq_chaitinOmega).
A nonnegative summable function μ : α → ℝ with ∑' x, μ x ≤ 1 is lower semicomputable
(IsLowerSemicomputable μ) when its strict nonnegative rational lower graph
{(x, a, b) | (a : ℝ) / (b + 1) < μ x} (a, b : ℕ) is recursively enumerable (REPred).
Using the online Kraft–Chaitin theorem (CslibFrontier.Computability.Kolmogorov.KraftChaitin),
every lower-semicomputable discrete semimeasure satisfies K(x) ≤ -log₂ μ(x) + O(1)
(exists_le_two_pow_mul_universalPrefix_of_isLowerSemicomputable,
exists_complexity_universalPrefix_le_neg_logb_of_isLowerSemicomputable). Since universalProb is
lower semicomputable for every prefix-free partial recursive machine (universalPrefix,
universalPrefixBits, and also the marginal semimeasure fun x => ∑' y, m (Nat.pair x y)),
this yields Levin's coding theorem [LiVitanyi2019, ShenUspenskyVereshchagin2017]:
2⁻¹ ^ K(x) ≤ m(x) ≤ 2 ^ c * 2⁻¹ ^ K(x) and |K(x) + log₂ m(x)| ≤ c,
and universality of universalPrefix.universalProb and universalPrefixBits.universalProb
among all lower-semicomputable discrete semimeasures.
Main definitions #
Cslib.Kolmogorov.DescriptionMethod.universalProb: algorithmic probabilitym_M(x).Cslib.Kolmogorov.IsLowerSemicomputable: lower-semicomputability via r.e. rational lower graph.
Main results #
Cslib.Kolmogorov.DescriptionMethod.IsPrefixFree.tsum_universalProb_eq_chaitinOmega:∑' x, M.universalProb x = M.chaitinOmega.Cslib.Kolmogorov.DescriptionMethod.two_inv_pow_complexity_le_universalProb:2⁻¹ ^ K_M(x) ≤ M.universalProb x.Cslib.Kolmogorov.isLowerSemicomputable_universalProb_of_partrec_eval,Cslib.Kolmogorov.isLowerSemicomputable_universalProb_universalPrefix,Cslib.Kolmogorov.isLowerSemicomputable_universalProb_universalPrefixBits,Cslib.Kolmogorov.isLowerSemicomputable_universalProb_marginal: lower semicomputability of algorithmic probability and its marginal.Cslib.Kolmogorov.exists_le_complexity_of_isLowerSemicomputable,MinorizesPrefixPartrec.exists_le_two_pow_mul_complexity_of_isLowerSemicomputable,Cslib.Kolmogorov.exists_le_two_pow_mul_universalPrefix_of_isLowerSemicomputable,Cslib.Kolmogorov.exists_complexity_universalPrefix_le_neg_logb_of_isLowerSemicomputable: coding upper boundμ(x) ≤ 2^c · 2⁻¹ ^ K(x)(K(x) ≤ -log₂ μ(x) + c).Cslib.Kolmogorov.levin_coding_universalPrefix,Cslib.Kolmogorov.levin_coding_universalPrefixBits,Cslib.Kolmogorov.exists_abs_complexity_add_logb_universalProb_universalPrefix_le,Cslib.Kolmogorov.exists_abs_complexity_add_logb_universalProb_universalPrefixBits_le,Cslib.Kolmogorov.exists_mul_universalProb_universalPrefix_ge,Cslib.Kolmogorov.exists_mul_universalProb_universalPrefixBits_ge: Levin's coding theorem and universality of the Solomonoff–Levin prior.
References #
Algorithmic probability #
Algorithmic (a priori) probability m_M(x) = ∑' {p // M.Produces p x}, 2⁻¹ ^ |p|
[LV19].
The total algorithmic probability across all outputs equals Chaitin's halting probability
Ω.
Summability of y ↦ M.universalProb (Nat.pair x y) for a prefix-free method M on ℕ.
Summability of the first-coordinate marginal x ↦ ∑' y, M.universalProb (Nat.pair x y) for a
prefix-free method M on ℕ.
The iterated pair sum ∑' x, ∑' y, M.universalProb (Nat.pair x y) of a prefix-free method on
ℕ is at most 1.
Shortest-program lower bound: 2⁻¹ ^ K_M(x) ≤ M.universalProb x for every prefix-free
method whenever M.ecomplexity x ≠ ⊤.
Lower-semicomputable discrete semimeasures #
A nonnegative function μ : α → ℝ is lower semicomputable when its strict nonnegative
rational lower graph {(x, a, b) | (a : ℝ) / (b + 1) < μ x} (a, b : ℕ, testing ℚ≥0) is
recursively enumerable (REPred). For nonnegative μ, every negative rational is trivially below
μ x, so restricting numerators to a : ℕ characterizes lower semicomputability on ℝ≥0-valued
functions.
A function approximated monotonically from below by computable integer fractions num x t / den x t is lower semicomputable.
Enumerating algorithmic probability of a prefix-free code #
Casting codeScaledSum L to ℝ equals the dyadic Kraft sum of L scaled by
2 ^ codeMaxLen L.
Algorithmic probability M.universalProb is lower semicomputable for every prefix-free
description method with a partial recursive evaluator.
universalPrefix.universalProb is lower semicomputable.
universalPrefixBits.universalProb is lower semicomputable.
Joint summability of 2⁻¹ ^ |p| over pairs (y, p) where universalPrefix produces
Nat.pair x y.
The marginal semimeasure x ↦ ∑' y, universalPrefix.universalProb (Nat.pair x y) is lower
semicomputable.
Levin's coding theorem #
Core Levin coding lemma: any lower-semicomputable discrete semimeasure μ on α gives
K_U(x) ≤ k + c whenever 2⁻¹ ^ (k + 1) < μ x.
General coding bound for any prefix-free minorizing description method U: μ x ≤ 2 ^ c * 2⁻¹ ^ K_U(x) whenever 0 < μ x.
For every lower-semicomputable discrete semimeasure μ : ℕ → ℝ, μ x ≤ 2 ^ c * 2⁻¹ ^ K(x).
For every lower-semicomputable discrete semimeasure μ : List Bool → ℝ,
μ x ≤ 2 ^ c * 2⁻¹ ^ K(x).
Logarithmic coding bound: K(x) ≤ -log₂ μ(x) + c whenever 0 < μ x.
Binary-string logarithmic coding bound: K(x) ≤ -log₂ μ(x) + c whenever 0 < μ x.
Levin's coding theorem for universalPrefix [LiVitanyi2019, ShenUspenskyVereshchagin2017]:
algorithmic probability m(x) equals 2⁻¹ ^ K(x) up to a multiplicative constant.
Levin's coding theorem for binary strings (universalPrefixBits).
Levin's coding theorem (logarithmic form): |K(x) + log₂ m(x)| ≤ c.
Levin's coding theorem for binary strings (logarithmic form): |K(x) + log₂ m(x)| ≤ c.
Universality of the Solomonoff–Levin prior on ℕ: universalPrefix.universalProb
multiplicatively dominates every lower-semicomputable discrete semimeasure.