# Logic for Computer Scientists/Predicate Logic/Strategies for Resolution/Linear Resolution

## Linear Resolution

In contrast to the saturation-based procedure, which we gave for propositional resolution, we will discuss now a strategy which allows goal directed generation of resolvents. We will see later, namely in the case of Horn clauses, that this linear strategy, is the basis for the interpretation of logic programs.

Given a set of clauses $S$ and a clause $C_{0}$ in $S$ . A linear deduction of top clause $C_{0}$ is a sequence $C_{0},C_{1},\cdots ,C_{n}$ , where $\forall 1\leq i\leq n$ $C_{i}$ is a resolvent of $C_{i}$ and $B$ with $B\in S\cup \{C_{j}\mid j . If $C_{n}=\square$ the sequence is called a linear refutation.

## Definition 25

The following is an example for a linear deduction. The clause set $S$ is given by:

${\begin{matrix}symptom(s)&(1)\\cause(c_{1})\lor cause(c_{2})\lor \lnot symptom(s)&(2)\\treatment(t_{0})\lor \lnot cause(c_{1})&(3)\\treatment(t_{1})\lor \lnot cause(c_{1})&(4)\\treatment(t_{0})\lor \lnot cause(c_{2})&(5)\\treatment(t_{2})\lor \lnot cause(c_{2})&(6)\\\end{matrix}}$ and together with the goal $\lnot treatment(x)$ , we get the following refutation, where clauses from $S$ are given by the respective numbers: $\lnot treatment(X)$ , (4),$\lnot cause(c_{1})$ , (2), $cause(c_{2})\lor \lnot symptom(s)$ , (1), $cause(c_{2})$ , (6), $treatment(t_{2})$ ,$\square$ the same refutation can be given more naturally be the following picture: The following theorem states correctness and completeness of linear resolution. Note that completeness only states that there exists a linear refutation, there is no guaranty that every clause in the sequence really is necessary to derive the empty clause. ## Theorem 9

Linear resolution is complete and correct. Example: 