








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!









Function
Modus Ponens Modus Tolens And Elimination And Introduction Universal Instantiation
Any clause or statement in the form of a proper implication or its equivalent is a horn clause By proper implication we mean:
Convert the following to Horn Clauses: robin(rob-rob) => bird(rob-rob) ~ human(jon) v mortal(jon)
cat(tom) v dog(tom)
Horn Database consists only of Horn Clauses These databases are important because:
if is in the database
and if
and if is in the database
then we can add:
We want to go to Atlanta for the weekend. There are two ways for us to get there: A flight by Delta at 3 p.m. or driving our car. We have meetings at 2 and 3 p.m. and our car is broken. Can we go?
flight(delta, 3, atlanta) => trip(delta, atlanta) drive(car) => broken(car) v trip(car, atlanta) trip(delta, atlanta) v trip(car, atlanta) => go(atlanta) meeting(2) meeting(3) broken(car) flight(delta, 3, atlanta) meeting(X) => busy(X) flight(X, Y, Z) ^ busy(Y) => notrip(X, Z) drive(X) ^ broken(X) => notrip(X, atlanta) notrip(X, Y) => nogo(Y)
flight(delta, 3, atlanta) => trip(delta, atlanta) drive(car) => broken(car) v trip(car, atlanta) trip(delta, atlanta) => go(atlanta) trip(car, atlanta) => go(atlanta) meeting(2) meeting(3) broken(car) flight(delta, 3, atlanta) meeting(X) => busy(X) flight(X, Y, Z) ^ busy(Y) => notrip(X, Z) drive(X) ^ broken(X) => notrip(X, atlanta) notrip(X, Y) => nogo(Y)
flight(delta, 3, atlanta) => trip(delta, atlanta) drive(car) => broken(car) v trip(car, atlanta) trip(delta, atlanta) => go(atlanta) trip(car, atlanta) => go(atlanta) T => meeting(2) meeting(3) broken(car) flight(delta, 3, atlanta) meeting(X) => busy(X) flight(X, Y, Z) ^ busy(Y) => notrip(X, Z) drive(X) ^ broken(X) => notrip(X, atlanta) notrip(X, Y) => nogo(Y)
flight(delta, 3, atlanta) => trip(delta, atlanta) drive(car) => broken(car) v trip(car, atlanta) trip(delta, atlanta) => go(atlanta) trip(car, atlanta) => go(atlanta) T => meeting(2) T => meeting(3) T => broken(car) T => flight(delta, 3, atlanta) meeting(X) => busy(X) flight(X, Y, Z) ^ busy(Y) => notrip(X, Z) drive(X) ^ broken(X) => notrip(X, atlanta) notrip(X, Y) => nogo(Y)
Suppose that we have the relationship: ∀ X, Y, Z. brother(X,Y) ^ son(Z,Y) => uncle(X,Z) And that we know:
Can we derive uncle(doug,scott)?
Suppose that we have the relationship: ∀ X, Y, Z. brother(X,Y) ^ son(Z,Y) => uncle(X,Z) And that we know:
Can we derive son(pat,dennis)?
But, if we have the relationship: ∀ X, Y, Z. brother(X,Y) ^ son(Z,Y) => uncle(X,Z) And we are trying to show uncle(doug,scott), then if we can find (or derive):
brother(doug,dennis) and son(scott,dennis)
we have proven that uncle(doug,scott) is true since these facts support the given implication!
Is the following true: 5. uncle(doug,scott)?
For resolution to work, we must have all statements in Normal Form:
A 1 ^ A 2 ^ ... ^ An => B 1 v B 2 v ... v Bm
The translation algorithm involves the following steps (Algorithm 7.5.2 in book):
“All Romans who know Marcus either hate Caesar or think that anyone who hates anyone is crazy”
becomes:
What we are finally left with is:
if we have ( ∀ X. p(X) ^ q(X)) create ( ∀ X. p(X)) ^ ( ∀ Y. q(Y))
If we want to show Q is true, we try to prove that ~Q is true. If this proof results in a contradiction, then Q is true.