ThunderBase
New member
- Joined
- Apr 6, 2019
- Messages
- 5
Hi all,
I'm having trouble translating the following to predicate logic. I'm not sure as to what should be on the left or right side of the implication.
Thanks all.
I'm having trouble translating the following to predicate logic. I'm not sure as to what should be on the left or right side of the implication.
- Every student has a friend who is a teacher.
- The answer is: ∀x student(x)→∃y teacher(y) ∧ friend(x,y)
- My questions is, why is it not the following: ∀x student(x) ∧ ∃y teacher(y)→ friend(x,y)
- Every student does not like some teacher.
- Answer: ∀x ∃y student(x) ∧ teacher(y) → ~like(x,y)
- My question is, why is it not: ∀x student(x) → ∃y teacher(y) ∧ ~like(x,y)
Thanks all.