Artificial Intelligence Chapter 21 The Situation Calculus Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

Artificial Intelligence Chapter 13 The Propositional Calculus Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Biointelligence Lab School of Computer Sci. & Eng.
First-Order Logic: Better choice for Wumpus World Propositional logic represents facts First-order logic gives us Objects Relations: how objects relate.
1 Logic Logic in general is a subfield of philosophy and its development is credited to ancient Greeks. Symbolic or mathematical logic is used in AI. In.
First Order Logic Resolution
Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus.
ISBN Chapter 3 Describing Syntax and Semantics.
CS 355 – Programming Languages
CPSC 322 Introduction to Artificial Intelligence September 20, 2004.
A Preliminary Study on Reasoning About Causes Pedro Cabalar AI Lab., Dept. of Computer Science University of Corunna, SPAIN.
Formal Aspects of Computer Science – Week 12 RECAP Lee McCluskey, room 2/07
Artificial Intelligence Chapter 17 Knowledge-Based Systems Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus.
CSE 311 Foundations of Computing I Lecture 6 Predicate Logic, Logical Inference Spring
Notes for Chapter 12 Logic Programming The AI War Basic Concepts of Logic Programming Prolog Review questions.
Proof Systems KB |- Q iff there is a sequence of wffs D1,..., Dn such that Dn is Q and for each Di in the sequence: a) either Di is in KB or b) Di can.
Conjunctive normal form: any formula of the predicate calculus can be transformed into a conjunctive normal form. Def. A formula is said to be in conjunctive.
Knowledge Representation Use of logic. Artificial agents need Knowledge and reasoning power Can combine GK with current percepts Build up KB incrementally.
Pattern-directed inference systems
ISBN Chapter 3 Describing Semantics -Attribute Grammars -Dynamic Semantics.
Propositional Logic Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma Guadalajara
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
ARTIFICIAL INTELLIGENCE DR. ABRAHAM AI a field of computer science that is concerned with mechanizing things people do that require intelligent.
Artificial Intelligence Chapter 18. Representing Commonsense Knowledge.
1 Search vs. planning Situation calculus STRIPS operators Search vs. planning Situation calculus STRIPS operators.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 13 of 41 Monday, 20 September.
Computing & Information Sciences Kansas State University Lecture 13 of 42 CIS 530 / 730 Artificial Intelligence Lecture 13 of 42 William H. Hsu Department.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 17 Wednesday, 01 October.
3.2 Semantics. 2 Semantics Attribute Grammars The Meanings of Programs: Semantics Sebesta Chapter 3.
ISBN Chapter 3 Describing Semantics.
The AI War LISP and Prolog Basic Concepts of Logic Programming
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 12 Friday, 17 September.
Computing & Information Sciences Kansas State University Lecture 14 of 42 CIS 530 / 730 Artificial Intelligence Lecture 14 of 42 William H. Hsu Department.
Automated Reasoning Early AI explored how to automated several reasoning tasks – these were solved by what we might call weak problem solving methods as.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 14 of 41 Wednesday, 22.
CS6133 Software Specification and Verification
Artificial Intelligence Chapter 15 The Predicate Calculus Artificial Intelligence Chapter 15 The Predicate Calculus Biointelligence Lab School of Computer.
Artificial Intelligence “Introduction to Formal Logic” Jennifer J. Burg Department of Mathematics and Computer Science.
第 1 6 章 谓词演算中的归结. 2 Outline Unification Predicate-Calculus Resolution Completeness and Soundness Converting Arbitrary wffs to Clause Form Using Resolution.
Chapter 7. Propositional and Predicate Logic Fall 2013 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
Albert Gatt LIN3021 Formal Semantics Lecture 3. Aims This lecture is divided into two parts: 1. We make our first attempts at formalising the notion of.
First-Order Logic Semantics Reading: Chapter 8, , FOL Syntax and Semantics read: FOL Knowledge Engineering read: FOL.
Artificial Intelligence Chapter 23 Multiple Agents Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
The situation calculus K. V. S. Prasad Notes for TIN171/DIT410 (Friday, 26 March 2010) Based on Nils Nilsson, “Artificial Intelligence: a new synthesis”,
Artificial Intelligence 2004 Planning: Situation Calculus Review STRIPS POP Hierarchical Planning Situation Calculus (John McCarthy) situations.
CSC3315 (Spring 2009)1 CSC 3315 Languages & Compilers Hamid Harroud School of Science and Engineering, Akhawayn University
Artificial Intelligence Chapter 13 The Propositional Calculus Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
1 Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially.
Computing & Information Sciences Kansas State University Friday, 13 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 21 of 42 Friday, 13 October.
Artificial Intelligence Chapter 7 Agents That Plan Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
March 3, 2016Introduction to Artificial Intelligence Lecture 12: Knowledge Representation & Reasoning I 1 Back to “Serious” Topics… Knowledge Representation.
Biointelligence Lab School of Computer Sci. & Eng. Seoul National University Artificial Intelligence Chapter 8 Uninformed Search.
L9. Planning Agents L7_exAnswer and explanation Review
Artificial Intelligence Chapter 17 Knowledge-Based Systems
Artificial Intelligence Chapter 17 Knowledge-Based Systems
Horn Clause Computation with DNA Molecules
CSE 311 Foundations of Computing I
L11. Planning Agents and STRIPS
Biointelligence Lab School of Computer Sci. & Eng.
Artificial Intelligence Chapter 15. The Predicate Calculus
Artificial Intelligence Chapter 23. Multiple Agents
Negations of quantifiers
Biointelligence Lab School of Computer Sci. & Eng.
Artificial Intelligence Chapter 17. Knowledge-Based Systems
Artificial Intelligence Chapter 21. The Situation Calculus
Artificial Intelligence Chapter 17 Knowledge-Based Systems
Representations & Reasoning Systems (RRS) (2.2)
Habib Ullah qamar Mscs(se)
Presentation transcript:

Artificial Intelligence Chapter 21 The Situation Calculus Biointelligence Lab School of Computer Sci. & Eng. Seoul National University

(C) SNU CSE Biointelligence Lab2 Outline Reasoning about States and Actions Some Difficulties Generating Plans Additional Readings and Discussion

(C) SNU CSE Biointelligence Lab Reasoning about States and Actions To investigate feature-based planning methods much more thoroughly, richer language to describe features and the constraints among them will be introduced. Generally, a goal condition can be described by any wff in the predicate calculus, and we can determine if a goal is satisfied in a world state described by formulas by attempting to prove the goal wff from those formulas.

(C) SNU CSE Biointelligence Lab4 Situation calculus (1/3) A predicate calculus formalization of states, actions, and the effects of actions on states. Our knowledge about states and actions as formulas in the first-order predicate calculus Then use a deduction system to ask questions such as “Does there exist a state to satisfy certain properties, and if so, how can the present state be transformed into that state by actions”  A plan for achieving the desired state.

(C) SNU CSE Biointelligence Lab5 Situation calculus (2/3) The situation calculus was used in some early AI planning systems.  it does not used nowadays. However, the formalism remains important for exposing and helping to clarify conceptual problems.

(C) SNU CSE Biointelligence Lab6 Situation calculus (3/3) In order to describe states in the situation calculus, we reify states. States can be denoted by constant symbols (S0, S1, S2, …), by variables, or by functional expressions. Fluents: the atomic wff can denote relations over states.

(C) SNU CSE Biointelligence Lab7 Example (Figure 21.1) First-order predicate calculus On(B,A)  On(A,C)  On(C,F1)  Clear(B)  … True statement On(B,A,S0)  On(A,C,S0)  On(C,F1,S0)  Clear(B, S0) Prepositions true of all states (  x,y,s)[On(x,y,s)  (y=F1)   Clear(y,s)] And (  s)Clear(F1,s)

(C) SNU CSE Biointelligence Lab8 To represent actions and the effects (1/2) 1. Reify the action  Actions can be denoted by constant symbols, by variables, or by functional expressions  Generally, we can represent a family of move actions by the schema, move(x,y,z), where x, y, and z are schema variables. 2. Imagine a function constant, do, that denotes a function that maps actions and states into states.  do( ,  ) denotes a function that maps the state-action pair into the state obtained by performing the action denoted by  in the state denoted by .

(C) SNU CSE Biointelligence Lab9 To represent actions and the effects (2/2) 3. Express the effects of actions by wffs.  There are two such wffs for each action-fluent pair.  For the pair {On, move}. [On(x,y,s)  Clear(x,s)  Clear(z,s)  (x  z)  On(x,z,do(move(x,y,z),s))] And [On(x,y,s)  Clear(x,s)  Clear(z,s)  (x  z)   On(x,z,do(move(x,y,z),s))] positive effect axiom negative effect axiom preconditions consequent

(C) SNU CSE Biointelligence Lab10 Effect axioms We can also write effect axioms for the {Clear, move} pair. [On(x,y,s)  Clear(x,s)  Clear(z,s)  (x  z)  (y  z)  Clear(y,do(move(x,y,z),s))] [On(x,y,s)  Clear(x,s)  Clear(z,s)  (x  z)  (z  F1)   Clear(z,do(move(x,y,z),s))] The antecedents consist of two parts  One part expresses the preconditions under which the action can be executed  The other part expresses the condition under which the action will have the effect expressed in the consequent of the axiom.

(C) SNU CSE Biointelligence Lab11 Figure 21.2 Mapping a State-Action Pair into a State

(C) SNU CSE Biointelligence Lab Frame Axioms (1/3) Not all of the statements true about state do(move(B,A,F1),S0) can be inferred by the effects axioms.  Before the move, such as that C was on the floor and that B was clear are also true of the state after the move. In order to make inferences about these constancies, we need frame axioms for each action and for each fluent that doesn’t change as a result of the action.

(C) SNU CSE Biointelligence Lab Frame Axioms (2/3) The frame axioms for the pair, {(move, On)} [On(x,y,s)  (x  u)]  On(x,y,do(move(u,y,z),s)) (  On(x,y,s)  [(x  u)  (y  z)]   On(x,y,do(move(u,v,z),s)) The frame axioms for the pair, {move, Clear} Clear(u,s)  (u  z)]  Clear(u,do(move(x,y,z),s))  Clear(u,s)  (u  y)   Clear(u,do(move(x,y,z),s)) positive frame axiomsnegative frame axioms

(C) SNU CSE Biointelligence Lab Frame Axioms (3/3) Frame axioms are used to prove that a property of a state remains true if the state is changed by an action that doesn’t affect that property. Frame problem  The various difficulties associated with dealing with fluents that are not affected by actions.

(C) SNU CSE Biointelligence Lab Qualifications The antecedent of the transition formula describing an action such as move gives the preconditions for a rather idealized case.  To be more precise, adding other qualification such as  Too_heavy(x,s),  Glued_down(x,s),  Armbroken(s), … Qualification problem  The difficulty of specifying all of the important qualifications.

(C) SNU CSE Biointelligence Lab Ramifications Ramification problem  Keeping track of which derived formulas survive subsequent state transitions.

(C) SNU CSE Biointelligence Lab Generating Plans To generate a plan that achieves some goal,  (s),  We attempt to prove (  s)  (s)  And use the answer predicate to extract the state as a function of the nested actions that produce it.

(C) SNU CSE Biointelligence Lab18 Example (Figure 21.1) (1/2) We want a plan that gets block B on the floor from the initial state, S0, given in Figure Prove (  s) On(B, F1, s) We will prove by resolution refutation that the negation of (  s) On(B, F1, s), together with the formulas that describe S0 and the effects of move are inconsistent.  Use an answer predicate to capture the substitutions made during the proof.

(C) SNU CSE Biointelligence Lab19 Example (Figure 21.1) (2/2) On(A,C,S0) On(C,F1,S0) Clear(B,S0) Clear(F1,S0) [On(x,y,s)  Clear(x,s)  Clear(z,s)  (x  z)  On(x,z,do(move(x,y,z),s))]

(C) SNU CSE Biointelligence Lab20 Difficulties If several actions are required to achieve a goal, the action functions would be nested. The proof effort is too large for even simple plan.

(C) SNU CSE Biointelligence Lab21 Additional Readings [Reiter 1991]  Successor-state axiom [Shanahan 1997]  Frame problem [Levesque, et al. 1977]  GOLOG(alGol in LOGic) [Scherl & Levesque 1993]  Robot study in Perception Robot Group