Professional Documents
Culture Documents
Curs 8 BMC 16.11.2010
Curs 8 BMC 16.11.2010
v\tur,'ii \'il \
RESOLUT|ON
METHOD,
MFCS
-2010,
Mihaieta Lr.rpea
l$v-**gEess
dF=iG
1. tevef saturation strategy: This initial level contains the initiaf set of ciauses. We compute all the resolvents on a leve!, we add thenr to the
current level, and then we compute the next level. We continue until we
obtain the empty clause or we cannot derive any more resolvents.
Algoritkm !evet_saturstiorc-strctegjt :
Input: S- the initial set of clauses; Output: message "S-inconsistent" or "S*consistent',
s1
(levets)
S0
:S; k:0;//initial
level
do
{ k:k- }
,Sfr =
sA = sA
ll 'we eliminate the resoivents obtained in the eunent levei but rvhich ll appear already in the previous levels
iflr e Sfr)
then write "S- inconsistent,'
2. Deletian strategy:
i;y *ifi*i
"'i Lc
used fui-ther
in the
redundant clauses.
Example 4: Llsing the level saturatioti strategy combined with the deletion strateg! check in- consisiency/inconsistency of the set of clauses S:t p v q ,-p v q ,/ -t' .-Q'l i' ].
We buiid the sequence
,S0 , Sl
,
t0:g:{C
l-- p v
,CZ:-pv
Q
v -:t' ,C3:--q v r }
C4:Re s u{C7,C7}:
Y'--t'
C5:R.esr(C1,C3):pvr
C5:Resn(C2,C3): -''p v '-t''v r' - tautoloey
wiil not be inclucied in the first level' The first level of resolvents is:51:1C4: Q Y '-7',C5: p v t \
C6 and C7 The second levei of resolvents is generated:
C10:Res,. (C4,C3)=
"/
-Q
- tautologY
S7:Z
set' The emptv clause cannot be deriyed from S and thr.rs S is a consistent
strategy. avoid to resolve two clauses belonging to a c*i*'si:t*ni slih:$*i ;;f ii'l'= it-t:iiai set i:f t:l*i*s.:s" L:e*ai_*** ihe r*soivenis derived from a consistent set are irrelevant in the process of derivlng
n.
This strategy was inspired by the fact that usually the set of premrses (hypotheses, facts) of a deductlon is consistent, and resolving
two
Definition: Let S be a set of clauses A subset y of S is called the support sef of s, if the set s-y is consistent. The set_of-suppart
resolutian is the resolution of two clauses that do not belong both of them to the set S-y.
Ex*rnptre
5:
u_>sn_.,1 l_
q)__Lt.
--) s A --t
Y:pAQi--Lt
5= { C 1,C2,C3,C4.C5,C6,C7}
we choose Y:{c5,c6,c7} as a suppoc set coffesponding to tire .negation of the conclusion of the deduction. s-y:{cr,c2,c3,c4} is a
consistent set corresponding to the premises of the deCuction. This srrareg)/ avoids to resolve two ciauses belonging both to the consistent set s-y.
c1 and c2 resolve upon the iiteral r, but they belong both to S-y.
The derivation of the empry clause using the set-of-support strate_ey is:
C2:---r V=s V l.
C3:--zlvs, C4:--uv--l
Ci0:Re sr(C9,C2):-.,s v
C1
i:Re
su(C7.C3 S: s
Ci2:R.e su(C7,C4):--l
l4:Ress
(C 1 3,C
IZ'y: o.
the
Refinements of resCIlutlon (impose restrictions on the clashing clauses to make the resolution process more efficient). lack resafutiGF-c, ft'near
resofuffo n, sefftantic. resaIutian"
refinements and strategles of resoEution preserve the sour.ldness and completness propertles.
AEE
All
combinations
of these
general resoiution+ deletion strategy = sound and comptete generaf resolution + set-of-support sirategy= sound and complete
genera l resol utio n +defetion strateg v+set-of-su pport strateg y=sou n d a nd con'lpiete
lg7i}
a *ei r:f cruuses is e rbitra;"y ii':dex*c
i;;le'';rr; i;-cr-"1
Resfrietian: the titerals resolved upon must have the snnallest rndrces
in their clauses.
The literals from resolvenis inherit the indices fronn their parent clauses.
!f a resolvent inherits the same literal wiih two different indices, will
keep the literal with the smallest index
It is very efficient and easy to implen'lent. We must combine lock resoEution wEth the levei saturation strategy En order to check alE
possrbEe ways of derEvinE the empty clause.
ExampEe
acco!^ding
6:
to Example
C7:
Reso(C5,CO)=
11
RESO|-UTION
h/IETHOD,
MFCS -zUA
lr4ihaiela Luoea
Loek resoir.ition +deletion strategy is sound but s.lot cCImBEete. Anuin*r ;ficexlitg oi ihr* i;l*r'a;ir: *r I.
C1=
ql pv glQ ,
C2= G)-.|''v
elq
,C3=
1s;
pv
i61---Q
e)--q
Using the restriction inrposed by lock resolution we can derive only the resolvents C5 and CG which are tautologies.
CS=Reso(Cl ,C4)= e)
pv {B)---p
and
1q--q
Thus, lock reso!r.rtion+deretion strategy !s not cornplete. Continuing the lock resoiution process br.lt using also the resolvents C5 and CG we obtain:
C7= Reso{C2= (3) -r,qv
{lQ
,C5= e}
pv $}---p )=
(+) Qv
$y-p
We remark that the clauses C7 and C2 are similar but not identical, the iiterals' order (provided by the inciices) differs in these clauses. --p is the is the litera! to resolve upon form c7. Thus the role of a tutofogy as a parent clause is to modifv the iiterals, order in the other parent clause.
C8= Resq(C7=
c2, and
()qv
(5)
(_S)--p ,C4=
(U-p't
{1.}-Q )= (8irp,
Cg= Resp(C3=
pv(6)--g ,CB)=
(q--q
,
Ci 0= Reso(C1 =
12)
C11= Reso(C10,C8;=
".
IL
RESOLUTIOI.J
fvlETF-lOD.
h4FC$
-2010.
Mihaiela Lupea
Cs
i:..;il;i:i-, . ir'*'!'{; ii :,,., cl*tir-rr-:lrcti: p -> {,q -> r},r n s -} t,u --+ sA"--rl 1- p nQ } =u.
l=,:.i,',; i,-llk
r'1
,
U1= p -+ {q -+
u/.-t'n-s-+r. U3=u-),eA-/,
V=pr.Q-)-u
CNF([-.,1)= -,p y -Q y
|,
I
Ci= -p v -Q't/
C2=
I"
CNF(U2)=
r/
V -,s../
, -t) ,
-r v -s r/ I C3= -er v s,
C5=
C4=
-u v -l
CNF(-V)= p
^q
^r.
p,
Using the set-of support strategy we chose the support set y={C5,C6,C7i corresponding to the conclusion of the deduction.
S-Y={C1,C2,C3,C4} is a consistent set of clauses corresponding to the premises of the deduction. This strategy a\roids to resolve two clauses
belonging both to the conslstent set S-Y
C2= tqrrvi5;-sv14;l
C5=
1r
L,J=
,
(8)
-zlv171s
-'Lt'r 1.a1-l
r;p,
C6= yDq
C7= gilu
We renrark tlrat the restriction imposed by lock resolution (the titerals with
the smallest indices in their clauses resolve) combined with the set-ofsupport strategy (avoici to resoive two ciauses belonging both to the
consisient set S-Y={C1,C2,C3,C4}) wilt biock the resolution process efid cannct be derived.
'13
-2010.
I,/lihaieta Lupea
C3=
C4=fl A1'-u'rSgl--t
C5=r11tP,
\ 4J -
c6= (12) Q
\/i-{lll1l
r as follows:
!L-,6r-l'V,iL-JV,r.1
\v/ \il_
Lr'*-
iI
61
1-2.1V,61 rI
C8=
16;
-rvq-s; :s
v11 6;
-ar
UV-,6,:l'VrR\-// tv,/-
ur-r3t-P'vt:,-q
f1.l-
t61!'
{ -h=
rla tY
{\.1 ,1 U I f-
r /t!^.-DVtot-tll \o,
c5=,,',,P r/\r
C12=
(8)
-u
Ul-,tr'l.l
1.42--
/. u
-+
A.-t
i- p
t+
ii;";;:*i' *i"r*l
::i
"*:,:ch ;:'l*;p'-
,f
,r'
I
L)^
a"
Co iop ciause
C1,C
/ ,"
1
c2
i -tc,,-1
)/'
*u-z
.B'-'
Linear resolution
according
to the
theorem:
s;ifl,n'
implementation level: This refinement of resoiution also provides a strategy at the clause there are backtracklng atgorithm. At each iteraiion, for ihe current centrai bui the empty ciause more possible side clauses. lt all side clauses were used, was not derived, we come back to the prevrous iteraiion,... search withoui the The consisiency of a sei of clauses is pl'oved after a complete derivation of the emPtY clause'
{J
RESCLIJTION
METHOD,
MFCS
-2010.
Mihaieta Lupea
eee;it;'ess;'ie;"gr+F;. ii-id
parent clause.
if s
f-ff1,|"
These two refinements of resolution are sound, but they are nat conrpiete:
is inconsistent;
Encocnpletness: there are inconsisient sets of clauses from which the empty clause cannot be cjerived using input or uinit resolution.
Q,
br-rt
there is no input
EESQLt.lTlOhi
METi-{CD.
MFCS
-20.j0
Mihaieta Lupea
Exarnple s: using !inear resolution prove rhe inconsistencv of the set s of ::!r;i: ;*q+:s, S= iC i .',:.:, e3, il.:., C5] C1=p v q\n r, C2= *,F, C3= C4.= --r y 14), C5=-i+,
-q,
vt=pvqvL
tr
'ii