Theorem

Suppose . Then also:

Let be algorithms deciding respectively in polytime.

Proof of

  • Run and
    • if accepts, reject
    • if rejects, accept
  • This takes as much time as plus an extra step, so its still
  • This a new algorithm deciding in time

Proof of

  • Run and
    • if accepts accept
    • if rejects, run
      • if accepts, accept
      • if rejects, reject
  • This takes
  • This a new algorithm deciding in time