Professional Documents
Culture Documents
3. Use distributive and other laws & equivalent formulas to obtain Normal
forms.
2
Conversion to CNF example
Q. Convert into CNF : ( ( PQ )R
) Solution:
CNF
3
Resolution in propositional logic
Proof by Refutation / contradiction.
• Used for theorem proving / rule of inference.
4
• How it works?
• E.g. “ If it is Hot then it is Humid. If it is humid then it will rain. It
is hot.” prove that “ it will rain.”
• Solution:
• Let us denote these statements with propositions H,O and R:
– H: “ It is humid”.
– O: “ It is Hot”. And R: “It will rain”.
• Algorithm steps :-
6
Conversion to Clause Form
1. Eliminate .
P Q P Q
2. Reduce the scope of each to a single term.
(P Q) P Q
(P Q) P Q
x: P x: P
x: p x: P
P P
5. Eliminate (Skolemization).
x: P(x) P(c) Skolem constant
6. Drop .
x: P(x) P(x)
8
7. Convert the formula into a conjunction of disjuncts.
(P Q) R (P R) (Q R)
9
• Example of conversion:
x: [ Roman (x) ( Pompeian( x) hate ( x, Caesar))]
11
• Example to demostrate step 4: Move all quantifiers to the left
without changing their relative order.
•
• x: [ [y: animal (y) loves( x , y) ] [ z: loves( z,
x )] ]
12
• Example to demostrate step 5: skolemization ( i.e. elimination
of quantifier )
• Ex. 2:
y: x:
leads
(y,x )
Here value of yWhere
that satisfies ‘leads’ depends on particular
f(x) is skolem 57
value offunction.
x hence above stmt can be written as:
• Example to demonstrate step 6: dropping prefix
14
• Example to demostrate step 7: Convert the formula into a
conjunction of disjuncts.(CNF)
caesar) ) P Q R
• P (Q R ) ( P Q ) (P R )