Comments on resolution

Resolution with propositional calculus or ground clauses (i.e. clauses without variables)

parent clauses resolvent comments
P, ¬P ∨ Q Q this is the same as Modus Ponens
¬P ∨ Q, ¬Q ∨ R¬P ∨ R This is often called Chaining. The positive and negative literals cancel out.
P ∨ Q, ¬P ∨ Q Q Merge (or Factoring)
(Q ∨ Q collapses to Q)
P ∨ Q, ¬P ∨ ¬Q Q ∨ ¬Q Tautology. This is a dead end, since there is no other clause that can be resolved with it.
P ∨ Q, ¬P ∨ ¬Q P ∨ ¬P Tautology. This is a dead end, since there is no other clause that can be resolved with it.
P, ¬P NIL Contradiction. This is what we are looking for.

Example

You are given the following expressions:
P ∧ Q ∧ R → S
¬Q → R
¬S → P
and you are asked to prove
S
Suppose now you are asked to add a minimal set of clauses to make S derivable. What would that set be? A way of answering is by constructing the truth table:
    P  Q  R  S   Q∨R  S∨P  ¬P∨¬Q&or¬R∨S  
1   T  T  T  T    T    T       T                            
2-  T  T  T  F    T    T       F                           
3*  T  T  F  T    T    T       T                          
4*  T  T  F  F    T    T       T                         
5   T  F  T  T    T    T       T                        
6   T  F  T  F    T    T       T                       
7-  T  F  F  T    F    T       T                      
8-  T  F  F  F    F    T       T                     
9   F  T  T  T    T    T       T                    
10- F  T  T  F    T    F       T                   
11* F  T  F  T    T    T       T                  
12- F  T  F  F    T    F       T                 
13  F  F  T  T    T    T       T                
14- F  F  T  F    T    F       T               
15- F  F  F  T    F    T       T              
16- F  F  F  F    F    F       T             
Since we know the sentences in the knowledge base are true, we can eliminate from consideration lines 2, 7, 8, 10, 12, 14, 15, 16 (lines marked with a -). As we can see from the remaining table, the knowledge given is not sufficient to prove S (i.e. there are still cases where S is False.)
    P  Q  R  S   Q∨R  S∨P  ¬P∨¬Q&or¬R∨S  
1   T  T  T  T    T    T       T                            
3*  T  T  F  T    T    T       T                          
4*  T  T  F  F    T    T       T                         
5   T  F  T  T    T    T       T                        
6   T  F  T  F    T    T       T                       
9   F  T  T  T    T    T       T                    
11* F  T  F  T    T    T       T                  
13  F  F  T  T    T    T       T                
If we add to the knowledge base R, we can eliminate lines 3, 4, and 11 (lines marked with a *). Still we cannot prove S (look at line 6, where S is false). We would need to add another expression, such as Q.