11. Resolution
11. Resolution
11. Resolution
• In particular, the CNF sentence will be unsatisfiable just when the original
sentence is unsatisfiable, so we have a basis for doing proofs by
contradiction on the CNF sentences.
Conjunctive normal form (CNF) for first-order logic
• Converting to CNF
1. Eliminate all (↔, ) connectives
(P ↔ Q) ((P Q) ^ (Q P))
2. Eliminate all connectives
(P Q) (P Q)
3. Reduce the scope of each negation symbol to a single predicate
P P
(P Q) P Q
(P Q) P Q
(x)P (x)P
(x)P (x)P
4. Standardize variables: rename all variables so that each quantifier has its own
unique variable name
Conjunctive normal form (CNF) for first-order logic
5. Eliminate existential quantification by introducing Skolem constants/functions
(x)P(x) P(c)
c is a Skolem constant (a brand-new constant symbol that is not used in any other sentence)
(x)(y)P(x,y) becomes (x)P(x, F(x))
• since is within the scope of a universally quantified variable, use a Skolem function F to
construct a new value that depends on the universally quantified variable
• F must be a brand-new function name not occurring in any other sentence in the KB.
The sentence is now in CNF and consists of two clauses (F(x) and G(z).
The resolution inference rule
• The resolution rule for first-order clauses is simply a lifted version of the
propositional resolution rule.
• Two clauses, which are assumed to be standardized apart so that they share
no variables, can be resolved if they contain complementary literals.
This rule is called the binary resolution rule because it resolves exactly two
literals.
Example
• Everyone who loves all animals is loved by someone.
• Anyone who kills an animal is loved by no one.
• Jack loves all animals.
• Either Jack or Curiosity killed the cat, who is named Tuna.
• Did Curiosity kill the cat?