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 #
Cslib.Complexity.Diagonal.exists_decodeDesc_tinyCut_eq: every description is the tiny description at the start of arbitrarily long words.Cslib.Complexity.Diagonal.eventually_cfgSpaceBound_le: if everyc * f n + cis eventually belowG nand4 * log₂ n ≤ G n, the size boundTuring.MultiTapeTM.Universal.cfgSpaceBoundof the configurations of a description within spacec₁ * f n + c₂is eventually belowG n.
theorem Cslib.Complexity.Diagonal.exists_decodeDesc_tinyCut_eq (d : Turing.MultiTapeTM.Universal.Desc) (N : ℕ) :
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).