Propositional Calculus

Size: px
Start display at page:

Download "Propositional Calculus"

Transcription

1 Propositional Calculus Dr. Neil T. Dantam CSCI-498/598 RPM, Colorado School of Mines Spring 2018 Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

2 Calculus? Definition: Calculus A well defined method for mathematical reasoning employing axioms and rules of inference or transformation. A formal system or rewrite system. Examples: Differential calculus Lambda (λ) calculus Propositional calculus (Boolean/Propositional logic) Predicate calculus (First-Order logic) Etymology: from the Latin calx (limestone) + -ulus (dimutive). A pebble or stone used for counting. Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

3 Boolean Logic Outline Boolean Logic Forward and Backward Chaining Horn Clauses Forward Chaining Backward Chaining Satisfiability Conjunctive Normal Form Davis-Putnam-Logemann-Loveland Tools Logic Programming Constraint Solvers Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

4 Boolean Logic Boolean Variables (propositions) Values: B {0, 1} true: 1, T, false: 0, F, Variables: p B p 1,..., p n B n Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

5 Boolean Logic Boolean Operators Basic Unary: f : B B Binary: g : B B B Not 0 = 1 1 = 0 And 0 0 = = = = 1 Or 0 0 = = = = 1 Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

6 Boolean Logic Boolean Operators Extended Xor Implies Biconditional (iff) (a b) (a b) (a b) (a b) ( a b) 0 0 = = = = 0 (a = b) ( a b) (0 = 0) = 1 (0 = 1) = 1 (1 = 0) = 0 (1 = 1) = 1 (a b) (a = b) (b = a) (a b) (a b) ( a b) (0 0) = 1 (0 1) = 0 (1 0) = 0 (1 1) = 1 Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

7 Boolean Logic Example: Boolean Formulae as S-expressions a b a b (a b) ( a b) ( a) = (b c) (and a b) (and a (not b)) (and (or a b) (or (not a) b)) (implies (not a) (or b c)) = a b a b a b b a b c a Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

8 Boolean Logic Exercise: Boolean Formulae as S-expressions (a b) = c (a b) c a b c All these formulae are equivalent Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

9 Boolean Logic N-ary Boolean Operators Infix AND S-exp. α β = (AND α β) α β γ = (AND α β γ) α = (AND α)? = (AND) Infix OR S-exp. α β = (OR α β) α β γ = (OR α β γ) α = (OR α)? = (OR) Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

10 Boolean Logic Identity Element Arithmetic Generally: f (α, identity {}}{ χ ) = α Infix: Multiplication a χ = a χ = 1 S-exp.: ( a 0... a n 1) = ( a 0... a n ) Infix: Addition a + χ = a χ = 0 S-exp.: (+ a 0... a n 0) = (+ a 0... a n ) Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

11 Boolean Logic Identity Element Boolean Algebra Generally: f (α, identity {}}{ χ ) = α Infix: AND a χ = a χ = S-exp.: (AND a 0... a n ) = (AND a 0... a n ) Infix: OR a χ = a χ = S-exp.: (OR a 0... a n ) = (OR a 0... a n ) Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

12 Boolean Logic Identity Element Cancellation AND χ = OR χ = (AND α 0 α 1... α n 1 α n ) ( ) AND α 0 α 1... α n 1 α n (AND α 0 α 1... α n 1 ) ( AND α 0 α ) 1... α n01 (AND) (OR α 0 α 1... α n 1 α n ) ( ) OR α 0 α 1... α n 1 α n (OR α 0 α 1... α n 1 ) ( OR α 0 α ) 1... α n01 (OR) Remove canceled identity terms: base case is identity element Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

13 Boolean Logic Describing Expressions Literal: A single variable or its negation Conjunction: An AND ( ) expression Disjunction: An OR ( ) expression Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

14 Boolean Logic Definitions Literal Definition (Literal) A single variable or its negation. Positive Literal: p Negative Literal: p Examples Counter Examples positive: p i negative: p i p i p j p i p j (p i p j ) Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

15 Boolean Logic Definitions Conjunction Definition (Conjunction) An n-ary AND. True when ALL of its arguments are true. Examples p i = p i p i p j p i p j p k p i (p j p k ) Counter Examples p i p j p i (p j p k ) (p i p j ) p k Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

16 Boolean Logic Definitions Disjunction Definition (Disjunction) An n-ary OR. True when ANY of its arguments are true. Examples p i = p i p i p j p i p j p k p i (p j p k ) Counter Examples p i p j p i p j p k p i (p j p k ) Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

17 Forward and Backward Chaining Outline Boolean Logic Forward and Backward Chaining Horn Clauses Forward Chaining Backward Chaining Satisfiability Conjunctive Normal Form Davis-Putnam-Logemann-Loveland Tools Logic Programming Constraint Solvers Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

18 Forward and Backward Chaining Horn Clauses Horn Clauses Definition: Horn Clause An implication whose premise (body) is a conjunction ( ) of positive literals and whose conclusion (head) is a single positive literals: body {}}{ (b 0 b 1... b n ) = head {}}{ h Equivalently, a disjunction with at most one positive literal: body {}}{ b 0 b 1... b n Horn clause reasoning is more efficient than general Boolean formulae. head {}}{ h Many real-world domains can be expressed with only Horn clauses. Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

19 Forward and Backward Chaining Horn Clauses Examples: Horn Clauses Examples Counterexamples a = = a a b = a = b a = b = a b = b = a a b = (a b) = a b = a = b a b c = a = (b c) Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

20 Forward and Backward Chaining Horn Clauses Example: Engine Troubleshooting Four-cycle Engine Operation Intake Compression Power Exhaust close in. valve spark open ex. valve close ex. valve / open in. valve ignition (fuel compression spark) Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

21 Forward and Backward Chaining Horn Clauses Example: Engine Troubleshooting Troubleshooting Knowledge Base ignition (fuel compression spark) fuel (full-tank clean-carbs) compression (clean-air-filter good-piston-rings) spark (battery-charged good-connection good-plugs) turns-over = battery-charged Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

22 Forward and Backward Chaining Horn Clauses Exercise: Course Prerequisites Calculus I MATH-111 Calculus II MATH-112 Prob. & Stats. MATH-201 Calculus III MATH-213 Discrete Math CSCI-358 Programming Concepts CSCI-261 Data Structures CSCI-262 Human Ctr. Robo. CSCI-473 AI CSCI-404 Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

23 Forward and Backward Chaining Horn Clauses Exercise: Course Prerequisites continued Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

24 Forward and Backward Chaining Forward Chaining Overview: Forward Chaining 1. Start with known propositions, = p 2. Derive new propositions and add to knowledgebase 2.1 For (p 0... p n ) = p h 2.2 When all p 0... p n are known true 2.3 p h must be true 3. Terminate when either we prove the query proposition true or we can derive no more Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

25 Forward and Backward Chaining Forward Chaining Example: Forward Chaining The engine turns over but won t start. I just cleaned the carbs and filled the gas tank. Should I check the spark plugs? ignition (fuel compression spark) fuel (full-tank clean-carbs) compression (clean-air-filter good-piston-rings) spark (battery-charged good-connection good-plugs) turns-over = battery-charged turns-over full-tank clean-carbs ignition ( (fuel compression spark) fuel full-tank ) clean-carbs compression (clean-air-filter good-piston-rings) spark (battery-charged good-connection good-plugs) turns-over = battery-charged turns-over full-tank clean-carbs Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

26 Forward and Backward Chaining Forward Chaining Example: Forward Chaining continued ignition (fuel compression spark) fuel ( full-tank clean-carbs ) compression (clean-air-filter good-piston-rings) spark (battery-charged good-connection good-plugs) turns-over = battery-charged ( ignition fuel ) compression spark fuel ( full-tank clean-carbs ) compression (clean-air-filter good-piston-rings) spark ( ) battery-charged good-connection good-plugs turns-over = battery-charged turns-over full-tank clean-carbs fuel battery-charged turns-over full-tank clean-carbs fuel battery-charged Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

27 Forward and Backward Chaining Forward Chaining Algorithm: Forward Chaining Procedure forward-chain(k,q) 1 W {c K c is a literal}; 2 V ; 3 while empty(w) do 4 let x = pop(w) in 5 if head(c) = q then return ; 6 else if x V then 7 V V {x}; 8 foreach c K where x body(c) do 9 Remove x from body (c); 10 if empty (body(c)) then 11 W push (head(c), W ) Efficiency Notes Index K by variables in its body Track remaining (unproven) terms in body with count Initialize count to length of body Decrement count each time we remove a term When 0, head is true 12 return ; Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

28 Forward and Backward Chaining Forward Chaining Exercise: Forward Chaining I want to take Human-Centered Robotics (CSCI-473). Do I need Calculus III (MATH-213)? Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

29 Forward and Backward Chaining Forward Chaining Exercise: Forward Chaining Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

30 Forward and Backward Chaining Forward Chaining Exercise: Forward Chaining Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

31 Forward and Backward Chaining Backward Chaining Overview: Backward Chaining 1. Start with query proposition q 2. Recursively follow clauses that imply q: 2.1 p 0... p n = q 2.2 l 0... l n = p etc. 3. Terminate recursion when: 3.1 we arrive at a know proposition ( ) 3.2 or there are no more clauses that imply the current proposition ( ) Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

32 Forward and Backward Chaining Backward Chaining Example: Backward Chaining The engine turns over but won t start. I just cleaned the carbs and filled the gas tank. Should I check the spark plugs? ignition (fuel compression spark) fuel (full-tank clean-carbs) compression (clean-air-filter good-piston-rings) good-plugs spark (battery-charged good-connection good-plugs) turns-over = battery-charged spark = good-plugs nil battery-charged good-connection good-plugs = spark nil turns-over = battery-charged = turns-over spark = good-connection cycle Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

33 Forward and Backward Chaining Backward Chaining Algorithm: Backward Chaining Simple Procedure backward-chain(k,q) 1 function visit(v, x) is 2 if x V then return ; // circular definition 3 else // c K, ((head(c) = x) (body(c))) 4 foreach c K where x = head(c) do 5 foreach b body(c) do // b body(c), b 6 if visit (V {x}, b) then return ; 7 return ; 8 return ; 9 return visit (, q); Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

34 Forward and Backward Chaining Backward Chaining Algorithm: Backward Chaining Memoizing Procedure backward-chain(k,q) 1 M ; // Cached set of true propositions 2 function visit(v, x) is 3 if x M then return ; // cached result 4 else if x V then return ; // circular definition 5 else // c K, ((head(c) = x) (body(c))) 6 foreach c K where x = head(c) do 7 foreach b body(c) do // b body(c), b 8 if visit (V {x}, b) then return ; 9 M M {x}; 10 return ; 11 return ; 12 return visit (, q); Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

35 Forward and Backward Chaining Backward Chaining Exercise: Backward Chaining I want to take Human-Centered Robotics (CSCI-473). Do I need Calculus III (MATH-213)? Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

36 Forward and Backward Chaining Backward Chaining Knowledge Base Indexing Procedure forward-chain(k,q) 1 W {c K c is a literal}; 2 V ; 3 while empty(w) do 4 let x = pop(w) in 5 if head(c) = q then return ; 6 else if x V then 7 V V {x}; /* Naive: O(n) to select matching clauses */ 8 foreach c K where x body(c) do 9 Remove x from body (c); 10 if empty (body(c)) then 11 W push (head(c), W ) 12 return ; Procedure backward-chain(k,q) 1 M ; 2 function visit(v, x) is 3 if x M then return ; 4 else if x V then return ; 5 else /* Naive: O(n) to select matching clauses */ 6 foreach c K where x = head(c) do 7 foreach b body(c) do 8 if visit (V {x}, b) then return ; 9 M M {x}; 10 return ; 11 return ; 12 return visit (, q); Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

37 Forward and Backward Chaining Backward Chaining Exercise: Knowledge base Indexing Forward Chaining foreach c K where x body(c) Procedure forward-chain-index(k) Backward Chaining foreach c K where x = head(c) Procedure backward-chain-index(k) Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

38 Satisfiability Outline Boolean Logic Forward and Backward Chaining Horn Clauses Forward Chaining Backward Chaining Satisfiability Conjunctive Normal Form Davis-Putnam-Logemann-Loveland Tools Logic Programming Constraint Solvers Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

39 Satisfiability SAT Problem Given: A Boolean formula: Variables P = p 1... p n Formula φ : B n B Find: Is φ(p) satisfiable? P, (φ(p) = 1) What is P? Solution: Davis-Putnam-Logeman-Loveland (DPLL) Backtracking Search General and efficient reasoning over propositional logic. Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

40 Satisfiability So what? Software verification AI / Robot Planning Combinatorial Design Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

41 Satisfiability Conjunctive Normal Form Conjunctive Normal Form S-Expression Definition (Conjunctive Normal Form) A conjunction of disjunction of literals: (AND (OR l 0,0 l 0,1... l 0,n ) (OR l 1,0 l 1,1... l 1,n )... (OR l n,0 l n,1... l n,n )) where each l i,j is a literal, that is one of p, (NOT p). Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

42 Satisfiability Conjunctive Normal Form Conjunctive Normal Form infix Definition (Conjunctive Normal Form) A conjunction of disjunction of literals Examples p i (AND (OR p i )) p i p j (AND (OR (NOT p i ) p j )) p i (p j p k ) (p i p j ) ( p i p k ) Counter Examples p i (p j p k ) (p i p j ) p i = p j Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

43 Satisfiability Conjunctive Normal Form Conversion to CNF 1. Eliminate : α β (α = β) (β = α) 2. Eliminate = : α = β α β 3. Eliminate : a b (a b) (a b) 4. Move in : ( α) α (α β) ( α β) (α β) ( α β) 5. Distribute over : α (β γ) (α β) (α γ) Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

44 Satisfiability Conjunctive Normal Form Example: CNF Conversions a b Elim. (a = b) (b = a) Elim. = ( a b) ( b a) a = (b c) Elim. = a (b c) move a ( b c) dist. ( a b) ( a c) Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

45 Satisfiability Conjunctive Normal Form Exercise: CNF Conversions 0 (a b) = c (a b) (a c) Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

46 Satisfiability Conjunctive Normal Form Exercise: CNF Conversions 1 (a b) (a c) Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

47 Satisfiability Davis-Putnam-Logemann-Loveland DPLL Outline For φ in conjunctive normal form: Base Case: Recursive Case: 1. If φ has all true clauses ( ), return true. 2. If φ has any false clauses ( ), return false. 1. Propagate values from unit (single-variable) clauses. 2. Choose a branching variable v. 3. Branch (recurse) for v = 1 or v = 0. Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

48 Satisfiability Davis-Putnam-Logemann-Loveland Unit Propagation Procedure unit-propagate(φ) 1 if φ has some unit clause with variable v then 2 φ replace v in φ with value to make unit clause true; 3 return unit-propagate(φ); 4 else 5 return φ; Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

49 Satisfiability Davis-Putnam-Logemann-Loveland Example: Unit Propagation unit {}}{ a (a b) ( b c) a=1 1 1 (1 b) ( b c) simplify ( b c) Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

50 Satisfiability Davis-Putnam-Logemann-Loveland Exercise: Unit Propagation unit {}}{ a (a b c) (a b) b (b c) (a b c) (b c) c a ( a b) ( a b) Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

51 Satisfiability Davis-Putnam-Logemann-Loveland DPLL Algorithm Procedure DPLL(φ) 1 φ unit-propagate(φ); 2 if φ = true then 3 return true; 4 else if φ = false then 5 return false; 6 else // Recursive case 7 v choose-variable(φ ); 8 if DPLL(φ v) then 9 return true; 10 else 11 return DPLL(φ v); Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

52 Satisfiability Davis-Putnam-Logemann-Loveland Example 0: DPLL (a b) ( a b) choose a = 1 1 (1 b) ( 1 0 b) propagate b = 1 1 SAT Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

53 Satisfiability Davis-Putnam-Logemann-Loveland Example 1: DPLL (a b) ( a b) ( a b) 1 (1 b) ( 1 0 b) ( 1 0 b) propagate b = 1 choose a = choose a = 0 (0 b) 1 ( 0 b) 1 ( 0 b) propagate b = SAT Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

54 Satisfiability Davis-Putnam-Logemann-Loveland Exercise 0: DPLL Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

55 Satisfiability Davis-Putnam-Logemann-Loveland Exercise 1: DPLL Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

56 Satisfiability Davis-Putnam-Logemann-Loveland Exercise 2: DPLL Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

57 Satisfiability Davis-Putnam-Logemann-Loveland Exercise 3: DPLL Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

58 Satisfiability Davis-Putnam-Logemann-Loveland Exercise 4: DPLL Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

59 Tools Outline Boolean Logic Forward and Backward Chaining Horn Clauses Forward Chaining Backward Chaining Satisfiability Conjunctive Normal Form Davis-Putnam-Logemann-Loveland Tools Logic Programming Constraint Solvers Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

60 Tools Logic Programming and Constraint Solvers Statements: Logic Programming Logical Expressions Query Execution: Logical Inference Output: Query true/false Constraint Solvers Algorithm: DPLL + heuristics Input: Set of variables Constraint equations (assertions) Output: Satisfying variable assignment Different view, similar operation and capabilities Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

61 Tools Logic Programming Prolog Statements are Horn clauses Horn: body = head Prolog: head :- body Example: Horn: (a b) = c Prolog: c :- a, b. Evaluation: Query:?x Backward Chaining Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

62 Tools Logic Programming Answer-Set Programming Horn Clauses: Horn: (a b) = c ASP: c :- a, b. Choice Rule: Math: p = (s t) ASP: {s,t} :- p. Constraint: Math: (s t) = = (s t) = s t ASP: :- s, not t. Evaluation: DPLL Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

63 Tools Constraint Solvers Satisfiability Solvers Math DIMACS Output (a b) (a c) c Problem D e f i n i t i o n ( p ) : c problem type ( c n f ) c v a r i a b l e count ( 3 ) c c l a u s e count ( 2 ) p cn f s SATISFIABLE v Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

64 Tools Constraint Solvers Satisfiability Modulo Theories Math (a b) (a c) (SMT also handles non-boolean types.) SMTLib ( d e c l a r e fun a ( ) Bool ) ( d e c l a r e fun b ( ) Bool ) ( d e c l a r e fun c ( ) Bool ) ( a s s e r t ( or a b ) ) ( a s s e r t ( or a ( not c ) ) ) ( check sat ) ( get v a l u e ( a b c ) ) Output sat ( ( a f a l s e ) ( b true ) ( c f a l s e ) ) Dantam (Mines CSCI, RPM) Propositional Calculus Spring / 64

COMP219: Artificial Intelligence. Lecture 20: Propositional Reasoning

COMP219: Artificial Intelligence. Lecture 20: Propositional Reasoning COMP219: Artificial Intelligence Lecture 20: Propositional Reasoning 1 Overview Last time Logic for KR in general; Propositional Logic; Natural Deduction Today Entailment, satisfiability and validity Normal

More information

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system):

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system): Logic Knowledge-based agents Inference engine Knowledge base Domain-independent algorithms Domain-specific content Knowledge base (KB) = set of sentences in a formal language Declarative approach to building

More information

CS156: The Calculus of Computation

CS156: The Calculus of Computation CS156: The Calculus of Computation Zohar Manna Winter 2010 It is reasonable to hope that the relationship between computation and mathematical logic will be as fruitful in the next century as that between

More information

The Wumpus Game. Stench Gold. Start. Cao Hoang Tru CSE Faculty - HCMUT

The Wumpus Game. Stench Gold. Start. Cao Hoang Tru CSE Faculty - HCMUT The Wumpus Game Stench Stench Gold Stench Start 1 The Wumpus Game Stench in the square containing the wumpus and in the directly adjacent squares in the squares directly adjacent to a pit Glitter in the

More information

The Calculus of Computation: Decision Procedures with Applications to Verification. Part I: FOUNDATIONS. by Aaron Bradley Zohar Manna

The Calculus of Computation: Decision Procedures with Applications to Verification. Part I: FOUNDATIONS. by Aaron Bradley Zohar Manna The Calculus of Computation: Decision Procedures with Applications to Verification Part I: FOUNDATIONS by Aaron Bradley Zohar Manna 1. Propositional Logic(PL) Springer 2007 1-1 1-2 Propositional Logic(PL)

More information

Chapter 7 R&N ICS 271 Fall 2017 Kalev Kask

Chapter 7 R&N ICS 271 Fall 2017 Kalev Kask Set 6: Knowledge Representation: The Propositional Calculus Chapter 7 R&N ICS 271 Fall 2017 Kalev Kask Outline Representing knowledge using logic Agent that reason logically A knowledge based agent Representing

More information

Logical Agents. Chapter 7

Logical Agents. Chapter 7 Logical Agents Chapter 7 Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem

More information

CS 380: ARTIFICIAL INTELLIGENCE

CS 380: ARTIFICIAL INTELLIGENCE CS 380: RTIFICIL INTELLIGENCE PREDICTE LOGICS 11/8/2013 Santiago Ontañón santi@cs.drexel.edu https://www.cs.drexel.edu/~santi/teaching/2013/cs380/intro.html Summary of last day: Logical gents: The can

More information

EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS

EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS Lecture 10, 5/9/2005 University of Washington, Department of Electrical Engineering Spring 2005 Instructor: Professor Jeff A. Bilmes Logical Agents Chapter 7

More information

Introduction to Artificial Intelligence Propositional Logic & SAT Solving. UIUC CS 440 / ECE 448 Professor: Eyal Amir Spring Semester 2010

Introduction to Artificial Intelligence Propositional Logic & SAT Solving. UIUC CS 440 / ECE 448 Professor: Eyal Amir Spring Semester 2010 Introduction to Artificial Intelligence Propositional Logic & SAT Solving UIUC CS 440 / ECE 448 Professor: Eyal Amir Spring Semester 2010 Today Representation in Propositional Logic Semantics & Deduction

More information

Class Assignment Strategies

Class Assignment Strategies Class Assignment Strategies ì Team- A'ack: Team a'ack ì Individualis2c: Search for possible ì Poli2cal: look at others and make decision based on who is winning, who is loosing, and conversa;on ì Emo2on

More information

Intelligent Agents. Pınar Yolum Utrecht University

Intelligent Agents. Pınar Yolum Utrecht University Intelligent Agents Pınar Yolum p.yolum@uu.nl Utrecht University Logical Agents (Based mostly on the course slides from http://aima.cs.berkeley.edu/) Outline Knowledge-based agents Wumpus world Logic in

More information

CS 380: ARTIFICIAL INTELLIGENCE PREDICATE LOGICS. Santiago Ontañón

CS 380: ARTIFICIAL INTELLIGENCE PREDICATE LOGICS. Santiago Ontañón CS 380: RTIFICIL INTELLIGENCE PREDICTE LOGICS Santiago Ontañón so367@drexeledu Summary of last day: Logical gents: The can reason from the knowledge they have They can make deductions from their perceptions,

More information

Artificial Intelligence

Artificial Intelligence Artificial Intelligence Propositional Logic Marc Toussaint University of Stuttgart Winter 2015/16 (slides based on Stuart Russell s AI course) Outline Knowledge-based agents Wumpus world Logic in general

More information

Logical agents. Chapter 7. Chapter 7 1

Logical agents. Chapter 7. Chapter 7 1 Logical agents Chapter 7 Chapter 7 1 Outline Knowledge-based agents Logic in general models and entailment Propositional (oolean) logic Equivalence, validity, satisfiability Inference rules and theorem

More information

Foundations of Artificial Intelligence

Foundations of Artificial Intelligence Foundations of Artificial Intelligence 31. Propositional Logic: DPLL Algorithm Malte Helmert and Gabriele Röger University of Basel April 24, 2017 Propositional Logic: Overview Chapter overview: propositional

More information

Logical agents. Chapter 7. Chapter 7 1

Logical agents. Chapter 7. Chapter 7 1 Logical agents Chapter 7 Chapter 7 Outline Knowledge-based agents Wumpus world Logic in general models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules

More information

Title: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5)

Title: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5) B.Y. Choueiry 1 Instructor s notes #12 Title: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5) Introduction to Artificial Intelligence CSCE 476-876, Fall 2018 URL: www.cse.unl.edu/ choueiry/f18-476-876

More information

Propositional and First Order Reasoning

Propositional and First Order Reasoning Propositional and First Order Reasoning Terminology Propositional variable: boolean variable (p) Literal: propositional variable or its negation p p Clause: disjunction of literals q \/ p \/ r given by

More information

Logical Agents. Santa Clara University

Logical Agents. Santa Clara University Logical Agents Santa Clara University Logical Agents Humans know things Humans use knowledge to make plans Humans do not act completely reflexive, but reason AI: Simple problem-solving agents have knowledge

More information

An Introduction to SAT Solving

An Introduction to SAT Solving An Introduction to SAT Solving Applied Logic for Computer Science UWO December 3, 2017 Applied Logic for Computer Science An Introduction to SAT Solving UWO December 3, 2017 1 / 46 Plan 1 The Boolean satisfiability

More information

TDT4136 Logic and Reasoning Systems

TDT4136 Logic and Reasoning Systems TDT436 Logic and Reasoning Systems Chapter 7 - Logic gents Lester Solbakken solbakke@idi.ntnu.no Norwegian University of Science and Technology 06.09.0 Lester Solbakken TDT436 Logic and Reasoning Systems

More information

Logical Agents. Outline

Logical Agents. Outline Logical Agents *(Chapter 7 (Russel & Norvig, 2004)) Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability

More information

CS:4420 Artificial Intelligence

CS:4420 Artificial Intelligence CS:4420 Artificial Intelligence Spring 2018 Propositional Logic Cesare Tinelli The University of Iowa Copyright 2004 18, Cesare Tinelli and Stuart Russell a a These notes were originally developed by Stuart

More information

Artificial Intelligence

Artificial Intelligence Artificial Intelligence Propositional Logic Marc Toussaint University of Stuttgart Winter 2016/17 (slides based on Stuart Russell s AI course) Motivation: Most students will have learnt about propositional

More information

Application: Planning as Satisfiability (SATPlan) (Pre Lecture)

Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Dr. Neil T. Dantam CSCI-561, Colorado School of Mines Fall 2018 Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan)

More information

Lecture 9: The Splitting Method for SAT

Lecture 9: The Splitting Method for SAT Lecture 9: The Splitting Method for SAT 1 Importance of SAT Cook-Levin Theorem: SAT is NP-complete. The reason why SAT is an important problem can be summarized as below: 1. A natural NP-Complete problem.

More information

Propositional Logic: Methods of Proof (Part II)

Propositional Logic: Methods of Proof (Part II) Propositional Logic: Methods of Proof (Part II) This lecture topic: Propositional Logic (two lectures) Chapter 7.1-7.4 (previous lecture, Part I) Chapter 7.5 (this lecture, Part II) (optional: 7.6-7.8)

More information

Proof Methods for Propositional Logic

Proof Methods for Propositional Logic Proof Methods for Propositional Logic Logical equivalence Two sentences are logically equivalent iff they are true in the same models: α ß iff α β and β α Russell and Norvig Chapter 7 CS440 Fall 2015 1

More information

Formal Verification Methods 1: Propositional Logic

Formal Verification Methods 1: Propositional Logic Formal Verification Methods 1: Propositional Logic John Harrison Intel Corporation Course overview Propositional logic A resurgence of interest Logic and circuits Normal forms The Davis-Putnam procedure

More information

Lecture Notes on SAT Solvers & DPLL

Lecture Notes on SAT Solvers & DPLL 15-414: Bug Catching: Automated Program Verification Lecture Notes on SAT Solvers & DPLL Matt Fredrikson André Platzer Carnegie Mellon University Lecture 10 1 Introduction In this lecture we will switch

More information

CS156: The Calculus of Computation Zohar Manna Autumn 2008

CS156: The Calculus of Computation Zohar Manna Autumn 2008 Page 3 of 52 Page 4 of 52 CS156: The Calculus of Computation Zohar Manna Autumn 2008 Lecturer: Zohar Manna (manna@cs.stanford.edu) Office Hours: MW 12:30-1:00 at Gates 481 TAs: Boyu Wang (wangboyu@stanford.edu)

More information

Part 1: Propositional Logic

Part 1: Propositional Logic Part 1: Propositional Logic Literature (also for first-order logic) Schöning: Logik für Informatiker, Spektrum Fitting: First-Order Logic and Automated Theorem Proving, Springer 1 Last time 1.1 Syntax

More information

Deliberative Agents Knowledge Representation I. Deliberative Agents

Deliberative Agents Knowledge Representation I. Deliberative Agents Deliberative Agents Knowledge Representation I Vasant Honavar Bioinformatics and Computational Biology Program Center for Computational Intelligence, Learning, & Discovery honavar@cs.iastate.edu www.cs.iastate.edu/~honavar/

More information

Part 1: Propositional Logic

Part 1: Propositional Logic Part 1: Propositional Logic Literature (also for first-order logic) Schöning: Logik für Informatiker, Spektrum Fitting: First-Order Logic and Automated Theorem Proving, Springer 1 Last time 1.1 Syntax

More information

Propositional Logic: Methods of Proof. Chapter 7, Part II

Propositional Logic: Methods of Proof. Chapter 7, Part II Propositional Logic: Methods of Proof Chapter 7, Part II Inference in Formal Symbol Systems: Ontology, Representation, ti Inference Formal Symbol Systems Symbols correspond to things/ideas in the world

More information

Propositional Logic: Methods of Proof (Part II)

Propositional Logic: Methods of Proof (Part II) Propositional Logic: Methods of Proof (Part II) You will be expected to know Basic definitions Inference, derive, sound, complete Conjunctive Normal Form (CNF) Convert a Boolean formula to CNF Do a short

More information

Propositional Reasoning

Propositional Reasoning Propositional Reasoning CS 440 / ECE 448 Introduction to Artificial Intelligence Instructor: Eyal Amir Grad TAs: Wen Pu, Yonatan Bisk Undergrad TAs: Sam Johnson, Nikhil Johri Spring 2010 Intro to AI (CS

More information

Logical Agents. Chapter 7

Logical Agents. Chapter 7 Logical Agents Chapter 7 Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem

More information

CS 771 Artificial Intelligence. Propositional Logic

CS 771 Artificial Intelligence. Propositional Logic CS 771 Artificial Intelligence Propositional Logic Why Do We Need Logic? Problem-solving agents were very inflexible hard code every possible state E.g., in the transition of 8-puzzle problem, knowledge

More information

Tutorial 1: Modern SMT Solvers and Verification

Tutorial 1: Modern SMT Solvers and Verification University of Illinois at Urbana-Champaign Tutorial 1: Modern SMT Solvers and Verification Sayan Mitra Electrical & Computer Engineering Coordinated Science Laboratory University of Illinois at Urbana

More information

Solvers for the Problem of Boolean Satisfiability (SAT) Will Klieber Aug 31, 2011

Solvers for the Problem of Boolean Satisfiability (SAT) Will Klieber Aug 31, 2011 Solvers for the Problem of Boolean Satisfiability (SAT) Will Klieber 15-414 Aug 31, 2011 Why study SAT solvers? Many problems reduce to SAT. Formal verification CAD, VLSI Optimization AI, planning, automated

More information

Lecture 2 Propositional Logic & SAT

Lecture 2 Propositional Logic & SAT CS 5110/6110 Rigorous System Design Spring 2017 Jan-17 Lecture 2 Propositional Logic & SAT Zvonimir Rakamarić University of Utah Announcements Homework 1 will be posted soon Propositional logic: Chapter

More information

Price: $25 (incl. T-Shirt, morning tea and lunch) Visit:

Price: $25 (incl. T-Shirt, morning tea and lunch) Visit: Three days of interesting talks & workshops from industry experts across Australia Explore new computing topics Network with students & employers in Brisbane Price: $25 (incl. T-Shirt, morning tea and

More information

Notes. Corneliu Popeea. May 3, 2013

Notes. Corneliu Popeea. May 3, 2013 Notes Corneliu Popeea May 3, 2013 1 Propositional logic Syntax We rely on a set of atomic propositions, AP, containing atoms like p, q. A propositional logic formula φ Formula is then defined by the following

More information

Artificial Intelligence Chapter 7: Logical Agents

Artificial Intelligence Chapter 7: Logical Agents Artificial Intelligence Chapter 7: Logical Agents Michael Scherger Department of Computer Science Kent State University February 20, 2006 AI: Chapter 7: Logical Agents 1 Contents Knowledge Based Agents

More information

Propositional Logic. Methods & Tools for Software Engineering (MTSE) Fall Prof. Arie Gurfinkel

Propositional Logic. Methods & Tools for Software Engineering (MTSE) Fall Prof. Arie Gurfinkel Propositional Logic Methods & Tools for Software Engineering (MTSE) Fall 2017 Prof. Arie Gurfinkel References Chpater 1 of Logic for Computer Scientists http://www.springerlink.com/content/978-0-8176-4762-9/

More information

LOGIC PROPOSITIONAL REASONING

LOGIC PROPOSITIONAL REASONING LOGIC PROPOSITIONAL REASONING WS 2017/2018 (342.208) Armin Biere Martina Seidl biere@jku.at martina.seidl@jku.at Institute for Formal Models and Verification Johannes Kepler Universität Linz Version 2018.1

More information

7. Logical Agents. COMP9414/ 9814/ 3411: Artificial Intelligence. Outline. Knowledge base. Models and Planning. Russell & Norvig, Chapter 7.

7. Logical Agents. COMP9414/ 9814/ 3411: Artificial Intelligence. Outline. Knowledge base. Models and Planning. Russell & Norvig, Chapter 7. COMP944/984/34 6s Logic COMP944/ 984/ 34: rtificial Intelligence 7. Logical gents Outline Knowledge-based agents Wumpus world Russell & Norvig, Chapter 7. Logic in general models and entailment Propositional

More information

Propositional Logic: Evaluating the Formulas

Propositional Logic: Evaluating the Formulas Institute for Formal Models and Verification Johannes Kepler University Linz VL Logik (LVA-Nr. 342208) Winter Semester 2015/2016 Propositional Logic: Evaluating the Formulas Version 2015.2 Armin Biere

More information

Propositional inference, propositional agents

Propositional inference, propositional agents ropositional inference, propositional agents Chapter 7.5 7.7 Chapter 7.5 7.7 1 Outline Inference rules and theorem proving forward chaining backward chaining resolution Efficient model checking algorithms

More information

Revised by Hankui Zhuo, March 21, Logical agents. Chapter 7. Chapter 7 1

Revised by Hankui Zhuo, March 21, Logical agents. Chapter 7. Chapter 7 1 Revised by Hankui Zhuo, March, 08 Logical agents Chapter 7 Chapter 7 Outline Wumpus world Logic in general models and entailment Propositional (oolean) logic Equivalence, validity, satisfiability Inference

More information

Self-assessment due: Monday 3/18/2019 at 11:59pm (submit via Gradescope)

Self-assessment due: Monday 3/18/2019 at 11:59pm (submit via Gradescope) CS 188 Spring 2019 Introduction to Artificial Intelligence Written HW 6 Sol. Self-assessment due: Monday 3/18/2019 at 11:59pm (submit via Gradescope) Instructions for self-assessment: Take your original

More information

Last update: March 4, Logical agents. CMSC 421: Chapter 7. CMSC 421: Chapter 7 1

Last update: March 4, Logical agents. CMSC 421: Chapter 7. CMSC 421: Chapter 7 1 Last update: March 4, 00 Logical agents CMSC 4: Chapter 7 CMSC 4: Chapter 7 Outline Knowledge-based agents Wumpus world Logic in general models and entailment Propositional (oolean) logic Equivalence,

More information

Logic in AI Chapter 7. Mausam (Based on slides of Dan Weld, Stuart Russell, Subbarao Kambhampati, Dieter Fox, Henry Kautz )

Logic in AI Chapter 7. Mausam (Based on slides of Dan Weld, Stuart Russell, Subbarao Kambhampati, Dieter Fox, Henry Kautz ) Logic in AI Chapter 7 Mausam (Based on slides of Dan Weld, Stuart Russell, Subbarao Kambhampati, Dieter Fox, Henry Kautz ) 2 Knowledge Representation represent knowledge about the world in a manner that

More information

Computational Logic. Davide Martinenghi. Spring Free University of Bozen-Bolzano. Computational Logic Davide Martinenghi (1/30)

Computational Logic. Davide Martinenghi. Spring Free University of Bozen-Bolzano. Computational Logic Davide Martinenghi (1/30) Computational Logic Davide Martinenghi Free University of Bozen-Bolzano Spring 2010 Computational Logic Davide Martinenghi (1/30) Propositional Logic - sequent calculus To overcome the problems of natural

More information

Lecture 6: Knowledge 1

Lecture 6: Knowledge 1 rtificial Intelligence, CS, Nanjing University Spring, 08, Yang Yu Lecture 6: Knowledge http://cs.nju.edu.cn/yuy/course_ai8.ash Previously... Basic ability: search Path-based search Iterative-improvement

More information

Logical Inference. Artificial Intelligence. Topic 12. Reading: Russell and Norvig, Chapter 7, Section 5

Logical Inference. Artificial Intelligence. Topic 12. Reading: Russell and Norvig, Chapter 7, Section 5 rtificial Intelligence Topic 12 Logical Inference Reading: Russell and Norvig, Chapter 7, Section 5 c Cara MacNish. Includes material c S. Russell & P. Norvig 1995,2003 with permission. CITS4211 Logical

More information

WHAT IS AN SMT SOLVER? Jaeheon Yi - April 17, 2008

WHAT IS AN SMT SOLVER? Jaeheon Yi - April 17, 2008 WHAT IS AN SMT SOLVER? Jaeheon Yi - April 17, 2008 WHAT I LL TALK ABOUT Propositional Logic Terminology, Satisfiability, Decision Procedure First-Order Logic Terminology, Background Theories Satisfiability

More information

Lecture 7: Logical Agents and Propositional Logic

Lecture 7: Logical Agents and Propositional Logic Lecture 7: Logical Agents and Propositional Logic CS 580 (001) - Spring 2018 Amarda Shehu Department of Computer Science George Mason University, Fairfax, VA, USA March 07, 2018 Amarda Shehu (580) 1 1

More information

Introduction to Artificial Intelligence. Logical Agents

Introduction to Artificial Intelligence. Logical Agents Introduction to Artificial Intelligence Logical Agents (Logic, Deduction, Knowledge Representation) Bernhard Beckert UNIVERSITÄT KOBLENZ-LANDAU Winter Term 2004/2005 B. Beckert: KI für IM p.1 Outline Knowledge-based

More information

CSCI.6962/4962 Software Verification Fundamental Proof Methods in Computer Science (Arkoudas and Musser) Chapter p. 1/33

CSCI.6962/4962 Software Verification Fundamental Proof Methods in Computer Science (Arkoudas and Musser) Chapter p. 1/33 CSCI.6962/4962 Software Verification Fundamental Proof Methods in Computer Science (Arkoudas and Musser) Chapter 4.1-4.8 p. 1/33 CSCI.6962/4962 Software Verification Fundamental Proof Methods in Computer

More information

CS 188: Artificial Intelligence Spring 2007

CS 188: Artificial Intelligence Spring 2007 CS 188: Artificial Intelligence Spring 2007 Lecture 8: Logical Agents - I 2/8/2007 Srini Narayanan ICSI and UC Berkeley Many slides over the course adapted from Dan Klein, Stuart Russell or Andrew Moore

More information

Inf2D 06: Logical Agents: Knowledge Bases and the Wumpus World

Inf2D 06: Logical Agents: Knowledge Bases and the Wumpus World Inf2D 06: Logical Agents: Knowledge Bases and the Wumpus World School of Informatics, University of Edinburgh 26/01/18 Slide Credits: Jacques Fleuriot, Michael Rovatsos, Michael Herrmann Outline Knowledge-based

More information

Propositional Logic: Methods of Proof (Part II)

Propositional Logic: Methods of Proof (Part II) Propositional Logic: Methods of Proof (Part II) You will be expected to know Basic definitions Inference, derive, sound, complete Conjunctive Normal Form (CNF) Convert a Boolean formula to CNF Do a short

More information

Logic in AI Chapter 7. Mausam (Based on slides of Dan Weld, Stuart Russell, Dieter Fox, Henry Kautz )

Logic in AI Chapter 7. Mausam (Based on slides of Dan Weld, Stuart Russell, Dieter Fox, Henry Kautz ) Logic in AI Chapter 7 Mausam (Based on slides of Dan Weld, Stuart Russell, Dieter Fox, Henry Kautz ) Knowledge Representation represent knowledge in a manner that facilitates inferencing (i.e. drawing

More information

Logic and Inferences

Logic and Inferences Artificial Intelligence Logic and Inferences Readings: Chapter 7 of Russell & Norvig. Artificial Intelligence p.1/34 Components of Propositional Logic Logic constants: True (1), and False (0) Propositional

More information

Chapter 7 Propositional Satisfiability Techniques

Chapter 7 Propositional Satisfiability Techniques Lecture slides for Automated Planning: Theory and Practice Chapter 7 Propositional Satisfiability Techniques Dana S. Nau CMSC 722, AI Planning University of Maryland, Spring 2008 1 Motivation Propositional

More information

Foundations of Artificial Intelligence

Foundations of Artificial Intelligence Foundations of Artificial Intelligence 8. Satisfiability and Model Construction Davis-Putnam-Logemann-Loveland Procedure, Phase Transitions, GSAT Joschka Boedecker and Wolfram Burgard and Bernhard Nebel

More information

Advanced Topics in LP and FP

Advanced Topics in LP and FP Lecture 1: Prolog and Summary of this lecture 1 Introduction to Prolog 2 3 Truth value evaluation 4 Prolog Logic programming language Introduction to Prolog Introduced in the 1970s Program = collection

More information

Solving SAT Modulo Theories

Solving SAT Modulo Theories Solving SAT Modulo Theories R. Nieuwenhuis, A. Oliveras, and C.Tinelli. Solving SAT and SAT Modulo Theories: from an Abstract Davis-Putnam-Logemann-Loveland Procedure to DPLL(T) Mooly Sagiv Motivation

More information

Satisfiability Modulo Theories

Satisfiability Modulo Theories Satisfiability Modulo Theories Summer School on Formal Methods Menlo College, 2011 Bruno Dutertre and Leonardo de Moura bruno@csl.sri.com, leonardo@microsoft.com SRI International, Microsoft Research SAT/SMT

More information

Propositional logic. Programming and Modal Logic

Propositional logic. Programming and Modal Logic Propositional logic Programming and Modal Logic 2006-2007 4 Contents Syntax of propositional logic Semantics of propositional logic Semantic entailment Natural deduction proof system Soundness and completeness

More information

Sums of Products. Pasi Rastas November 15, 2005

Sums of Products. Pasi Rastas November 15, 2005 Sums of Products Pasi Rastas November 15, 2005 1 Introduction This presentation is mainly based on 1. Bacchus, Dalmao and Pitassi : Algorithms and Complexity results for #SAT and Bayesian inference 2.

More information

Topics in Model-Based Reasoning

Topics in Model-Based Reasoning Towards Integration of Proving and Solving Dipartimento di Informatica Università degli Studi di Verona Verona, Italy March, 2014 Automated reasoning Artificial Intelligence Automated Reasoning Computational

More information

Introduction to Intelligent Systems

Introduction to Intelligent Systems Logical Agents Objectives Inference and entailment Sound and complete inference algorithms Inference by model checking Inference by proof Resolution Forward and backward chaining Reference Russel/Norvig:

More information

Introduction to Intelligent Systems

Introduction to Intelligent Systems Logical Agents Objectives Inference and entailment Sound and complete inference algorithms Inference by model checking Inference by proof Resolution Forward and backward chaining Reference Russel/Norvig:

More information

Planning as Satisfiability

Planning as Satisfiability Planning as Satisfiability Alan Fern * Review of propositional logic (see chapter 7) Planning as propositional satisfiability Satisfiability techniques (see chapter 7) Combining satisfiability techniques

More information

Today s Lecture. Lecture 4: Formal SE. Some Important Points. Formal Software Engineering. Introduction to Formal Software Engineering

Today s Lecture. Lecture 4: Formal SE. Some Important Points. Formal Software Engineering. Introduction to Formal Software Engineering Today s Lecture Lecture 4: Formal SE Introduction to Formal Software Engineering Discuss Models Discuss Formal Notations Kenneth M. Anderson Foundations of Software Engineering CSCI 5828 - Spring Semester,

More information

Propositional and Predicate Logic - V

Propositional and Predicate Logic - V Propositional and Predicate Logic - V Petr Gregor KTIML MFF UK WS 2016/2017 Petr Gregor (KTIML MFF UK) Propositional and Predicate Logic - V WS 2016/2017 1 / 21 Formal proof systems Hilbert s calculus

More information

Kecerdasan Buatan M. Ali Fauzi

Kecerdasan Buatan M. Ali Fauzi Kecerdasan Buatan M. Ali Fauzi Artificial Intelligence M. Ali Fauzi Logical Agents M. Ali Fauzi In which we design agents that can form representations of the would, use a process of inference to derive

More information

Logical Agents. Outline

Logical Agents. Outline ogical gents Chapter 6, Ie Chapter 7 Outline Knowledge-based agents Wumpus world ogic in general models and entailment ropositional (oolean) logic Equivalence, validity, satisfiability Inference rules

More information

From SAT To SMT: Part 1. Vijay Ganesh MIT

From SAT To SMT: Part 1. Vijay Ganesh MIT From SAT To SMT: Part 1 Vijay Ganesh MIT Software Engineering & SMT Solvers An Indispensable Tactic for Any Strategy Formal Methods Program Analysis SE Goal: Reliable/Secure Software Automatic Testing

More information

Propositional and Predicate Logic. jean/gbooks/logic.html

Propositional and Predicate Logic.   jean/gbooks/logic.html CMSC 630 February 10, 2009 1 Propositional and Predicate Logic Sources J. Gallier. Logic for Computer Science, John Wiley and Sons, Hoboken NJ, 1986. 2003 revised edition available on line at http://www.cis.upenn.edu/

More information

Logical Agents: Propositional Logic. Chapter 7

Logical Agents: Propositional Logic. Chapter 7 Logical Agents: Propositional Logic Chapter 7 Outline Topics: Knowledge-based agents Example domain: The Wumpus World Logic in general models and entailment Propositional (Boolean) logic Equivalence, validity,

More information

Automated Program Verification and Testing 15414/15614 Fall 2016 Lecture 3: Practical SAT Solving

Automated Program Verification and Testing 15414/15614 Fall 2016 Lecture 3: Practical SAT Solving Automated Program Verification and Testing 15414/15614 Fall 2016 Lecture 3: Practical SAT Solving Matt Fredrikson mfredrik@cs.cmu.edu October 17, 2016 Matt Fredrikson SAT Solving 1 / 36 Review: Propositional

More information

First-Order Logic First-Order Theories. Roopsha Samanta. Partly based on slides by Aaron Bradley and Isil Dillig

First-Order Logic First-Order Theories. Roopsha Samanta. Partly based on slides by Aaron Bradley and Isil Dillig First-Order Logic First-Order Theories Roopsha Samanta Partly based on slides by Aaron Bradley and Isil Dillig Roadmap Review: propositional logic Syntax and semantics of first-order logic (FOL) Semantic

More information

AI Programming CS S-09 Knowledge Representation

AI Programming CS S-09 Knowledge Representation AI Programming CS662-2013S-09 Knowledge Representation David Galles Department of Computer Science University of San Francisco 09-0: Overview So far, we ve talked about search, which is a means of considering

More information

Mathematical Logic Part Three

Mathematical Logic Part Three Mathematical Logic Part hree riday our Square! oday at 4:15PM, Outside Gates Announcements Problem Set 3 due right now. Problem Set 4 goes out today. Checkpoint due Monday, October 22. Remainder due riday,

More information

Complexity (Pre Lecture)

Complexity (Pre Lecture) Complexity (Pre Lecture) Dr. Neil T. Dantam CSCI-561, Colorado School of Mines Fall 2018 Dantam (Mines CSCI-561) Complexity (Pre Lecture) Fall 2018 1 / 70 Why? What can we always compute efficiently? What

More information

Classical Propositional Logic

Classical Propositional Logic Classical Propositional Logic Peter Baumgartner http://users.cecs.anu.edu.au/~baumgart/ Ph: 02 6218 3717 Data61/CSIRO and ANU July 2017 1 / 71 Classical Logic and Reasoning Problems A 1 : Socrates is a

More information

COMP3702/7702 Artificial Intelligence Week 5: Search in Continuous Space with an Application in Motion Planning " Hanna Kurniawati"

COMP3702/7702 Artificial Intelligence Week 5: Search in Continuous Space with an Application in Motion Planning  Hanna Kurniawati COMP3702/7702 Artificial Intelligence Week 5: Search in Continuous Space with an Application in Motion Planning " Hanna Kurniawati" Last week" Main components of PRM" Collision check for a configuration"

More information

Logical Agents. Soleymani. Artificial Intelligence: A Modern Approach, 3 rd Edition, Chapter 7

Logical Agents. Soleymani. Artificial Intelligence: A Modern Approach, 3 rd Edition, Chapter 7 Logical Agents CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2016 Soleymani Artificial Intelligence: A Modern Approach, 3 rd Edition, Chapter 7 Knowledge-based agents

More information

Chapter 4: Classical Propositional Semantics

Chapter 4: Classical Propositional Semantics Chapter 4: Classical Propositional Semantics Language : L {,,, }. Classical Semantics assumptions: TWO VALUES: there are only two logical values: truth (T) and false (F), and EXTENSIONALITY: the logical

More information

CSE507. Introduction. Computer-Aided Reasoning for Software. Emina Torlak courses.cs.washington.edu/courses/cse507/17wi/

CSE507. Introduction. Computer-Aided Reasoning for Software. Emina Torlak courses.cs.washington.edu/courses/cse507/17wi/ Computer-Aided Reasoning for Software CSE507 courses.cs.washington.edu/courses/cse507/17wi/ Introduction Emina Torlak emina@cs.washington.edu Today What is this course about? Course logistics Review of

More information

A brief introduction to Logic. (slides from

A brief introduction to Logic. (slides from A brief introduction to Logic (slides from http://www.decision-procedures.org/) 1 A Brief Introduction to Logic - Outline Propositional Logic :Syntax Propositional Logic :Semantics Satisfiability and validity

More information

Warm-Up Problem. Is the following true or false? 1/35

Warm-Up Problem. Is the following true or false? 1/35 Warm-Up Problem Is the following true or false? 1/35 Propositional Logic: Resolution Carmen Bruni Lecture 6 Based on work by J Buss, A Gao, L Kari, A Lubiw, B Bonakdarpour, D Maftuleac, C Roberts, R Trefler,

More information

Propositional Calculus: Formula Simplification, Essential Laws, Normal Forms

Propositional Calculus: Formula Simplification, Essential Laws, Normal Forms P Formula Simplification, Essential Laws, Normal Forms Lila Kari University of Waterloo P Formula Simplification, Essential Laws, Normal CS245, Forms Logic and Computation 1 / 26 Propositional calculus

More information

Decision Procedures for Satisfiability and Validity in Propositional Logic

Decision Procedures for Satisfiability and Validity in Propositional Logic Decision Procedures for Satisfiability and Validity in Propositional Logic Meghdad Ghari Institute for Research in Fundamental Sciences (IPM) School of Mathematics-Isfahan Branch Logic Group http://math.ipm.ac.ir/isfahan/logic-group.htm

More information

Propositional Resolution

Propositional Resolution Computational Logic Lecture 4 Propositional Resolution Michael Genesereth Spring 2005 Stanford University Modified by Charles Ling and TA, for CS2209 Use with permission Propositional Resolution Propositional

More information