Davis-Putnam Methods Computational Logic Lecture 5

Slides:



Advertisements
Similar presentations
Resolution Proof System for First Order Logic
Advertisements

Russell and Norvig Chapter 7
Propositional Satisfiability (SAT) Toby Walsh Cork Constraint Computation Centre University College Cork Ireland 4c.ucc.ie/~tw/sat/
UIUC CS 497: Section EA Lecture #2 Reasoning in Artificial Intelligence Professor: Eyal Amir Spring Semester 2004.
Propositional and First Order Reasoning. Terminology Propositional variable: boolean variable (p) Literal: propositional variable or its negation p 
Proofs from SAT Solvers Yeting Ge ACSys NYU Nov
Methods of Proof Chapter 7, second half.. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound)
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 20
Effective Propositional Reasoning CSE 473 – Autumn 2003.
Properties of SLUR Formulae Ondřej Čepek, Petr Kučera, Václav Vlček Charles University in Prague SOFSEM 2012 January 23, 2012.
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Proof methods Proof methods divide into (roughly) two kinds: –Application of inference rules Legitimate (sound) generation of new sentences from old Proof.
Logic in Computer Science Transparency No Chapter 3 Propositional Logic 3.6. Propositional Resolution.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
Logic in Computer Science Transparency No Chapter 3 Propositional Logic 3.6. Propositional Resolution 3.7. Natural Deduction.
Knowledge Representation I (Propositional Logic) CSE 473.
Search in the semantic domain. Some definitions atomic formula: smallest formula possible (no sub- formulas) literal: atomic formula or negation of an.
Knoweldge Representation & Reasoning
Last time Proof-system search ( ` ) Interpretation search ( ² ) Quantifiers Equality Decision procedures Induction Cross-cutting aspectsMain search strategy.
Chapter 3 Propositional Logic
Knowledge Representation II (Inference in Propositional Logic) CSE 473 Continued…
SAT Solving Presented by Avi Yadgar. The SAT Problem Given a Boolean formula, look for assignment A for such that.  A is a solution for. A partial assignment.
Satisfiability Introduction to Artificial Intelligence COS302 Michael L. Littman Fall 2001.
Logics for Data and Knowledge Representation Propositional Logic: Reasoning Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto.
Propositional Resolution Computational LogicLecture 4 Michael Genesereth Spring 2005.
Boolean Satisfiability and SAT Solvers
SAT and SMT solvers Ayrat Khalimov (based on Georg Hofferek‘s slides) AKDV 2014.
3/11/2002copyright Brian Williams1 Propositional Logic and Satisfiability Brian C. Williams /6.834 October 7 th, 2002.
INTRODUCTION TO ARTIFICIAL INTELLIGENCE COS302 MICHAEL L. LITTMAN FALL 2001 Satisfiability.
Explorations in Artificial Intelligence Prof. Carla P. Gomes Module 3 Logic Representations (Part 2)
S P Vimal, Department of CSIS, BITS, Pilani
Name the United States Coins Count the Pennies 10 ¢
Explorations in Artificial Intelligence Prof. Carla P. Gomes Module Logic Representations.
Logical Agents Chapter 7. Knowledge bases Knowledge base (KB): set of sentences in a formal language Inference: deriving new sentences from the KB. E.g.:
Propositional calculus
LDK R Logics for Data and Knowledge Representation Propositional Logic: Reasoning First version by Alessandro Agostini and Fausto Giunchiglia Second version.
CSE 473 Propositional Logic SAT Algorithms Dan Weld (With some slides from Mausam, Stuart Russell, Dieter Fox, Henry Kautz, Min-Yen Kan…) Irrationally.
First-Order Logic and Inductive Logic Programming.
1 The Wumpus Game StenchBreeze Stench Gold Breeze StenchBreeze Start  Breeze.
© Copyright 2008 STI INNSBRUCK Intelligent Systems Propositional Logic.
Finding Models for Blocked 3-SAT Problems in Linear Time by Systematical Refinement of a Sub- Model Gábor Kusper Eszterházy Károly.
1 Propositional Logic Limits The expressive power of propositional logic is limited. The assumption is that everything can be expressed by simple facts.
Logical Agents Chapter 7. Outline Knowledge-based agents Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem.
Proof Methods for Propositional Logic CIS 391 – Intro to Artificial Intelligence.
Knowledge Repn. & Reasoning Lecture #9: Propositional Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2005.
In your groups Complete subtraction problems with positive and negative numbers.
CS.462 Artificial Intelligence SOMCHAI THANGSATHITYANGKUL Lecture 04 : Logic.
 Conjunctive Normal Form: A logic form must satisfy one of the following conditions 1) It must be a single variable (A) 2) It must be the negation of.
Notes 7: Knowledge Representation, The Propositional Calculus
Inference in Propositional Logic (and Intro to SAT)
Logical Inference 1 introduction
Planning as Satisfiability
Gábor Kusper University of Linz RISC Austria
EA C461 – Artificial Intelligence Logical Agent
Exercises: First Order Logics (FOL)
ARTIFICIAL INTELLIGENCE
First-Order Logic and Inductive Logic Programming
Logical Agents Reading: Russell’s Chapter 7
Propositional Resolution
ECE 667 Synthesis and Verification of Digital Circuits
Logics for Data and Knowledge Representation
DLL Algorithm.
Artificial Intelligence: Agents and Propositional Logic.
Name the United States Coins
Logical Entailment Computational Logic Lecture 3
Artificial Intelligence
Methods of Proof Chapter 7, second half.
Propositional Logic: Methods of Proof (Part II)
Resolution Preliminaries
Presentation transcript:

Davis-Putnam Methods Computational Logic Lecture 5 Michael Genesereth Autumn 2011

Level Saturation

Level Saturation Method function lsm () ;  is a linked list of clauses {var results  ; while ({}  ) {results  lss(,results)   concat(,results) function lss (, ) {var results  []; for (var   ) {for (  ) {results  concat(results,resolvents(,))}}; return results}

Example for DP Multiple proofs. Resolutions between parents and children.

Davis Putnam Procedure function dp () {for  in vocabulary() do {var ’{}; for 1 in  for 2 in  such that   1   2 do {var ’ 1 {}  2  {}; if not tautology(’) then ’’{’}};   { |    or   }  ’}; return {if {}   then unsatisfiable else satisfiable}} function tautology() {  and   }

Example Without DP {p, q, r} {q, r} {p} {p, q, r} {q, r} {p} {p, q, r} {q, r} {q} {p, q, r} {q, r} {q} {p, q, r} {p, r} {r} {p, q, r} {p, r} {r} {p, q, r} {p, r} {p, q, r} {p, r} {} {p, q} {p, q} Cost = {p, q} 378 resolutions {p, q}

Example With DP {p, q, r} {q, r} {p, q, r} {q, r} {p, q, r} {q, r} {p, q, r} {r} {p, q, r} {r} {p, q, r} {} Cost = 16 + 4 + 1 = 21 resolutions

Motivation for DPLL DP can cause a quadratic expansion every time it is applied. This can easily exhaust space on large problems. DPLL attacks this problem by sequentially solving smaller problems. Basic idea: Choose a literal. Assume true, simplify clause set, and try to show satisfiable. Repeat for the negation of the literal. Good because we do not cross multiply the clause set.

Davis Putnam Logemann Loveland function dpll () {var ; if  = {} then return yes; if {}  then return no;   choose vocabulary()); if dpll(simplify(, )) return yes else return dpll(simplify(,))} function simplify (, ) {var ’; for    do {if  then skip else if negation() then ’ ’  {  {negation()}} else ’ ’  {}}}

Simplification Example Clauses: {p,q} {p,r} {r,s} Literal: p Simplification: {r}

Comparisons Problem Tautology DP DPLL Prime 30.00 0.00 0.00 Prime16 > 1 hour * 9.15 Prime17 > 1 hour * 3.87 Mkadder32 >> 1 hour 6.50 7.34 Mkadder42 >> 1 hour 22.95 46.86 Mkadder52 >> 1 hour 44.83 170.98 Mkadder53 >> 1 hour 38.27 250.16 Mkadder63 >> 1 hour * 1186.4 Mkadder73 >> 1 hour * 3759.9

Coin Logic Syntax: The logical constants: quarters, nickels, dimes Negation: coin upside down Disjunction: stack of coins Conjunction: set of stacks Almost exactly clausal form. Propositional Resolution: Add two stacks, deleting at most one pair of complementary coins.

Example Quarter means it is Monday. Nickel means Mary loves Pat. Dime means Mary loves Quincy. [Nickel,Dime]: If Mary loves Pat, Mary loves Quincy. [Quarter,Nickel,Dime]: Monday Mary loves P or Q. [Nickel, Dime]:Mary loves only one of the two. [Quarter,Dime]: If Monday, Mary loves Quincy. [Quarter,-Nickel]: If Monday, Mary does not love Pat.