Documentation

CslibFrontier.Computability.Complexity.Classes.CountingSimulation.Containments

Nondeterministic and probabilistic time in deterministic time 2 ^ O(T / √(log T)) #

Conditional on the interfaces of the counting simulation (#1833): network families for the accept counts of all finite-state fair-coin machines (Cslib.Complexity.CountingSimulation.NetworkFamilies) and a contraction algorithm (Cslib.Complexity.CountingSimulation.ContractionAlgorithm). Under these hypotheses, for every time-constructible T with max n 2 ≤ T n, every problem in NTIME[T], BPTIME[T] or PPTIME[T] is decided within time 2 ^ (C * T n / √⌊log₂ (T n)⌋) and space T n ^ d.

Each class is reduced to the accept count A_M(x) of a fair-coin machine M at every padded time τ past a linear clock: x ∈ L ↔ 0 < A_M(x) for NTIME, and x ∈ L ↔ 2 ^ τ < 2 * A_M(x) for BPTIME and PPTIME (Cslib.Complexity.exists_acceptCount_of_mem_NTIME, Cslib.Complexity.exists_acceptCount_of_mem_BPTIME, Turing.MultiTapePTM.decidesByMajorityInTime_iff). The count is computed by the simulation of Cslib.Complexity.CountingSimulation.exists_computableInO_countPair, and the comparison is a polynomial-time function of the padded time and the count.

The network hypothesis is discharged for explicit networks by Cslib.Complexity.CountingSimulation.networkFamilies_explicitAdmissible, so the containments hold assuming only a contraction algorithm (Cslib.Complexity.CountingSimulation.NTIME_subset_iUnion_DTIME_of_contractionAlgorithm and its siblings). The contraction algorithm of Theorem D.1 discharges that hypothesis too, which gives the containments unconditionally (Cslib.Complexity.CountingSimulation.NTIME_subset_iUnion_DTIME_two_pow_div_sqrt_log_two and its siblings).

Main results #

theorem Cslib.Complexity.CountingSimulation.exists_decidableInTimeAndSpace_of_mem_NTIME {N : Type} {encN : N ↪ List Bool} {value : N → ℕ} {Admissible : ℕ → ℕ → N → Prop} {α : Type} {enc : α ↪ List Bool} {T : ℕ → ℕ} (hnet : NetworkFamilies encN value Admissible) (A : ContractionAlgorithm encN value Admissible) (hT : TimeConstructible T) (hTn : ∀ (n : ℕ), max n 2 ≤ T n) {L : Set α} (hL : L ∈ NTIME enc T) :
∃ (C : ℕ) (d : ℕ), Turing.MultiTapeTM.DecidableInTimeAndSpace L enc (fun (a : α) => 2 ^ (C * T (enc a).length / (Nat.log 2 (T (enc a).length)).sqrt)) fun (a : α) => T (enc a).length ^ d

Nondeterministic time, deterministically (conditional on the interfaces). For a time-constructible T with max n 2 ≤ T n, every problem in NTIME[T] is decided within time 2 ^ (C * T n / √⌊log₂ (T n)⌋) and space T n ^ d, by testing whether the accept count of a fair-coin normal form is positive.

theorem Cslib.Complexity.CountingSimulation.exists_decidableInTimeAndSpace_of_mem_BPTIME {N : Type} {encN : N ↪ List Bool} {value : N → ℕ} {Admissible : ℕ → ℕ → N → Prop} {α : Type} {enc : α ↪ List Bool} {T : ℕ → ℕ} (hnet : NetworkFamilies encN value Admissible) (A : ContractionAlgorithm encN value Admissible) (hT : TimeConstructible T) (hTn : ∀ (n : ℕ), max n 2 ≤ T n) {L : Set α} (hL : L ∈ BPTIME enc T) :
∃ (C : ℕ) (d : ℕ), Turing.MultiTapeTM.DecidableInTimeAndSpace L enc (fun (a : α) => 2 ^ (C * T (enc a).length / (Nat.log 2 (T (enc a).length)).sqrt)) fun (a : α) => T (enc a).length ^ d

Bounded-error probabilistic time, deterministically (conditional on the interfaces). For a time-constructible T with max n 2 ≤ T n, every problem in BPTIME[T] is decided within time 2 ^ (C * T n / √⌊log₂ (T n)⌋) and space T n ^ d, by comparing the accept count with half of the padded choice strings.

theorem Cslib.Complexity.CountingSimulation.exists_decidableInTimeAndSpace_of_mem_PPTIME {N : Type} {encN : N ↪ List Bool} {value : N → ℕ} {Admissible : ℕ → ℕ → N → Prop} {α : Type} {enc : α ↪ List Bool} {T : ℕ → ℕ} (hnet : NetworkFamilies encN value Admissible) (A : ContractionAlgorithm encN value Admissible) (hT : TimeConstructible T) (hTn : ∀ (n : ℕ), max n 2 ≤ T n) {L : Set α} (hL : L ∈ PPTIME enc T) :
∃ (C : ℕ) (d : ℕ), Turing.MultiTapeTM.DecidableInTimeAndSpace L enc (fun (a : α) => 2 ^ (C * T (enc a).length / (Nat.log 2 (T (enc a).length)).sqrt)) fun (a : α) => T (enc a).length ^ d

Unbounded-error probabilistic time, deterministically (conditional on the interfaces). For a time-constructible T with max n 2 ≤ T n, every problem in PPTIME[T] is decided within time 2 ^ (C * T n / √⌊log₂ (T n)⌋) and space T n ^ d, by the strict-majority comparison of the accept count.

theorem Cslib.Complexity.CountingSimulation.NTIME_subset_iUnion_DTIME {N : Type} {encN : N ↪ List Bool} {value : N → ℕ} {Admissible : ℕ → ℕ → N → Prop} {α : Type} {enc : α ↪ List Bool} {T : ℕ → ℕ} (hnet : NetworkFamilies encN value Admissible) (A : ContractionAlgorithm encN value Admissible) (hT : TimeConstructible T) (hTn : ∀ (n : ℕ), max n 2 ≤ T n) :
NTIME enc T ⊆ ⋃ (C : ℕ), DTIME enc fun (n : ℕ) => 2 ^ (C * T n / (Nat.log 2 (T n)).sqrt)

NTIME[T] ⊆ ⋃ C, DTIME[2 ^ (C * T / √⌊log₂ T⌋)] (conditional on the interfaces), for a time-constructible T with max n 2 ≤ T n.

theorem Cslib.Complexity.CountingSimulation.BPTIME_subset_iUnion_DTIME {N : Type} {encN : N ↪ List Bool} {value : N → ℕ} {Admissible : ℕ → ℕ → N → Prop} {α : Type} {enc : α ↪ List Bool} {T : ℕ → ℕ} (hnet : NetworkFamilies encN value Admissible) (A : ContractionAlgorithm encN value Admissible) (hT : TimeConstructible T) (hTn : ∀ (n : ℕ), max n 2 ≤ T n) :
BPTIME enc T ⊆ ⋃ (C : ℕ), DTIME enc fun (n : ℕ) => 2 ^ (C * T n / (Nat.log 2 (T n)).sqrt)

BPTIME[T] ⊆ ⋃ C, DTIME[2 ^ (C * T / √⌊log₂ T⌋)] (conditional on the interfaces), for a time-constructible T with max n 2 ≤ T n.

theorem Cslib.Complexity.CountingSimulation.PPTIME_subset_iUnion_DTIME {N : Type} {encN : N ↪ List Bool} {value : N → ℕ} {Admissible : ℕ → ℕ → N → Prop} {α : Type} {enc : α ↪ List Bool} {T : ℕ → ℕ} (hnet : NetworkFamilies encN value Admissible) (A : ContractionAlgorithm encN value Admissible) (hT : TimeConstructible T) (hTn : ∀ (n : ℕ), max n 2 ≤ T n) :
PPTIME enc T ⊆ ⋃ (C : ℕ), DTIME enc fun (n : ℕ) => 2 ^ (C * T n / (Nat.log 2 (T n)).sqrt)

PPTIME[T] ⊆ ⋃ C, DTIME[2 ^ (C * T / √⌊log₂ T⌋)] (conditional on the interfaces), for a time-constructible T with max n 2 ≤ T n.