Documentation

CslibFrontier.Computability.Complexity.Problems.NEXPBoundedAcceptance

NEXP-complete bounded nondeterministic acceptance #

Cslib.Complexity.NEXPBoundedAcceptance Arora and Barak, draft, Chapter 2 Exercises §9 is the set of instances ⟨α, x, T⟩ (Cslib.Complexity.NEXPBoundedAcceptanceInstance), with T encoded in binary (encNat), such that some certificate c : List Bool of length |c| ≤ T makes the machine described by α accept ⟨x, c⟩ = encPair encBits encBits (x, c) within T steps.

Main definitions #

Main results #

References #

An instance ⟨α, x, T⟩ of Cslib.Complexity.NEXPBoundedAcceptance Arora and Barak, draft, Chapter 2 Exercises §9, with the step and certificate-length bound T encoded in binary.

theorem Cslib.Complexity.encNEXPBoundedAcceptanceInstance_mk_inO {γ : Type} {encIn : γ ↪ List Bool} {x0 : γ → Turing.MultiTapeTM.Universal.Desc} {T0 S0 : γ → ℕ} {x1 : γ → List Bool} {T1 S1 x2 T2 S2 : γ → ℕ} (h0 : Turing.MultiTapeTM.ComputableInO x0 encIn Turing.MultiTapeTM.Universal.eDesc T0 S0) (h1 : Turing.MultiTapeTM.ComputableInO x1 encIn Turing.MultiTapeTM.encBits T1 S1) (h2 : Turing.MultiTapeTM.ComputableInO x2 encIn Turing.MultiTapeTM.encNat T2 S2) :
Turing.MultiTapeTM.ComputableInO (fun (x : γ) => { machine := x0 x, input := x1 x, steps := x2 x }) encIn encNEXPBoundedAcceptanceInstance (fun (x : γ) => T0 x + (T1 x + T2 x)) fun (x : γ) => S0 x + (S1 x + S2 x)

Encoding of NEXPBoundedAcceptanceInstance as the tuple of the machine description (eDesc), the input bits (encBits), and the step bound in binary (encNat).

The certificate c makes the machine of a accept ⟨a.input, c⟩ = frame a.input ++ c within a.steps steps: run by the universal interpreter for a.steps steps, it has halted with the output [true].

Instances For

    Acceptance on the description of a machine: the machine, run on ⟨x, c⟩ for T steps, has halted with output [true].

    Bounded nondeterministic acceptance with a binary time bound Arora and Barak, draft, Chapter 2 Exercises §9: the instances ⟨α, x, T⟩ for which some certificate c : List Bool of length |c| ≤ T makes the machine described by α accept ⟨x, c⟩ within T steps.

    Membership in NE and NEXP #

    The framed-certificate verifier for NEXPBoundedAcceptance: decode c = unframe w from the certificate word w and simulate a.machine on ⟨a.input, unframe w⟩ for min |w| a.steps steps. When |w| = 2 * a.steps + 1, min |w| a.steps = a.steps and unframe ranges over all words c of length at most a.steps.

    An instance a belongs to NEXPBoundedAcceptance iff some framed certificate w of exact length 2 * a.steps + 1 satisfies verifier (a, w) = true.

    Hardness and completeness for NE and NEXP #

    theorem Cslib.Complexity.NEXPBoundedAcceptance.exists_instance_of_mem_NTIME {α : Type} {enc : α ↪ List Bool} {A : Set α} {p : ℕ → ℕ} (hA : A ∈ NTIME enc fun (n : ℕ) => 2 ^ p n) :
    ∃ (m : Turing.MultiTapeTM.Universal.Desc) (C : ℕ), ∀ (a : α), a ∈ A ↔ { machine := m, input := enc a, steps := 2 ^ (p (enc a).length + (enc a).length + C) } ∈ NEXPBoundedAcceptance

    A fixed machine description and constant decide a language in NTIME (2 ^ p n). For A ∈ NTIME enc (fun n => 2 ^ p n) there are a description m and a constant C, depending on A only, such that a ∈ A exactly when ⟨m, enc a, 2 ^ (p |enc a| + |enc a| + C)⟩ is in NEXPBoundedAcceptance. This is the reduction of polyTimeReducible, with its dependence on A isolated: the description and the constant come from a machine deciding A.

    Nondeterministic exponential-time problems reduce to NEXPBoundedAcceptance. Every language in NTIME enc (fun n => 2 ^ p n) for a polynomial-time unary function p reduces to NEXPBoundedAcceptance in polynomial time.