Documentation

CslibFrontier.Computability.Complexity.Classes.Time.BoundedExists

Bounded existential quantification in exponential time #

A test f that is computable in polynomial time can be tried on every word of length ℓ x, for ℓ computable in polynomial time, within time 2 ^ O(|x| + ℓ x) (Cslib.Complexity.exists_computableInO_any_enumList). The candidates are streamed in place by Turing.MultiTapeTM.ComputableInO.exists_bits, with independent time and space bounds. Every polynomial in the cost is absorbed by the exponential, so the exponent is linear in |x| + ℓ x, with a constant that depends on the test.

The shared search gives the closure of PSPACE under bounded existential quantification (Cslib.Complexity.setOf_exists_mem_PSPACE), where the point is the space of the run. Here the time is the point: this brute force is the last step of lazy diagonalization for nondeterministic time, which must decide deterministically whether some certificate is accepted.

Main results #

Bounded existential quantification in exponential time. If a test f is computable within time and space polynomial in its encoded input, and ℓ is computable in unary in polynomial time, then whether some word of length ℓ x passes f with x is computable within time and space 2 ^ (K * ((encB x).length + ℓ x)) for a constant K. The native bounded search reuses workspace and visits every candidate once.