Aufgabe: formalting first order logic statement.
i need to formulate these statements in first order logic:
a.The Proffessor is happy if all his students like logic.
b.The Proffessor is happy if he has no students.
Problem/Ansatz:
i solve it in this way and im not sure if it is right what i have done or not .
a. ∃p∀s(Student(s,p)∧ like_L(s)∧Prof(p)→happy(p))
So this statment says there is a happy professor for all his Students who like logic .Here im not sure if i need to use this part "Prof(p)" .
b. ∃p∀s(¬Student(s,p)→happy(p))
Here i said there exists a professor such that the professor is happy if they have no students.
where:
1. Prof(p) : p is a proffessor
2. S(x): x is a student . I think I dont have to use it .
3. happy(p): Professor p is happy
4. like_L(x) : student x likes logic
5. S(s,p): student s is a student of professor p.