SlideShare a Scribd company logo
Davis-Putnam Procedure
1
Lecture 9
Davis-Putnam Procedure
The Davis-Putnam method is the most efficient
method for deciding the validity of propositional
formulae.
This procedure provides a mechanism for checking
the satisfiability of a set of formulae.
2
the satisfiability of a set of formulae.
It is a proof by refutation method.
The first step of the procedure is to negate the formula to
be proved valid. Then it is converted into conjunctive
normal form.
Next some rules are iterated through until all the
elements of the set are contradictory which means
that the negated formula is unsatisfiable.
Rules
a) If literal l is in a clause but no occurrence of lc
appears in any clause, delete all clauses
containing l.
b) Remove any clause which is subsumed by any
other clause.
3
other clause.
c) If a one literal clause, say l is present, delete all
clauses containing l and remove each occurrence
of lc in any other clause.
d) If (a) or (c) cannot be applied, choose a literal l,
such that l, lc appear in some clauses and replace
the clause set by 2 sets of clauses.
i. The first set formed as in (c ).
ii. The set of clauses with all clauses containing lc removed
and l removed from all remaining.
Example 1
1. p ∨∨∨∨ ¬¬¬¬ q ∨∨∨∨ r
2. ¬¬¬¬ p
3. ¬¬¬¬ s ∨∨∨∨ ¬¬¬¬ r
4. p ∨∨∨∨ q
5. t ∨∨∨∨ q
s
By (c) using (2) obtain
1. ¬¬¬¬ q ∨∨∨∨ r
2. ¬¬¬¬ s ∨∨∨∨ ¬¬¬¬ r
3. q
4. s
4
6. s
By (a) remove 5.
1. p ∨∨∨∨ ¬¬¬¬ q ∨∨∨∨ r
2. ¬¬¬¬ p
3. ¬¬¬¬ s ∨∨∨∨ ¬¬¬¬ r
4. p ∨∨∨∨ q
5. s
By (c) using (3) obtain
1. r
2. ¬¬¬¬ s ∨∨∨∨ ¬¬¬¬ r
3. s
By (c ) using (3) obtain
1. r
2. ¬¬¬¬ r
Example 2
1. p ∨∨∨∨ q
2. p ∨∨∨∨ ¬¬¬¬q
3. ¬¬¬¬ p ∨∨∨∨ r
4. ¬¬¬¬ r ∨∨∨∨ ¬¬¬¬ p
By (d) choosing p.
Instead we
could have
choose q
2nd rule
1. p
2. ¬¬¬¬ p ∨∨∨∨ r
1st rule
1. p
2. ¬¬¬¬ p ∨∨∨∨ r
5
By (d) choosing p.
1st rule
1. r
2. ¬¬¬¬ r
2nd rule
1. q
2. ¬¬¬¬ q
2. ¬¬¬¬ p ∨∨∨∨ r
3. ¬¬¬¬ r ∨∨∨∨ ¬¬¬¬ p
By (c) using (1)
1. r
2. ¬¬¬¬ r
2. ¬¬¬¬ p ∨∨∨∨ r
3. ¬¬¬¬ r ∨∨∨∨ ¬¬¬¬ p
By (c) using
(1)
1. r
2. ¬¬¬¬ r
Exercise
Apply the Davis and Putnam
procedure to the following set of
clauses
6
clauses
1. s
2. ¬p
3. p ∨ q
4. ¬ s ∨ ¬ r
5. p ∨ ¬q ∨ r
Exercise
1. s
2. ¬¬¬¬p
3. p ∨∨∨∨ q
4. ¬¬¬¬ s ∨∨∨∨ ¬¬¬¬ r
5. p ∨∨∨∨ ¬¬¬¬q ∨∨∨∨ r
By (c) using (1)
1. q
2. ¬¬¬¬ r
3. ¬¬¬¬q ∨∨∨∨ r
7
5. p ∨∨∨∨ ¬¬¬¬q ∨∨∨∨ r
By (c) using (1)
1. ¬¬¬¬p
2. p ∨∨∨∨ q
3. ¬¬¬¬ r
4. p ∨∨∨∨ ¬¬¬¬q ∨∨∨∨ r
3. ¬¬¬¬q ∨∨∨∨ r
By (c) using (1)
1. ¬¬¬¬ r
2. r
Exercise
Use the Davis-Putnam procedure to
establish the validity of:
8
1. ((p→ q) ∧ (q→ r)) → ¬ (¬ r ∧ p)
Negate & convert to CNF
((p→ q) ∧ (q→ r)) ∧ ¬¬(¬ r ∧ p)
(¬p ∨ q) ∧ (¬q ∨ r) ∧ ¬r ∧ p
9
(¬p ∨ q) ∧ (¬q ∨ r) ∧ ¬r ∧ p
1. ¬p ∨ q
2. ¬q ∨ r
3. ¬r
4. p
1. ((p→ q) ∧ (q→ r)) → ¬ (¬ r ∧ p)
By (c) using (3)
1. ¬p ∨ q
2. ¬q
By (c) using (2)
1. ¬p
2. p
10
2. ¬q
3. p
2. p
Since complementary literals have been
derived, the negated formula is unsatisifiable,
thus the original formula is valid.
2. ((p→ q) ∧ (r→ s) ∧ (p ∨ r)) → (q ∨ s)
Negate & convert to CNF
(¬¬¬¬p ∨∨∨∨ q) ∧∧∧∧ (¬¬¬¬r ∨∨∨∨ s) ∧∧∧∧ (p ∨∨∨∨ r) ∧∧∧∧ (¬¬¬¬q ∧∧∧∧ ¬¬¬¬s)
1. ¬¬¬¬p ∨∨∨∨ q
11
1. ¬¬¬¬p ∨∨∨∨ q
2. ¬¬¬¬r ∨∨∨∨ s
3. p ∨∨∨∨ r
4. ¬¬¬¬q
5. ¬¬¬¬s
2. ((p→ q) ∧ (r→ s) ∧ (p ∨ r)) → (q ∨ s)
By (c) using (4)
1. ¬¬¬¬p
2. ¬¬¬¬r ∨∨∨∨ s
3. p ∨∨∨∨ r
By (c) using (2)
1. s
2. ¬¬¬¬s
12
3. p ∨∨∨∨ r
4. ¬¬¬¬s
By (c) using (1)
1. ¬¬¬¬r ∨∨∨∨ s
2. r
3. ¬¬¬¬s
Since
complementary
literals have been
derived, the negated
formula is
unsatisifiable, thus
the original formula
is valid.
3. ¬(p → q) ∨ r ∨ ¬ ((p ∧ ¬ q) ∨ (p ∧ r))
Negate & convert to CNF
(p → q) ∧ ¬r ∧ ¬¬((p ∧ ¬q) ∨ (p ∧ r))
(¬p ∨ q) ∧ ¬r ∧ ((p ∧ ¬q) ∨ (p ∧ r))
13
(¬p ∨ q) ∧ ¬r ∧ ((p ∧ ¬q) ∨ (p ∧ r))
(¬p ∨ q) ∧ ¬r ∧ (p ∧ (¬q ∨ r))
1. ¬p ∨ q
2. ¬r
3. p
4. ¬q ∨ r
3. ¬(p → q) ∨ r ∨ ¬ ((p ∧ ¬ q) ∨ (p ∧ r))
By (c) using (2)
1. ¬p ∨ q
2. p
By (c) using (2)
1. q
2. ¬q
14
2. p
3. ¬q
2. ¬q
Since complementary literals have been
derived, the negated formula is unsatisifiable,
thus the original formula is valid.
4. ((p ∧ ¬ q) ∧ (p ∨ r)) → (q ∧ r)
Negate & convert to CNF
((p ∧ ¬ q) ∧ (p ∨ r)) ∧ (¬q ∨ ¬r)
1. p
15
1. p
2. ¬ q
3. p ∨ r
4. ¬q ∨ ¬r
4. ((p ∧ ¬ q) ∧ (p ∨ r)) → (q ∧ r)
By (a)
1. ¬q
2. ¬q ∨ ¬r
16
2. ¬q ∨ ¬r
By (a)
1. { }
Since complementary literals have not been
derived, the negated formula is satisifiable,
thus the original formula is not valid.
5. ( (p ∧ q) ∨ (r ⇒ s) ) ⇒ ( (p ∨ (r ⇒ s)) ∧ (q ∨ (r ⇒ s) ) )
Negate and Convert to CNF
( (p ∧ q) ∨ (¬r ∨ s) ) ∧ ¬ [ (r ⇒ s) ∨ (p ∧ q) ]
(p ∨ ¬r ∨ s) ∧ (q ∨ ¬r ∨ s) ∧ ¬ [(¬ r ∨ s) ∨ (p ∧ q)]
(p ∨ ¬r ∨ s) ∧ (q ∨ ¬r ∨ s) ∧ r ∧¬ s ∧ (¬p ∨ ¬q)(p ∨ ¬r ∨ s) ∧ (q ∨ ¬r ∨ s) ∧ r ∧¬ s ∧ (¬p ∨ ¬q)
p ∨ ¬r ∨ s
q ∨ ¬r ∨ s
r
¬s
¬p ∨ ¬q
17
By Rule (c) using 3.
p ∨ s
q ∨ s
¬s
By Rule (c) using 1.
q
¬q
5. ( (p ∧ q) ∨ (r ⇒ s) ) ⇒ ( (p ∨ (r ⇒ s)) ∧ (q ∨ (r ⇒ s) ) )
¬s
¬p ∨ ¬q
By Rule (c) using 3.
p
q
¬p ∨ ¬q
Since complementary
literals have been
derived, the negated
formula is
unsatisifiable, thus the
original formula is
valid.
18
[((p ∨ ¬q) ⇒ r) ∧ (s ⇒ (t ∧ u)) ∧ (s ∧ p)] ⇒ (r ∧ t)
Negate and Convert to CNF
[( ¬¬¬¬ (p ∨∨∨∨ ¬¬¬¬q) ∨∨∨∨ r) ∧∧∧∧ (¬¬¬¬s ∨∨∨∨ (t ∧∧∧∧ u)) ∧∧∧∧ (s ∧∧∧∧ p)] ∧∧∧∧ ¬¬¬¬ (r ∧∧∧∧ t)
[ ((¬¬¬¬ p ∧∧∧∧ q) ∨∨∨∨ r) ∧∧∧∧ (¬¬¬¬s ∨∨∨∨ (t ∧∧∧∧ u)) ∧∧∧∧ (s ∧∧∧∧ p)] ∧∧∧∧ ¬¬¬¬ (r ∧∧∧∧ t)
(¬¬¬¬ p ∨∨∨∨ r) ∧∧∧∧ (q ∨∨∨∨ r) ∧∧∧∧ (¬¬¬¬s ∨∨∨∨ t) ∧∧∧∧ (¬¬¬¬s ∨∨∨∨ u) ∧∧∧∧ (s ∧∧∧∧ p) ∧∧∧∧ (¬¬¬¬ r ∨∨∨∨ ¬¬¬¬ t)(¬¬¬¬ p ∨∨∨∨ r) ∧∧∧∧ (q ∨∨∨∨ r) ∧∧∧∧ (¬¬¬¬s ∨∨∨∨ t) ∧∧∧∧ (¬¬¬¬s ∨∨∨∨ u) ∧∧∧∧ (s ∧∧∧∧ p) ∧∧∧∧ (¬¬¬¬ r ∨∨∨∨ ¬¬¬¬ t)
¬¬¬¬ p ∨∨∨∨ r
q ∨∨∨∨ r
¬¬¬¬s ∨∨∨∨ t
¬¬¬¬s ∨∨∨∨ u
s
p
¬¬¬¬r ∨∨∨∨ ¬¬¬¬ t 19

More Related Content

What's hot

Mathematical Relations
Mathematical RelationsMathematical Relations
Mathematical Relations
mohull
 
Hawkinrad a sourceasd
Hawkinrad a sourceasdHawkinrad a sourceasd
Hawkinrad a sourceasd
foxtrot jp R
 
Rhodes solutions-ch4
Rhodes solutions-ch4Rhodes solutions-ch4
Rhodes solutions-ch4
sbjhbsbd
 
Sw2gr1 set a
Sw2gr1 set aSw2gr1 set a
Sw2gr1 set a
foxtrot jp R
 
Mathandphysicspart6subpart1 draftbacc
Mathandphysicspart6subpart1 draftbaccMathandphysicspart6subpart1 draftbacc
Mathandphysicspart6subpart1 draftbacc
foxtrot jp R
 
Second-order Cosmological Perturbations Engendered by Point-like Masses
Second-order Cosmological Perturbations Engendered by Point-like MassesSecond-order Cosmological Perturbations Engendered by Point-like Masses
Second-order Cosmological Perturbations Engendered by Point-like Masses
Maxim Eingorn
 
Duel of cosmological screening lengths
Duel of cosmological screening lengthsDuel of cosmological screening lengths
Duel of cosmological screening lengths
Maxim Eingorn
 
Ejercicio 1. flujo compresible
Ejercicio 1. flujo compresibleEjercicio 1. flujo compresible
Ejercicio 1. flujo compresible
yeisyynojos
 
Mit2 092 f09_lec11
Mit2 092 f09_lec11Mit2 092 f09_lec11
Mit2 092 f09_lec11
Rahman Hakim
 
M4 logic-midterm-153
M4 logic-midterm-153M4 logic-midterm-153
M4 logic-midterm-153
RawichW
 
UCSD NANO106 - 02 - 3D Bravis Lattices and Lattice Computations
UCSD NANO106 - 02 - 3D Bravis Lattices and Lattice ComputationsUCSD NANO106 - 02 - 3D Bravis Lattices and Lattice Computations
UCSD NANO106 - 02 - 3D Bravis Lattices and Lattice Computations
University of California, San Diego
 
A 1 D Breakup Model For
A 1 D Breakup Model ForA 1 D Breakup Model For
A 1 D Breakup Model For
Anupam Dhyani
 
Dealinggreensfncsolft sqrd
Dealinggreensfncsolft  sqrdDealinggreensfncsolft  sqrd
Dealinggreensfncsolft sqrd
foxtrot jp R
 
Sweeping discussion on_dirac_fields_secured
Sweeping discussion on_dirac_fields_securedSweeping discussion on_dirac_fields_secured
Sweeping discussion on_dirac_fields_secured
foxtrot jp R
 
Temp kgrindlerverthree
Temp kgrindlerverthreeTemp kgrindlerverthree
Temp kgrindlerverthree
foxtrot jp R
 
Transport phenomena Solved problems
Transport phenomena Solved problemsTransport phenomena Solved problems
Transport phenomena Solved problems
Wolkite University
 
Sweeping discussion on_dirac_fields_update1
Sweeping discussion on_dirac_fields_update1Sweeping discussion on_dirac_fields_update1
Sweeping discussion on_dirac_fields_update1
foxtrot jp R
 
Ветровое волнение океана и волны-убийцы. Владимир Захаров
Ветровое волнение океана и волны-убийцы. Владимир ЗахаровВетровое волнение океана и волны-убийцы. Владимир Захаров
Ветровое волнение океана и волны-убийцы. Владимир Захаров
Alexander Dubynin
 
Mit2 092 f09_lec06
Mit2 092 f09_lec06Mit2 092 f09_lec06
Mit2 092 f09_lec06
Rahman Hakim
 

What's hot (20)

Mathematical Relations
Mathematical RelationsMathematical Relations
Mathematical Relations
 
Hawkinrad a sourceasd
Hawkinrad a sourceasdHawkinrad a sourceasd
Hawkinrad a sourceasd
 
Rhodes solutions-ch4
Rhodes solutions-ch4Rhodes solutions-ch4
Rhodes solutions-ch4
 
Sw2gr1 set a
Sw2gr1 set aSw2gr1 set a
Sw2gr1 set a
 
Mathandphysicspart6subpart1 draftbacc
Mathandphysicspart6subpart1 draftbaccMathandphysicspart6subpart1 draftbacc
Mathandphysicspart6subpart1 draftbacc
 
Second-order Cosmological Perturbations Engendered by Point-like Masses
Second-order Cosmological Perturbations Engendered by Point-like MassesSecond-order Cosmological Perturbations Engendered by Point-like Masses
Second-order Cosmological Perturbations Engendered by Point-like Masses
 
Duel of cosmological screening lengths
Duel of cosmological screening lengthsDuel of cosmological screening lengths
Duel of cosmological screening lengths
 
Ejercicio 1. flujo compresible
Ejercicio 1. flujo compresibleEjercicio 1. flujo compresible
Ejercicio 1. flujo compresible
 
Mit2 092 f09_lec11
Mit2 092 f09_lec11Mit2 092 f09_lec11
Mit2 092 f09_lec11
 
M4 logic-midterm-153
M4 logic-midterm-153M4 logic-midterm-153
M4 logic-midterm-153
 
UCSD NANO106 - 02 - 3D Bravis Lattices and Lattice Computations
UCSD NANO106 - 02 - 3D Bravis Lattices and Lattice ComputationsUCSD NANO106 - 02 - 3D Bravis Lattices and Lattice Computations
UCSD NANO106 - 02 - 3D Bravis Lattices and Lattice Computations
 
A 1 D Breakup Model For
A 1 D Breakup Model ForA 1 D Breakup Model For
A 1 D Breakup Model For
 
Dealinggreensfncsolft sqrd
Dealinggreensfncsolft  sqrdDealinggreensfncsolft  sqrd
Dealinggreensfncsolft sqrd
 
Pimc 20131206
Pimc 20131206Pimc 20131206
Pimc 20131206
 
Sweeping discussion on_dirac_fields_secured
Sweeping discussion on_dirac_fields_securedSweeping discussion on_dirac_fields_secured
Sweeping discussion on_dirac_fields_secured
 
Temp kgrindlerverthree
Temp kgrindlerverthreeTemp kgrindlerverthree
Temp kgrindlerverthree
 
Transport phenomena Solved problems
Transport phenomena Solved problemsTransport phenomena Solved problems
Transport phenomena Solved problems
 
Sweeping discussion on_dirac_fields_update1
Sweeping discussion on_dirac_fields_update1Sweeping discussion on_dirac_fields_update1
Sweeping discussion on_dirac_fields_update1
 
Ветровое волнение океана и волны-убийцы. Владимир Захаров
Ветровое волнение океана и волны-убийцы. Владимир ЗахаровВетровое волнение океана и волны-убийцы. Владимир Захаров
Ветровое волнение океана и волны-убийцы. Владимир Захаров
 
Mit2 092 f09_lec06
Mit2 092 f09_lec06Mit2 092 f09_lec06
Mit2 092 f09_lec06
 

Viewers also liked

hard v soft power
 hard v soft power hard v soft power
hard v soft power
Remas Mohamed
 
Soft Power Presentation
Soft Power PresentationSoft Power Presentation
Soft Power Presentation
vadim003
 
Theories of bureaucratic politics ppt
Theories of bureaucratic politics pptTheories of bureaucratic politics ppt
Theories of bureaucratic politics ppt
M Edward
 
Role of bureaucracy in formulation of foreign policy.
Role of bureaucracy in formulation of foreign policy.Role of bureaucracy in formulation of foreign policy.
Role of bureaucracy in formulation of foreign policy.
Tahir Farooq
 
Theory of sovereignty
Theory of sovereigntyTheory of sovereignty
Theory of sovereignty
raj kishor
 
Foreign Policy and Level of Analysis Problem
Foreign Policy and Level of Analysis ProblemForeign Policy and Level of Analysis Problem
Foreign Policy and Level of Analysis Problem
Abdul Basit Adeel
 
FOREIGN POLICY ANALYSIS
FOREIGN POLICY ANALYSISFOREIGN POLICY ANALYSIS
FOREIGN POLICY ANALYSIS
Muhammad Syukhri Shafee
 
Foreign policy powerpoint
Foreign policy powerpointForeign policy powerpoint
Foreign policy powerpointerunderwood7
 

Viewers also liked (8)

hard v soft power
 hard v soft power hard v soft power
hard v soft power
 
Soft Power Presentation
Soft Power PresentationSoft Power Presentation
Soft Power Presentation
 
Theories of bureaucratic politics ppt
Theories of bureaucratic politics pptTheories of bureaucratic politics ppt
Theories of bureaucratic politics ppt
 
Role of bureaucracy in formulation of foreign policy.
Role of bureaucracy in formulation of foreign policy.Role of bureaucracy in formulation of foreign policy.
Role of bureaucracy in formulation of foreign policy.
 
Theory of sovereignty
Theory of sovereigntyTheory of sovereignty
Theory of sovereignty
 
Foreign Policy and Level of Analysis Problem
Foreign Policy and Level of Analysis ProblemForeign Policy and Level of Analysis Problem
Foreign Policy and Level of Analysis Problem
 
FOREIGN POLICY ANALYSIS
FOREIGN POLICY ANALYSISFOREIGN POLICY ANALYSIS
FOREIGN POLICY ANALYSIS
 
Foreign policy powerpoint
Foreign policy powerpointForeign policy powerpoint
Foreign policy powerpoint
 

Similar to Lecture 09 -_davis_putnam

Truth, deduction, computation lecture 9
Truth, deduction, computation   lecture 9Truth, deduction, computation   lecture 9
Truth, deduction, computation lecture 9
Vlad Patryshev
 
Logic and proof
Logic and proofLogic and proof
Logic and proof
Suresh Ram
 
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
rAjyarAjanItjJa
 
CMSC 56 | Lecture 2: Propositional Equivalences
CMSC 56 | Lecture 2: Propositional EquivalencesCMSC 56 | Lecture 2: Propositional Equivalences
CMSC 56 | Lecture 2: Propositional Equivalences
allyn joy calcaben
 
UNIT-III-PPT.pptx
UNIT-III-PPT.pptxUNIT-III-PPT.pptx
UNIT-III-PPT.pptx
DakshBaveja
 
Computational logic Propositional Calculus proof system
Computational logic Propositional Calculus proof system Computational logic Propositional Calculus proof system
Computational logic Propositional Calculus proof system
banujahir1
 
Logical equivalence, laws of logic
Logical equivalence, laws of logicLogical equivalence, laws of logic
Logical equivalence, laws of logic
Lakshmi R
 
Controllers for 3R Robot
Controllers for 3R RobotControllers for 3R Robot
Controllers for 3R Robot
Giovanni Murru
 
Truth, deduction, computation; lecture 5
Truth, deduction, computation;  lecture 5Truth, deduction, computation;  lecture 5
Truth, deduction, computation; lecture 5
Vlad Patryshev
 
Formal Logic - Lesson 6 - Switching Circuits
Formal Logic - Lesson 6 - Switching CircuitsFormal Logic - Lesson 6 - Switching Circuits
Formal Logic - Lesson 6 - Switching Circuits
Laguna State Polytechnic University
 
Quaternionic rigid meromorphic cocycles
Quaternionic rigid meromorphic cocyclesQuaternionic rigid meromorphic cocycles
Quaternionic rigid meromorphic cocycles
mmasdeu
 
Discrete Structures
Discrete Structures Discrete Structures
Discrete Structures
AQCreations
 
Selectionmec6 (1)
Selectionmec6 (1)Selectionmec6 (1)
Selectionmec6 (1)
Clayton Farias
 
On Resolution Proofs for Combinational Equivalence
On Resolution Proofs for Combinational EquivalenceOn Resolution Proofs for Combinational Equivalence
On Resolution Proofs for Combinational Equivalencesatrajit
 
Quaternionic rigid meromorphic cocycles
Quaternionic rigid meromorphic cocyclesQuaternionic rigid meromorphic cocycles
Quaternionic rigid meromorphic cocycles
mmasdeu
 
Discrete mathematics
Discrete mathematicsDiscrete mathematics
Discrete mathematics
M.Saber
 
DS Lecture 2.ppt
DS Lecture 2.pptDS Lecture 2.ppt
DS Lecture 2.ppt
NomanMehboob4
 
Discrete mathematic question answers
Discrete mathematic question answersDiscrete mathematic question answers
Discrete mathematic question answers
Samet öztoprak
 
14 pro resolution
14 pro resolution14 pro resolution
14 pro resolution
Tianlu Wang
 

Similar to Lecture 09 -_davis_putnam (20)

Truth, deduction, computation lecture 9
Truth, deduction, computation   lecture 9Truth, deduction, computation   lecture 9
Truth, deduction, computation lecture 9
 
Chap05
Chap05Chap05
Chap05
 
Logic and proof
Logic and proofLogic and proof
Logic and proof
 
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
 
CMSC 56 | Lecture 2: Propositional Equivalences
CMSC 56 | Lecture 2: Propositional EquivalencesCMSC 56 | Lecture 2: Propositional Equivalences
CMSC 56 | Lecture 2: Propositional Equivalences
 
UNIT-III-PPT.pptx
UNIT-III-PPT.pptxUNIT-III-PPT.pptx
UNIT-III-PPT.pptx
 
Computational logic Propositional Calculus proof system
Computational logic Propositional Calculus proof system Computational logic Propositional Calculus proof system
Computational logic Propositional Calculus proof system
 
Logical equivalence, laws of logic
Logical equivalence, laws of logicLogical equivalence, laws of logic
Logical equivalence, laws of logic
 
Controllers for 3R Robot
Controllers for 3R RobotControllers for 3R Robot
Controllers for 3R Robot
 
Truth, deduction, computation; lecture 5
Truth, deduction, computation;  lecture 5Truth, deduction, computation;  lecture 5
Truth, deduction, computation; lecture 5
 
Formal Logic - Lesson 6 - Switching Circuits
Formal Logic - Lesson 6 - Switching CircuitsFormal Logic - Lesson 6 - Switching Circuits
Formal Logic - Lesson 6 - Switching Circuits
 
Quaternionic rigid meromorphic cocycles
Quaternionic rigid meromorphic cocyclesQuaternionic rigid meromorphic cocycles
Quaternionic rigid meromorphic cocycles
 
Discrete Structures
Discrete Structures Discrete Structures
Discrete Structures
 
Selectionmec6 (1)
Selectionmec6 (1)Selectionmec6 (1)
Selectionmec6 (1)
 
On Resolution Proofs for Combinational Equivalence
On Resolution Proofs for Combinational EquivalenceOn Resolution Proofs for Combinational Equivalence
On Resolution Proofs for Combinational Equivalence
 
Quaternionic rigid meromorphic cocycles
Quaternionic rigid meromorphic cocyclesQuaternionic rigid meromorphic cocycles
Quaternionic rigid meromorphic cocycles
 
Discrete mathematics
Discrete mathematicsDiscrete mathematics
Discrete mathematics
 
DS Lecture 2.ppt
DS Lecture 2.pptDS Lecture 2.ppt
DS Lecture 2.ppt
 
Discrete mathematic question answers
Discrete mathematic question answersDiscrete mathematic question answers
Discrete mathematic question answers
 
14 pro resolution
14 pro resolution14 pro resolution
14 pro resolution
 

Recently uploaded

2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 

Recently uploaded (20)

2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 

Lecture 09 -_davis_putnam

  • 1. Davis-Putnam Procedure 1 Lecture 9 Davis-Putnam Procedure The Davis-Putnam method is the most efficient method for deciding the validity of propositional formulae. This procedure provides a mechanism for checking the satisfiability of a set of formulae. 2 the satisfiability of a set of formulae. It is a proof by refutation method. The first step of the procedure is to negate the formula to be proved valid. Then it is converted into conjunctive normal form. Next some rules are iterated through until all the elements of the set are contradictory which means that the negated formula is unsatisfiable. Rules a) If literal l is in a clause but no occurrence of lc appears in any clause, delete all clauses containing l. b) Remove any clause which is subsumed by any other clause. 3 other clause. c) If a one literal clause, say l is present, delete all clauses containing l and remove each occurrence of lc in any other clause. d) If (a) or (c) cannot be applied, choose a literal l, such that l, lc appear in some clauses and replace the clause set by 2 sets of clauses. i. The first set formed as in (c ). ii. The set of clauses with all clauses containing lc removed and l removed from all remaining. Example 1 1. p ∨∨∨∨ ¬¬¬¬ q ∨∨∨∨ r 2. ¬¬¬¬ p 3. ¬¬¬¬ s ∨∨∨∨ ¬¬¬¬ r 4. p ∨∨∨∨ q 5. t ∨∨∨∨ q s By (c) using (2) obtain 1. ¬¬¬¬ q ∨∨∨∨ r 2. ¬¬¬¬ s ∨∨∨∨ ¬¬¬¬ r 3. q 4. s 4 6. s By (a) remove 5. 1. p ∨∨∨∨ ¬¬¬¬ q ∨∨∨∨ r 2. ¬¬¬¬ p 3. ¬¬¬¬ s ∨∨∨∨ ¬¬¬¬ r 4. p ∨∨∨∨ q 5. s By (c) using (3) obtain 1. r 2. ¬¬¬¬ s ∨∨∨∨ ¬¬¬¬ r 3. s By (c ) using (3) obtain 1. r 2. ¬¬¬¬ r
  • 2. Example 2 1. p ∨∨∨∨ q 2. p ∨∨∨∨ ¬¬¬¬q 3. ¬¬¬¬ p ∨∨∨∨ r 4. ¬¬¬¬ r ∨∨∨∨ ¬¬¬¬ p By (d) choosing p. Instead we could have choose q 2nd rule 1. p 2. ¬¬¬¬ p ∨∨∨∨ r 1st rule 1. p 2. ¬¬¬¬ p ∨∨∨∨ r 5 By (d) choosing p. 1st rule 1. r 2. ¬¬¬¬ r 2nd rule 1. q 2. ¬¬¬¬ q 2. ¬¬¬¬ p ∨∨∨∨ r 3. ¬¬¬¬ r ∨∨∨∨ ¬¬¬¬ p By (c) using (1) 1. r 2. ¬¬¬¬ r 2. ¬¬¬¬ p ∨∨∨∨ r 3. ¬¬¬¬ r ∨∨∨∨ ¬¬¬¬ p By (c) using (1) 1. r 2. ¬¬¬¬ r Exercise Apply the Davis and Putnam procedure to the following set of clauses 6 clauses 1. s 2. ¬p 3. p ∨ q 4. ¬ s ∨ ¬ r 5. p ∨ ¬q ∨ r Exercise 1. s 2. ¬¬¬¬p 3. p ∨∨∨∨ q 4. ¬¬¬¬ s ∨∨∨∨ ¬¬¬¬ r 5. p ∨∨∨∨ ¬¬¬¬q ∨∨∨∨ r By (c) using (1) 1. q 2. ¬¬¬¬ r 3. ¬¬¬¬q ∨∨∨∨ r 7 5. p ∨∨∨∨ ¬¬¬¬q ∨∨∨∨ r By (c) using (1) 1. ¬¬¬¬p 2. p ∨∨∨∨ q 3. ¬¬¬¬ r 4. p ∨∨∨∨ ¬¬¬¬q ∨∨∨∨ r 3. ¬¬¬¬q ∨∨∨∨ r By (c) using (1) 1. ¬¬¬¬ r 2. r Exercise Use the Davis-Putnam procedure to establish the validity of: 8
  • 3. 1. ((p→ q) ∧ (q→ r)) → ¬ (¬ r ∧ p) Negate & convert to CNF ((p→ q) ∧ (q→ r)) ∧ ¬¬(¬ r ∧ p) (¬p ∨ q) ∧ (¬q ∨ r) ∧ ¬r ∧ p 9 (¬p ∨ q) ∧ (¬q ∨ r) ∧ ¬r ∧ p 1. ¬p ∨ q 2. ¬q ∨ r 3. ¬r 4. p 1. ((p→ q) ∧ (q→ r)) → ¬ (¬ r ∧ p) By (c) using (3) 1. ¬p ∨ q 2. ¬q By (c) using (2) 1. ¬p 2. p 10 2. ¬q 3. p 2. p Since complementary literals have been derived, the negated formula is unsatisifiable, thus the original formula is valid. 2. ((p→ q) ∧ (r→ s) ∧ (p ∨ r)) → (q ∨ s) Negate & convert to CNF (¬¬¬¬p ∨∨∨∨ q) ∧∧∧∧ (¬¬¬¬r ∨∨∨∨ s) ∧∧∧∧ (p ∨∨∨∨ r) ∧∧∧∧ (¬¬¬¬q ∧∧∧∧ ¬¬¬¬s) 1. ¬¬¬¬p ∨∨∨∨ q 11 1. ¬¬¬¬p ∨∨∨∨ q 2. ¬¬¬¬r ∨∨∨∨ s 3. p ∨∨∨∨ r 4. ¬¬¬¬q 5. ¬¬¬¬s 2. ((p→ q) ∧ (r→ s) ∧ (p ∨ r)) → (q ∨ s) By (c) using (4) 1. ¬¬¬¬p 2. ¬¬¬¬r ∨∨∨∨ s 3. p ∨∨∨∨ r By (c) using (2) 1. s 2. ¬¬¬¬s 12 3. p ∨∨∨∨ r 4. ¬¬¬¬s By (c) using (1) 1. ¬¬¬¬r ∨∨∨∨ s 2. r 3. ¬¬¬¬s Since complementary literals have been derived, the negated formula is unsatisifiable, thus the original formula is valid.
  • 4. 3. ¬(p → q) ∨ r ∨ ¬ ((p ∧ ¬ q) ∨ (p ∧ r)) Negate & convert to CNF (p → q) ∧ ¬r ∧ ¬¬((p ∧ ¬q) ∨ (p ∧ r)) (¬p ∨ q) ∧ ¬r ∧ ((p ∧ ¬q) ∨ (p ∧ r)) 13 (¬p ∨ q) ∧ ¬r ∧ ((p ∧ ¬q) ∨ (p ∧ r)) (¬p ∨ q) ∧ ¬r ∧ (p ∧ (¬q ∨ r)) 1. ¬p ∨ q 2. ¬r 3. p 4. ¬q ∨ r 3. ¬(p → q) ∨ r ∨ ¬ ((p ∧ ¬ q) ∨ (p ∧ r)) By (c) using (2) 1. ¬p ∨ q 2. p By (c) using (2) 1. q 2. ¬q 14 2. p 3. ¬q 2. ¬q Since complementary literals have been derived, the negated formula is unsatisifiable, thus the original formula is valid. 4. ((p ∧ ¬ q) ∧ (p ∨ r)) → (q ∧ r) Negate & convert to CNF ((p ∧ ¬ q) ∧ (p ∨ r)) ∧ (¬q ∨ ¬r) 1. p 15 1. p 2. ¬ q 3. p ∨ r 4. ¬q ∨ ¬r 4. ((p ∧ ¬ q) ∧ (p ∨ r)) → (q ∧ r) By (a) 1. ¬q 2. ¬q ∨ ¬r 16 2. ¬q ∨ ¬r By (a) 1. { } Since complementary literals have not been derived, the negated formula is satisifiable, thus the original formula is not valid.
  • 5. 5. ( (p ∧ q) ∨ (r ⇒ s) ) ⇒ ( (p ∨ (r ⇒ s)) ∧ (q ∨ (r ⇒ s) ) ) Negate and Convert to CNF ( (p ∧ q) ∨ (¬r ∨ s) ) ∧ ¬ [ (r ⇒ s) ∨ (p ∧ q) ] (p ∨ ¬r ∨ s) ∧ (q ∨ ¬r ∨ s) ∧ ¬ [(¬ r ∨ s) ∨ (p ∧ q)] (p ∨ ¬r ∨ s) ∧ (q ∨ ¬r ∨ s) ∧ r ∧¬ s ∧ (¬p ∨ ¬q)(p ∨ ¬r ∨ s) ∧ (q ∨ ¬r ∨ s) ∧ r ∧¬ s ∧ (¬p ∨ ¬q) p ∨ ¬r ∨ s q ∨ ¬r ∨ s r ¬s ¬p ∨ ¬q 17 By Rule (c) using 3. p ∨ s q ∨ s ¬s By Rule (c) using 1. q ¬q 5. ( (p ∧ q) ∨ (r ⇒ s) ) ⇒ ( (p ∨ (r ⇒ s)) ∧ (q ∨ (r ⇒ s) ) ) ¬s ¬p ∨ ¬q By Rule (c) using 3. p q ¬p ∨ ¬q Since complementary literals have been derived, the negated formula is unsatisifiable, thus the original formula is valid. 18 [((p ∨ ¬q) ⇒ r) ∧ (s ⇒ (t ∧ u)) ∧ (s ∧ p)] ⇒ (r ∧ t) Negate and Convert to CNF [( ¬¬¬¬ (p ∨∨∨∨ ¬¬¬¬q) ∨∨∨∨ r) ∧∧∧∧ (¬¬¬¬s ∨∨∨∨ (t ∧∧∧∧ u)) ∧∧∧∧ (s ∧∧∧∧ p)] ∧∧∧∧ ¬¬¬¬ (r ∧∧∧∧ t) [ ((¬¬¬¬ p ∧∧∧∧ q) ∨∨∨∨ r) ∧∧∧∧ (¬¬¬¬s ∨∨∨∨ (t ∧∧∧∧ u)) ∧∧∧∧ (s ∧∧∧∧ p)] ∧∧∧∧ ¬¬¬¬ (r ∧∧∧∧ t) (¬¬¬¬ p ∨∨∨∨ r) ∧∧∧∧ (q ∨∨∨∨ r) ∧∧∧∧ (¬¬¬¬s ∨∨∨∨ t) ∧∧∧∧ (¬¬¬¬s ∨∨∨∨ u) ∧∧∧∧ (s ∧∧∧∧ p) ∧∧∧∧ (¬¬¬¬ r ∨∨∨∨ ¬¬¬¬ t)(¬¬¬¬ p ∨∨∨∨ r) ∧∧∧∧ (q ∨∨∨∨ r) ∧∧∧∧ (¬¬¬¬s ∨∨∨∨ t) ∧∧∧∧ (¬¬¬¬s ∨∨∨∨ u) ∧∧∧∧ (s ∧∧∧∧ p) ∧∧∧∧ (¬¬¬¬ r ∨∨∨∨ ¬¬¬¬ t) ¬¬¬¬ p ∨∨∨∨ r q ∨∨∨∨ r ¬¬¬¬s ∨∨∨∨ t ¬¬¬¬s ∨∨∨∨ u s p ¬¬¬¬r ∨∨∨∨ ¬¬¬¬ t 19