Lecture 13: Oracle Turing Machines Arijit Bishnu 13.04.2010 Oracle - - PowerPoint PPT Presentation

lecture 13 oracle turing machines
SMART_READER_LITE
LIVE PREVIEW

Lecture 13: Oracle Turing Machines Arijit Bishnu 13.04.2010 Oracle - - PowerPoint PPT Presentation

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines Lecture 13: Oracle Turing Machines Arijit Bishnu 13.04.2010 Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle


slide-1
SLIDE 1

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Lecture 13: Oracle Turing Machines

Arijit Bishnu 13.04.2010

slide-2
SLIDE 2

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Outline

1 Oracle Turing Machines 2 Relativization 3 Defining the Polynomial Hierarchy using Oracle Machines

slide-3
SLIDE 3

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Outline

1 Oracle Turing Machines 2 Relativization 3 Defining the Polynomial Hierarchy using Oracle Machines

slide-4
SLIDE 4

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Oracle Turing Machines

The meaning of the word Oracle according to Webster: a person (as a priestess of ancient Greece) through whom a deity is believed to speak; a shrine in which a deity reveals hidden knowledge or the divine purpose through such a person.

slide-5
SLIDE 5

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Oracle Turing Machines

The meaning of the word Oracle according to Webster: a person (as a priestess of ancient Greece) through whom a deity is believed to speak; a shrine in which a deity reveals hidden knowledge or the divine purpose through such a person. Oracle machines are TMs that are given access to a black box

  • r oracle that can solve the decision problem for some

language O ⊆ {0, 1}∗.

slide-6
SLIDE 6

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Oracle Turing Machines

The meaning of the word Oracle according to Webster: a person (as a priestess of ancient Greece) through whom a deity is believed to speak; a shrine in which a deity reveals hidden knowledge or the divine purpose through such a person. Oracle machines are TMs that are given access to a black box

  • r oracle that can solve the decision problem for some

language O ⊆ {0, 1}∗. An oracle is a language O ⊆ {0, 1}∗.

slide-7
SLIDE 7

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Oracle Turing Machines

The meaning of the word Oracle according to Webster: a person (as a priestess of ancient Greece) through whom a deity is believed to speak; a shrine in which a deity reveals hidden knowledge or the divine purpose through such a person. Oracle machines are TMs that are given access to a black box

  • r oracle that can solve the decision problem for some

language O ⊆ {0, 1}∗. An oracle is a language O ⊆ {0, 1}∗. An oracle Turing machine(OTM) MO is an ordinary TM with an extra tape called the oracle tape.

slide-8
SLIDE 8

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Oracle Turing Machines

The meaning of the word Oracle according to Webster: a person (as a priestess of ancient Greece) through whom a deity is believed to speak; a shrine in which a deity reveals hidden knowledge or the divine purpose through such a person. Oracle machines are TMs that are given access to a black box

  • r oracle that can solve the decision problem for some

language O ⊆ {0, 1}∗. An oracle is a language O ⊆ {0, 1}∗. An oracle Turing machine(OTM) MO is an ordinary TM with an extra tape called the oracle tape. Whenever M writes a string q ∈ {0, 1}∗ on the oracle tape, M is informed whether q ∈ O in a single computational step.

slide-9
SLIDE 9

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Formalizing the Concept

Definition: Oracle TM An OTM is a TM M that has a special read-write tape called M’s oracle tape and three special states qquery, qyes and qno apart from other states.

slide-10
SLIDE 10

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Formalizing the Concept

Definition: Oracle TM An OTM is a TM M that has a special read-write tape called M’s oracle tape and three special states qquery, qyes and qno apart from other states. To execute M, we specify the input as usual; and a language O ⊆ {0, 1}∗ that is used as an oracle for M.

slide-11
SLIDE 11

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Formalizing the Concept

Definition: Oracle TM An OTM is a TM M that has a special read-write tape called M’s oracle tape and three special states qquery, qyes and qno apart from other states. To execute M, we specify the input as usual; and a language O ⊆ {0, 1}∗ that is used as an oracle for M. While performing its computation, if M enters the state qquery, then M checks whether the contents of the oracle tape w ∈ O? If w ∈ O, M moves to the state qyes, it moves to qno if q / ∈ O.

slide-12
SLIDE 12

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Formalizing the Concept

Definition: Oracle TM An OTM is a TM M that has a special read-write tape called M’s oracle tape and three special states qquery, qyes and qno apart from other states. To execute M, we specify the input as usual; and a language O ⊆ {0, 1}∗ that is used as an oracle for M. While performing its computation, if M enters the state qquery, then M checks whether the contents of the oracle tape w ∈ O? If w ∈ O, M moves to the state qyes, it moves to qno if q / ∈ O. Regardless of the choice of O, a query like w ∈ O counts for a single computational step of M.

slide-13
SLIDE 13

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Formalizing the Concept

Definition: Oracle TM An OTM is a TM M that has a special read-write tape called M’s oracle tape and three special states qquery, qyes and qno apart from other states. To execute M, we specify the input as usual; and a language O ⊆ {0, 1}∗ that is used as an oracle for M. While performing its computation, if M enters the state qquery, then M checks whether the contents of the oracle tape w ∈ O? If w ∈ O, M moves to the state qyes, it moves to qno if q / ∈ O. Regardless of the choice of O, a query like w ∈ O counts for a single computational step of M. MO(x) denotes the output of the oracle TM M on input x ∈ {0, 1}∗ with O ⊆ {0, 1}∗ as the language.

slide-14
SLIDE 14

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Formalizing the Concept

Definition: Oracle TM An OTM is a TM M that has a special read-write tape called M’s oracle tape and three special states qquery, qyes and qno apart from other states. To execute M, we specify the input as usual; and a language O ⊆ {0, 1}∗ that is used as an oracle for M. While performing its computation, if M enters the state qquery, then M checks whether the contents of the oracle tape w ∈ O? If w ∈ O, M moves to the state qyes, it moves to qno if q / ∈ O. Regardless of the choice of O, a query like w ∈ O counts for a single computational step of M. MO(x) denotes the output of the oracle TM M on input x ∈ {0, 1}∗ with O ⊆ {0, 1}∗ as the language. Non-deterministic OTMs can also be similarly defined.

slide-15
SLIDE 15

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

New Classes

Definition: PO and NPO For every O ⊆ {0, 1}∗, PO is the set of all languages that can be decided by a poly-time deterministic TM with oracle access to O and NPO is the set of all languages that can be decided by a poly-time non-deterministic TM with oracle access to O.

slide-16
SLIDE 16

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Some Initial Results

Claim SAT ∈ PSAT where SAT denotes the language of unsatisfiable formulae.

slide-17
SLIDE 17

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Some Initial Results

Claim SAT ∈ PSAT where SAT denotes the language of unsatisfiable formulae. Proof Given oracle access to SAT, a deterministic poly-time OTM can query its oracle if ϕ ∈ SAT and then give the opposite answer.

slide-18
SLIDE 18

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Some Initial Results

Claim Let O ∈ P. Then, PO = P.

slide-19
SLIDE 19

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Some Initial Results

Claim Let O ∈ P. Then, PO = P. Proof It trivially follows P ⊆ PO. If O ∈ P, then replace each oracle call with a deterministic poly-time computation of O.

slide-20
SLIDE 20

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Some Initial Results

Claim Let O ∈ P. Then, PO = P. Proof It trivially follows P ⊆ PO. If O ∈ P, then replace each oracle call with a deterministic poly-time computation of O. Number of oracle calls can be polynomial and product of two polynomials is another polynomial. Hence, PO ⊆ P.

slide-21
SLIDE 21

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Some Initial Results

Claim Let EXPCOM be the following language: {< M, x, 1n > | M outputs 1 on x within 2n steps.} Then, PEXPCOM = NPEXPCOM = EXP, where EXP =

c DTIME(2nc).

slide-22
SLIDE 22

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Some Initial Results

Claim Let EXPCOM be the following language: {< M, x, 1n > | M outputs 1 on x within 2n steps.} Then, PEXPCOM = NPEXPCOM = EXP, where EXP =

c DTIME(2nc).

Proof Left as an exercise. Show EXP ⊆ PEXPCOM ⊆ PEXPCOM ⊆ EXP.

slide-23
SLIDE 23

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Some Initial Results

Claim Let EXPCOM be the following language: {< M, x, 1n > | M outputs 1 on x within 2n steps.} Then, PEXPCOM = NPEXPCOM = EXP, where EXP =

c DTIME(2nc).

Proof Left as an exercise. Show EXP ⊆ PEXPCOM ⊆ PEXPCOM ⊆ EXP. Claim NP ⊆ PSAT and coNP ⊆ PSAT

slide-24
SLIDE 24

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Some Initial Results

Claim Let EXPCOM be the following language: {< M, x, 1n > | M outputs 1 on x within 2n steps.} Then, PEXPCOM = NPEXPCOM = EXP, where EXP =

c DTIME(2nc).

Proof Left as an exercise. Show EXP ⊆ PEXPCOM ⊆ PEXPCOM ⊆ EXP. Claim NP ⊆ PSAT and coNP ⊆ PSAT Proof Left as an exercise.

slide-25
SLIDE 25

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Exercise

Exercise Two boolean formulas φ and ψ are equivalent if the formulas have the same value on any assignment to the boolean variables. A formula is minimal if no smaller formula is equivalent to it. Let NONMIN = {< φ > | φ is not a minimal boolean formula.} Show that NONMIN ∈ NPSAT.

slide-26
SLIDE 26

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Outline

1 Oracle Turing Machines 2 Relativization 3 Defining the Polynomial Hierarchy using Oracle Machines

slide-27
SLIDE 27

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Relativization

We go back to diagonalization and its limits. For that, we use the concept of relativization. Relativization

slide-28
SLIDE 28

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Relativization

We go back to diagonalization and its limits. For that, we use the concept of relativization. Relativization The OTM introduced earlier allows us to “magically” solve the SAT problem in one step if our O was SAT.

slide-29
SLIDE 29

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Relativization

We go back to diagonalization and its limits. For that, we use the concept of relativization. Relativization The OTM introduced earlier allows us to “magically” solve the SAT problem in one step if our O was SAT. Irrespective of the relation between P and NP, this OTM can solve any NP problem in deterministic polynomial time because every problem in NP is poly-time reducible to SAT.

slide-30
SLIDE 30

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Relativization

We go back to diagonalization and its limits. For that, we use the concept of relativization. Relativization The OTM introduced earlier allows us to “magically” solve the SAT problem in one step if our O was SAT. Irrespective of the relation between P and NP, this OTM can solve any NP problem in deterministic polynomial time because every problem in NP is poly-time reducible to SAT. Such a TM is said to be computing relative to SAT. This is the significance of the term relativization.

slide-31
SLIDE 31

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Limits of the Diagonalization Method

Our goal is to show the limits of diagonalization in proving the P vs NP question. To that end, we will prove the following theorem:

slide-32
SLIDE 32

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Limits of the Diagonalization Method

Our goal is to show the limits of diagonalization in proving the P vs NP question. To that end, we will prove the following theorem: Theorem There exists oracles A and B such that PA = NPA and PB = NPB.

slide-33
SLIDE 33

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Limits of the Diagonalization Method

Our goal is to show the limits of diagonalization in proving the P vs NP question. To that end, we will prove the following theorem: Theorem There exists oracles A and B such that PA = NPA and PB = NPB. But, how does the above theorem help?

slide-34
SLIDE 34

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Limits of the Diagonalization Method

Our goal is to show the limits of diagonalization in proving the P vs NP question. To that end, we will prove the following theorem: Theorem There exists oracles A and B such that PA = NPA and PB = NPB. But, how does the above theorem help? The diagonalization method is a simulation of one TM (Y ) by another TM (X). X can determine the behaviour of Y and then behave differently.

slide-35
SLIDE 35

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Limits of the Diagonalization Method

Our goal is to show the limits of diagonalization in proving the P vs NP question. To that end, we will prove the following theorem: Theorem There exists oracles A and B such that PA = NPA and PB = NPB. But, how does the above theorem help? The diagonalization method is a simulation of one TM (Y ) by another TM (X). X can determine the behaviour of Y and then behave differently. Suppose, X and Y were given identical oracles.

slide-36
SLIDE 36

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Limits of the Diagonalization Method

Our goal is to show the limits of diagonalization in proving the P vs NP question. To that end, we will prove the following theorem: Theorem There exists oracles A and B such that PA = NPA and PB = NPB. But, how does the above theorem help? The diagonalization method is a simulation of one TM (Y ) by another TM (X). X can determine the behaviour of Y and then behave differently. Suppose, X and Y were given identical oracles. Now, whenever, Y queries the oracle, so can X and the simulation can proceed as before.

slide-37
SLIDE 37

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Limits of the Diagonalization Method

Our goal is to show the limits of diagonalization in proving the P vs NP question. To that end, we will prove the following theorem: Theorem There exists oracles A and B such that PA = NPA and PB = NPB. But, how does the above theorem help? The diagonalization method is a simulation of one TM (Y ) by another TM (X). X can determine the behaviour of Y and then behave differently. Suppose, X and Y were given identical oracles. Now, whenever, Y queries the oracle, so can X and the simulation can proceed as before. So, any theorem proved about TMs using only diagonalization would still hold if both machines were given the same oracle.

slide-38
SLIDE 38

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Limits of the Diagonalization Method

P, NP and diagonalization

slide-39
SLIDE 39

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Limits of the Diagonalization Method

P, NP and diagonalization If we could show P = NP by diagonalization, we conclude that they are different relative to any oracle as well.

slide-40
SLIDE 40

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Limits of the Diagonalization Method

P, NP and diagonalization If we could show P = NP by diagonalization, we conclude that they are different relative to any oracle as well. But, PB = NPB; so the conclusion is false.

slide-41
SLIDE 41

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Limits of the Diagonalization Method

P, NP and diagonalization If we could show P = NP by diagonalization, we conclude that they are different relative to any oracle as well. But, PB = NPB; so the conclusion is false. On the other side, no proof that relies on simulation (as in diagonalization) can show that two classes are same because that shows they are same relative to any oracle.

slide-42
SLIDE 42

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Limits of the Diagonalization Method

P, NP and diagonalization If we could show P = NP by diagonalization, we conclude that they are different relative to any oracle as well. But, PB = NPB; so the conclusion is false. On the other side, no proof that relies on simulation (as in diagonalization) can show that two classes are same because that shows they are same relative to any oracle. But, PA = NPA.

slide-43
SLIDE 43

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Limits of the Diagonalization Method

Theorem There exists oracles A and B such that PA = NPA and PB = NPB.

slide-44
SLIDE 44

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Limits of the Diagonalization Method

Theorem There exists oracles A and B such that PA = NPA and PB = NPB. Proof

slide-45
SLIDE 45

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Limits of the Diagonalization Method

Theorem There exists oracles A and B such that PA = NPA and PB = NPB. Proof How to fix B?

slide-46
SLIDE 46

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Limits of the Diagonalization Method

Theorem There exists oracles A and B such that PA = NPA and PB = NPB. Proof How to fix B? What about the hardest problem in the class PSPACE, i.e. TQBF?

slide-47
SLIDE 47

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Limits of the Diagonalization Method

Theorem There exists oracles A and B such that PA = NPA and PB = NPB. Proof How to fix B? What about the hardest problem in the class PSPACE, i.e. TQBF? One can easily verify PTQBF ⊆ NPTQBF.

slide-48
SLIDE 48

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Limits of the Diagonalization Method

Theorem There exists oracles A and B such that PA = NPA and PB = NPB. Proof How to fix B? What about the hardest problem in the class PSPACE, i.e. TQBF? One can easily verify PTQBF ⊆ NPTQBF. We now try NPTQBF ⊆ PTQBF.

slide-49
SLIDE 49

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Limits of the Diagonalization Method

Theorem There exists oracles A and B such that PA = NPA and PB = NPB. Proof How to fix B? What about the hardest problem in the class PSPACE, i.e. TQBF? One can easily verify PTQBF ⊆ NPTQBF. We now try NPTQBF ⊆ PTQBF. For this, we will look at a series of containment relations like: NPTQBF ⊆ NSPACE ⊆ PSPACE ⊆ PTQBF.

slide-50
SLIDE 50

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Proving NPTQBF ⊆ PTQBF

Proving NPTQBF ⊆ NSPACE We can convert the NDOTM computing in poly-time to a NDTM using polynomial space that computes the answers to the queries regarding TQBF instead of using the oracle.

slide-51
SLIDE 51

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Proving NPTQBF ⊆ PTQBF

Proving NPTQBF ⊆ NSPACE We can convert the NDOTM computing in poly-time to a NDTM using polynomial space that computes the answers to the queries regarding TQBF instead of using the oracle. Proving NSPACE ⊆ PSPACE Savitch’s theorem relating NSPACE and PSPACE.

slide-52
SLIDE 52

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Proving NPTQBF ⊆ PTQBF

Proving NPTQBF ⊆ NSPACE We can convert the NDOTM computing in poly-time to a NDTM using polynomial space that computes the answers to the queries regarding TQBF instead of using the oracle. Proving NSPACE ⊆ PSPACE Savitch’s theorem relating NSPACE and PSPACE. Proving PSPACE ⊆ PTQBF This relation holds as TQBF is PSPACE-complete.

slide-53
SLIDE 53

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Proving NPTQBF ⊆ PTQBF

Proving NPTQBF ⊆ NSPACE We can convert the NDOTM computing in poly-time to a NDTM using polynomial space that computes the answers to the queries regarding TQBF instead of using the oracle. Proving NSPACE ⊆ PSPACE Savitch’s theorem relating NSPACE and PSPACE. Proving PSPACE ⊆ PTQBF This relation holds as TQBF is PSPACE-complete. Finally NPTQBF ⊆ PTQBF. So, setting B = TQBF works. Thus, PTQBF = NPTQBF

slide-54
SLIDE 54

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

The other one

∃ oracle A such that PA = NPA. One can show with some effort that such an oracle A can be

  • designed. We skip it. Refer text book.
slide-55
SLIDE 55

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Outline

1 Oracle Turing Machines 2 Relativization 3 Defining the Polynomial Hierarchy using Oracle Machines

slide-56
SLIDE 56

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Characterizing Polynomial Hierarchy using Oracle Machines

Recall ΣiSAT ΣiSAT = ∃x1∀x2∃ · · · Qixi ϕ(x1, x2, . . . , xi) = 1 So, Σ1SAT = ∃x1 ϕ(x1) = 1. We now show a characterization of Σp

2 using a NDTM with oracle access to SAT.

slide-57
SLIDE 57

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Characterizing Polynomial Hierarchy using Oracle Machines

Recall ΣiSAT ΣiSAT = ∃x1∀x2∃ · · · Qixi ϕ(x1, x2, . . . , xi) = 1 So, Σ1SAT = ∃x1 ϕ(x1) = 1. We now show a characterization of Σp

2 using a NDTM with oracle access to SAT.

Theorem Σp

2 = NPSAT

slide-58
SLIDE 58

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Σp

2 ⊆ NPSAT

Proof of Σp

2 ⊆ NPSAT

Fix a language L ∈ Σp

  • 2. So, ∃ a poly-time TM M and a

polynomial q such that x ∈ L ⇐ ⇒ ∃u1 ∈ {0, 1}q(|x|)∀u2 ∈ {0, 1}q(|x|)M(x, u1, u2) = 1.

slide-59
SLIDE 59

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Σp

2 ⊆ NPSAT

Proof of Σp

2 ⊆ NPSAT

Fix a language L ∈ Σp

  • 2. So, ∃ a poly-time TM M and a

polynomial q such that x ∈ L ⇐ ⇒ ∃u1 ∈ {0, 1}q(|x|)∀u2 ∈ {0, 1}q(|x|)M(x, u1, u2) = 1. For every fixed x, u1, the above statement becomes ∀u2M(x, u1, u2) = 1 which is the negation of an NP-statement and hence, its truth can be determined using an oracle for SAT.

slide-60
SLIDE 60

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Σp

2 ⊆ NPSAT

Proof of Σp

2 ⊆ NPSAT

Fix a language L ∈ Σp

  • 2. So, ∃ a poly-time TM M and a

polynomial q such that x ∈ L ⇐ ⇒ ∃u1 ∈ {0, 1}q(|x|)∀u2 ∈ {0, 1}q(|x|)M(x, u1, u2) = 1. For every fixed x, u1, the above statement becomes ∀u2M(x, u1, u2) = 1 which is the negation of an NP-statement and hence, its truth can be determined using an oracle for SAT. So, an NDTM N that is given oracle access to SAT can decide L. How?

slide-61
SLIDE 61

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Σp

2 ⊆ NPSAT

Proof of Σp

2 ⊆ NPSAT

Fix a language L ∈ Σp

  • 2. So, ∃ a poly-time TM M and a

polynomial q such that x ∈ L ⇐ ⇒ ∃u1 ∈ {0, 1}q(|x|)∀u2 ∈ {0, 1}q(|x|)M(x, u1, u2) = 1. For every fixed x, u1, the above statement becomes ∀u2M(x, u1, u2) = 1 which is the negation of an NP-statement and hence, its truth can be determined using an oracle for SAT. So, an NDTM N that is given oracle access to SAT can decide L. How? On input x, non-deterministically guess u1 and use the oracle to decide if ∀u2M(x, u1, u2) = 1.

slide-62
SLIDE 62

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

Σp

2 ⊆ NPSAT

Proof of Σp

2 ⊆ NPSAT

Fix a language L ∈ Σp

  • 2. So, ∃ a poly-time TM M and a

polynomial q such that x ∈ L ⇐ ⇒ ∃u1 ∈ {0, 1}q(|x|)∀u2 ∈ {0, 1}q(|x|)M(x, u1, u2) = 1. For every fixed x, u1, the above statement becomes ∀u2M(x, u1, u2) = 1 which is the negation of an NP-statement and hence, its truth can be determined using an oracle for SAT. So, an NDTM N that is given oracle access to SAT can decide L. How? On input x, non-deterministically guess u1 and use the oracle to decide if ∀u2M(x, u1, u2) = 1. So, x ∈ L iff ∃ a choice u1 that makes N accept.

slide-63
SLIDE 63

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

NPSAT ⊆ Σp

2

Proof of NPSAT ⊆ Σp

2

Fix a language L ∈ NPSAT. L is decidable by a poly-time NDTM N with oracle access to SAT.

slide-64
SLIDE 64

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

NPSAT ⊆ Σp

2

Proof of NPSAT ⊆ Σp

2

Fix a language L ∈ NPSAT. L is decidable by a poly-time NDTM N with oracle access to SAT. We need to replace N by a machine for the class Σp

2.

slide-65
SLIDE 65

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

NPSAT ⊆ Σp

2

Proof of NPSAT ⊆ Σp

2

Fix a language L ∈ NPSAT. L is decidable by a poly-time NDTM N with oracle access to SAT. We need to replace N by a machine for the class Σp

2.

Non-deterministically guess all future queries as well as SAT

  • racle’s answers and then make a single coNP query whose

answer verifies that all this guessing was correct.

slide-66
SLIDE 66

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

NPSAT ⊆ Σp

2

Proof of NPSAT ⊆ Σp

2

Fix a language L ∈ NPSAT. L is decidable by a poly-time NDTM N with oracle access to SAT. We need to replace N by a machine for the class Σp

2.

Non-deterministically guess all future queries as well as SAT

  • racle’s answers and then make a single coNP query whose

answer verifies that all this guessing was correct. x ∈ L iff ∃ a sequence of non-deterministic choices and correct

  • racle answers that makes N accept x.
slide-67
SLIDE 67

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

NPSAT ⊆ Σp

2

Proof of NPSAT ⊆ Σp

2

Fix a language L ∈ NPSAT. L is decidable by a poly-time NDTM N with oracle access to SAT. We need to replace N by a machine for the class Σp

2.

Non-deterministically guess all future queries as well as SAT

  • racle’s answers and then make a single coNP query whose

answer verifies that all this guessing was correct. x ∈ L iff ∃ a sequence of non-deterministic choices and correct

  • racle answers that makes N accept x.

So, ∃ a sequence of choices c1, c2, . . . , cm ∈ {0, 1} and answers to oracle queries a1, . . . , ak ∈ {0, 1} s.t. on input x, if N uses the above choices in its execution and receives ai as the answer to its i-th query, then

slide-68
SLIDE 68

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

NPSAT ⊆ Σp

2

Proof of NPSAT ⊆ Σp

2

Fix a language L ∈ NPSAT. L is decidable by a poly-time NDTM N with oracle access to SAT. We need to replace N by a machine for the class Σp

2.

Non-deterministically guess all future queries as well as SAT

  • racle’s answers and then make a single coNP query whose

answer verifies that all this guessing was correct. x ∈ L iff ∃ a sequence of non-deterministic choices and correct

  • racle answers that makes N accept x.

So, ∃ a sequence of choices c1, c2, . . . , cm ∈ {0, 1} and answers to oracle queries a1, . . . , ak ∈ {0, 1} s.t. on input x, if N uses the above choices in its execution and receives ai as the answer to its i-th query, then

M reaches the accepting state qaccept.

slide-69
SLIDE 69

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

NPSAT ⊆ Σp

2

Proof of NPSAT ⊆ Σp

2

Fix a language L ∈ NPSAT. L is decidable by a poly-time NDTM N with oracle access to SAT. We need to replace N by a machine for the class Σp

2.

Non-deterministically guess all future queries as well as SAT

  • racle’s answers and then make a single coNP query whose

answer verifies that all this guessing was correct. x ∈ L iff ∃ a sequence of non-deterministic choices and correct

  • racle answers that makes N accept x.

So, ∃ a sequence of choices c1, c2, . . . , cm ∈ {0, 1} and answers to oracle queries a1, . . . , ak ∈ {0, 1} s.t. on input x, if N uses the above choices in its execution and receives ai as the answer to its i-th query, then

M reaches the accepting state qaccept. All the answers are correct.

slide-70
SLIDE 70

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

NPSAT ⊆ Σp

2

Proof of NPSAT ⊆ Σp

2

Let ϕi denote the i-th query that N makes to its oracle when executing on x using the above choices and answers.

slide-71
SLIDE 71

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

NPSAT ⊆ Σp

2

Proof of NPSAT ⊆ Σp

2

Let ϕi denote the i-th query that N makes to its oracle when executing on x using the above choices and answers. Then all the answers are correct can be encoded as:

slide-72
SLIDE 72

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

NPSAT ⊆ Σp

2

Proof of NPSAT ⊆ Σp

2

Let ϕi denote the i-th query that N makes to its oracle when executing on x using the above choices and answers. Then all the answers are correct can be encoded as:

If ai = 1, ∃ an assignment ui s.t. ϕi(ui) = 1.

slide-73
SLIDE 73

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

NPSAT ⊆ Σp

2

Proof of NPSAT ⊆ Σp

2

Let ϕi denote the i-th query that N makes to its oracle when executing on x using the above choices and answers. Then all the answers are correct can be encoded as:

If ai = 1, ∃ an assignment ui s.t. ϕi(ui) = 1. If ai = 0, ∀ assignment vi s.t. ϕi(vi) = 0.

slide-74
SLIDE 74

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

NPSAT ⊆ Σp

2

Proof of NPSAT ⊆ Σp

2

Let ϕi denote the i-th query that N makes to its oracle when executing on x using the above choices and answers. Then all the answers are correct can be encoded as:

If ai = 1, ∃ an assignment ui s.t. ϕi(ui) = 1. If ai = 0, ∀ assignment vi s.t. ϕi(vi) = 0.

So, we have x ∈ L ⇐ ⇒ ∃c1, . . . cm, a1, . . . ak, u1, . . . , uk∀v1, . . . vk such that N accepts x using choices c1, . . . , cm and answers a1, . . . , ak AND ∀i ∈ [k], if ai = 1 then ϕi(ui) = 1 AND ∀i ∈ [k], if ai = 0 then ϕi(vi) = 0.

slide-75
SLIDE 75

Oracle Turing Machines Relativization Defining the Polynomial Hierarchy using Oracle Machines

NPSAT ⊆ Σp

2

Proof of NPSAT ⊆ Σp

2

Let ϕi denote the i-th query that N makes to its oracle when executing on x using the above choices and answers. Then all the answers are correct can be encoded as:

If ai = 1, ∃ an assignment ui s.t. ϕi(ui) = 1. If ai = 0, ∀ assignment vi s.t. ϕi(vi) = 0.

So, we have x ∈ L ⇐ ⇒ ∃c1, . . . cm, a1, . . . ak, u1, . . . , uk∀v1, . . . vk such that N accepts x using choices c1, . . . , cm and answers a1, . . . , ak AND ∀i ∈ [k], if ai = 1 then ϕi(ui) = 1 AND ∀i ∈ [k], if ai = 0 then ϕi(vi) = 0. This implies L ∈ Σp

2.