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.
- Upper bound (
Cslib.Complexity.lazyDiagonal_mem_NTIME). Guess the certificate and run the verifier (Cslib.Complexity.setOf_exists_mem_NTIME). The simulation takes timeO((n + 1) ^ (6 * d + 14)): polynomial in the input, the certificate and the clock, through the native universal machine. The brute force takes time2 ^ O((P + 1) ^ (d + 2))(Cslib.Complexity.exists_computableInO_any_enumList), which isO(n)at the end of the interval, wheren + 1 = 2 ^ ((P + 1) ^ (d + 3)). - Lower bound (
Cslib.Complexity.lazyDiagonal_notMem_NTIME). A verifier for a problem inNTIME ((n + 1) ^ d)accepts certificates of every length at leastc * (n + 1) ^ d + c, and runs withinc₂times its input length;certLen dandclock deventually exceed both (Cslib.Complexity.Diagonal.lazyLanguage_notMem_NTIME).
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 #
Cslib.Complexity.LazyDiagonal.verifier: the verifier of the lazy diagonal for degreed.Cslib.Complexity.lazyDiagonal: the lazy diagonal problem for degreed.
Main results #
Cslib.Complexity.lazyDiagonal_mem_NTIME: the lazy diagonal is inNTIME ((n + 1) ^ (6 * d + 14)).Cslib.Complexity.lazyDiagonal_notMem_NTIME: the lazy diagonal is not inNTIME ((n + 1) ^ d).Cslib.Complexity.NTIME_succ_pow_ssubset_NTIME_succ_pow_of_le: the hierarchy.
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 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 #
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).