Documentation

CslibFrontier.Computability.Complexity.Classes.EXPSPACE

Exponential space #

Cslib.Complexity.EXPSPACE enc is the union of the deterministic space classes Cslib.Complexity.DSPACE enc (2 ^ n ^ k) over k, the space analogue of Cslib.Complexity.EXP Arora and Barak, Section 4.1, Sipser, Section 9.1.

PSPACE is the union of the classes DSPACE (n ^ k) (Cslib.Complexity.mem_PSPACE_iff_exists_mem_DSPACE), and time bounds space (Cslib.Complexity.DTIME_subset_DSPACE), so PSPACE ⊆ EXPSPACE and EXP ⊆ EXPSPACE. The first inclusion is strict for problems on bit words by the space hierarchy theorem (Cslib.Complexity.PSPACE_ssubset_EXPSPACE, in Classes.EXPSPACE.Separation). Nondeterministic time also bounds nondeterministic space (Cslib.Complexity.NTIME_subset_NSPACE), and Savitch's theorem squares the space bound (Cslib.Complexity.NSPACE_subset_DSPACE_sq), so NEXP ⊆ EXPSPACE.

Main definitions #

Main results #

References #

def Cslib.Complexity.EXPSPACE {α : Type u_1} (enc : α ↪ List Bool) :
Set (Set α)

The problems decidable within space O(2 ^ n ^ k) for some k, on instances whose encoding under enc has length n Arora and Barak, Section 4.1.

theorem Cslib.Complexity.mem_EXPSPACE_iff {α : Type u_1} {enc : α ↪ List Bool} {A : Set α} :
A ∈ EXPSPACE enc ↔ ∃ (k : ℕ), A ∈ DSPACE enc fun (n : ℕ) => 2 ^ n ^ k
theorem Cslib.Complexity.DSPACE_two_pow_subset_EXPSPACE {α : Type u_1} {enc : α ↪ List Bool} {h : ℕ → ℕ} (hh : PolynomiallyBounded h) :
(DSPACE enc fun (n : ℕ) => 2 ^ h n) ⊆ EXPSPACE enc

Deterministic space 2 ^ h n, for a polynomially bounded exponent h, is within exponential space.

Polynomial space is within exponential space: n ^ k < 2 ^ n ^ k.

theorem Cslib.Complexity.EXP_subset_EXPSPACE {α : Type u_1} {enc : α ↪ List Bool} :
EXP enc ⊆ EXPSPACE enc

Exponential time is within exponential space: time bounds space (Cslib.Complexity.DTIME_subset_DSPACE).

theorem Cslib.Complexity.NEXP_subset_EXPSPACE {α : Type} {enc : α ↪ List Bool} :
NEXP enc ⊆ EXPSPACE enc

Nondeterministic exponential time is within exponential space: a problem in NTIME (2 ^ n ^ k) is in NSPACE (2 ^ (n ^ k + n)) (Cslib.Complexity.NTIME_subset_NSPACE), a bound above log₂ n, so Savitch's theorem [Sav70] places it in DSPACE (2 ^ ((n ^ k + n) * 2)) (Cslib.Complexity.NSPACE_subset_DSPACE_sq).

theorem Cslib.Complexity.compl_mem_EXPSPACE {α : Type} {enc : α ↪ List Bool} {A : Set α} (h : A ∈ EXPSPACE enc) :

EXPSPACE is closed under complement (Cslib.Complexity.compl_mem_DSPACE).