Documentation

CslibFrontier.Computability.Kolmogorov.MINKTStar

Partial-string time-bounded Kolmogorov complexity (MINKT*) #

MINKT* is the partial-string variant of MINKT [Hirahara2022, Section I, p. 971]. An instance is a partial string x ∈ {0, 1, *}* with a time bound t and a size threshold s, and it is a yes-instance when some total string y that is consistent with x, meaning that every bit of x is * or equal to the bit of y at the same position [Hirahara2022, footnote 5], satisfies K^t(y) ≤ s. Here K^t is the library's timeBoundedAt, the same measure as for MINKT. It is a variant of the source's measure, which charges the running time as in KT complexity, with oracle access to the description of the machine [Hirahara2022, footnote 6, p. 971]: timeBoundedAt counts the steps of the described machine, which outputs the whole string.

This file defines the problem, its encoding and its witness check, and proves that it lies in NP and that MINKT reduces to it. NP-hardness under randomized reductions [Hirahara2022, Theorem I.2] is MINKTStar.rpHard, in the Hardness submodule.

Encoding #

MINKTStar.enc writes the partial string as the framed list of its entries, * (none) as the empty word and a bit b as [true, b] (encList (encOption encBool), the scheme of Cslib.PartialMCSP.encTable), followed by 1^time and 1^size in unary as for MINKT.enc.

Main definitions #

Main results #

References #

A total string y is consistent with a partial string x when they have the same length and every specified bit of x equals the bit of y at the same position [Hirahara2022, footnote 5].

Instances For
    theorem Cslib.Kolmogorov.MINKTStar.consistent_iff {x : List (Option Bool)} {y : List Bool} :
    Consistent x y ↔ x.length = y.length ∧ ∀ (i : ℕ) (hx : i < x.length) (hy : i < y.length) (b : Bool), x[i] = some b → b = y[i]

    Consistency is equal length together with agreement at every specified position.

    A consistent string has the length of the partial string.

    @[simp]

    The only string consistent with a fully specified string is that string.

    An instance of MINKT*: a partial string pattern ∈ {0, 1, *}* (none is *), a step bound time and a program size threshold size [Hirahara2022, Section I, p. 971].

    • pattern : List (Option Bool)

      The partial string x.

    • time : ℕ

      The step bound t for the described multi-tape machine.

    • size : ℕ

      The maximum allowed program length s.

    The partial-string Minimum Time-Bounded Kolmogorov Complexity Problem (MINKT*) [Hirahara2022, Section I, p. 971]: the instances (x, t, s) such that some string y consistent with x has timeBoundedAt t y ≤ s.

    theorem Cslib.Kolmogorov.MINKTStar.enc_pattern_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Instance} :
    theorem Cslib.Kolmogorov.MINKTStar.enc_time_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Instance} :
    Turing.MultiTapeTM.ComputableInSpace g✝ encIn✝ enc S✝ → Turing.MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).time) encIn✝ Turing.MultiTapeTM.encUnary S✝
    theorem Cslib.Kolmogorov.MINKTStar.enc_size_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → Instance} :
    Turing.MultiTapeTM.ComputableInSpace g✝ encIn✝ enc S✝ → Turing.MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).size) encIn✝ Turing.MultiTapeTM.encUnary S✝
    theorem Cslib.Kolmogorov.MINKTStar.enc_size_polyTime {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {g✝ : γ✝ → Instance} :
    theorem Cslib.Kolmogorov.MINKTStar.enc_mk_deg :
    Turing.MultiTapeTM.ComputableInDegree (fun (p : List (Option Bool) × ℕ × ℕ) => { pattern := p.1, time := p.2.1, size := p.2.2 }) encFields enc 1 1
    theorem Cslib.Kolmogorov.MINKTStar.enc_mk_inO {γ : Type} {encIn : γ ↪ List Bool} {x0 : γ → List (Option Bool)} {T0 S0 x1 T1 S1 x2 T2 S2 : γ → ℕ} (h0 : Turing.MultiTapeTM.ComputableInO x0 encIn (Turing.MultiTapeTM.encList (Turing.MultiTapeTM.encOption Turing.MultiTapeTM.encBool)) T0 S0) (h1 : Turing.MultiTapeTM.ComputableInO x1 encIn Turing.MultiTapeTM.encUnary T1 S1) (h2 : Turing.MultiTapeTM.ComputableInO x2 encIn Turing.MultiTapeTM.encUnary T2 S2) :
    Turing.MultiTapeTM.ComputableInO (fun (x : γ) => { pattern := x0 x, time := x1 x, size := x2 x }) encIn enc (fun (x : γ) => T0 x + (T1 x + T2 x)) fun (x : γ) => S0 x + (S1 x + S2 x)

    Encoding of MINKTStar.Instance: the framed list of entries of the partial string (encList (encOption encBool)), followed by 1^time and 1^size in unary.

    theorem Cslib.Kolmogorov.MINKTStar.enc_mk_budget {γ : Type} {encIn : γ ↪ List Bool} {budget : γ → ℕ} {x0 : γ → List (Option Bool)} {x1 x2 : γ → ℕ} (h0 : Turing.MultiTapeTM.ComputableInSpace x0 encIn (Turing.MultiTapeTM.encList (Turing.MultiTapeTM.encOption Turing.MultiTapeTM.encBool)) budget) (h1 : Turing.MultiTapeTM.ComputableInSpace x1 encIn Turing.MultiTapeTM.encUnary budget) (h2 : Turing.MultiTapeTM.ComputableInSpace x2 encIn Turing.MultiTapeTM.encUnary budget) :
    Turing.MultiTapeTM.ComputableInSpace (fun (x : γ) => { pattern := x0 x, time := x1 x, size := x2 x }) encIn enc budget
    @[reducible, inline]

    The tuple of the fields of enc.

    theorem Cslib.Kolmogorov.MINKTStar.enc_time_polyTime {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {g✝ : γ✝ → Instance} :

    The unary size threshold is at most the encoded instance length.

    The unary time bound is at most the encoded instance length.

    The length of the partial string is at most the encoded instance length.

    An instance belongs to MINKT* iff some consistent string has K^t at most the threshold.

    @[simp]
    theorem Cslib.Kolmogorov.MINKTStar.mk_mem_iff {x : List (Option Bool)} {t s : ℕ} :
    { pattern := x, time := t, size := s } ∈ MINKTStar ↔ ∃ (y : List Bool), Consistent x y ∧ timeBoundedAt t y ≤ ↑s

    ⟨x, t, s⟩ ∈ MINKT* iff some string consistent with x has timeBoundedAt t y ≤ s.

    An instance belongs to MINKT* iff some program of length at most i.size outputs, within i.time steps, a string consistent with i.pattern.

    theorem Cslib.Kolmogorov.MINKTStar.mem_of_size_le {x : List (Option Bool)} {t s₁ s₂ : ℕ} (h : { pattern := x, time := t, size := s₁ } ∈ MINKTStar) (hs : s₁ ≤ s₂) :
    { pattern := x, time := t, size := s₂ } ∈ MINKTStar

    Monotonicity of MINKT* in the size threshold.

    theorem Cslib.Kolmogorov.MINKTStar.mem_of_time_le {x : List (Option Bool)} {t₁ t₂ s : ℕ} (h : { pattern := x, time := t₁, size := s } ∈ MINKTStar) (ht : t₁ ≤ t₂) :
    { pattern := x, time := t₂, size := s } ∈ MINKTStar

    Monotonicity of MINKT* in the time budget.

    Witness check and NP membership #

    Boolean consistency test: equal lengths and agreement at the specified positions.

    The witness check for MINKT*: given an instance i and a pair (y, p) of a candidate string and program, checks that y is consistent with i.pattern and that p witnesses ⟨y, i.time, i.size⟩ ∈ MINKT (MINKT.check).

    check (i, (y, p)) = true iff y is consistent with i.pattern, p.length ≤ i.size and p outputs y within i.time steps.

    MINKT* is in NP: a witness for (x, 1^t, 1^s) is a string y consistent with x (so |y| = |x|) together with a program of length at most s, verified in polynomial time by check.

    Reduction from MINKT #

    The MINKT* instance of a MINKT instance: the fully specified partial string.