Documentation

CslibFrontier.Computability.Kolmogorov.MKtP

The Minimum Kt Problem (MKtP) and GapMKtP #

This module develops the decision and promise problems associated with Levin's time-bounded Kolmogorov complexity Cslib.Kolmogorov.levinKt ($\mathrm{Kt}$):

Main definitions #

Main results #

References #

Exponential-step witness characterization and optimal witnesses for levinKt #

Exponential-step characterization of levinKt. $\mathrm{Kt}(x) \le k$ iff some binary program $p$ of length at most $k$ outputs $x$ within $2^{k - |p|}$ steps under universalTM.

ℕ-valued exponential-step characterization of levinKtNat.

Every string x admits an optimal Kt-witness (p, s) with 0 < s, x ∈ (universalTM.run p).runFor s, and p.length + Nat.clog 2 s = levinKtNat x.

Every string x admits an optimal Kt-witness (p, s) in ℕ∞ with 0 < s, x ∈ (universalTM.run p).runFor s, and (p.length + Nat.clog 2 s : ℕ) = levinKt x.

theorem Cslib.Kolmogorov.plain_lt_of_levinKtNat_witness_two_pow_lt {x p : List Bool} {s m : ℕ} (hm : m ≤ x.length) (hp : x ∈ (DescriptionMethod.universalTM.run p).runFor s) (hopt : p.length + Nat.clog 2 s ≤ levinKtNat x) (hs : 2 ^ (copyOverhead + Nat.clog 2 (x.length + 1) + m) < s) :
plain x < ↑(x.length - m)

Liu and Pass, Section 3.1, Fact 3.1, p. 10: If $(p, s)$ outputs $x$ within $s$ steps with $|p| + \lceil \log_2 s \rceil \le \mathrm{Kt}(x)$, and $s > 2^{\mathrm{copyOverhead} + \lceil \log_2(|x| + 1) \rceil + m}$ (with $m \le |x|$), then the plain Kolmogorov complexity of $x$ satisfies $K(x) < |x| - m$. The extra $\lceil \log_2(|x| + 1) \rceil$ term in the exponent (relative to Liu–Pass's $2^c / \varepsilon$ from Fact 2.1, $\mathrm{Kt}(x) \le |x| + c$) comes from levinKt_le_length_add ($\mathrm{Kt}(x) \le |x| + \mathrm{copyOverhead} + \lceil \log_2(|x| + 1) \rceil$).

Liu and Pass, Section 3.1, Fact 3.1, p. 10: For $m \le n$, fewer than $2^{n - m}$ strings $x \in \{0, 1\}^n$ have the property that every optimal $\mathrm{Kt}$-witness $(p, s)$ for $x$ runs for more than $2^{\mathrm{copyOverhead} + \lceil \log_2(n + 1) \rceil + m}$ steps (with the extra $\lceil \log_2(n + 1) \rceil$ term coming from levinKt_le_length_add).

Liu and Pass, Section 3.1, Fact 3.1, p. 10: For $m \le n$, all but fewer than $2^{n - m}$ of the $2^n$ strings of length $n$ admit an optimal $\mathrm{Kt}$-witness $(p, s)$ running in at most $2^{\mathrm{copyOverhead} + \lceil \log_2(n + 1) \rceil + m}$ steps (with the extra $\lceil \log_2(n + 1) \rceil$ term coming from levinKt_le_length_add).

The Minimum Kt Problem (MKtP) and MKtP ∈ E ⊆ EXP #

An instance of the Minimum Kt Problem (MKtP) (Liu and Pass, Section 2.2; Oliveira and Santhanam, Appendix A, Definition 44, p. 34): a target binary string word paired with an upper-bound threshold threshold on Levin's time-bounded Kolmogorov complexity levinKt word.

  • word : List Bool

    The target binary string x whose Levin Kt complexity is bounded.

  • threshold : ℕ

    The upper-bound threshold k on levinKt word (encoded in unary by encMKtP).

theorem Cslib.Kolmogorov.MKtPInstance.ext {x y : MKtPInstance} (word : x.word = y.word) (threshold : x.threshold = y.threshold) :
x = y
theorem Cslib.Kolmogorov.encMKtP_mk_inO {γ : Type} {encIn : γ ↪ List Bool} {x0 : γ → List Bool} {T0 S0 x1 T1 S1 : γ → ℕ} (h0 : Turing.MultiTapeTM.ComputableInO x0 encIn Turing.MultiTapeTM.encBits T0 S0) (h1 : Turing.MultiTapeTM.ComputableInO x1 encIn Turing.MultiTapeTM.encUnary T1 S1) :
Turing.MultiTapeTM.ComputableInO (fun (x : γ) => { word := x0 x, threshold := x1 x }) encIn encMKtP (fun (x : γ) => T0 x + T1 x) fun (x : γ) => S0 x + S1 x

Unary-threshold encoding of MKtPInstance: frames word : List Bool (encBits) followed by 1^threshold in unary (encUnary), with the exact encoded words of encPair encBits encUnary (i.word, i.threshold).

@[reducible, inline]

The tuple of the fields of encMKtP.

theorem Cslib.Kolmogorov.encMKtP_mk_budget {γ : Type} {encIn : γ ↪ List Bool} {budget : γ → ℕ} {x0 : γ → List Bool} {x1 : γ → ℕ} (h0 : Turing.MultiTapeTM.ComputableInSpace x0 encIn Turing.MultiTapeTM.encBits budget) (h1 : Turing.MultiTapeTM.ComputableInSpace x1 encIn Turing.MultiTapeTM.encUnary budget) :
Turing.MultiTapeTM.ComputableInSpace (fun (x : γ) => { word := x0 x, threshold := x1 x }) encIn encMKtP budget
theorem Cslib.Kolmogorov.encMKtP_word_polyTime {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {g✝ : γ✝ → MKtPInstance} :
theorem Cslib.Kolmogorov.encMKtP_threshold_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → MKtPInstance} :
theorem Cslib.Kolmogorov.encMKtP_word_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → MKtPInstance} :

The Minimum Kt Problem (MKtP) (Liu and Pass, Section 2.2; Oliveira and Santhanam, Appendix A, Definition 44, p. 34): the set of instances i : MKtPInstance such that levinKt i.word ≤ i.threshold. In the complexity-class statements below (MKtP.mem_E, MKtP.mem_EXP), MKtP is encoded by encMKtP (with i.threshold in unary rather than the $\lceil \log_2 n \rceil$-bit binary representation of Liu and Pass, Section 2.2) so that i.threshold + 1 ≤ (encMKtP i).length holds for all i.threshold ∈ ℕ without a side condition bounding i.threshold.

An instance i belongs to MKtP iff levinKt i.word ≤ i.threshold.

@[simp]
theorem Cslib.Kolmogorov.MKtP.mk_mem_iff {x : List Bool} {k : ℕ} :
{ word := x, threshold := k } ∈ MKtP ↔ levinKt x ≤ ↑k

⟨x, k⟩ ∈ MKtP iff levinKt x ≤ k.

An instance i belongs to MKtP iff levinKtNat i.word ≤ i.threshold.

An instance i belongs to MKtP iff some program p of length at most i.threshold outputs i.word within 2 ^ (i.threshold - |p|) steps under universalTM.

theorem Cslib.Kolmogorov.MKtP.mem_of_le {x : List Bool} {k₁ k₂ : ℕ} (h : { word := x, threshold := k₁ } ∈ MKtP) (hk : k₁ ≤ k₂) :
{ word := x, threshold := k₂ } ∈ MKtP

Monotonicity of MKtP in the threshold k.

Bounded brute-force search for a Kt-witness of an MKtPInstance i up to word-index and step cap N: checks whether some word p = Ladner.word j with j < N has p.length ≤ i.threshold and outputs i.word within min (2 ^ (i.threshold - p.length)) N steps.

Whenever $2^{\mathtt{i.threshold} + 1} \le N$, boundedSearch i N = true iff i ∈ MKtP.

boundedSearch is computable in polynomial time when the instance is encoded by encMKtP and the search cap N is encoded in unary.

MKtP is in linear exponential time E with respect to encMKtP.

Fixed-threshold formulation (MKtPAt) #

Fixed-threshold MKtP (MKtPAt s, Oliveira and Santhanam, Appendix A, Definition 44, p. 34; Liu and Pass, Section 2.2): the language of binary strings x with levinKt x ≤ s x.length.

theorem Cslib.Kolmogorov.mem_MKtPAt_iff {s : ℕ → ℕ} {x : List Bool} :
x ∈ MKtPAt s ↔ levinKt x ≤ ↑(s x.length)

x ∈ MKtPAt s iff levinKt x ≤ s x.length.

@[simp]
theorem Cslib.Kolmogorov.mem_MKtPAt_iff_mem_MKtP {s : ℕ → ℕ} {x : List Bool} :
x ∈ MKtPAt s ↔ { word := x, threshold := s x.length } ∈ MKtP

x ∈ MKtPAt s iff ⟨x, s x.length⟩ ∈ MKtP.

x ∈ MKtPAt s iff levinKtNat x ≤ s x.length.

For any polynomial threshold q : Polynomial ℕ, MKtPAt q.eval ∈ EXP encBits.

The promise problem GapMKtP #

The yes-instances of GapMKtP[s₁, s₂]: strings x with levinKt x ≤ s₁ x.length (Oliveira and Santhanam, Appendix A, Definition 44, p. 34).

The no-instances of GapMKtP[s₁, s₂]: strings x with s₂ x.length < levinKt x (Oliveira and Santhanam, Appendix A, Definition 44, p. 34).

theorem Cslib.Kolmogorov.GapMKtP.mem_yesSet_iff {s₁ : ℕ → ℕ} {x : List Bool} :
x ∈ yesSet s₁ ↔ x ∈ MKtPAt s₁

x ∈ GapMKtP.yesSet s₁ iff x ∈ MKtPAt s₁.

theorem Cslib.Kolmogorov.GapMKtP.mem_noSet_iff {s₂ : ℕ → ℕ} {x : List Bool} :
x ∈ noSet s₂ ↔ ↑(s₂ x.length) < levinKt x

x ∈ GapMKtP.noSet s₂ iff (s₂ x.length : ℕ∞) < levinKt x.

x ∈ GapMKtP.noSet s₂ iff s₂ x.length < levinKtNat x.

theorem Cslib.Kolmogorov.GapMKtP.disjoint_yesSet_noSet {s₁ s₂ : ℕ → ℕ} (hs : ∀ (n : ℕ), s₁ n ≤ s₂ n) :
Disjoint (yesSet s₁) (noSet s₂)

When s₁ n ≤ s₂ n for all n, GapMKtP.yesSet s₁ and GapMKtP.noSet s₂ are disjoint.

When s₁ = s₂, GapMKtP.noSet s is the complement of MKtPAt s.

def Cslib.Kolmogorov.GapMKtP (s₁ s₂ : ℕ → ℕ) (hs : ∀ (n : ℕ), s₁ n ≤ s₂ n) :

The GapMKtP promise problem (Oliveira and Santhanam, Appendix A, Definition 44, p. 34): separates MKtPAt s₁ (levinKt x ≤ s₁ |x|) from GapMKtP.noSet s₂ (levinKt x > s₂ |x|) whenever s₁ n ≤ s₂ n.

@[simp]
theorem Cslib.Kolmogorov.GapMKtP.yes_eq {s₁ s₂ : ℕ → ℕ} (hs : ∀ (n : ℕ), s₁ n ≤ s₂ n) :
(GapMKtP s₁ s₂ hs).yes = MKtPAt s₁

The yes-instances of GapMKtP s₁ s₂ hs are MKtPAt s₁.

@[simp]
theorem Cslib.Kolmogorov.GapMKtP.no_eq {s₁ s₂ : ℕ → ℕ} (hs : ∀ (n : ℕ), s₁ n ≤ s₂ n) :
(GapMKtP s₁ s₂ hs).no = noSet s₂

The no-instances of GapMKtP s₁ s₂ hs are GapMKtP.noSet s₂.

@[simp]

With zero gap (s₁ = s₂ = s), GapMKtP is the decision problem MKtPAt s viewed as a promise problem (PromiseProblem.ofSet (MKtPAt s)).