7.5 Reasoning Patterns in Propositional Logic

Note: to see the Unicode symbols, use the Mozilla Firefox browser.

Conjunctive Normal Form: CNF

  1. Eliminate ⇔. Example: a ⇔ b.
  2. Eliminate ⇒. Example: a ⇒ b.
  3. Move negation inwards. Example: ¬(a ^ b).
  4. Use distributive laws. Example: (a ^ b) ∨ c.

Resolution

Resolution Theorem Proving

Exercise 7.9

If the unicorn is mythical, then it is immortal, but if it is not mythical, then it is a mortal mammal. If the unicorn is either immortal or a mammal, then it is horned. The unicorn is magical if it is horned.

Using resolution, prove that the unicorn is magical.

Horn Clauses

Example

Consider the following Prolog rules and facts:

Prove f first using forward chaining and then using backward chaining.