Documentation

CslibFrontier.Computability.Complexity.Classes.Hierarchy.SpaceDiagonalBounds

Shared bounds for the space diagonals #

The diagonal arguments for deterministic and nondeterministic space share two steps. They run a machine on its own description, padded to a long enough word on which the description is tiny, and they bound the size of the configurations of its simulation by the budget G n.

Main results #

Every description is tiny at the start of arbitrarily long words: padded to a doubly exponential length beyond N, its framed encoding is tiny and decodes back to it.

theorem Cslib.Complexity.Diagonal.eventually_cfgSpaceBound_le {f G : ℕ → ℕ} (hlog : ∀ (n : ℕ), 4 * n.log2 ≤ G n) (hfG : ∀ (c : ℕ), ∀ᶠ (n : ℕ) in Filter.atTop, c * f n + c ≤ G n) (D c₁ c₂ : ℕ) :
∀ᶠ (n : ℕ) in Filter.atTop, ∀ k ≤ D, Turing.MultiTapeTM.Universal.cfgSpaceBound D n k (c₁ * f n + c₂) ≤ G n

The configurations of a simulation within space O(f) eventually fit within G n bits when every c * f n + c is eventually below G n and 4 * log₂ n ≤ G n: for a description of length D with at most D work tapes, the size bound Turing.MultiTapeTM.Universal.cfgSpaceBound is O(D * f n + log n).