Documentation

CslibFrontier.Computability.Complexity.Classes.Hierarchy.NondeterministicExponentialTime

A nondeterministic exponential time hierarchy by lazy diagonalization #

For every k, nondeterministic time O(2 ^ (k * n)) is strictly contained in nondeterministic time O(2 ^ (e * n)) on bit strings whenever 8 * k + 16 ≤ e (Cslib.Complexity.NTIME_two_pow_ssubset_NTIME_two_pow_of_le). In particular NE is not contained in NTIME (2 ^ (k * n)) for any k (Cslib.Complexity.exists_mem_NE_notMem_NTIME_two_pow). This is a coarse exponential form of the nondeterministic time hierarchy theorem Arora and Barak, Theorem 3.3, proved by lazy diagonalization Žák. The separating problem is explicit: Cslib.Complexity.expLazyDiagonal k.

Padding transfers inclusions between nondeterministic time classes only upward, so the polynomial hierarchy of Cslib.Complexity.NTIME_succ_pow_ssubset_NTIME_succ_pow_of_le does not give this separation; the lazy diagonal is run again with exponential certificates.

The lazy diagonal #

The exponential lazy diagonal is the generic construction Cslib.Complexity.Diagonal.lazyLanguage with certificates of length certLen k m = 2 ^ ((k + 1) * (m + 1)) on words of length m, the step budget ((frame y ++ v).length + 1) ^ 2 on the pair (y, v), and the horizon horizon k m = 2 ^ ((k + 2) * (m + 1)): the interval of a word w ends below 2 ^ horizon k P, where P = 2 * w.length + 1.

Unlike Cslib.Complexity.lazyDiagonal, the simulation clock is the square of the length of the simulated pair rather than a function of the input length alone. It is then polynomial in the certificate, so the brute force at the end of an interval is a polynomial-time test tried on every certificate.

Main definitions #

Main results #

References #

The certificate length of the lazy diagonal on words of length m: 2 ^ ((k + 1) * (m + 1)).

The horizon of the lazy diagonal: the interval of lengths starting at m ends below 2 ^ horizon k m, where horizon k m = 2 ^ ((k + 2) * (m + 1)) = 2 ^ (m + 1) * certLen k m.

The machine described by c, run as a verifier on the pair (y, v) with the universal function for ((frame y ++ v).length + 1) ^ 2 steps, has halted with output [true].

The verifier of the exponential lazy diagonal (Cslib.Complexity.Diagonal.lazyVerifier) with the budget ((frame y ++ v).length + 1) ^ 2 for the pair (y, v), certificates of length certLen k and horizon horizon k.

The exponential lazy diagonal language for k: the words x with a certificate of length 2 ^ ((k + 1) * (x.length + 2)) accepted by Cslib.Complexity.ExpLazyDiagonal.verifier k.

The lazy diagonal is not in NTIME (2 ^ (k * n)) #

The exponential lazy diagonal is not decidable in nondeterministic time O(2 ^ (k * n)) (Cslib.Complexity.Diagonal.lazyLanguage_notMem_NTIME): certificates of length certLen k m eventually suffice for a verifier of a problem in that class, and so do ((frame y ++ v).length + 1) ^ 2 simulated steps on the pair (y, v).

The lazy diagonal is in nondeterministic exponential time #

The exponential lazy diagonal is decidable in nondeterministic time O(2 ^ ((8 * k + 16) * n)). Guess a certificate of length 2 ^ ((k + 1) * (n + 2)) and run the verifier (Cslib.Complexity.setOf_exists_mem_NTIME). Below the end of an interval, the verifier simulates a verifier on the input one bit longer with a certificate of that length, within time polynomial in the certificate. At the end of an interval of start P, it tries every certificate on the input of length P, within time 2 ^ O(certLen k P), which is linear in the length n of the input, since n + 1 = 2 ^ horizon k P there and horizon k P = 2 ^ (P + 1) * certLen k P.

The hierarchy #

theorem Cslib.Complexity.NTIME_two_pow_ssubset_NTIME_two_pow_of_le {k e : ℕ} (h : 8 * k + 16 ≤ e) :
(NTIME Turing.MultiTapeTM.encBits fun (n : ℕ) => 2 ^ (k * n)) ⊂ NTIME Turing.MultiTapeTM.encBits fun (n : ℕ) => 2 ^ (e * n)

A nondeterministic exponential time hierarchy. For every k, nondeterministic time O(2 ^ (k * n)) is strictly contained in nondeterministic time O(2 ^ (e * n)) whenever 8 * k + 16 ≤ e. The exponential lazy diagonal Cslib.Complexity.expLazyDiagonal k separates them (Cslib.Complexity.expLazyDiagonal_mem_NTIME, Cslib.Complexity.expLazyDiagonal_notMem_NTIME). This is a coarse exponential form of the nondeterministic time hierarchy theorem Arora and Barak, Theorem 3.3.

NE is not contained in NTIME (2 ^ (k * n)), for any k: the exponential lazy diagonal Cslib.Complexity.expLazyDiagonal k is in NE and not in NTIME (2 ^ (k * n)).