I think I understand the basics of it now, and when I practice on excersices and old exams it goes well most of the time. But I have some questions that I cant seem to find any straight forward answers to and it would help me so much if someone could help me out.
- In this picture enter image description here of an example I found he is using several "paths" and then he connects them. Is that something you can allways do? And am I right about that you can do it in several ways, so with only one path in this case?
- I asked this in another thread but I think it got too messy, because no one really answered. But is it so that you dont have to use all the formulas in the resolution as long as you finish with an empty clause? For example if in the picture the solution had q(x) and -p(x) seperately, its enough to use one of them and in other words he could have taken p(a) against -p(x) and thats it?
See Resolution (logic) :
In your example, after the initial transformations, unification is performed, substituting $a$ for $x$ in the clauses $\lnot p(x) \lor q(x)$ and $\lnot p(x) \lor \lnot q(x) \lor r(x)$.
What we get is a new set of clauses :
Now we apply the Resolution rule "to all possible pairs of clauses that contain complementary atoms."
What we get is :
Now we can stop, because applying the Resolution rule again to clauses 6) and 7) we get the empty clause.
What is the empty clause ? It is obtained conjoining to complementary atoms : $q(a)$ and $\lnot q(a)$.
But this amounts to $q(a) \land \lnot q(a)$, which is a contradiction. Thus, the empty clause is simply a contradicition.
Having found a contradicition, the Resoultion algorithm proves that the original set of clauses is unsatisfiable, that means that the conclusion is implied by the premises.
Regarding :
the answer is : you dont.
The procedure is an algorithm, suitable for mechanized execution. Thus, the rule is : "apply the rule to all possible ..."
But when we humans use it, we are guided by our understanding of the problem, and thus we can choose to perform only the steps necessary to derive the empty clause.