Docsity

Propositional and Predicate Logic Exercises with Solutions - Prof. Saurabh Bagchi, Exercises of Discrete Mathematics

Partial preview of the text

Download Propositional and Predicate Logic Exercises with Solutions - Prof. Saurabh Bagchi and more Exercises Discrete Mathematics in PDF only on Docsity!

Homework 1: Proposition and Predicate Logic

Calvin Joe

Exercise 1.

(a)T (b)F (e)T (f )F

(a)P F ′^ ∧ RS′ (c)P F ∧ RS′ (f )RS ∧ F D′

(a)H → K (c)K → H (f )(H ∨ A) → K

Exercise 1.

P rove : C → S

1 .C → F ′^ P remise

2 .F ∨ S P remise 3 .C P remise 4 .F ′^1 , 3 , mp 5 .S 2 , 4 , deduction 6 .C → S 5 , sim

P rove : J′

1 .J ∨ L → C P remise 2 .T ′^ P remise 3 .C → T P remise 4 .T ′^ → C′^3 , cont 5 .C′^2 , 4 , mp 6 .C′^ → (J ∨ L)′^1 , cont 7 .(J ∨ L)′^5 , 6 , mp 8 .J′^ ∨ L′^7 , DeM organs 9 .J′^8 , sim

Exercise 1.

3 : (e)F (f )T (h)F

(a)(∃x)(∃y)(P (x) ∧ T (y) → F (x, y)) (c)(∀x)(P (x) → (∃y)(T (y) ∧ F (x, y))) (f )(∃x)(∃y)(P (x) ∧ T (y) ∧ F (x, y)′)

(a)(∀x)(∀y)[(B(x) ∧ F (y)) → L(x, y)] (i)(∃x)[B(x) ∧ (∀y)(L(x, y) → F (y))] (l)¬[(∃x)(B(x) ∧ (∀y)(F (y) → ¬L(x, y)))]

(b) Flaw in the proof: The mistake is assuming that the x chosen in (∃x) can be the same for all y. In fact, the witness for ∃x may depend on y, so you cannot conclude a single x works for every y. Thus the inference from (∀y)(∃x)Q(x, y) to (∃x)(∀y)Q(x, y) is invalid. 36 : ∃x(M (x) ∧ ∀y(y))

42 :

  1. (∀x)(∃y)(F (x) → (C(y) ∧ O(x, y))) P remise
  2. (∀x)(D(x) → ¬(∃y)(C(y) ∧ O(x, y))) P remise
  3. (∃x)(D(x) ∧ F (x)) Ded.theorum
  4. D(a) ∧ F (a) 3 , ei
  5. F (a) 4 , sim
  6. D(a) 4 , sim
  7. F (a) → ∃y(C(y) ∧ O(a, y)) 1 , ui
  8. ∃y(C(y) ∧ O(a, y)) 5 , 7 , mp
  9. D(a) → ¬(∃y)(C(y) ∧ O(a, y)) 2 , ui
  10. ¬(∃y)(C(y) ∧ O(a, y)) 6 , 9 , mp

Since 8 and 10 contradict (because we cannot have both ∃y(C(y) ∧ O(a, y)) and its negation), proof by contradiction shows that no dentist is a farm must be a valid statement.

Problem I

Check whether A ∨ (B ∧ C) and (A ∨ B) ∧ C are equivalent.

A B C A ∨ (B ∧ C) (A ∨ B) ∧ C

T T T T T

T T F T F

T F T T T

T F F T F

F T T T T

F T F F F

F F T F F

F F F F F

From the truth table, the columns for A ∨ (B ∧ C) and (A ∨ B) ∧ C are not identical. Therefore, they are not equivalent.

Problem II

Prove Aristotle’s Ferio statement.

No M are P Some S are M Therefore, some S are not P.

  1. (∀x)(M (x) → ¬P (x)) P remise
  2. (∃x)(S(x) ∧ M (x)) P remise
  3. S(a) ∧ M (a) 2 , ei
  4. S(a) 3 , sim
  5. M (a) 3 , sim
  6. M (a) → ¬P (a) 1 , ui
  7. ¬P (a) 5 , 6 , mp
  8. S(a) ∧ ¬P (a) 4 , 7 , conj
  9. (∃x)(S(x) ∧ ¬P (x)) 8 , eg

Conclusion: Some S are not P.