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

Size: px
Start display at page:

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

Transcription

1 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) (Pre Lecture) Fall / 44

2 Outline Introduction to Planning Planning Domains First Order Logic Planning Domain Description Language Planning Algorithms Naïve Search Heuristic Search Constraint-Based Planning Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

3 Why? Foreshadows/applies the Cook-Levin Theorem Directly connects SAT with transition systems (languages and automata) Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

4 Introduction to Planning Outline Introduction to Planning Planning Domains First Order Logic Planning Domain Description Language Planning Algorithms Naïve Search Heuristic Search Constraint-Based Planning Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

5 Introduction to Planning A Planning Problem Illustration Start Goal Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

6 Introduction to Planning Planning Problem Definition State Space: Q = f 0 f 1... f m, for each fluent (state variable) f i Actions: U = {a 0,..., a n } Transitions: δ : Q U Q, where for δ(q 0, a) = q 1, Start: q 0 Q is the initial state Goal: G Q is the set of goal states Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

7 Introduction to Planning Planning vs. DFA Planning Domain DFA State Space: Q = f 0 f 1... f m Actions: U = {a 0,..., a n } Transitions: δ : Q U Q Start: q 0 Q is the initial state Goal: G Q is the set of goal states Q is a finite set call the states Σ is a finite set call the alphabet δ : Q Σ Q is the transition function q 0 Q is the start state F Q is the set of accept states What s different? Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

8 Planning Domains Outline Introduction to Planning Planning Domains First Order Logic Planning Domain Description Language Planning Algorithms Naïve Search Heuristic Search Constraint-Based Planning Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

9 Planning Domains First Order Logic First Order Logic aka Predicate Calculus Propositional Logic plus... Objects: instead of just Boolean values, Finite set of values Enumerated type Predicates: Function from objects to Booleans P : O... O B Functions: Function from objects to objects F : O... O O Quantifiers: express properties on collections Universal: all items have the property Existential: at least one item has the property Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

10 Planning Domains First Order Logic Logical Predicate Boolean-valued function N-ary arguments f : O... O B Examples: English Logic x is happy happy (x) The suitcase contains a bomb. contains (suitcase, bomb) x is less than y. less (x, y) Formal way of stating facts. Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

11 Planning Domains First Order Logic Exercise: Logical Predicates Material Properties Objects: {wood, glass, steel} Predicates: Statements: transparent (?x) flammable (?x) denser (?x,?y) transparent (wood) = transparent (glass) = transparent (steel) = flammable (wood) = flammable (glass) = flammable (steel) = denser (wood, glass) = denser (glass, wood) = denser (glass, steel) = Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

12 Planning Domains First Order Logic Grammar for First Order Logic (excluding quantifiers) Sentence AtomicSentence Sentence Connective Sentence [(] Sentence [)] [ ] Sentence AtomicSentence Predicate [(] TermList [)] Connective [ ] [ ] [ = ] [ ] TermList Term Term [,] TermList Term Constant Variable Predicate [A] [B]... Constant [a] [b]... Variable [?x] [?y]... Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

13 Planning Domains First Order Logic First-Order Logic Description Constants: A, B, C C Predicates: on (?x,?y) clear (?x) ontable (?x) B A State: clear (B) clear (C) ontable (B) ontable (A) on (C, A) Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

14 Planning Domains First Order Logic First Order vs. Propositional Logic Every sentence in first-order logic can be converted into an equivalent sentence in propositional logic (modulo functions) Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

15 Planning Domains First Order Logic Example: Reduction to Propositional Logic (Grounding) Objects: {glass, steel} Predicates: Propositions: transparent (?x) denser (?x,?y) FOL predicate proposition {}}{{}}{ transparent (glass) transparent-glass transparent (steel) transparent-steel denser (glass, steel) denser-glass-steel denser (glass, glass) denser-glass-glass denser (steel, glass) denser-steel-glass denser (steel, steel) denser-steel-steel Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

16 Planning Domains First Order Logic Exercise: Grounding Constants: A, B, C Predicate: clear (?x), ontable (?x), and on (?x,?y) Propositions: Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

17 Planning Domains Planning Domain Description Language A Planning Problem Start B Start C A Goal A B C Goal ontable (b) on (c, a) ontable (a) handempty () ontable (c) on (b, c) on (a, b) Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

18 Planning Domains Planning Domain Description Language Example: Actions / Operators Name: pickup-up Parameters:?x Precondition: clear (?x) ontable (?x) handempty () Effect: ontable (?x) clear (?x) handempty () holding (?x) B B C A pick-up (B) C A ontable (B) ontable (A) on (C, A) clear (B) clear (C) handempty () ontable (B) handempty () clear (B) holding (B) Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

19 Planning Domains Planning Domain Description Language Exercise: Actions / Operators Name: unstack Parameters:?x,?y Precondition: on (?x,?y) clear (?x) handempty () Effect: holding (?x) clear (?y) clear (?x) handempty () on (?x,?y) C B C A unstack (C, A) B A ontable (B) ontable (A) on (C, A) clear (B) clear (C) handempty () Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

20 Planning Domains Planning Domain Description Language Task Language pick-up (B) B C A B B C A put-down (B) unstack (C, A) pick-up (B) A C stack (C, A) B C A put-down (C) pick-up (C) B A C put-down (B)... Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

21 Planning Domains Planning Domain Description Language Planning Domain Definition Language (PDDL) PDDL: S-Expression based format for planning domains Operators File: Defines the predicates and actions Facts File: Defines the objects (constants), start state, and goal Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

22 Planning Domains Planning Domain Description Language Planning Domain Definition Language Operators ( d e f i n e ( domain b l o c k s ) ( : p r e d i c a t e s ( on? x? y ) ( o n t a b l e? x ) ( c l e a r? x ) ( handempty ) ( h o l d i n g? x ) ) ( : a c t i o n pick up : parameters (? x ) : p r e c o n d i t i o n ( and ( c l e a r? x ) ( o n t a b l e? x ) ( handempty ) ) : e f f e c t ( and ( not ( o n t a b l e? x ) ) ( not ( c l e a r? x ) ) ( not ( handempty ) ) ( h o l d i n g? x ) ) ) ( : a c t i o n put down : parameters (? x ) : p r e c o n d i t i o n ( h o l d i n g? x ) : e f f e c t ( and ( not ( h o l d i n g? x ) ) ( c l e a r? x ) ( handempty ) ( o n t a b l e? x ) ) ) ( : a c t i o n s t a c k : parameters (? x? y ) : p r e c o n d i t i o n ( and ( h o l d i n g? x ) ( c l e a r? y ) ) : e f f e c t ( and ( not ( h o l d i n g? x ) ) ( not ( c l e a r? y ) ) ( c l e a r? x ) ( handempty ) ( on? x? y ) ) ) ( : a c t i o n u n s t a c k : parameters (? x? y ) : p r e c o n d i t i o n ( and ( on? x? y ) ( c l e a r? x ) ( handempty ) ) : e f f e c t ( and ( h o l d i n g? x ) ( c l e a r? y ) ( not ( c l e a r? x ) ) ( not ( handempty ) ) ( not ( on? x? y ) ) ) ) ) Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

23 Planning Domains Planning Domain Description Language Planning Domain Definition Language Facts Start ( d e f i n e ( problem sussman anomaly ) ( : domain b l o c k s ) ( : o b j e c t s a b c ) ( : i n i t ( on c a ) ( o n t a b l e a ) ( o n t a b l e b ) ( c l e a r c ) ( c l e a r b ) ( handempty ) ) ( : g o a l ( and ( on b c ) ( on a b ) ) ) ) C B A Goal A B C Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

24 Planning Algorithms Outline Introduction to Planning Planning Domains First Order Logic Planning Domain Description Language Planning Algorithms Naïve Search Heuristic Search Constraint-Based Planning Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

25 Planning Algorithms Naïve Search Explicit Automaton Construction 54A (MOVE B C G) (MOVE B G C) 64E start (MOVE C A B) (MOVE C B A) (MOVE C G B) (MOVE C A G) (MOVE C B G) (MOVE C G A) 124F (MOVE A G C) A4D 122B (MOVE A C G) (MOVE A G C) (MOVE B G A) (MOVE B A G) 10AA (MOVE A B C) A29 (MOVE A C G) (MOVE A C B) (MOVE A B G) 121D (MOVE C G A) (MOVE A G B) (MOVE C A G) 61C C B A Start A B C Goal (MOVE B C G) (MOVE B G C) (MOVE B A G) (MOVE A G B) (MOVE B C A) 114B (MOVE A B G) 1119 (MOVE B G A) 10CE (MOVE B A C) (MOVE C B G) (MOVE C G B) 8CC Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

26 Planning Algorithms Naïve Search Breadth-First Search q 1 q 0 q 1,1 q 1,2... q 1,n q 2... q n Is it complete? (always solves/terminates) Is it optimal? (finds best solution) Issues with BFS? Search Queue: q 2,1, q 2,2,..., q 2,m2, q 3,1, q 3,2,..., q 3,m3,..., q n,1, q n,2,..., q n,mn q 1,1,1, q 1,1,2,... Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

27 Planning Algorithms Heuristic Search A* Search q 0 q 1 q 2... q n Low Cost High Cost Priority Queue q i q j... q l Need: heuristic cost-to-go Is it optimal? Admissible heuristic: Never over-estimate cost A* vs. Djikstra s Algorithm: Djikstra: Exact cost-to-state A*: Exact cost-to-state plus heuristic cost-to-go Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

28 Planning Algorithms Heuristic Search Greedy Heuristic Search Give up on optimality Greedy Search: Expand best node according to (non-admissible) heuristic Pro: easier / faster non-admissable heuristic Con: No longer optimal Fast Forward (FF): Hoffmann, Jörg, and Bernhard Nebel. The FF planning system: Fast plan generation through heuristic search. Journal of Artificial Intelligence Research (2001). Fast Downward (FD): M. Helmert, The fast downward planning system. Journal of Artificial Intelligence Research (2006). Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

29 Planning Algorithms Constraint-Based Planning Satisfiability 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 Modern DPLL solvers are effective. Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

30 Planning Algorithms Constraint-Based Planning Planning as Boolean Satisfiability 1. Ground first-order logic domain (PDDL) to propositional logic 2. Encode planning problem as Boolean formula: Unroll for fixed steps, n. One Boolean variable per state/action per step 3. If SAT: return action variable assignments 4. Else: increment n and repeat Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

31 Planning Algorithms Constraint-Based Planning Example: State Variable Unrolling First-Order Logic Objects: A, B, C Predicate: ontable (?x) Propositional Logic ontable-a ontable-b ontable-c Unrolled For n = 3: ontable-a-0 ontable-b-0 ontable-c-0 ontable-a-1 ontable-b-1 ontable-c-1 ontable-a-2 ontable-b-2 ontable-c-2 Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

32 Planning Algorithms Constraint-Based Planning Example: Action Variable Unrolling First-Order Logic Objects: A, B, C Predicate: pick-up (?x) Propositional Logic pick-up-a pick-up-b pick-up-c Unrolled For n = 3: pick-up-a-0 pick-up-b-0 pick-up-c-0 pick-up-a-1 pick-up-b-1 pick-up-c-1 pick-up-a-2 pick-up-b-2 pick-up-c-2 Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

33 Planning Algorithms Constraint-Based Planning Exercise: Unrolling First-Order Logic Objects: A, B Predicate: on (?x,?y) Action: stack (?x,?y) Grounding Unrolled Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

34 Planning Algorithms Constraint-Based Planning SATPlan Start and Goal Start: State state holds at step 0 Goal: Goal expression holds at step n Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

35 Planning Algorithms Constraint-Based Planning Example: Start and Goal PDDL Facts ( d e f i n e ( problem sussman anomaly ) ( : domain b l o c k s ) ( : o b j e c t s a b c ) ( : i n i t ( on c a ) ( o n t a b l e a ) ( o n t a b l e b ) ( c l e a r c ) ( c l e a r b ) ( handempty ) ) ( : g o a l ( and ( on b c ) ( on a b ) ) ) ) Start State on-c-a-0 ontable-a-0 ontable-b-0 clear-c-0 clear-b-0 handempty-0 on-a-a-0 on-a-b-0 on-a-c-0... Goal Unroll for n = 4 on-a-b-4 on-b-c-4 Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

36 Planning Algorithms Constraint-Based Planning Exercise: Start and Goal PDDL Facts ( d e f i n e ( problem sussman anomaly alt ) ( : domain b l o c k s ) ( : o b j e c t s a b c ) ( : i n i t ( o n t a b l e c ) ( o n t a b l e a ) ( on b a ) ( c l e a r c ) ( c l e a r b ) ( handempty ) ) ( : g o a l ( and ( on c b ) ( on b a ) ) ) ) Start State Goal Unroll for n = 4: Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

37 Planning Algorithms Constraint-Based Planning SATPlan Transition Function Operator Encoding: Selected operator s preconditions and effects must hold: precondition at step k effect at step k+1 {}}{{}}{ o [k] i = pre(o i ) [k] eff(o i ) [k+1] Operator Exclusion: One operator per step: o i [k] = ( o 0 [k] o (i 1) [k] o (i+1) [k] o m [k] ) Frame Axioms: Each proposition p is unchanged unless set by an effect: operators changing p {}}{ ( p [k] = p [k+1]) (o ) [k] [k] j... o l Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

38 Planning Algorithms Constraint-Based Planning Example: Operator Encoding pick-up-a-0 pick-up-a-0 ( : a c t i o n pick up : parameters (? x ) : p r e c o n d i t i o n ( and ( c l e a r? x ) ( o n t a b l e? x ) ( handempty ) ) : e f f e c t ( and ( not ( o n t a b l e? x ) ) ( not ( c l e a r? x ) ) ( not ( handempty ) ) ( h o l d i n g? x ) ) ) pick-up-a-0 = ( clear-a-0 ontable-a-0 handempty-0 ontable-a-1 clear-a-1 handempty-1 ) holding-a-1 Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

39 Planning Algorithms Constraint-Based Planning Example: Operator Exclusion pick-up-a-0 ( d e f i n e ( domain b l o c k s ) ( : p r e d i c a t e s ( o n t a b l e? x ) ( c l e a r? x ) ( handempty ) ( h o l d i n g? x ) ) ( : a c t i o n pick up : parameters (? x ) : p r e c o n d i t i o n ( and ( c l e a r? x ) ( o n t a b l e? x ) ( handempty ) ) : e f f e c t ( and ( not ( o n t a b l e? x ) ) ( not ( c l e a r? x ) ) ( not ( handempty ) ) ( h o l d i n g? x ) ) ) ( : a c t i o n put down : parameters (? x ) : p r e c o n d i t i o n ( h o l d i n g? x ) : e f f e c t ( and ( not ( h o l d i n g? x ) ) ( c l e a r? x ) ( handempty ) ( o n t a b l e? x ) ) ) ) o i [k] = ( o 0 [k] o (i 1) [k] o (i+1) [k] o m [k] ) pick-up-a-0 = ( pick-up-b-0 pick-up-c-0 put-down-a-0 put-down-b-0 put-down-c-0) Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

40 Planning Algorithms Constraint-Based Planning Example: Frame Axioms ontable-a-0 ( d e f i n e ( domain b l o c k s ) ( : p r e d i c a t e s ( o n t a b l e? x ) ( c l e a r? x ) ( handempty ) ( h o l d i n g? x ) ) ( : a c t i o n pick up : parameters (? x ) : p r e c o n d i t i o n ( and ( c l e a r? x ) ( o n t a b l e? x ) ( handempty ) ) : e f f e c t ( and ( not ( o n t a b l e? x ) ) ( not ( c l e a r? x ) ) ( not ( handempty ) ) ( h o l d i n g? x ) ) ) ( : a c t i o n put down : parameters (? x ) : p r e c o n d i t i o n ( h o l d i n g? x ) : e f f e c t ( and ( not ( h o l d i n g? x ) ) ( c l e a r? x ) ( handempty ) ( o n t a b l e? x ) ) ) ) ( p [k] = p [k+1]) (o j [k]... o l [k] ) (ontable-a-0 = ontable-a-1) pick-up-a-0 put-down-a-0 Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

41 Planning Algorithms Constraint-Based Planning Exercise: Transition Function (1/3) Operator Encoding for put-down-b-1 put-down-b-1 ( : a c t i o n put down : parameters (? x ) : p r e c o n d i t i o n ( h o l d i n g? x ) : e f f e c t ( and ( not ( h o l d i n g? x ) ) ( c l e a r? x ) ( handempty ) ( o n t a b l e? x ) ) ) Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

42 Planning Algorithms Constraint-Based Planning Exercise: Transition Function (2/3) Operator Exclusion for put-down-b-1 ( d e f i n e ( domain b l o c k s ) ( : p r e d i c a t e s ( o n t a b l e? x ) ( c l e a r? x ) ( handempty ) ( h o l d i n g? x ) ) ( : a c t i o n pick up : parameters (? x ) : p r e c o n d i t i o n ( and ( c l e a r? x ) ( o n t a b l e? x ) ( handempty ) ) : e f f e c t ( and ( not ( o n t a b l e? x ) ) ( not ( c l e a r? x ) ) ( not ( handempty ) ) ( h o l d i n g? x ) ) ) ( : a c t i o n put down : parameters (? x ) : p r e c o n d i t i o n ( h o l d i n g? x ) : e f f e c t ( and ( not ( h o l d i n g? x ) ) ( c l e a r? x ) ( handempty ) ( o n t a b l e? x ) ) ) ) o i [k] = ( o 0 [k] o (i 1) [k] o (i+1) [k] o m [k] ) Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

43 Planning Algorithms Constraint-Based Planning Exercise: Transition Function (3/3) Frame Axioms for holding-b-0 ( d e f i n e ( domain b l o c k s ) ( : p r e d i c a t e s ( o n t a b l e? x ) ( c l e a r? x ) ( handempty ) ( h o l d i n g? x ) ) ( : a c t i o n pick up : parameters (? x ) : p r e c o n d i t i o n ( and ( c l e a r? x ) ( o n t a b l e? x ) ( handempty ) ) : e f f e c t ( and ( not ( o n t a b l e? x ) ) ( not ( c l e a r? x ) ) ( not ( handempty ) ) ( h o l d i n g? x ) ) ) ( : a c t i o n put down : parameters (? x ) : p r e c o n d i t i o n ( h o l d i n g? x ) : e f f e c t ( and ( not ( h o l d i n g? x ) ) ( c l e a r? x ) ( handempty ) ( o n t a b l e? x ) ) ) ) ( p [k] = p [k+1]) (o j [k]... o l [k] ) Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

44 Planning Algorithms Constraint-Based Planning SATPlan Extensions and Implementations Operator Exclusion: Relax this constraint: o i [k] = ( o 0 [k] o (i 1) [k] o (i+1) [k] o m [k] ) Blackbox: H. Kautz and B. Selman. Unifying SAT-based and graph-based planning. International Joint Conference on Artificial Intelligence Madagascar: J. Rintanen. Madagascar: Scalable planning with SAT. 8th International Planning Competition TMKit: N. Dantam, Z. Kingston, S. Chaudhuri, and L. Kavraki. An Incremental Constraint-Based Framework for Task and Motion Planning. International Journal of Robotics Research Dantam (Mines CSCI-561) Application: Planning as Satisfiability (SATPlan) (Pre Lecture) Fall / 44

Situation Calculus. Dr. Neil T. Dantam. Spring CSCI-498/598 RPM, Colorado School of Mines

Situation Calculus. Dr. Neil T. Dantam. Spring CSCI-498/598 RPM, Colorado School of Mines Situation alculus Dr. Neil T. Dantam SI-498/598 RPM, olorado School of Mines Spring 2018 Dantam (Mines SI, RPM) Situation alculus Spring 2018 1 / 24 Logic and Planning Outline Logic and Planning locksworld

More information

Propositional Calculus

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

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

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

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 University of Maryland 12:58 PM February 15, 2012 1 Motivation Propositional satisfiability:

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

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

Pushdown Automata (Pre Lecture)

Pushdown Automata (Pre Lecture) Pushdown Automata (Pre Lecture) Dr. Neil T. Dantam CSCI-561, Colorado School of Mines Fall 2017 Dantam (Mines CSCI-561) Pushdown Automata (Pre Lecture) Fall 2017 1 / 41 Outline Pushdown Automata Pushdown

More information

Introduction on Situational Calculus

Introduction on Situational Calculus Introduction on Situational Calculus Fangkai Yang Department of Computer Sciences The University of Texas at Austin September 24, 2010 Fangkai Yang (fkyang@cs.utexas.edu) September 24, 2010 1 / 27 Outline

More information

Lecture 1: Logical Foundations

Lecture 1: Logical Foundations Lecture 1: Logical Foundations Zak Kincaid January 13, 2016 Logics have two components: syntax and semantics Syntax: defines the well-formed phrases of the language. given by a formal grammar. Typically

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

Example: Robot Tasks. What is planning? Background: Situation Calculus. Issues in Planning I

Example: Robot Tasks. What is planning? Background: Situation Calculus. Issues in Planning I What is planning? q A plan is any hierarchical process in the organism that can control the order in which a sequence of operations is to be performed. [Miller, Galanter and Pribram 1960] q Planning can

More information

Part of this work we present an extension for Language PP and we show how this

Part of this work we present an extension for Language PP and we show how this Chapter 5 Planning problems Currently, we can find different definitions for Planning. For instance, McCarthy defines planning in [25] as the restricted problem of finding a finite sequence of actions

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

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

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

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

Fast Planning by Search in Domain Transition Graph

Fast Planning by Search in Domain Transition Graph Proceedings of the Twenty-Third AAAI Conference on Artificial Intelligence (28) Fast Planning by Search in Domain Transition Graph Yixin Chen, Ruoyun Huang, and Weixiong Zhang Department of Computer Science

More information

Principles of AI Planning

Principles of AI Planning Principles of 5. Planning as search: progression and regression Malte Helmert and Bernhard Nebel Albert-Ludwigs-Universität Freiburg May 4th, 2010 Planning as (classical) search Introduction Classification

More information

In which we see how an agent can take advantage of the structure of a problem to construct complex plans of action.

In which we see how an agent can take advantage of the structure of a problem to construct complex plans of action. Classical Planning CE417: Introduction to Artificial Intelligence Sharif University of Technology Soleymani In which we see how an agent can take advantage of the structure of a problem to construct complex

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 2018 Soleymani Artificial Intelligence: A Modern Approach, 3 rd Edition, Chapter 7 Wumpus world Wumpus

More information

Principles of AI Planning

Principles of AI Planning Principles of AI Planning 5. Planning as search: progression and regression Albert-Ludwigs-Universität Freiburg Bernhard Nebel and Robert Mattmüller October 30th, 2013 Introduction Classification Planning

More information

A Novel Transition Based Encoding Scheme for Planning as Satisfiability

A Novel Transition Based Encoding Scheme for Planning as Satisfiability A Novel Transition Based Encoding Scheme for Planning as Satisfiability Ruoyun Huang, Yixin Chen, Weixiong Zhang Dept. of Computer Science and Engineering Washington University in St. Louis Saint Louis,

More information

CS 4700: Foundations of Artificial Intelligence

CS 4700: Foundations of Artificial Intelligence CS 4700: Foundations of Artificial Intelligence Bart Selman selman@cs.cornell.edu Module: Knowledge, Reasoning, and Planning Part 2 Logical Agents R&N: Chapter 7 1 Illustrative example: Wumpus World (Somewhat

More information

Lecture 7: Logic and Planning

Lecture 7: Logic and Planning Lecture 7: Logic and Planning Planning and representing knowledge Logic in general Propositional (Boolean) logic and its application to planning COMP-424, Lecture 8 - January 30, 2013 1 What is planning?

More information

Planning: situation calculus

Planning: situation calculus CS 57 Introduction to I Lecture 8 Planning: situation calculus Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square utomated reasoning systems Examples and main differences: Theorem provers Prove sentences

More information

Optimal Metric Planning with State Sets in Automata Representation

Optimal Metric Planning with State Sets in Automata Representation Proceedings of the Twenty-Third AAAI Conference on Artificial Intelligence (2008) Optimal Metric Planning with State Sets in Automata Representation Björn Ulrich Borowsky and Stefan Edelkamp Fakultät für

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

Predicate Calculus lecture 1

Predicate Calculus lecture 1 Predicate Calculus lecture 1 Section 1.3 Limitation of Propositional Logic Consider the following reasoning All cats have tails Gouchi is a cat Therefore, Gouchi has tail. MSU/CSE 260 Fall 2009 1 MSU/CSE

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

Structure and. Inference in. Classical Planning

Structure and. Inference in. Classical Planning Structure and Inference in Classical Planning i Structure and Inference in Classical Planning Nir Lipovetzky Computing and Information Systems The University of Melbourne Published by AI Access AI Access

More information

On Moving Objects in Dynamic Domains

On Moving Objects in Dynamic Domains On Moving Objects in Dynamic Domains Fangzhen Lin Department of Computer Science Hong Kong University of Science and Technology Clear Water Bay, Kowloon, Hong Kong Abstract In the physical world, an object

More information

PROPOSITIONAL LOGIC. VL Logik: WS 2018/19

PROPOSITIONAL LOGIC. VL Logik: WS 2018/19 PROPOSITIONAL LOGIC VL Logik: WS 2018/19 (Version 2018.2) Martina Seidl (martina.seidl@jku.at), Armin Biere (biere@jku.at) Institut für Formale Modelle und Verifikation BOX Game: Rules 1. The game board

More information

Finite Automata. Dr. Neil T. Dantam. Fall CSCI-561, Colorado School of Mines. Dantam (Mines CSCI-561) Finite Automata Fall / 43

Finite Automata. Dr. Neil T. Dantam. Fall CSCI-561, Colorado School of Mines. Dantam (Mines CSCI-561) Finite Automata Fall / 43 Finite Automata Dr. Neil T. Dantam CSCI-561, Colorado School of Mines Fall 2018 Dantam (Mines CSCI-561) Finite Automata Fall 2018 1 / 43 Outline Languages Review Traffic Light Example Deterministic Finite

More information

CSE 105 Homework 1 Due: Monday October 9, Instructions. should be on each page of the submission.

CSE 105 Homework 1 Due: Monday October 9, Instructions. should be on each page of the submission. CSE 5 Homework Due: Monday October 9, 7 Instructions Upload a single file to Gradescope for each group. should be on each page of the submission. All group members names and PIDs Your assignments in this

More information

Context-Free Languages (Pre Lecture)

Context-Free Languages (Pre Lecture) Context-Free Languages (Pre Lecture) Dr. Neil T. Dantam CSCI-561, Colorado School of Mines Fall 2017 Dantam (Mines CSCI-561) Context-Free Languages (Pre Lecture) Fall 2017 1 / 34 Outline Pumping Lemma

More information

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

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

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

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

Incremental Deterministic Planning

Incremental Deterministic Planning Incremental Deterministic Planning Ştefan ANDREI National University of Singapore, School of Computing, E-mail: andrei@comp.nus.edu.sg Martin RINARD MIT, Department of Electrical Engineering and Computer

More information

Reasoning about State Constraints in the Situation Calculus

Reasoning about State Constraints in the Situation Calculus Reasoning about State Constraints in the Situation Calculus Joint work with Naiqi Li and Yi Fan Yongmei Liu Dept. of Computer Science Sun Yat-sen University Guangzhou, China Presented at IRIT June 26,

More information

Inference in first-order logic. Production systems.

Inference in first-order logic. Production systems. CS 1571 Introduction to AI Lecture 17 Inference in first-order logic. Production systems. Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square Sentences in Horn normal form Horn normal form (HNF) in

More information

Logic & Logic Agents Chapter 7 (& background)

Logic & Logic Agents Chapter 7 (& background) Lecture Notes, Advanced Artificial Intelligence (SCOM7341) Sina Institute, University of Birzeit 2 nd Semester, 2012 Advanced Artificial Intelligence (SCOM7341) Logic & Logic Agents Chapter 7 (& background)

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

Intelligent Agents. Formal Characteristics of Planning. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University

Intelligent Agents. Formal Characteristics of Planning. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University Intelligent Agents Formal Characteristics of Planning Ute Schmid Cognitive Systems, Applied Computer Science, Bamberg University Extensions to the slides for chapter 3 of Dana Nau with contributions by

More information

Finite Automata. Dr. Neil T. Dantam. Fall CSCI-561, Colorado School of Mines. Dantam (Mines CSCI-561) Finite Automata Fall / 35

Finite Automata. Dr. Neil T. Dantam. Fall CSCI-561, Colorado School of Mines. Dantam (Mines CSCI-561) Finite Automata Fall / 35 Finite Automata Dr. Neil T. Dantam CSCI-561, Colorado School of Mines Fall 2017 Dantam (Mines CSCI-561) Finite Automata Fall 2017 1 / 35 Outline Dantam (Mines CSCI-561) Finite Automata Fall 2017 2 / 35

More information

Planning Graphs and Propositional Clause-Learning

Planning Graphs and Propositional Clause-Learning Proceedings, Eleventh International Conference on Principles of Knowledge Representation and Reasoning (2008) Planning Graphs and Propositional Clause-Learning Jussi Rintanen NICTA and the Australian National

More information

Introduction to Arti Intelligence

Introduction to Arti Intelligence Introduction to Arti Intelligence cial Lecture 4: Constraint satisfaction problems 1 / 48 Constraint satisfaction problems: Today Exploiting the representation of a state to accelerate search. Backtracking.

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

Fact-Alternating Mutex Groups for Classical Planning (Extended Abstract)

Fact-Alternating Mutex Groups for Classical Planning (Extended Abstract) Fact-Alternating Mutex Groups for Classical Planning (Extended Abstract) Daniel Fišer and Antonín Komenda Department of Computer Science, Faculty of Electrical Engineering, Czech Technical University in

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

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

An instance of SAT is defined as (X, S)

An instance of SAT is defined as (X, S) SAT: Propositional Satisfiability 22c:45 Artificial Intelligence Russell & Norvig, Ch. 7.6 Validity vs. Satisfiability Validity: A sentence is valid if it is true in every interpretation (every interpretation

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

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

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

Knowledge-based systems

Knowledge-based systems CS 750 Foundations of I Lecture 6 Knowledge-based systems Milos Hauskrecht milos@cs.pitt.edu 539 Sennott Square dministration announcements Midterm: Thursda October 6, 07 In-class Closed book What does

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

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

Logic reasoning systems

Logic reasoning systems Lecture 2 Logic reasoning systems Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square Administration No class next week PS-5: Due on Thursda October 4, 2004 Submit directly to Tomas Singliar Midterm:

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

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

Satisifiability and Probabilistic Satisifiability

Satisifiability and Probabilistic Satisifiability Satisifiability and Probabilistic Satisifiability Department of Computer Science Instituto de Matemática e Estatística Universidade de São Paulo 2010 Topics Next Issue The SAT Problem The Centrality of

More information

Discretization of Temporal Models with Application to Planning with SMT

Discretization of Temporal Models with Application to Planning with SMT Discretization of Temporal Models with Application to Planning with SMT Jussi Rintanen Department of Information and Computer Science Aalto University, Helsinki, Finland Abstract The problem of planning

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

Example. Lemma. Proof Sketch. 1 let A be a formula that expresses that node t is reachable from s

Example. Lemma. Proof Sketch. 1 let A be a formula that expresses that node t is reachable from s Summary Summary Last Lecture Computational Logic Π 1 Γ, x : σ M : τ Γ λxm : σ τ Γ (λxm)n : τ Π 2 Γ N : τ = Π 1 [x\π 2 ] Γ M[x := N] Georg Moser Institute of Computer Science @ UIBK Winter 2012 the proof

More information

Automata theory. An algorithmic approach. Lecture Notes. Javier Esparza

Automata theory. An algorithmic approach. Lecture Notes. Javier Esparza Automata theory An algorithmic approach Lecture Notes Javier Esparza July 2 22 2 Chapter 9 Automata and Logic A regular expression can be seen as a set of instructions ( a recipe ) for generating the words

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

Lecture 10: Feb. 11, 2015

Lecture 10: Feb. 11, 2015 CS324: AI (Situation Calculus & Reasoning.) Spring 2015 Lecturer: K.R. Chowdhary Lecture 10: Feb. 11, 2015 : Professor of CS (VF) Disclaimer: These notes have not been subjected to the usual scrutiny reserved

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

Set 9: Planning Classical Planning Systems Chapter 10 R&N. ICS 271 Fall 2017

Set 9: Planning Classical Planning Systems Chapter 10 R&N. ICS 271 Fall 2017 Set 9: Planning Classical Planning Systems Chapter 10 R&N ICS 271 Fall 2017 Planning environments Classical Planning: Outline: Planning Situation calculus PDDL: Planning domain definition language STRIPS

More information

Regular Expressions (Pre Lecture)

Regular Expressions (Pre Lecture) Regular Expressions (Pre Lecture) Dr. Neil T. Dantam CSCI-561, Colorado School of Mines Fall 2017 Dantam (Mines CSCI-561) Regular Expressions (Pre Lecture) Fall 2017 1 / 39 Regular Expressions Outline

More information

Predicate Logic: Sematics Part 1

Predicate Logic: Sematics Part 1 Predicate Logic: Sematics Part 1 CS402, Spring 2018 Shin Yoo Predicate Calculus Propositional logic is also called sentential logic, i.e. a logical system that deals with whole sentences connected with

More information

Chapter 0 Introduction. Fourth Academic Year/ Elective Course Electrical Engineering Department College of Engineering University of Salahaddin

Chapter 0 Introduction. Fourth Academic Year/ Elective Course Electrical Engineering Department College of Engineering University of Salahaddin Chapter 0 Introduction Fourth Academic Year/ Elective Course Electrical Engineering Department College of Engineering University of Salahaddin October 2014 Automata Theory 2 of 22 Automata theory deals

More information

CS 4700: Artificial Intelligence

CS 4700: Artificial Intelligence CS 4700: Foundations of Artificial Intelligence Fall 2017 Instructor: Prof. Haym Hirsh Lecture 14 Today Knowledge Representation and Reasoning (R&N Ch 7-9) Prelim, Statler Auditorium Tuesday, March 21

More information

1 Algebraic Methods. 1.1 Gröbner Bases Applied to SAT

1 Algebraic Methods. 1.1 Gröbner Bases Applied to SAT 1 Algebraic Methods In an algebraic system Boolean constraints are expressed as a system of algebraic equations or inequalities which has a solution if and only if the constraints are satisfiable. Equations

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

CVO103: Programming Languages. Lecture 2 Inductive Definitions (2)

CVO103: Programming Languages. Lecture 2 Inductive Definitions (2) CVO103: Programming Languages Lecture 2 Inductive Definitions (2) Hakjoo Oh 2018 Spring Hakjoo Oh CVO103 2018 Spring, Lecture 2 March 13, 2018 1 / 20 Contents More examples of inductive definitions natural

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

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

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

A Little Logic. Propositional Logic. Satisfiability Problems. Solving Sudokus. First Order Logic. Logic Programming

A Little Logic. Propositional Logic. Satisfiability Problems. Solving Sudokus. First Order Logic. Logic Programming A Little Logic International Center for Computational Logic Technische Universität Dresden Germany Propositional Logic Satisfiability Problems Solving Sudokus First Order Logic Logic Programming A Little

More information

Lecture 9: Search 8. Victor R. Lesser. CMPSCI 683 Fall 2010

Lecture 9: Search 8. Victor R. Lesser. CMPSCI 683 Fall 2010 Lecture 9: Search 8 Victor R. Lesser CMPSCI 683 Fall 2010 ANNOUNCEMENTS REMEMBER LECTURE ON TUESDAY! EXAM ON OCTOBER 18 OPEN BOOK ALL MATERIAL COVERED IN LECTURES REQUIRED READINGS WILL MOST PROBABLY NOT

More information

First Order Logic (FOL)

First Order Logic (FOL) First Order Logic (FOL) CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2013 Soleymani Course material: Artificial Intelligence: A Modern Approach, 3 rd Edition, Chapter

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

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

Logic. proof and truth syntacs and semantics. Peter Antal

Logic. proof and truth syntacs and semantics. Peter Antal Logic proof and truth syntacs and semantics Peter Antal antal@mit.bme.hu 10/9/2015 1 Knowledge-based agents Wumpus world Logic in general Syntacs transformational grammars Semantics Truth, meaning, models

More information

A Heuristic Search Approach to Planning with Temporally Extended Preferences

A Heuristic Search Approach to Planning with Temporally Extended Preferences A Heuristic Search Approach to Planning with Temporally Extended Preferences Jorge Baier a,b,, Fahiem Bacchus a, Sheila A. McIlraith a a Department of Computer Science, University of Toronto, Canada b

More information

Final exam of ECE 457 Applied Artificial Intelligence for the Spring term 2007.

Final exam of ECE 457 Applied Artificial Intelligence for the Spring term 2007. Spring 2007 / Page 1 Final exam of ECE 457 Applied Artificial Intelligence for the Spring term 2007. Don t panic. Be sure to write your name and student ID number on every page of the exam. The only materials

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

Integer vs. constraint programming. IP vs. CP: Language

Integer vs. constraint programming. IP vs. CP: Language Discrete Math for Bioinformatics WS 0/, by A. Bockmayr/K. Reinert,. Januar 0, 0:6 00 Integer vs. constraint programming Practical Problem Solving Model building: Language Model solving: Algorithms IP vs.

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

Principles of AI Planning

Principles of AI Planning Principles of 7. Planning as search: relaxed Malte Helmert and Bernhard Nebel Albert-Ludwigs-Universität Freiburg June 8th, 2010 How to obtain a heuristic STRIPS heuristic Relaxation and abstraction A

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

Foundations of Artificial Intelligence

Foundations of Artificial Intelligence Foundations of Artificial Intelligence 7. Propositional Logic Rational Thinking, Logic, Resolution Joschka Boedecker and Wolfram Burgard and Frank Hutter and Bernhard Nebel Albert-Ludwigs-Universität Freiburg

More information

Scalable and Accurate Verification of Data Flow Systems. Cesare Tinelli The University of Iowa

Scalable and Accurate Verification of Data Flow Systems. Cesare Tinelli The University of Iowa Scalable and Accurate Verification of Data Flow Systems Cesare Tinelli The University of Iowa Overview AFOSR Supported Research Collaborations NYU (project partner) Chalmers University (research collaborator)

More information

Logic. Knowledge Representation & Reasoning Mechanisms. Logic. Propositional Logic Predicate Logic (predicate Calculus) Automated Reasoning

Logic. Knowledge Representation & Reasoning Mechanisms. Logic. Propositional Logic Predicate Logic (predicate Calculus) Automated Reasoning Logic Knowledge Representation & Reasoning Mechanisms Logic Logic as KR Propositional Logic Predicate Logic (predicate Calculus) Automated Reasoning Logical inferences Resolution and Theorem-proving Logic

More information

CSCI-495 Artificial Intelligence. Lecture 17

CSCI-495 Artificial Intelligence. Lecture 17 CSCI-495 Artificial Intelligence Lecture 17 Tractable Inference: Horn Logic Resolution in general can be exponential in space and time For tractable inference we need a smaller logic Real-world KBs often

More information