Guest User

Untitled

a guest
May 21st, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. */Richard-David Simmons
  2. CS241 Assignment 2 - Questions 1,3,4*/
  3.  
  4.  
  5. 1.a) Given P(x) => x/2 is odd and Q(x) => 4 divides x, for
  6. (∀x)[P(x) -> Q(x)] on DOI = {2,4,6,8,10,12,14,16,18,20}
  7. P(x) = {2,6,10,14,18}
  8. Q(x) = {2,4}
  9.  
  10. Truth set:
  11. {2,4,6,10,14,18}
  12.  
  13. Falsity set:
  14. {0}
  15.  
  16. b) If G(x, y) => x < y, for
  17. (∀x)(∃y)[G(x,y) v G(y,x)]
  18. on DOI = Dx x Dy = {{1, 3, 5} x {2, 4, 6}}
  19.  
  20. Truth set:
  21. {(1,2), (1,4), (1, 6), (3,2), (3,4), (3,6), (5,2), (5,4), (5,6)}
  22.  
  23. Falsity set:
  24. {0}
  25.  
  26. 3. Translate the English statements into a predicate w . Indicate what each predicate stands for.
  27. a) Everyone laughs, but no one knows why.
  28. b) Rational numbers are fractions. Some fractions are integers. Therefore, some rational numbers are integers.
  29.  
  30. a.
  31. P(x) => x to Laughs
  32. Q(x) => x Knows Why
  33.  
  34. (∀x)[P(x) -> Q(x)']
  35.  
  36. b.
  37. R(x) => x Rational numbers
  38. F(x) => x Fractions
  39. I(x) => x Integers
  40.  
  41. (∀x)[R(x) -> F(x)] ^ (∃x)[F(x) ^ I(x)] -> (∃x)[R(x) ^ I(x)]
  42.  
  43. 4. Prove that the following predicate arguments are valid.
  44. a.(∃x)[A(x) ^ B(x)] v (∀x)A(x) ^ (∀x)[A(x) -> B(x)] -> (∃x)B(x)
  45. b.(∀x)[(∃y)P(x,y)]' -> (∀y)(∀x)P(x,y)'
  46.  
  47. A.
  48. 1. (∃x)[A(x) ^ B(x)] v (∀x)A(x) ^ (∀x)[A(x) -> B(x)] Hypo
  49. 2. [A(d) ^ B(d)] v (∀x)A(x) ^ (∀x)[A(x) -> B(x)] Exist Inst 1
  50. 3. B(d) v (∀x)A(x) ^ (∀x)[A(x) -> B(x)] Simp on 2
  51. 4. B(d) v A(d) ^ [A(d) -> B(d)] Univ Inst on 3
  52. 5. B(d) v B(d) MP on 4
  53. 6. B(d) Idemp- Self on 5
  54. 7. (∃x)B(x) Exist Gen on 6
  55.  
  56.  
  57. B.
  58. 1. (∀x)[(∃y)P(x,y)]' Hypo
  59. 2. (∀x)(∀y)P(x,y)' De Morgan's on 1
  60. 3. (∀y)(∀x)P(x,y)' Reordering on 2
Add Comment
Please, Sign In to add comment