Documentation

CslibFrontier.Computability.Kolmogorov.MINKTStar.Generator

The MINKT* generator for the CMMSA table #

A Yes instance I of GapCMMSA has an assignment S of weight at most θ that satisfies every formula. For every choice of the functions f, the partial truth table of PartialMCSP.FromCMMSA.toInstance I Δ k λ P f is then consistent with a total table that is printed from a short description: the generator witness (GenWitness). It holds the instance, λ in unary, one term per formula whose variables lie in S, and the tables of the functions f v for v ∈ S only. Its expansion (GenWitness.generate) prints, at the input numbered x, the parity of the chosen term of the indexed formula, computed from those tables by H5b1's evaluator (PartialMCSP.FromCMMSA.termParityN). At a defined entry every term has the entry's parity, so the printed table is consistent with the pattern (GenWitness.exists_consistent_generate).

The tables of the set variables have total length at most 2 w(S) λ ≤ 2 θ λ (PartialMCSP.FromCMMSA.sum_two_pow_varLength_le_two_mul_weight), so the witness has encoded length at most (4 Δ + 3) |enc I| + 3 + (4 θ + 2) λ (GenWitness.sizeBound). A later step bounds K^t of the printed table by this length plus the size of a machine computing generate in polynomial time; the threshold of the MINKT* instance is chosen from that.

Main definitions #

Main results #

References #

The generator and its analysis are the library's own. They give the yes case of the library's proof of the MINKT* clause of [Hirahara2022, Theorem I.2], MINKTStar.rpHard in Hardness.lean.

The generator witness: an instance, λ, a term choice per formula and tables of variable functions. The honest witness of a Yes instance chooses, for each formula, a term whose variables lie in the satisfying assignment S, and lists the table of f v at v ∈ S and [] elsewhere.

  • The CMMSA instance.

  • lam : ℕ

    The parameter λ of the table.

  • choice : List ℕ

    Entry j is the term printed for formula j.

  • tables : List (List Bool)

    Entry v is the table of f v, in the order of BitString.equivFin, or [].

The witness encoding: the instance, then λ and the term choices in unary, then the tables. λ is unary so that the printed table, of length 2 ^ inputLength, is polynomial in the encoding.

theorem Cslib.Kolmogorov.MINKTStar.GenWitness.enc_inst_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → GenWitness} :
theorem Cslib.Kolmogorov.MINKTStar.GenWitness.enc_tables_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → GenWitness} :
theorem Cslib.Kolmogorov.MINKTStar.GenWitness.enc_lam_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → GenWitness} :
Turing.MultiTapeTM.ComputableInSpace g✝ encIn✝ enc S✝ → Turing.MultiTapeTM.ComputableInSpace (fun (c : γ✝) => (g✝ c).lam) encIn✝ Turing.MultiTapeTM.encUnary S✝
theorem Cslib.Kolmogorov.MINKTStar.GenWitness.enc_mk_inO {γ : Type} {encIn : γ ↪ List Bool} {x0 : γ → Complexity.CMMSAInstance} {T0 S0 x1 T1 S1 : γ → ℕ} {x2 : γ → List ℕ} {T2 S2 : γ → ℕ} {x3 : γ → List (List Bool)} {T3 S3 : γ → ℕ} (h0 : Turing.MultiTapeTM.ComputableInO x0 encIn Complexity.CMMSAInstance.encoding T0 S0) (h1 : Turing.MultiTapeTM.ComputableInO x1 encIn Turing.MultiTapeTM.encUnary T1 S1) (h2 : Turing.MultiTapeTM.ComputableInO x2 encIn (Turing.MultiTapeTM.encList Turing.MultiTapeTM.encUnary) T2 S2) (h3 : Turing.MultiTapeTM.ComputableInO x3 encIn (Turing.MultiTapeTM.encList Turing.MultiTapeTM.encBits) T3 S3) :
Turing.MultiTapeTM.ComputableInO (fun (x : γ) => { inst := x0 x, lam := x1 x, choice := x2 x, tables := x3 x }) encIn enc (fun (x : γ) => T0 x + (T1 x + (T2 x + T3 x))) fun (x : γ) => S0 x + (S1 x + (S2 x + S3 x))
theorem Cslib.Kolmogorov.MINKTStar.GenWitness.enc_choice_budget {γ✝ : Type} {encIn✝ : γ✝ ↪ List Bool} {S✝ : γ✝ → ℕ} {g✝ : γ✝ → GenWitness} :
theorem Cslib.Kolmogorov.MINKTStar.GenWitness.enc_mk_budget {γ : Type} {encIn : γ ↪ List Bool} {budget : γ → ℕ} {x0 : γ → Complexity.CMMSAInstance} {x1 : γ → ℕ} {x2 : γ → List ℕ} {x3 : γ → List (List Bool)} (h0 : Turing.MultiTapeTM.ComputableInSpace x0 encIn Complexity.CMMSAInstance.encoding budget) (h1 : Turing.MultiTapeTM.ComputableInSpace x1 encIn Turing.MultiTapeTM.encUnary budget) (h2 : Turing.MultiTapeTM.ComputableInSpace x2 encIn (Turing.MultiTapeTM.encList Turing.MultiTapeTM.encUnary) budget) (h3 : Turing.MultiTapeTM.ComputableInSpace x3 encIn (Turing.MultiTapeTM.encList Turing.MultiTapeTM.encBits) budget) :
Turing.MultiTapeTM.ComputableInSpace (fun (x : γ) => { inst := x0 x, lam := x1 x, choice := x2 x, tables := x3 x }) encIn enc budget
theorem Cslib.Kolmogorov.MINKTStar.GenWitness.enc_mk_deg :
Turing.MultiTapeTM.ComputableInDegree (fun (p : Complexity.CMMSAInstance × ℕ × List ℕ × List (List Bool)) => { inst := p.1, lam := p.2.1, choice := p.2.2.1, tables := p.2.2.2 }) encFields enc 1 1

The printed bit at the input numbered x: the parity of the chosen term of the indexed formula, computed from the witness tables.

The printed table: the bits at the inputs numbered 0, …, 2 ^ inputLength - 1.

@[simp]

The printed table has the length 2 ^ inputLength of the CMMSA table.

The printed table as a list of an indexed table.

The size bound of the honest witness: (4 Δ + 3) |enc I| + 3 + (4 θ + 2) λ.

The honest witness #

The generator for a Yes instance. If I is a Yes instance of GapCMMSA Δ g σ, then for every λ ≥ 1 and every choice of the functions f, some witness for I and λ prints a table consistent with the CMMSA table and has encoded length at most sizeBound Δ I λ.