



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Question 1 English x First Order Logic(FOL) (36 points)
Check the answer with True or False. For sentences in English make your judgment of the meaning of the sentence, i.e., you may want to translate it in FOL to conclude.
The second sentence does not assert that they are brothers to each other.
The first one says "¬ ( p ∧ q )" equivalent to "¬ p ∨¬ q ”. The second says " ¬ p ∧¬ q "
equivalent to " ¬( p ∨ q )".
English Neither, nor means " ¬ p ∧¬ q "
True[ X ] False[ ]
It means, some A's are not B's.
True[ ] False[ X ]
The FOL sentence says that everything that is both a man and a woman is welcome to apply, obviously not what is meant. The disjunction would give a correct interpretation.
Questions 6 to 9: Say Attract is a relation from x to y, i.e., A(x,y) says that x attracts y.
True[X] False[ ]
True[ ] False[ X ]
The second quantifier should have been ∀ x to represent everything.
True[ X ] False[ ]
True[ ] False[ X ]
The second quantifier should have been ∀ y to represent everything
Tony, Shi-Kuo and Ellen belong to the Hoofers Club. Every member of the Hoofers Club is either a skier or a mountain climber or both. No mountain climber likes rain, and all skiers like snow. Ellen dislikes whatever Tony likes and likes whatever Tony dislikes. Tony likes rain and snow.
Prove via the resolution method and unification (where needed) that “Ellen is a mountain climber but not a skier”. More precisely
a. (7 points) First translate the sentences above into FOL Sentences
Let S(x) mean x is a skier, M(x) mean x is a mountain climber, and L(x,y) mean x likes y, where the domain of the first variable is Hoofers Club members, and the domain of the second variable is snow and rain. Translate the above English sentences into FOL using quantifiers, ∃, ∀where appropriate.
R (not the only way to write it):
Negation of the Query: ¬ (M(Ellen) ∧ ¬ S(Ellen))
b. (7 points) Convert to Clause Forms (in these cases disjunctions)
Conversion to Clause Form
c. (7 points) Apply the resolution method with the unification (where needed) to prove the goal sentence: “Ellen is a mountain climber but not a skier.” You need to also convert the goal sentence to a Clause Form.
KB Query Negation
S(x1) ∨ M(x1) ¬ M(Ellen) ∨ S(Ellen)
¬ M(x2) ∨ ¬ L(x2, Rain)
¬ S(x3) ∨ L(x3, Snow)
¬ L(Ellen, y1) ∨ ¬ L(Tony, y1)
L(Ellen, y2) ∨ L(Tony, y2)
L(Tony, Rain)
L(Tony, Snow)
S(Ellen)
{x1\Ellen}
¬ L(Ellen, Snow)
{y1\Snow} {x3\Ellen}
¬ S(Ellen)
b. (10 points) Calculate P(B|J,M), i.e., calculate P(Burglary=true | JohnCalls=true, MaryCalls=true) with at least two decimal orders.
=
= =
= =
= =
α α
α
α
α
α
α
α
T
eF
T
eF
T
AF
T
EF
T
AF
T
E F
T
AF
Thus P ( B = T | J = T , M = T )≈ 0. 284