Introduction on Situational Calculus

Size: px
Start display at page:

Download "Introduction on Situational Calculus"

Transcription

1 Introduction on Situational Calculus Fangkai Yang Department of Computer Sciences The University of Texas at Austin September 24, 2010 Fangkai Yang September 24, / 27

2 Outline 1 Reasoning with Actions 2 Situational Calculus 3 Frame Problem Fangkai Yang (fkyang@cs.utexas.edu) September 24, / 27

3 Outline 1 Reasoning with Actions 2 Situational Calculus 3 Frame Problem Fangkai Yang (fkyang@cs.utexas.edu) September 24, / 27

4 Goal of Artificial Intelligence 1 Goal of artificial intelligence: building programs capable of acting intelligently in the world. 2 Specifically, a program that has a general representation of the world cf. data structures are also the abstract representation of the world for all real problem. can decide what to do to achieve its goal by inferring in a formal language the goal that AI aims for! 3 Therefore, in order to achieve its goal, an intelligent program needs to manipulate what it knows: facts about the world what it can do: conditions and effects of the actions that it can execute what it wants to achieve: goal and some reasoning problems Fangkai Yang (fkyang@cs.utexas.edu) September 24, / 27

5 Monkey and Banana Problem A monkey is in a room. Suspended from the ceiling is a bunch of bananas, beyond the monkey s reach. In the corner of the room is a box. How can the monkey get the bananas? The solution is that the monkey must push the box under the bananas, then stand on the box, and then grab the bananas. how to build an intelligent monkey program that can decide what to do to achieve its goal, once the goal is given? Fangkai Yang (fkyang@cs.utexas.edu) September 24, / 27

6 A Monkey Program 1 Something must be told to the program: what it knows: the location of banana and the box, the initial location of itself what it can do: it can walk to a location, move a box, climb up to the box, and grasp the banana what it wants to do: grasp the banana 2 Something must NOT be told to the program: how to grasp the banana what actions should be executed one by one to achieve its goal. 3 We need the program to find such solution by itself: a planning problem, intelligence! Fangkai Yang (fkyang@cs.utexas.edu) September 24, / 27

7 Epistemic Method John McCarthy s 1969 paper: SOME PHILOSOPHICAL PROBLEMS FROM THE STANDPOINT OF ARTIFICIAL INTELLIGENCE proposed that First Order Logic should be used as a formal language for world model and inferring, which later becomes the central problem of Knowledge Representation and Reasoning (KR&R). Fangkai Yang (fkyang@cs.utexas.edu) September 24, / 27

8 Why logic? 1 Mathematically sound its formulas and sentences are inductively defined and unambiguous 2 Well-defined formal semantics the semantics of logics are mostly based on an algebra structure /set theory 3 Philosophical considerations metaphysically adequate and epistemically adequate (further refer to the literature) Specifically, he proposed an formal language called Situational Calculus to represent dynamic world, reason with action and generate plans to achieve goals. Fangkai Yang (fkyang@cs.utexas.edu) September 24, / 27

9 Outline 1 Reasoning with Actions 2 Situational Calculus 3 Frame Problem Fangkai Yang (fkyang@cs.utexas.edu) September 24, / 27

10 Situational Calculus The basic ideas of situational calculus are situations,actions,fluents. - Actions are what makes the dynamic world change from one situations to another when performed by agents - Fluents are situation-dependent functions used to describe the effect of actions. - A situation is a complete state of the universe at an instance of a time A situation calculus is a first-order language with the above sorts on its objects. Fangkai Yang (fkyang@cs.utexas.edu) September 24, / 27

11 Blocks World The following is a classical AI problem called blocks world Some blocks of equal size (namely, blocks A, B, C,...) can be arranged into a set of towers on a table. A one-handed robot can be directed to grasp any block that is on the top of a tower, and either add it to the top of another tower or put it down on the table to make a new tower. Given a pattern of a set of towers, the agent should decide a sequence of actions, executing which can build up the set of towers. To represent blocks world by situational calculus, one needs to decide The set of actions available for the agents to execute The set of fluents needed to describe the changes the actions will have on the world. Fangkai Yang (fkyang@cs.utexas.edu) September 24, / 27

12 Actions By analyzing the above domain, it is easy to see that the agent can perform the following actions: stack(x, y): put block x on block y, provided the robot is holding x, and y is clear, i.e. there is no other block on it; unstack(x, y): pick up block x from block y, provided the robot s hand is empty, x is on y, and x is clear; putdown(x): put block x down on the table, provided the robot is holding x; pickup(x):pick up block x from the table, provided the robot s hand is empty, x is on the table and clear. Fangkai Yang (fkyang@cs.utexas.edu) September 24, / 27

13 Fluents and Situations The fluents are used to describe the changes that the actions have on the world. We introduce the following fluents: handempty: true in a situation if the robot s hand is empty holding(x): true in a situation if the robot s hand is holding block x; on(x, y): true in a situation if block x is on block y; ontable(x): true in a situation if block x is on the table; clear(x): true in a situation if block x is the top block of a tower, i.e. the robot is not holding it, and there is no other block on it. The situations are a set of labels, i.e., s 1, s 2,...,. Note: fluents, actions and situations are all objects in the first order language. Fangkai Yang (fkyang@cs.utexas.edu) September 24, / 27

14 Axiomatizations In order to express certain actions are executed/executable at certain situations or certain fluent holds at certain situation, we introduce the following domain-independent predicates and functions: Holds(p, s): fluent p is true in situation s; do(a, s): the situation that results from performing action a in situation s; Poss(a, s): action a is executable in situation s. Now we can express handempty is true at situation s 1 as Holds(handempty, s 1 ) and stack(a,b) is executed at situation s 2, which makes B unclear at the resulted situation as Holds(clear(B), do(stack(a, B), s 2 )) Fangkai Yang (fkyang@cs.utexas.edu) September 24, / 27

15 Initial State Assume the blocks world starts from the following initial state: ontable(c, S 0 ) on(b, C, S 0 ) on(a, B, S 0 ) ontable(d, S 0 ) clear(a, S 0 ) clear(d, S 0 ) holding(e, S 0 ) (1) (2) (3) (4) (5) (6) (7) For the time being, we only specify positive facts, because we assume we seldom use negative facts such as clear(b, S 0 ). Fangkai Yang (fkyang@cs.utexas.edu) September 24, / 27

16 A Complete Axiomatization In the following, all free variables are universally quantified. First, the sufficient and necessary conditions for each action to be executed: Poss(stack(x, y), s) holding(x, s) clear(y, s) (8) Poss(unstack(x, y), s) on(x, y, s) clear(x, s) handempty(s) (9) Poss(pickup(x), s) ontable(x, s) clear(x, s) handempty(s) (10) Poss(putdown(x), s) holding(x, s) (11) Fangkai Yang September 24, / 27

17 A Complete Axiomatization (ctd) Second, how executing action stack affects each fluent holding(u, do(stack(x, y), s)) holding(u, s) u x (12) handempty(do(stack(x, y), s)) (13) on(u, v, do(stack(x, y), s)) (u = x v = y) on(u, v, s) (14) clear(u, do(stack(x, y), s)) u = x (clear(u, s) u y) (15) ontable(u, do(stack(x, y), s)) ontable(u, s) (16) Fangkai Yang (fkyang@cs.utexas.edu) September 24, / 27

18 Reasoning with Actions Now we have sentences specifying the initial state (1) (7), denoted as, and the axioms for stack (13) (16). We can perform the following reasoning with action stack. Denote these sentences as Σ stacking E onto D will make E above D in the resulted situation. Show the following:, Σ = on(e, D, do(stack(e, D), S 0 )) stacking E onto D will not change the fact that A is on B. Show the following:, Σ = on(a, B, do(stack(e, D), S 0 )) Fangkai Yang (fkyang@cs.utexas.edu) September 24, / 27

19 Problem 1 Try to write first order sentences to describe how executing other actions (i.e. unstack, pickup, and putdown) affects each fluent. There should be 15 sentences in all. 2 Based on your axiomatization and the initial state (1) (6), assuming initially the hand of the robot is empty, try to show that: (i)moving A onto table will make B clear; (ii) moving A onto table will make D still on the table. 3 Introduce the following action: move(x, y): move block x to position y, provided that block x is clear to move, where a position is either a block or the table and try to axiomatize it by situational calculus, and reason with the new action over the problem 2. Fangkai Yang (fkyang@cs.utexas.edu) September 24, / 27

20 Using Situational Calculus for Planning Problem 1 By situation calculus, one can write a complete logical specification for changes caused by actions in a world, by a set of first order sentences, thus it forms a complete representation on the world the agent locates 2 The agent can decide whether a given goal can be achieved in the world by performing a sequence of actions, which is formulated as a theorem proving task in situation calculus: T = s.g(s) 3 For the time being, we will focus on the representational issues of Situational Calculus, rather than computational issues. Fangkai Yang (fkyang@cs.utexas.edu) September 24, / 27

21 Outline 1 Reasoning with Actions 2 Situational Calculus 3 Frame Problem Fangkai Yang (fkyang@cs.utexas.edu) September 24, / 27

22 An Observation 1 We have formulated a complete axiomatization for the block world, in which we specify the sufficient and necessary of each action to execute in any situations, and fully specify the effects of each action 2 However, such formulation is not natural. In real life, we don t really remember to say something which. for example, implies by (16). 3 (16) implies this: if we stack x onto y, and initially y is on the table, then y is still on the table. (16) also says this: if we stack x onto y, for a block u other than x, if u is initially on the ground, u is still on the ground afterwards. Fangkai Yang (fkyang@cs.utexas.edu) September 24, / 27

23 Frame Problem 1 In real life, when talking about the effects of an action, we usually only talk about the change it will bring, but seldom say (or remember!) what are not changed by the action. 2 Specifically, when talking about the effect of action stack, the following effect axioms are much more natural: on(x, y, do(stack(x, y), s)) Poss(stack(x, y), s) (17) clear(x, do(stack(x, y), s)) Poss(stack(x, y), s) (18) clear(y, do(stack(x, y), s)) Poss(stack(x, y), s) (19) handempty(do(stack(x, y), s)) Poss(stack(x, y), s) (20) holding(x, do(stack(x, y), s)) Poss(stack(x, y), s) (21) Fangkai Yang (fkyang@cs.utexas.edu) September 24, / 27

24 Is it correct? Now we have facts for initial state (1) (7), denoted as, the precondition of stack (8), and a revised version of effect axioms (17) (21), denoted as Σ. Can we entail the following? (Show it!), Σ = on(e, D, do(stack(e, D), S 0 )) Yes! Can we entail the following? (Show it!), Σ = on(a, B, do(stack(e, D), S 0 )) No... So Σ is no longer a complete logical axiomatization of action stack. Fangkai Yang (fkyang@cs.utexas.edu) September 24, / 27

25 Commonsense Law of Inertia We try to formalize the effect axioms of stack like this: apart from (17) (21), we add one more statement: nothing else changes. This is called the commonsense law of inertia. for example, we can add one more sentence saying that stack(x, y) doesn t change ontable(y) if y is initially on table, and also doesn t change block u if u is not x: ontable(y, s) ontable(y, do(stack(x, y), s)) ontable(u, s) ontable(u, do(stack(x, y), s)) x u However, this solution is cumbersome. Once we add one more fluent into domain, e.g. color(x), we need to specify that color doesn t change for all actions because usually actions only change a small number of fluents. If we later add one more action, we also need to check all fluents to see if any frame axioms are needed. So it is not practical to enumerate explicitly the nothing else. Fangkai Yang (fkyang@cs.utexas.edu) September 24, / 27

26 McCarthy s attempt Towards the statement nothing else changes, McCarthy proposed the following statement: Normally, given any action and any fluent, the action doesn t change the fluent. So we can specify stack is abnormal relative to the fluent it changes: s.ab(on(x, y), stack(x, y), s) (22) s.ab(clear(x), stack(x, y), s) (23) s.ab(handempty, stack(x, y), s) (24) s.ab(holdings(x), stack(x, y), s) (25) and for any fluent p, situation s, if action a is not abnormal, then p continues to hold after the action is executed, i.e., Holds(p, s) ab(p, a, s) Holds(p, do(a, s)) (26) Fangkai Yang (fkyang@cs.utexas.edu) September 24, / 27

27 Problem: Does it work? Now we have initial state, the precondition of stack (8) and a revised version of effect axioms, denoted as Σ, and declarations about abnormality and generic frame axiom (22) (25), (26), denoted as Γ. Now can we entail the following?, Σ, Γ = ontable(d, do(stack(e, A), S 0 )) If we can, show it. If we can t, what do we miss here? Fangkai Yang (fkyang@cs.utexas.edu) September 24, / 27

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

Situation Calculus. Chapter 16. Fangzhen Lin

Situation Calculus. Chapter 16. Fangzhen Lin Handbook of Knowledge Representation Edited by F. van Harmelen, V. Lifschitz and B. Porter 2008 Elsevier B.V. All rights reserved DOI: 10.1016/S1574-6526(07)03016-7 649 Chapter 16 Situation Calculus Fangzhen

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

On the Role of Possibility in Action Execution and Knowledge in the Situation Calculus

On the Role of Possibility in Action Execution and Knowledge in the Situation Calculus On the Role of Possibility in Action Execution and Knowledge in the Situation Calculus Vahid Vaezian (B) and James P. Delgrande School of Computing Science, Simon Fraser University, Burnaby, BC V5A 1S6,

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

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

Compiling Causal Theories to Successor State Axioms and STRIPS-Like Systems

Compiling Causal Theories to Successor State Axioms and STRIPS-Like Systems Journal of Artificial Intelligence Research 19 (2003) 279-314 Submitted 09/02; published 10/03 Compiling Causal Theories to Successor State Axioms and STRIPS-Like Systems Fangzhen Lin Department of Computer

More information

Planning'&'Scheduling!

Planning'&'Scheduling! Planning'&'Scheduling! Roman Barták Department of Theoretical Computer Science and Mathematical Logic State Space Planning Just!to!recall! Planning'problem'P"is"a"triple"(Σ,s 0,g)" Σ"is"a"planning'domain'describing"possible"world"states"and"

More information

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

Tractable Reasoning with Incomplete First-Order Knowledge in Dynamic Systems with Context-Dependent Actions

Tractable Reasoning with Incomplete First-Order Knowledge in Dynamic Systems with Context-Dependent Actions Tractable Reasoning with Incomplete First-Order Knowledge in Dynamic Systems with Context-Dependent Actions Yongmei Liu and Hector J. Levesque Department of Computer Science University of Toronto Toronto,

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

Induction in Nonmonotonic Causal Theories for a Domestic Service Robot

Induction in Nonmonotonic Causal Theories for a Domestic Service Robot Induction in Nonmonotonic Causal Theories for a Domestic Service Robot Jianmin Ji 1 and Xiaoping Chen 2 1 Dept. of CSE, The Hong Kong University of Science and Technology, jizheng@mail.ustc.edu.cn 2 Sch.

More information

14. Actions. KR & R Brachman & Levesque Situation calculus

14. Actions. KR & R Brachman & Levesque Situation calculus 14. Actions KR & R Brachman & Levesque 2005 236 Situation calculus The situation calculus is a dialect of FOL for representing dynamically changing worlds in which all changes are the result of named actions.

More information

From Causal Theories to Successor State Axioms and STRIPS-Like Systems

From Causal Theories to Successor State Axioms and STRIPS-Like Systems From: AAAI-00 Proceedings. Copyright 2000, AAAI (www.aaai.org). All rights reserved. From Causal Theories to Successor State Axioms and STRIPS-Like Systems Fangzhen Lin (flin@cs.ust.hk) Department of Computer

More information

On the Complexity of Domain-Independent Planning

On the Complexity of Domain-Independent Planning On the Complexity of Domain-Independent Planning Kutluhan Erol Dana S. Nau V. S. Subrahmanian kutluhan@cs.umd.edu nau@cs.umd.edu vs@cs.umd.edu Computer Science Department University of Maryland College

More information

Reconciling Situation Calculus and Fluent Calculus

Reconciling Situation Calculus and Fluent Calculus Reconciling Situation Calculus and Fluent Calculus Stephan Schiffel and Michael Thielscher Department of Computer Science Dresden University of Technology {stephan.schiffel,mit}@inf.tu-dresden.de Abstract

More information

Intelligent Agents. First Order Logic. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University. last change: 19.

Intelligent Agents. First Order Logic. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University. last change: 19. Intelligent Agents First Order Logic Ute Schmid Cognitive Systems, Applied Computer Science, Bamberg University last change: 19. Mai 2015 U. Schmid (CogSys) Intelligent Agents last change: 19. Mai 2015

More information

Situation Calculus. Gerald Steinbauer. Institute for Software Technology. Gerald Steinbauer. Situation Calculus - Introduction

Situation Calculus. Gerald Steinbauer. Institute for Software Technology. Gerald Steinbauer. Situation Calculus - Introduction Situation Calculus Institute for Software Technology 1 Dates Organizational Issues 10.11.2016 8:45-11:00 (HS i12) lecture and first assignment 17.11.2016 8:45-11:00 (HS i12) lecture and programming assignment

More information

MAI0203 Lecture 7: Inference and Predicate Calculus

MAI0203 Lecture 7: Inference and Predicate Calculus MAI0203 Lecture 7: Inference and Predicate Calculus Methods of Artificial Intelligence WS 2002/2003 Part II: Inference and Knowledge Representation II.7 Inference and Predicate Calculus MAI0203 Lecture

More information

Reasoning about State Constraints in the Situation Calculus

Reasoning about State Constraints in the Situation Calculus Proceedings of the Twenty-Third International Joint Conference on Artificial Intelligence Reasoning about State Constraints in the Situation Calculus Naiqi Li 1 Yi Fan 1,2 Yongmei Liu 1 1 Department of

More information

Non-Markovian Control in the Situation Calculus

Non-Markovian Control in the Situation Calculus Non-Markovian Control in the Situation Calculus An Elaboration Niklas Hoppe Seminar Foundations Of Artificial Intelligence Knowledge-Based Systems Group RWTH Aachen May 3, 2009 1 Contents 1 Introduction

More information

On Defaults in Action Theories

On Defaults in Action Theories On Defaults in Action Theories Hannes Strass and Michael Thielscher Department of Computer Science Dresden University of Technology {hannes.strass,mit}@inf.tu-dresden.de Abstract. We study the integration

More information

Collaborative Planning with Privacy

Collaborative Planning with Privacy Collaborative Planning with Privacy Protocol exchange May 7, 2007 Max Kanovich 1, Paul Rowe 2, Andre Scedrov 2 1 Quenn Mary, University of London 2 University of Pennsylvania Context Many examples of collaboration

More information

Lloyd-Topor Completion and General Stable Models

Lloyd-Topor Completion and General Stable Models Lloyd-Topor Completion and General Stable Models Vladimir Lifschitz and Fangkai Yang Department of Computer Science The University of Texas at Austin {vl,fkyang}@cs.utexas.edu Abstract. We investigate

More information

Dynamic Semantics. Dynamic Semantics. Operational Semantics Axiomatic Semantics Denotational Semantic. Operational Semantics

Dynamic Semantics. Dynamic Semantics. Operational Semantics Axiomatic Semantics Denotational Semantic. Operational Semantics Dynamic Semantics Operational Semantics Denotational Semantic Dynamic Semantics Operational Semantics Operational Semantics Describe meaning by executing program on machine Machine can be actual or simulated

More information

CSC384: Intro to Artificial Intelligence Knowledge Representation II. Required Readings: 9.1, 9.2, and 9.5 Announcements:

CSC384: Intro to Artificial Intelligence Knowledge Representation II. Required Readings: 9.1, 9.2, and 9.5 Announcements: CSC384: Intro to Artificial Intelligence Knowledge Representation II Required Readings: 9.1, 9.2, and 9.5 Announcements: 1 Models Examples. Environment A Language (Syntax) Constants: a,b,c,e Functions:

More information

AHoare-Style Proof System for Robot Programs

AHoare-Style Proof System for Robot Programs From: AAAI-02 Proceedings Copyright 2002, AAAI (wwwaaaiorg) All rights reserved AHoare-Style Proof System for Robot Programs Yongmei Liu Department of Computer Science University of Toronto Toronto, ON,

More information

ARTICLE IN PRESS. Nonmonotonic causal theories. Received 18 November 2001 To the memory of Ray Reiter ( )

ARTICLE IN PRESS. Nonmonotonic causal theories. Received 18 November 2001 To the memory of Ray Reiter ( ) S0004-3702(03)00167-X/FLA AID:2027 Vol. ( ) P.1 (1-56) ELSGMLTM(ARTINT):m1a v 1.174 Prn:22/10/2003; 9:01 aij2027 by:ml p. 1 Artificial Intelligence ( ) www.elsevier.com/locate/artint Nonmonotonic causal

More information

Chapter 2. Mathematical Reasoning. 2.1 Mathematical Models

Chapter 2. Mathematical Reasoning. 2.1 Mathematical Models Contents Mathematical Reasoning 3.1 Mathematical Models........................... 3. Mathematical Proof............................ 4..1 Structure of Proofs........................ 4.. Direct Method..........................

More information

CS:4420 Artificial Intelligence

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

More information

CSCI 5582 Artificial Intelligence. Today 9/28. Knowledge Representation. Lecture 9

CSCI 5582 Artificial Intelligence. Today 9/28. Knowledge Representation. Lecture 9 CSCI 5582 Artificial Intelligence Lecture 9 Jim Martin Today 9/28 Review propositional logic Reasoning with Models Break More reasoning Knowledge Representation A knowledge representation is a formal scheme

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

Logic. Propositional Logic: Syntax. Wffs

Logic. Propositional Logic: Syntax. Wffs Logic Propositional Logic: Syntax Logic is a tool for formalizing reasoning. There are lots of different logics: probabilistic logic: for reasoning about probability temporal logic: for reasoning about

More information

On the Progression of Situation Calculus Basic Action Theories: Resolving a 10-year-old Conjecture

On the Progression of Situation Calculus Basic Action Theories: Resolving a 10-year-old Conjecture On the Progression of Situation Calculus Basic Action Theories: Resolving a 10-year-old Conjecture Stavros Vassos and Hector J Levesque Department of Computer Science University of Toronto Toronto, ON,

More information

FORMALIZATION OF STRIPS IN SITUATION CALCULUS

FORMALIZATION OF STRIPS IN SITUATION CALCULUS FORMALIZATION OF STRIPS IN SITUATION CALCULUS John McCarthy Computer Science Department Stanford University Stanford, CA 94305 jmc@cs.stanford.edu http://www-formal.stanford.edu/jmc/ 2002 Oct 26, 3:00

More information

The Situation Calculus and Golog

The Situation Calculus and Golog and A Tutorial Gerhard Lakemeyer Dept. of Computer Science RWTH Aachen University Germany 2nd Hybris Workshop, Freiburg, May 27 28, 2013 Outline 1 2 3 May 28, 2013 2 / 34 Knowledge-Based Agents Example:

More information

CS 331: Artificial Intelligence Propositional Logic I. Knowledge-based Agents

CS 331: Artificial Intelligence Propositional Logic I. Knowledge-based Agents CS 331: Artificial Intelligence Propositional Logic I 1 Knowledge-based Agents Can represent knowledge And reason with this knowledge How is this different from the knowledge used by problem-specific agents?

More information

Knowledge-based Agents. CS 331: Artificial Intelligence Propositional Logic I. Knowledge-based Agents. Outline. Knowledge-based Agents

Knowledge-based Agents. CS 331: Artificial Intelligence Propositional Logic I. Knowledge-based Agents. Outline. Knowledge-based Agents Knowledge-based Agents CS 331: Artificial Intelligence Propositional Logic I Can represent knowledge And reason with this knowledge How is this different from the knowledge used by problem-specific agents?

More information

14. Actions. Situation calculus. Fluents. Preconditions and effects

14. Actions. Situation calculus. Fluents. Preconditions and effects Situation calculus 14. Actions The situation calculus is a dialect of FOL for representing dynamically changing worlds in which all changes are the result of named actions. There are two distinguished

More information

Logic: Propositional Logic Truth Tables

Logic: Propositional Logic Truth Tables Logic: Propositional Logic Truth Tables Raffaella Bernardi bernardi@inf.unibz.it P.zza Domenicani 3, Room 2.28 Faculty of Computer Science, Free University of Bolzano-Bozen http://www.inf.unibz.it/~bernardi/courses/logic06

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

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

cis32-ai lecture # 18 mon-3-apr-2006

cis32-ai lecture # 18 mon-3-apr-2006 cis32-ai lecture # 18 mon-3-apr-2006 today s topics: propositional logic cis32-spring2006-sklar-lec18 1 Introduction Weak (search-based) problem-solving does not scale to real problems. To succeed, problem

More information

CMU-Q Lecture 5: Classical Planning Factored Representations STRIPS. Teacher: Gianni A. Di Caro

CMU-Q Lecture 5: Classical Planning Factored Representations STRIPS. Teacher: Gianni A. Di Caro CMU-Q 15-381 Lecture 5: Classical Planning Factored Representations STRIPS Teacher: Gianni A. Di Caro AUTOMATED PLANNING: FACTORED STATE REPRESENTATIONS 2 PLANNING, FOR (MORE) COMPLEX WORLDS Searching

More information

Continuing the KRR Journey

Continuing the KRR Journey 1 Weeks 1 3 Week 4 Week 5 Week 6 Continuing the KRR Journey Propositional and first-order logic (FOL) Expressiveness and Decidability: Propositional logic is decidable, FOL is not. Classical planning problems:

More information

COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning

COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning COMP9414, Monday 26 March, 2012 Propositional Logic 2 COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning Overview Proof systems (including soundness and completeness) Normal Forms

More information

Embracing Causality in Specifying the Indirect Effects of Actions*

Embracing Causality in Specifying the Indirect Effects of Actions* Embracing Causality in Specifying the Indirect Effects of Actions* Fangzhen Lin Department of Computer Science University of Toronto Toronto, Canada M5S 1A4 Email: fl@cs.toronto.edu Abstract represented

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

Integrating State Constraints and Obligations in Situation Calculus

Integrating State Constraints and Obligations in Situation Calculus Integrating State Constraints and Obligations in Situation Calculus Robert Demolombe ONERA-Toulouse 2, Avenue Edouard Belin BP 4025, 31055 Toulouse Cedex 4, France. Robert.Demolombe@cert.fr Pilar Pozos

More information

Applications of the Situation Calculus To Formalizing. Control and Strategic Information: The Prolog Cut Operator. Fangzhen Lin

Applications of the Situation Calculus To Formalizing. Control and Strategic Information: The Prolog Cut Operator. Fangzhen Lin Applications of the Situation Calculus To Formalizing Control and Strategic Information: The Prolog Cut Operator Fangzhen Lin (in@csusthk) Department of Computer Science The Hong Kong University of Science

More information

SCOPE: A Situation Calculus Ontology of Petri Nets

SCOPE: A Situation Calculus Ontology of Petri Nets SCOPE: A Situation Calculus Ontology of Petri Nets Xing TAN 1 Semantic Technologies Laboratory, Department of Mechanical and Industrial Engineering, University of Toronto Abstract. By axiomatizing the

More information

Logical Agents (I) Instructor: Tsung-Che Chiang

Logical Agents (I) Instructor: Tsung-Che Chiang Logical Agents (I) Instructor: Tsung-Che Chiang tcchiang@ieee.org Department of Computer Science and Information Engineering National Taiwan Normal University Artificial Intelligence, Spring, 2010 編譯有誤

More information

Principles of Intelligent Systems: Situation Calculus

Principles of Intelligent Systems: Situation Calculus Principles of Intelligent Systems: Situation Calculus Lecture 11 These slides are based on Chapters 8 and 10 of Russell and Norvig s Artificial Intelligence: A modern approach (http://aima.eecs.berkeley.edu/slides-pdf/)

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

Designing and Evaluating Generic Ontologies

Designing and Evaluating Generic Ontologies Designing and Evaluating Generic Ontologies Michael Grüninger Department of Industrial Engineering University of Toronto gruninger@ie.utoronto.ca August 28, 2007 1 Introduction One of the many uses of

More information

Change, Change, Change: three approaches

Change, Change, Change: three approaches Change, Change, Change: three approaches Tom Costello Computer Science Department Stanford University Stanford, CA 94305 email: costelloqcs.stanford.edu Abstract We consider the frame problem, that is,

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

Programming Languages and Compilers (CS 421)

Programming Languages and Compilers (CS 421) Programming Languages and Compilers (CS 421) Sasa Misailovic 4110 SC, UIUC https://courses.engr.illinois.edu/cs421/fa2017/cs421a Based in part on slides by Mattox Beckman, as updated by Vikram Adve, Gul

More information

Propositional logic. First order logic. Alexander Clark. Autumn 2014

Propositional logic. First order logic. Alexander Clark. Autumn 2014 Propositional logic First order logic Alexander Clark Autumn 2014 Formal Logic Logical arguments are valid because of their form. Formal languages are devised to express exactly that relevant form and

More information

Foundations of Artificial Intelligence

Foundations of Artificial Intelligence Foundations of Artificial Intelligence 7. Propositional Logic Rational Thinking, Logic, Resolution Wolfram Burgard, Maren Bennewitz, and Marco Ragni Albert-Ludwigs-Universität Freiburg Contents 1 Agents

More information

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

COMP219: Artificial Intelligence. Lecture 19: Logic for KR COMP219: Artificial Intelligence Lecture 19: Logic for KR 1 Overview Last time Expert Systems and Ontologies Today Logic as a knowledge representation scheme Propositional Logic Syntax Semantics Proof

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 Bernhard Nebel Albert-Ludwigs-Universität Freiburg May 17, 2016

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

On First-Order Definability and Computability of Progression for Local-Effect Actions and Beyond

On First-Order Definability and Computability of Progression for Local-Effect Actions and Beyond On First-Order Definability and Computability of Progression for Local-Effect Actions and Beyond Yongmei Liu Dept. of Computer Science Sun Yat-sen University Guangzhou 510275, China ymliu@mail.sysu.edu.cn

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

22c:145 Artificial Intelligence

22c:145 Artificial Intelligence 22c:145 Artificial Intelligence Fall 2005 Propositional Logic Cesare Tinelli The University of Iowa Copyright 2001-05 Cesare Tinelli and Hantao Zhang. a a These notes are copyrighted material and may not

More information

STRIPS in Some Temporal-Preferential Extension

STRIPS in Some Temporal-Preferential Extension STRIPS in Some Temporal-Preferential Extension Krystian Jobczyk 1,2 and Antoni Ligeza 2 1 University of Caen, France 2 AGH University of Science and Technology of Kraków, Poland Abstract. In 1971 N. Nilson

More information

Action, Belief Change and the Frame Problem: A Fluent Calculus Approach

Action, Belief Change and the Frame Problem: A Fluent Calculus Approach Action, Belief Change and the Frame Problem: A Fluent Calculus Approach Richard B. Scherl Computer Science Department Monmouth University West Long Brach, NJ 07764 U.S.A. email: rscherl@monmouth.edu Abstract

More information

Ontologies and Domain Theories

Ontologies and Domain Theories Ontologies and Domain Theories Michael Grüninger Department of Mechanical and Industrial Engineering University of Toronto gruninger@mie.utoronto.ca Abstract Although there is consensus that a formal ontology

More information

Logical Agents. September 14, 2004

Logical Agents. September 14, 2004 Logical Agents September 14, 2004 The aim of AI is to develop intelligent agents that can reason about actions and their effects and about the environment, create plans to achieve a goal, execute the plans,

More information

Propositional Logic: Logical Agents (Part I)

Propositional Logic: Logical Agents (Part I) Propositional Logic: Logical Agents (Part I) This lecture topic: Propositional Logic (two lectures) Chapter 7.1-7.4 (this lecture, Part I) Chapter 7.5 (next lecture, Part II) Next lecture topic: First-order

More information

Interpreting Golog Programs in Flux

Interpreting Golog Programs in Flux Interpreting Golog Programs in Flux Stephan Schiffel and Michael Thielscher Department of Computer Science Dresden University of Technology {stephan.schiffel,mit}@inf.tu-dresden.de Abstract A new semantics

More information

Hoare Logic: Reasoning About Imperative Programs

Hoare Logic: Reasoning About Imperative Programs Hoare Logic: Reasoning About Imperative Programs COMP1600 / COMP6260 Dirk Pattinson Australian National University Semester 2, 2018 Programming Paradigms Functional. (Haskell, SML, OCaml,... ) main paradigm:

More information

7. Propositional Logic. Wolfram Burgard and Bernhard Nebel

7. Propositional Logic. Wolfram Burgard and Bernhard Nebel Foundations of AI 7. Propositional Logic Rational Thinking, Logic, Resolution Wolfram Burgard and Bernhard Nebel Contents Agents that think rationally The wumpus world Propositional logic: syntax and semantics

More information

arxiv: v1 [cs.lo] 8 Jan 2013

arxiv: v1 [cs.lo] 8 Jan 2013 Lloyd-Topor Completion and General Stable Models Vladimir Lifschitz and Fangkai Yang Department of Computer Science The University of Texas at Austin {vl,fkyang}@cs.utexas.edu arxiv:1301.1394v1 [cs.lo]

More information

6. Logical Inference

6. Logical Inference Artificial Intelligence 6. Logical Inference Prof. Bojana Dalbelo Bašić Assoc. Prof. Jan Šnajder University of Zagreb Faculty of Electrical Engineering and Computing Academic Year 2016/2017 Creative Commons

More information

Cumulative Effects of Concurrent Actions on Numeric-Valued Fluents

Cumulative Effects of Concurrent Actions on Numeric-Valued Fluents Cumulative Effects of Concurrent Actions on Numeric-Valued Fluents Esra Erdem Institute of Information Systems, Vienna University of Technology, Vienna, Austria esra@kr.tuwien.ac.at Alfredo Gabaldon National

More information

Handling Implication and Universal Quantification Constraints in FLUX

Handling Implication and Universal Quantification Constraints in FLUX Handling Implication and Universal Quantification Constraints in FLUX Michael Thielscher Dresden University of Technology, 01062 Dresden, Germany, mit@inf.tu-dresden.de Abstract. FLUX is a CLP-approach

More information

To every formula scheme there corresponds a property of R. This relationship helps one to understand the logic being studied.

To every formula scheme there corresponds a property of R. This relationship helps one to understand the logic being studied. Modal Logic (2) There appeared to be a correspondence between the validity of Φ Φ and the property that the accessibility relation R is reflexive. The connection between them is that both relied on the

More information

Knowledge engineering, Situation Calculus

Knowledge engineering, Situation Calculus Part I Knowledge engineering, Situation Calculus 1 Knowledge engineering 1.1 Ontology Ontological engineering Definition 1. Ontological engineering: process for the representation of abstract concepts

More information

Logic. Introduction to Artificial Intelligence CS/ECE 348 Lecture 11 September 27, 2001

Logic. Introduction to Artificial Intelligence CS/ECE 348 Lecture 11 September 27, 2001 Logic Introduction to Artificial Intelligence CS/ECE 348 Lecture 11 September 27, 2001 Last Lecture Games Cont. α-β pruning Outline Games with chance, e.g. Backgammon Logical Agents and thewumpus World

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

Tutorial on Axiomatic Set Theory. Javier R. Movellan

Tutorial on Axiomatic Set Theory. Javier R. Movellan Tutorial on Axiomatic Set Theory Javier R. Movellan Intuitively we think of sets as collections of elements. The crucial part of this intuitive concept is that we are willing to treat sets as entities

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

HOW GNOMES CAN HELP US SOLVE THE SORITES PARADOX

HOW GNOMES CAN HELP US SOLVE THE SORITES PARADOX HOW GNOMES CAN HELP US SOLVE THE SORITES PARADOX HAZEL BRICKHILL Vagueness and the Sorites Vague predicates are characterised by borderline cases: red/orange, bald, child/adult etc. This leaves them open

More information

Model Theory MARIA MANZANO. University of Salamanca, Spain. Translated by RUY J. G. B. DE QUEIROZ

Model Theory MARIA MANZANO. University of Salamanca, Spain. Translated by RUY J. G. B. DE QUEIROZ Model Theory MARIA MANZANO University of Salamanca, Spain Translated by RUY J. G. B. DE QUEIROZ CLARENDON PRESS OXFORD 1999 Contents Glossary of symbols and abbreviations General introduction 1 xix 1 1.0

More information

Logic. Propositional Logic: Syntax

Logic. Propositional Logic: Syntax Logic Propositional Logic: Syntax Logic is a tool for formalizing reasoning. There are lots of different logics: probabilistic logic: for reasoning about probability temporal logic: for reasoning about

More information

Modal logics: an introduction

Modal logics: an introduction Modal logics: an introduction Valentin Goranko DTU Informatics October 2010 Outline Non-classical logics in AI. Variety of modal logics. Brief historical remarks. Basic generic modal logic: syntax and

More information

Knowledge of Other Agents and Communicative Actions in the Fluent Calculus

Knowledge of Other Agents and Communicative Actions in the Fluent Calculus Knowledge of Other Agents and Communicative Actions in the Fluent Calculus Yves Martin Fakultät Informatik Technische Universität Dresden 01062 Dresden (Germany) ym1@inf.tu-dresden.de Iman Narasamdya Department

More information

Projection using Regression and Sensors

Projection using Regression and Sensors Projection using Regression and Sensors Giuseppe De Giacomo Dipartimento di Informatica e Sistemistica Università di Roma La Sapienza Via Salaria 11, 00198 Roma, Italy degiacomo@dis.uniroma1.it Hector

More information

Axiomatic Semantics. Semantics of Programming Languages course. Joosep Rõõmusaare

Axiomatic Semantics. Semantics of Programming Languages course. Joosep Rõõmusaare Axiomatic Semantics Semantics of Programming Languages course Joosep Rõõmusaare 2014 Direct Proofs of Program Correctness Partial correctness properties are properties expressing that if a given program

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

The roots of computability theory. September 5, 2016

The roots of computability theory. September 5, 2016 The roots of computability theory September 5, 2016 Algorithms An algorithm for a task or problem is a procedure that, if followed step by step and without any ingenuity, leads to the desired result/solution.

More information

Action Invariants and System Constraints in STRIPS

Action Invariants and System Constraints in STRIPS Action Invariants and System Constraints in STRIPS Norman Foo Computer Science and Engineering University of New South Wales NSW 2052, Australia e-mail: norman@cse.unsw.edu.au Pavlos Peppas Business Administration

More information

Planning and search. FOL and situation calculus. FOL and situation calculus 1

Planning and search. FOL and situation calculus. FOL and situation calculus 1 Planning and search FOL and situation calculus FOL and situation calculus 1 Outline First-order logic continued Situation calculus Logic and planning FOL and situation calculus 2 Fun with sentences Brothers

More information

Knowledge and reasoning 2

Knowledge and reasoning 2 Knowledge and reasoning 2 DDC65 Artificial intelligence and Lisp Peter Dalenius petda@ida.liu.se Department of Computer and Information Science Linköping University Knowledge-based agents Inside our agent

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

THE LANGUAGE OF FIRST-ORDER LOGIC (FOL) Sec2 Sec1(1-16)

THE LANGUAGE OF FIRST-ORDER LOGIC (FOL) Sec2 Sec1(1-16) THE LANGUAGE OF FIRST-ORDER LOGIC (FOL) Sec2 Sec1(1-16) FOL: A language to formulate knowledge Logic is the study of entailment relationslanguages, truth conditions and rules of inference. FOL or Predicate

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

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