Math 2.0

Computer science Computational complexity: resources and classes Theorem

Baker–Gill–Solovay theorem

Builds on Oracle machinePNPPSPACE

Statement

Let A⊆{0,1}∗A \subseteq \set{0,1}^* be a language. Let PA\mathrm{P}^A and NPA\mathrm{NP}^A be the classes of languages decided in polynomial time by deterministic, respectively nondeterministic, oracle machines with oracle AA.

  1. There is a language AA with PA=NPA\mathrm{P}^A = \mathrm{NP}^A.
  2. There is a language BB with PB≠NPB\mathrm{P}^B \ne \mathrm{NP}^B.

Remarks

For part 1 one can take for AA any PSPACE-complete language, such as the true quantified Boolean formula problem. Then NPA⊆NPSPACE=PSPACE⊆PA\mathrm{NP}^A \subseteq \mathrm{NPSPACE} = \mathrm{PSPACE} \subseteq \mathrm{P}^A, since a polynomial-space machine can answer the oracle queries itself. For part 2 one builds BB in stages by diagonalisation, so that the language {1n:B contains a string of length n}\set{1^n : B \text{ contains a string of length } n} is in NPB\mathrm{NP}^B but escapes each polynomial-time oracle machine in turn. A machine running in time less than 2n2^n cannot query all strings of length nn. The construction places a string in BB at a length where the machine has not looked.

A proof technique relativizes when it stays valid after every machine is given the same oracle. Simulation and diagonalisation, as in the time hierarchy theorem, relativize. The theorem shows that no relativizing argument can settle the P versus NP problem, since such an argument would give the same answer for every oracle.

Going deeper

For a student

The result, from 1975, was the first of several barriers to proving separations of complexity classes. Later barriers are the natural proofs barrier of Razborov and Rudich and the algebrization barrier of Aaronson and Wigderson. Some results do not relativize: IP = PSPACE holds for real machines, but there are oracles relative to which the two classes differ. Relativized worlds remain a useful test: a proposed proof that relativizes cannot separate classes that some oracle makes equal.

Reading path

To understand this page from the ground up, read these 5 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. NP concept
  2. Oracle machine concept
  3. P concept
  4. PSPACE concept
  5. Baker–Gill–Solovay theorem statement

Further reading

  1. Web https://en.wikipedia.org/wiki/Oracle_machine
About this page
TagBST2RKE12N
URIm2://BST2RKE12N
Kindstatement, theorem
WritingW0 stub
MSC68Q15, 03D15
StatusThis copy of the site has no build data. Run m2 status BST2RKE12N.
AboutOracle machine, P versus NP problem
UsesOracle machine, P, NP, PSPACE
Changed3 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.