Logic for Computer Scientists/Propositional Logic/Resolution
From Wikibooks, the open-content textbooks collection
Contents |
[edit] Resolution
In this subsection we will develop a calculus for propositional logic. Until now we have a language, i.e. a set of formulae and we have investigated into semantics and some properties of formulae or sets of clauses. Now we will introduce an inference rule, namely the resolution rule, which allows to derive new clauses from given ones.
[edit] Definition 10
A clause R is a resolvent of clauses C1 and C2, if there is a literal
and
and

where 
Note that there is a special case, if we construct the resolvent out of two literals, i.e. L and
can be resolved upon and yield the empty set. This empty resolvent is depicted by the special symbol
.
denotes an unsatisfiable formula. We define a clause set, which contains this empty clause to be unsatisfiable,
In the following we investigate in properties of the resolution rule and the entire calculus. The following Lemma is stating the correctness of one single application of the resolution rule.
[edit] Theorem 7
If S is a set of clauses and R a resolvent of
, then 
Proof: Let
be an assignment for S; hence it is an assignment for
as well. Assume
: hence for all clauses C from S, we have that
. The resolvent R of C1 and C2 looks like:

where
and
. Now there are two cases:
: From
and
, we conclude
and hence
.
: From
we conclude
and hence
. The opposite direction of the lemma is obvious.
[edit] Definition 11
Let S be s set of clauses and

then
Res0(S) = S


If we understand the process of iterating the Res-operator as a procedure for deriving new clauses from a given set, and in particular to derive possibly the empty clause, we have to ask, under which circumstances we get the empty clause, and vice versa, what does it mean if we get it. These properties are investigates in the following two Theorems.
[edit] Theorem 8 (Correctness)
Let S be a set of clauses. If
then S is unsatisfiable.
Proof: From
we conclude, that
is obtained by resolution from two clauses C1 = {L} and
. Hence there is a
such that
and
and therefore Resn(S) is unsatisfiable. From Theorem (resolution-lemma) we conclude that
and hence S is unsatisfiable.
[edit] Theorem 9 (Completeness)
Let S be a finite set of clauses. If S is unsatisfiable then
.
Proof: Induction over the number n of atomic formulae in S. With n = 0 we have
and hence
.
Assume n fixed and for every unsatisfiable set of clauses S with n atomic formulae
it holds that
.
Assume a set of clauses S with atomic formulae
. In the following we construct two clause sets Sf and St:
- Sf is received from S by deleting every occurrence of An + 1 in a clause and by deleting every clause which contains an occurrence of
. This transformation obviously corresponds to interpreting the atom An + 1 with false, - St results from a similar transformation, where occurrences of
and clauses containing An + 1 are deleted, hence An + 1 is interpreted with true.
Let us show, that both Sf and St are unsatisfiable: Assume an assignment
for the atomic formale
which is a model for Sf. Hence the assignment
is a model for S, which leads to a contradiction. A similar construction shows that St is unsatisfiable. Hence then we can use the induction assumption to conclude that
and
. Hence there is a sequence of clauses

such that
it holds
or Ci is a resolvent of two clauses Ca and Cb with a,b < i.There is an analog sequence for St:

Now we are going to reintroduce the previously deleted literals An + 1 and
in the two sequences:
- Clause Ci which has been the result of deleting An + 1 from the original clause in S are again modified to
. This results in a sequence

where
is either
or An + 1.
- Analogous we introduce
in the second sequence, such that
is either
or 
In any of the above cases we get
latest after one resolution step with
and
.
Based on the theorems for correctness and completeness, we give a procedure for deciding the satisfiability of propositional formulae.
|
Given a propositional formula F.
|
[edit] Theorem 10
If S is a finite set of clauses, then there exists a
such that
Until now, we have been dealing with sets of clauses. In the following it will turn out, that it is helpful to talk about sequences of applications of the resolution rule.
[edit] Definition 12
A deduction of a clause C from a set of clauses S is a sequence
, such that
- Cn = C and

A deduction of the empty clause
from S is called a refutation of S.
Example We want to show, that the formula
is a logical consequence of
. For this negate K and prove the unsatisfiability of 
For this you can use the interaction in this book in various forms:
- Use the interaction Truth Tables for proving the unsatisfiability, or
- use the interaction CNF Transformation for transforming the formula into CNF, and then
- use the following interaction Resolution.
[edit] Problems
[edit] Problem 23 (Propositional)
Compute Resn(M) for all
and Res * (M) for the following set of clauses:
Which formula is satisfiable or which is unsatisfiable?

[edit] Problem 24 (Propositional)
Indicate all resolvent of the clauses in S, where 

[edit] Problem 25 (Propositional)
Prove: A resolvent R of two clauses C1 and C2 is a logical consequence from C1 and C2. Note: Use the definition of "consequence".

[edit] Problem 26 (Propositional)
Let M be a set of formulae and F a formula. Prove:
iff
is unsatisfiable.

[edit] Problem 27 (Propositional)
Compute Resn(S) with n = 0,1,2 and


[edit] Problem 28 (Propositional)
Show that the following set S of formulae is unsatisfiable, by giving a refutation.


[edit] Problem 29 (Propositional)
Show by using the resolution rule, that
is an inference from the set of clauses
.

[edit] Problem 30 (Propositional)
Show by using the resolution rule, that
is a tautology.




