









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!










Automated theorem proving Automated proof checking Logic programming
Propositional Logic
First-Order Predicate Calculus
Beau [object] Furry [property]
Furry(Beau) Four-footed(Beau)
Nose-of(Beau) Collar-of(Beau)
Four-footed(Beau)
Four-footed(Beau) AND Furry(Beau)
Furry(Beau) IMPLIES Mammal(Beau)
Furry (Beau) IMPLIES NOT(Reptile(Mother-of(Beau)))
FOR-ALL (x) [Man(x) IMPLIES Mortal (x)]
FOR-ALL (x) [THERE-EXISTS (y) [Greater-than (y x)]]
To determine the truth or falsehood of logical sentences we have to place an interpretation on the objects and relations of a given logical system. The sentence above, for instance is true when x, y are taken from the set of real numbers but not true if they are taken from the set of non-negative integers. A model for a given set of sentences is an interpretation for which the sentences are true statements. (Sometimes the model is formally identified with the set of sentences alone.)
S1. Beau is a retriever. S2. Retrievers are dogs. S3. Dogs have sensitive noses. S4. Sensitive noses are useful for hunting.
P1. Retriever (Beau)
P2. FOR-ALL(x) [Retriever (x) --> Dog (x)]
P3. FOR-ALL (x, y) [Dog (x) AND Nose (y, x) --> Sensitive (y)]
P4. FOR-ALL (y) [(Sensitive (y) AND THERE-EXISTS (x) [Nose (y, x)]) ---> Useful-for-hunting (y)]
P5. FOR-ALL (x) [Nose(Nose-of(x), x)]
Backward Chaining
[R1] Useful-for-hunting(Nose-of(Beau)) --> F
English: It is not the case that the object Nose-of(Beau) is useful for hunting.
[R2] Sensitive(Nose-of(Beau)) AND Nose (Nose-of(Beau), Beau) --> F
English: It is not the case that the object Nose-of(Beau) is sensitive and is a nose that belongs to Beau.
[R3] Sensitive (Nose-of(Beau)) --> F
English: It is not the case that the object Nose-of(Beau) is sensitive.
[R4] Nose(Nose-of(Beau), Beau) AND Dog(Beau) --> F
English: It is not the case that the object Nose-of(Beau) is a nose belonging to Beau and that Beau is a dog.
[R5] Dog (Beau) --> F
English: It is not the case that Beau is a dog.
[R6] Retriever (Beau) --> F
English: It is not the case that Beau is a retriever.
T --> F [Contradiction]
Step 5. We now have a bunch of disjunctions of terms, some of which have a negation sign in front of them. Move the negation terms to the left:
(NOT C) OR (NOT D) OR E OR F
Then use DeMorgan's laws to get the sentence in the equivalent IMPLIES form:
NOT (C AND D) OR E OR F
Step 6. Rewrite using IMPLIES to put the sentence back into normal form:
NOT (C AND D) OR E OR F
becomes
(C AND D) IMPLIES (E OR F)
Redoing the Previous Algorithm for First-Order Predicate Logic:
Note that NOT (FOR-ALL(x) P(x)) becomes THERE-EXISTS (x) [NOT P(x)]
NOT (THERE-EXISTS(x) Q(x)) becomes FOR-ALL (x) [NOT Q (x)]
FOR-ALL (x) [THERE-EXISTS [y] Successor (y x)]
becomes
FOR-ALL (x) [Successor (Successor-of(x), x)]