Documentation

CslibFrontier.Computability.Complexity.Classes.Hierarchy.NondeterministicTime

A nondeterministic time hierarchy by lazy diagonalization #

For every degree d, nondeterministic time O((n + 1) ^ d) is strictly contained in nondeterministic time O((n + 1) ^ e) on bit strings whenever 6 * d + 14 ≤ e (Cslib.Complexity.NTIME_succ_pow_ssubset_NTIME_succ_pow_of_le). This is a coarse form of the nondeterministic time hierarchy theorem Arora and Barak, Theorem 3.3, proved by lazy diagonalization Žák. The separating problem is explicit: the lazy diagonal Cslib.Complexity.lazyDiagonal d.

The lazy diagonal #

The lazy diagonal is the generic construction Cslib.Complexity.Diagonal.lazyLanguage with certificates of length certLen d m = (m + 1) ^ (d + 2) on words of length m, and the clock clock d m = (m + 1) ^ (d + 3) as both the step budget on the input y (clock d y.length) and the horizon: the interval of a word w ends below 2 ^ clock d P, where P = 2 * w.length + 1.

The gap 6 * d + 14 is the polynomial overhead of the native universal machine and of the certificate length, not the textbook f (n + 1) = o (g n).

Main definitions #

Main results #

References #

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

The clock of the lazy diagonal on words of length m: (m + 1) ^ (d + 3). It bounds the simulated steps on m, and the interval of lengths starting at m ends below 2 ^ clock d m.

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

The verifier of the lazy diagonal (Cslib.Complexity.Diagonal.lazyVerifier) with the budget clock d y.length for the input y, certificates of length certLen d and horizon clock d.

The lazy diagonal language for degree d: the words x with a certificate of length (x.length + 2) ^ (d + 2) accepted by Cslib.Complexity.LazyDiagonal.verifier d.

The lazy diagonal is not in NTIME ((n + 1) ^ d) #

The lazy diagonal is not decidable in nondeterministic time O((n + 1) ^ d) (Cslib.Complexity.Diagonal.lazyLanguage_notMem_NTIME): certificates of length certLen d m and clock d m simulated steps eventually suffice for a verifier of a problem in that class.

The lazy diagonal is in nondeterministic polynomial time #

The lazy diagonal is decidable in nondeterministic time O((n + 1) ^ (6 * d + 14)). Guess a certificate of length (n + 2) ^ (d + 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 both. At the end of an interval of start P, it tries every certificate on the input of length P, within time 2 ^ O((P + 1) ^ (d + 2)), which is linear in the length n of the input, since n + 1 = 2 ^ ((P + 1) ^ (d + 3)) there.

The hierarchy #

theorem Cslib.Complexity.NTIME_succ_pow_ssubset_NTIME_succ_pow_of_le {d e : ℕ} (h : 6 * d + 14 ≤ e) :
(NTIME Turing.MultiTapeTM.encBits fun (n : ℕ) => (n + 1) ^ d) ⊂ NTIME Turing.MultiTapeTM.encBits fun (n : ℕ) => (n + 1) ^ e

A nondeterministic time hierarchy for polynomial degrees. For every degree d, nondeterministic time O((n + 1) ^ d) is strictly contained in nondeterministic time O((n + 1) ^ e) whenever 6 * d + 14 ≤ e. The lazy diagonal Cslib.Complexity.lazyDiagonal d separates them (Cslib.Complexity.lazyDiagonal_mem_NTIME, Cslib.Complexity.lazyDiagonal_notMem_NTIME). This is a coarse form of the nondeterministic time hierarchy theorem Arora and Barak, Theorem 3.3: the gap is the polynomial overhead of the native universal machine and of the certificates, not f (n + 1) = o (g n).