You are on page 1of 7

FAKULTI SAINS KOMPUTER DAN MATEMATIK

CSC 510 - Discrete Structures Assignment 1

10. For each of these sets of premises, what relevant conclusion or conclusions can be drawn? Explain the rules of inference used to obtain each conclusion from the premises. a) If I play hockey, then I am sore the next day. I use the whirlpool if I am sore. I did not use the whirlpool. If I play hockey, then I am sore the next day. I use the whirlpool if I am sore. I did not use the whirlpool. h s w : i play hockey. : i am sore. : i use the whirlpool. Premise Premise 1, 2 Modus tollens Premise 2,4 Hypothetical Syllogism 1, 5 Modus tollens hs sw w

1. w 2. sw 3. s 4. hs 5. hw 6. h I did not play hockey.

b) If I work, it is either sunny or partly sunny. I worked last Monday or I worked last Friday. It was not sunny on Tuesday. It was not partly sunny on Friday. If I work, it is either sunny or partly sunny. I worked last Monday or I worked last Friday. It was not sunny on Tuesday. It was not partly sunny on Friday. W(x): I work on x. S(x): It is sunny on x. P(x): It is partly sunny on x. Domain for all is {days of the week} 1. W (Monday) v W (Friday) Premise 2. W(x) (S(x) v P(x)) Premise 3. P(Friday) Premise 4. W (Monday) (S (Monday) v P(Monday)) 2, Universal instantiation 5. W (Friday) (S(Friday) v P(Friday)) 2, Universal instantiation 6. W (Friday) S(Friday) 3, 5 Disjunctive syllogism 7. S(Monday) v r (Monday) v S(Friday) v P(Friday) 1, 4, 6 Modus ponens from It was either sunny or partly sunny on Monday or sunny on Friday. x (W(x) (S(x) v P(x))) W (Monday) v W(Friday) S (Tuesday) P (Friday)

c) All insects have six legs. Dragonflies are insects. Spiders do not have six legs. Spiders eat dragonflies. All insects have six legs. Dragonflies are insects. Spiders do not have six legs. Spiders eat dragonflies. I(x): x is an insect. D(x): x is a dragonfly. L(x): x has six legs. S(x): x is a spider. E(x, y): x eats y. Domain for all is {animals}. 1. x [I(x) L(x)] Premise 2. I(c) L(c) 1, Universal instantiation 3. x (D(x) I(x)) Premise 4. D(c) I(c) 3, Universal instantiation 5. D(c) L(c) 2, 4, Hypothetical syllogism 6. x (D(x) L(x)) 5, Universal generalization 7. X(S(x) L(x)) Premise 8. S(c) L(c) 7, Universal instantiation 9. L(c) I(c) 2, Contrapositive 10. S(c) I(c) 8, 9, Hypothetical syllogism 11. x(S(x) I(x)) Universal generalization from (10) All spiders are not insects, or just\Spiders are not insects x [I(x) L(x)] x (D(x) I(x)) x (S(x) L(x)) x ((S(x) ^ D(y) E(x, y))

d) Every student has an Internet account. Homer does not have Internet account. Maggie has Internet account. Every student has an internet account. Homer does not have an internet account. Maggie has an internet account. S(x): x is a student. I(x): x has an internet account. Domain for both is {people}. 1. x(S(x) I(x)) 2. S (Homer) I (Homer)) 3. ~I (Homer) 4. ~S (Homer) Homer is not a student. x(S(x) I(x)) ~I(Homer) I(Maggie)

Premise 1, Universal instantiation Premise 2, 3 Modus tollens

e) All foods that are healthy to eat do not taste good. Tofu is healthy to eat. You only eat what taste good. You do not eat tofu. Cheeseburgers are not healthy to eat. All foods that are healthy to eat do not taste good. Tofu is healthy to eat. You only eat what tastes good. You do not eat tofu. Cheeseburgers are not healthy to eat. H(x): x is healthy to eat. G(x): x tastes good. E(x): You eat x. Domain for all is {foods}. 1. x (H(x) ~G(x)) 2. H (tofu) ~G (tofu) 3. H (tofu) 4. ~G (tofu) 5. x (E(x) G(x)) 6. E(c) G(c) 7. H(c) ~G(c) 8. ~E(c) ~G(c) 9. H(c) ~E(c) 10. x (H(x) ~E(x)) You don't eat healthy foods. x (H(x) ~G(x)) H (tofu) x (E(x) G(x)) ~E (tofu) ~H (cheeseburger)

Premise 1, Universal instantiation Premise 2, 3, Modus Premise 5, Universal instantiation 1, Universal instantiation 6, Contrapositive 7, 8 Hypothetical syllogisms 9, Universal generalization

f)

I am either dreaming or hallucinating. I am not dreaming. If I am dreaming, I see elephants running down the road. I am either dreaming or hallucinating. I am not dreaming. If I am hallucinating, I see elephants running down the road. d: I am dreaming. h: I am hallucinating. e: I see elephants running down the road. 1. 2. 3. 4. 5. ~d Premise dvh Premise h Disjunctive syllogism he Premise e 3, 4 Modus ponens I see elephants running down the road. dvh ~d he

14. For each of these arguments, explain which rules of inference are used for each step. a) Linda, a student in this class, owns a red convertible. Everyone who owns a red convertible has gotten at least one speeding ticket. Therefore, someone in this class has gotten a speeding ticket. Let c(x) be x is in this class, Let r(x) be x owns a red convertible, Let t(x) be x has gotten speeding ticket. Given premises c(Linda) , r(Linda) , x(r(x) t(x)) , and conclusion (c(x) t(x)) . Step x(r(x) t(x)) r(Linda) t(Linda) r(Linda) t(Linda) c(Linda) c(Linda) t(Linda) x(c(x) t(x)) Reason Hypothesis 1, Universal instantiation Hypothesis 2,3, Modus ponens Hypothesis 4,5 Conjunction 6, Existential generalization

1. 2. 3. 4. 5. 6. 7.

b) Each of five roommates, Melissa, Aaron, Ralph, Veneesha, and Keeshawn, has taken a course in discrete mathematics. Every student who has taken a course in discrete mathematic can take a course in algorithms. Therefore, all five roommates can take a course in algorithms next year. Let r(x) be r is one of the ve roommates listed, Let d(x) be x has taken a course in discrete mathematics, Let a(x) be x can take a course in algorithms. Given premises x(r(x) d(x)) and x (d(x) a(x)) , and conclusion x(r(x) a(x)) . y: represents an arbitrary person. Step x(r(x) d(x)) r(y) d(y) x(d(x) a(x)) d(y) a(y) r(y) a(y) x(r(x) a(x)) Reason Hypothesis 1, Universal instantiation Hypothesis 3, Universal instantiation 2,4, Hypothetical syllogism 5, Universal generalization

1. 2. 3. 4. 5. 6.

c) All movie produced by John Sayles are wonderful. John Sayles produced a movie about coal miners. Therefore, there is wonderful movie about coal miners. Let s(x) be x is a movie produced by Sayles, Let c(x) be x is a movie about coal miners, Let w(x) be movie x is wonderful. Given premises x(s(x) w(x)) and x(s(x) c(x)) , and conclusion x(c(x) w(x)) . y: represents an unspecied particular movie. Step x(s(x) c(x)) s(y) c(y) s(y) x(s(x) w(x)) s(y) w(y) w(y) c(y) w(y) c(y) Reason Hypothesis 1, Existential instantiation 2, Simplication Hypothesis 4, Universal instantiation 3, 5 Modus ponens 2, Simplication 6, 7 Conjunction

1. 2. 3. 4. 5. 6. 7. 8.

d) There is someone in this class who has been to France. Everyone who goes to France visits Louvre. Therefore, someone in this class has visited the Louvre. Let c(x ) be x is in this class, Let f(x) be x has been to France, Let l(x) be x has visited the Louvre. Given premises x(c(x) f(x)) , x(f(x) l(x)) , and conclusion x(c(x) l(x)) . y: represents an unspecied particular person. Step x(c(x) f(x)) c(y) f(y) f(y) c(y) x(f(x) l(x)) f(y) l(y) l(y) c(y) l(y) x(c(x) l(x)) Reason Hypothesis 1, Existential instantiation 2, Simplication 2, Simplication Hypothesis 5, Universal instantiation 3, 6 Modus ponens 4,7 Conjunction 8, Existential generalization

1. 2. 3. 4. 5. 6. 7. 8. 9.

16. For each of these arguments determine whether the argument is correct or incorrect and explain why. a) Everyone enrolled in the university has lived in a dormitory. Mia has never lived in a dormitory. Therefore, Mia is not enrolled in the university. Correct: using universal instantiation and modus tollens.

b) A convertible car is fun to drive. Isaacs car is not a convertible. Therefore, Isaacs car is not fun to drive. Incorrect: denying the hypothesis is used.

c) Quincy likes all action movies. Quincy likes the movie Eight Men Out. Therefore, Eight Men Out is an action movie. Incorrect: affirming the conclusion is used.

d) All lobstermen set at least a dozen traps. Hamilton is a lobsterman. Therefore, Hamilton sets at least a dozen traps. Correct: using universal instantiation and modus ponens.

You might also like