Gap theorem


In computational complexity theory, the gap theorem, also known as the Borodin–Trakhtenbrot gap theorem, is a major theorem about the complexity of computable functions.
It essentially states that there are arbitrarily large computable gaps in the hierarchy of complexity classes. For any computable function that represents an increase in computational resources, one can find a resource bound such that the set of functions computable within the expanded resource bound is the same as the set computable within the original bound.
The theorem was proved independently by Boris Trakhtenbrot and Allan Borodin.
Although Trakhtenbrot's derivation preceded Borodin's by several years, it was not known nor recognized in the West until after Borodin's work was published.

Statement

As an introductory example, suppose that we are considering time complexity of a certain specific Turing machine model. The set is the set of total computable functions, such that there exists some implementation of the function that computes it in time given an input size of.
In general, any total computable function defines some time complexity class, and we expect that if is much larger than, for all, then should be larger than. The gap theorem states that this is not necessarily so. Indeed, for any total computable such that for all, there exists some total computable function, such that. Intuitively, adding compute time might not allow us to compute more functions.
More generally, suppose is an abstract (Blum) complexity measure, then for any total computable function for which for every, there is a total computable function such that with respect to, the complexity classes with boundary functions and are identical.

Implications

For the special case of time complexity, this can be stated more simply as:
Similarly for the special case of space complexity.
Because the bound may be very large the gap theorem does not imply anything interesting for complexity classes such as P or NP, and it does not contradict the time hierarchy theorem or space hierarchy theorem.