Knowledge Representation and Search:: Artificial Intelligence
Knowledge Representation and Search:: Artificial Intelligence
Knowledge Representation and Search:: Artificial Intelligence
????
Properties of Quantifiers
Quantifier Duality
Fun with Sentences
Try this…represent in Predicate
Logic
• If it doesn’t rain on Monday, Naim will go to the mountain
cat cat
cat cat
cat
cat
Example: Translate the KB into
Propositional Logic
If it is hot and humid, then it is raining. If it is
humid, then it is hot. It is humid.
H It is hot.
D It is humid.
R It is raining.
26
The resolution principle
• Here it is:
– From X someLiterals
and X someOtherLiterals
----------------------------------------------
conclude: someLiterals
someOtherLiterals
• That’s all there is to it!
• Example:
– broke(Bob) well-fed(Bob)
¬broke(Bob) ¬hungry(Bob)
--------------------------------------
well-fed(Bob) ¬hungry(Bob)
27
Resolution Proof Tree
Resolution Proof Tree
Clause form
• A clause is a disjunction ("or") of zero or more literals, some or all of which
may be negated.
• Example:
• Notice that clauses use only “or” and “not”—they do not use “and,” “implies,”
or either of the quantifiers “for all” or “there exists”
• The impressive part is that any predicate calculus expression can be put into
clause form
– Existential quantifiers, , are the trickiest ones.
Ref: Example of Conversion to Clause Form
30
A first example
31
Refutation resolution
32
Example of refutation resolution
• “Everywhere that John goes, Rover goes. John
is at school. Prove that Rover is at school.”
1. at(John, X) at(Rover, X)
2. at(John, school)
3. at(Rover, school) (this is the added clause)
• Resolve #1 and #3:
4. at(John, X)
• Resolve #2 and #4:
5. NIL
• Conclude the negation of the added clause:
at(Rover, school)
33