Docsity

CSE/CIS 607 Fall, 2007 Review Questions in Logic - Prof. Howard Blair, Exams of Computer Science

Toggle sidebar
bg1
Review Questions
CSE/CIS 607
Fall, 2007
This practice exam is 3 to 4 times longer than the actual final exam. Also, question
17 itself is almost the length of the actual final exam. The questions are intended to
give you review practice.
Question 1: Assign polarity to each of the subformula occurrences in the following
formula
(¬P⊃((Q≡P)⊃Q)) ∨(P∧ ¬R)
Question 2: Let Ψ be a formula in which the subformula P∨ ¬Phas exactly one
occurrence, and that occurrence has negative polarity in Ψ. Is the following formula
valid? If it is valid, explain why. If it is not valid give a (simple) counterexample.
(Ψ[P∨ ¬P]∧Q)⊃(Ψ[P∧ ¬P]∧Q)
Question 3: Intentionally omitted.
Question 4: Use tableau methods to prove that the following formula is valid:
∃x[p(x)∧ ∀y[p(y)⊃q(x, y)]] ⊃ ∃x[p(x)∧q(x, x)]
pf3
pf4

Partial preview of the text

Download CSE/CIS 607 Fall, 2007 Review Questions in Logic - Prof. Howard Blair and more Exams Computer Science in PDF only on Docsity!

Review Questions

CSE/CIS 607

Fall, 2007

This practice exam is 3 to 4 times longer than the actual final exam. Also, question 17 itself is almost the length of the actual final exam. The questions are intended to give you review practice.

Question 1: Assign polarity to each of the subformula occurrences in the following formula

(¬P ⊃ ((Q ≡ P ) ⊃ Q)) ∨ (P ∧ ¬R)

Question 2: Let Ψ be a formula in which the subformula P ∨ ¬P has exactly one occurrence, and that occurrence has negative polarity in Ψ. Is the following formula valid? If it is valid, explain why. If it is not valid give a (simple) counterexample.

(Ψ[P ∨ ¬P ] ∧ Q) ⊃ (Ψ[P ∧ ¬P ] ∧ Q)

Question 3: Intentionally omitted.

Question 4: Use tableau methods to prove that the following formula is valid:

∃x[p(x) ∧ ∀y[p(y) ⊃ q(x, y)]] ⊃ ∃x[p(x) ∧ q(x, x)]

Question 5: Is the following a valid formula?

(∀x[p(x) ⊃ q(x)] ∧ ∃x[q(x) ∧ r(x)]) ⊃ ∀x[p(x) ⊃ r(x)]

If it is, prove it (a tableau-style proof would do). If it is not valid, give an interpre- tation A in which the formula is false.

Question 6: Find a most general unifier of the two terms

g(g(w, g(b, z)), w) and g(g(y, g(b, u)), g(u, z)).

Question 7: Prove that the following tableau is valid

a1. p(g(y, u)) ∨ q(g(x, f (x))) ∨ p(g(x, f (x))) a2. p(g(x, f (x))) ∨ ¬q(g(y, u)) g1. p(g(y, u)) ∨ s(g(x, f (x)))

Question 8: Find a prenex normal form equivalent to

∃x[p(x, y) ⊃ ∃x[q(x) ∨ ¬∃yr(y)]]

Question 9: Skolemize as an assertion:

∀x∃y∀z[(p(x) ⊃ q(x)) ∧ ((q(y) ∧ r(y)) ⊃ (p(z) ⊃ r(z)))]

Question 10: Skolemize as a goal:

∀x∃y∀z[(p(x) ⊃ q(x)) ∧ ((q(y) ∧ r(y)) ⊃ (p(z) ⊃ r(z)))]

Question 17: Prove, using tableau, the following

∀x ∀y ∀z [x + (y + z) = (x + y) + z]

in Peano Arithmetic (PA). Hint: Do induction on z. You may used previously proved theorems of PA that we proved in the course. [WARNING: This is long. It is intended to give you practice doing induction proofs. The induction step itself involves an induction on y.]

Question 18: Let A be the set of natural numbers recursively defined by

  1. (0, 0) ∈ A.
  2. If (m, n) ∈ A, then (m + 2, n + 3) ∈ A and (m + 3, n + 2) ∈ A.

Use structural induction to prove that if (m, n) ∈ A then 5 divides m + n. [You do not need to give a tableau proof, but you do need to give a rigorous proof.]