Ontologies Reasoning Components Agents Simulations Belief Update, Belief Revision and Planning with the Fluent Calculus and FLUX Cleyton Rodrigues Marcos.

Slides:



Advertisements
Similar presentations
REVIEW : Planning To make your thinking more concrete, use a real problem to ground your discussion. –Develop a plan for a person who is getting out of.
Advertisements

Russell and Norvig Chapter 7
First-Order Logic: Better choice for Wumpus World Propositional logic represents facts First-order logic gives us Objects Relations: how objects relate.
Logic Programming Automated Reasoning in practice.
Ontologies Reasoning Components Agents Simulations Reasoning about actions, change, events and time Jacques Robin.
The Logic of Intelligence Pei Wang Department of Computer and Information Sciences Temple University.
Situation Calculus for Action Descriptions We talked about STRIPS representations for actions. Another common representation is called the Situation Calculus.
Artificial Intelligence Chapter 21 The Situation Calculus Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Artificial Intelligence CS482, CS682, MW 1 – 2:15, SEM 201, MS 227 Prerequisites: 302, 365 Instructor: Sushil Louis,
Rulebase Expert System and Uncertainty. Rule-based ES Rules as a knowledge representation technique Type of rules :- relation, recommendation, directive,
1 DCP 1172 Introduction to Artificial Intelligence Chang-Sheng Chen Topics Covered: Introduction to Nonmonotonic Logic.
Agents That Reason Logically Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2004.
PROBABILITY. Uncertainty  Let action A t = leave for airport t minutes before flight from Logan Airport  Will A t get me there on time ? Problems :
Artificial Intelligence Knowledge-based Agents Russell and Norvig, Ch. 6, 7.
Logic in general Logics are formal languages for representing information such that conclusions can be drawn Syntax defines the sentences in the language.
1 Problem Solving CS 331 Dr M M Awais Representational Methods Formal Methods Propositional Logic Predicate Logic.
CS 547: Sensing and Planning in Robotics Gaurav S. Sukhatme Computer Science Robotic Embedded Systems Laboratory University of Southern California
Logical Agents Chapter 7. Why Do We Need Logic? Problem-solving agents were very inflexible: hard code every possible state. Search is almost always exponential.
Logical Agents Chapter 7. Why Do We Need Logic? Problem-solving agents were very inflexible: hard code every possible state. Search is almost always exponential.
Logical Agents Chapter 7 Feb 26, Knowledge and Reasoning Knowledge of action outcome enables problem solving –a reflex agent can only find way from.
Knowledge Representation and Reasoning University "Politehnica" of Bucharest Department of Computer Science Fall 2010 Adina Magda Florea
1 Knowledge Based Systems (CM0377) Lecture 12 (Last modified 2nd May 2002)
Logical Agents Chapter 7 (based on slides from Stuart Russell and Hwee Tou Ng)
Ontologies Reasoning Components Agents Simulations Belief Update, Planning and the Fluent Calculus Jacques Robin.
Propositional Logic: Logical Agents (Part I) This lecture topic: Propositional Logic (two lectures) Chapter (this lecture, Part I) Chapter 7.5.
Pattern-directed inference systems
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
1 Knowledge Representation CS 171/CS How to represent reality? Use an ontology (a formal representation of reality) General/abstract domain Specific.
Devina DesaiF r a m e P r o b l e m What is a Frame Problem Environment for an agent is not static Identifying which things remain static in changing word.
1 CS 2710, ISSP 2160 The Situation Calculus KR and Planning Some final topics in KR.
Simultaneously Learning and Filtering Juan F. Mancilla-Caceres CS498EA - Fall 2011 Some slides from Connecting Learning and Logic, Eyal Amir 2006.
CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes Jan 17, 2012.
Logical Agents Chapter 7. Knowledge bases Knowledge base (KB): set of sentences in a formal language Inference: deriving new sentences from the KB. E.g.:
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Knowledge Representation Lecture # 17, 18 & 19. Motivation (1) Up to now, we concentrated on search methods in worlds that can be relatively easily represented.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes Jan 24, 2012.
Rational Agency CSMC Introduction to Artificial Intelligence January 8, 2007.
Decision Theoretic Planning. Decisions Under Uncertainty  Some areas of AI (e.g., planning) focus on decision making in domains where the environment.
Some Thoughts to Consider 8 How difficult is it to get a group of people, or a group of companies, or a group of nations to agree on a particular ontology?
© Copyright 2008 STI INNSBRUCK Intelligent Systems Propositional Logic.
Rational Agency CSMC Introduction to Artificial Intelligence January 8, 2004.
Lecture 8-1CS250: Intro to AI/Lisp FOPL, Part Deux Lecture 8-1 November 16 th, 1999 CS250.
Inferring Declarative Requirements Specification from Operational Scenarios IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, VOL. 24, NO. 12, DECEMBER, 1998.
CHR + D + A + O Operational Semantics in Fluent Calculus December, 2007.
1 CS 2710, ISSP 2160 Chapter 12, Part 1 Knowledge Representation.
1 An infrastructure for context-awareness based on first order logic 송지수 ISI LAB.
1 UNIT-3 KNOWLEDGE REPRESENTATION. 2 Agents that reason logically(Logical agents) A Knowledge based Agent The Wumpus world environment Representation,
Artificial Intelligence 2004 Planning: Situation Calculus Review STRIPS POP Hierarchical Planning Situation Calculus (John McCarthy) situations.
Issues in Temporal and Causal Inference Pei Wang Temple University, USA Patrick Hammer Graz University of Technology, Austria.
CHR Operational Semantics in Fluent Calculus (using Ramifications) November, 2007.
Intelligent Agents Chapter 2. How do you design an intelligent agent? Definition: An intelligent agent perceives its environment via sensors and acts.
Copyright 1999Paul F. Reynolds, Jr. Foundations of Logic Programming.
Artificial Intelligence Logical Agents Chapter 7.
Logical Agents. Inference : Example 1 How many variables? 3 variables A,B,C How many models? 2 3 = 8 models.
LOGICAL AGENTS CHAPTER 7 AIMA 3. OUTLINE  Knowledge-based agents  Wumpus world  Logic in general - models and entailment  Propositional (Boolean)
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
EA C461 – Artificial Intelligence Logical Agent
Intelligent Agents Chapter 2.
Logical Agents Chapter 7.
Introduction to Situation Calculus
WSSL: A Fluent Calculus-based Language for Web Service Specifications
George Baryannis and Dimitris Plexousakis
Logical Agents Chapter 7.
CS 416 Artificial Intelligence
Knowledge Representation I (Propositional Logic)
Artificial Intelligence Chapter 21. The Situation Calculus
Representations & Reasoning Systems (RRS) (2.2)
Logical Agents Prof. Dr. Widodo Budiharto 2018
NARS an Artificial General Intelligence Project
Presentation transcript:

Ontologies Reasoning Components Agents Simulations Belief Update, Belief Revision and Planning with the Fluent Calculus and FLUX Cleyton Rodrigues Marcos Aurelio Pablo Santana Jacques Robin

Non-Monotonic Reasoning  Monotonic Reasoning  KB |= f, then  g, KB  g |= f  Inference engine only performs ask and tell to the KB, never retract  Non-monotonic reasoning  Allows KB |= f, and then KB  g |  f  Previously derived facts can be retracted upon arrival (for example from sensors) of new, conflicting evidence

Sources of Non-monotonicity  Ontological  Non-stationary Environment  KB must reflect environment changes as time goes by  Epistemological  Partially observable Environment  Decision making requires using abduction in addition to deduction  KB must reflect changes of the agent’s beliefs as new evidences become available through sensing

Non-Monotonic Reasoning Case Study: The Wumpus World (from:

The Frame Problem  Almost everything stays unchanged between states  We want thus to specify just the modifications  The wrong way: At(Agent,x,s)  Adjacent(x,y)  At(Agent,y,Result(Go(x,y),s))  Why?  This axiom says what changes but not what stays the same!

The Ramification Problem  Ex:  I go from home to the store, creating a new situation S’. In S’:  I am now at the store  The number of people in the store went up by 1  The agent moves from (x,y) to (z,w)  If he holds something, this thing moves too to (z,w)  The hunter kills the wumpus in (x,y)  The wumpus is not in (x,y) anymore  Do we want to say all that in the action definition?  Actions have:  intended effects that satisfy the agent’s goal and justify their execution  side effects related to preconditions of other actions

The Qualification Problem  In the real world it is difficult to define the circumstances under which a given action is guaranteed to work.  think of everything that can go wrong!  e.g. grabbing an object may not work if it is slippery, glued down, a holographic projection, or the gripper fails, or the agent is struck by lightning…  if some conditions are left out the agent is in danger of generating false beliefs

Knowledge Representation Language for Non-Monotonic Reasoning  The Situation Calculus  The Event Calculus  Transaction Logic  The Fluent Calculus FAZER UM RESUMO DAS CARACTERÍSTICAS DE CADA LINGUAGEM!!!

Ontologies Reasoning Components Agents Simulations Fluent Calculus

The Fluent Calculus Layers Simple FC  Ramifications FC Planning Meta-reasoningConcurrency Non-Deterministic Environment Partially Observable Environment Ramifying Environment Concurrent Asynchronous Environment Noisy Sensors Noisy Actuators Belief Revision Communication Communicative Multi-Agent Environment  Actions with Conditional Effects Environments With Infinite Fluent Domains

The Simple Fluent Calculus: Key Ideas  Sorted first-order logic language  Fluent  “A fluent represents a single atomic property of the physical world which may change in the course of time, in particular through manipulation by the robot.”  Ex: player has ball, player position, ball position, player speed…  State  “…a so-called state is a snapshot of the environment at a certain moment.”  Action  Pre-condition Axioms  State Update Axioms  Sensing Actions

The Simple Fluent Calculus  Sorts  FLUENT  STATE  ACTION  SIT  Functions   :  STATE  State : SIT  STATE  Do : ACTION x SIT  SIT  o : STATE x STATE  STATE  Predicates  Poss : ACTION x STATE

The Simple Fluent Calculus: Foundational Axioms

The Simple Fluent Calculus: Abbreviations

The Simple Fluent Calculus: Pure State Formulas  Ex:  Holds(InRoom(r), z), Connects(d,r,r’)

The Simple Fluent Calculus: Action Precondition Axioms  Ex:

The Simple Fluent Calculus: State Update Axioms  Ex:

The Simple Fluent Calculus: MOF Metamodel Action Fluent State minus(f:Fluent) : State + do(a:Action) : State Situation o / holds poss * * * * **

Planning with the Simple Fluent Calculus  Fluent Calculus models how the current state changes given the actions performed by the agents  It can be used to “simulate” the outcomes of a given action sequence  Ex: Do(Open(D12), Do(Go(R1), S0)) = InRoom(R1) o Opened(D12) o...  The entire planning problem can be modeled as the problem of finding a situation in which certain goal conditions are met:  Ex:  s Holds(HasGold, s)

The Disjunctive Fluent Calculus  Non-deterministic actions: Alternative outcomes x Vagueness  Simple disjunctive state update axioms for non-deterministic actions  θ n is a first-order formula without terms of any reserved sort  Example  Alternative outcomes: Poss(Shoot, s)  (State(Do(Shoot, s)) = State(s) o DeadWumpus)  (State(Do(Shoot, s)) = State(s) o LiveWumpus)  Vagueness: Poss(Shoot, s)  Holds(Life(Wumpus, x),s)   y (State(Do(Shoot, s)) = State(s) o Life(Wumpus, y)  y < x)  Planning: should consider all possible outcomes! CONSIDERAR COMO VAMOS FAZER COM O METAMODEL

The Ramifying Fluent Calculus  Modeling Ramifications

The Ramifying Fluent Calculus  Sorted second-order logic language  Reserved Predicates:  Causes : STATE x STATE x STATE x STATE x STATE x STATE  Causes(z1, e1+, e1-, z2, e2+, e2-) If z1 is the result of positive effects e1+ and negative effects e1-, then an additional effect is caused which leads to z2 (now the result of positive and negative effects e2+ and e2-, resp.)  Ramify : STATE x STATE x STATE x STATE  Ramify(z, e+, e-, z’) z’ can be reached by iterated application of the underlying casual relation, starting in state z with momentum e+ and e-

Abbreviations

Foundational Axioms (Reflexive and Transitive Closure of Causes)

State Update Axiom with Ramifications  Simple  Disjunctive

Causal Relations Axiomatization  Relies on the assumption that the underlying Causes relation is completely specified CONSIDERAR COMO VAMOS FAZER COM O METAMODEL

The Concurrent Fluent Calculus  Allows agents to execute more than one action at a time concurrently  Motivation  Parallel actions lead to shorter plans and less execution time  Certain effects may only be achievable by simultaneous actions  Sorted second-order logic language  Extensions to Simple Fluent Calculus  Sorts  ACTION < CONCURRENT  Functions   :  CONCURRENT . : CONCURRENT x CONCURRENT  CONCURRENT  Do : CONCURRENT x SIT  SIT  DirState, DirEffect+, DirEffect-: CONCURRENT x SIT  STATE  Predicates  Poss : CONCURRENT x STATE  Affects : CONCURRENT x CONCURRENT

The Concurrent Fluent Calculus: Foundational Axioms

The Concurrent Fluent Calculus  Action Preconditions  Recursive state update axiom  Disjunctive recursive state update axiom

The Concurrent Fluent Calculus

The Concurrent Fluent Calculus: MOF Metamodel Action Fluent State minus(f:Fluent) : State + do(a:Action) : State Situation do(c:Concurrent) : Situatiuon + dirState(c:Concurrent) : State + dirEffectsPlus(c:Concurrent) : State) + dirEffectsMinus(c:Concurrent) : State o / holds Concurrent. poss affects * * * * * * * *

The Meta Fluent Calculus  Extends the Simple Fluent Calculus in order to allow handling partial knowledge about the environment  Extensions:  Predicates  KState : SIT x STATE  Knows : FluentFormula x SIT  Kwhether : FluentFormula x SIT  Unknown : FluentFormula x SIT  Functions   :  ACTION  ; : ACTION x ACTION  ACTION  If : FLUENT x ACTION x ACTION  ACTION

The Meta Fluent Calculus: The Knows Predicate

The Meta Fluent Calculus: The Unknown Predicate ?

The Meta Fluent Calculus: Knowledge Update Axioms  Define how states satisfying KState(s,z) relate to the states satisfying KState(Do(a,s),z)  Sensing Actions  Reduce the set of possible states  Physical Actions  Reflect what the agent knows about the effects of the respective action

The Meta Fluent Calculus: Knowledge Update by Sensing Actions  Knowledge Update Axioms for accurate sensing  Ex:

The Meta Fluent Calculus: Knowledge Update by Sensing Actions  Knowledge Update Axioms for sensing  Ex:

The Meta Fluent Calculus: Knowledge Update by Physical Actions  Knowledge Update Axioms  Ex:

The Meta Fluent Calculus: Conditional Actions  Extending the foundational axioms:  Ex: Ex: Do(Sense(Closed(DA3)) ; If(Closed(DA3), SendId,  ); Enter(R403), S0)

The Meta Fluent Calculus: Planning  Simple fluent calculus does not allows planning in platially known states (with unknown fluents)  Ex:  Conditional Actions allow agents to condition their actions on the outcome of sensing: Ex: Do(Sense(Closed(DA3)) ; If(Closed(DA3), SendId,  ); Enter(R403), S0)

The Meta Fluent Calculus: MOF metamodel Action Fluent State minus(f:Fluent) : State + do(a:Action) : State Situation o / holds poss KState \ Unknown \ Kwhether \ Knows ; If true false condition * * * * *** * * * * *

Flux

FLUX Predicates for Belief Update with the Simple Fluent Calculus

FLUX Example of Belief Update with the Simple Fluent Calculus

FLUX Predicates for Planning and Acting with the Simple Fluent Calculus

FLUX Example of Planning and Acting with the Simple Fluent Calculus

FLUX Predicates for Belief Update with the Ramifying Fluent Calculus

FLUX Example of Belief Update with the Ramifying Fluent Calculus

FLUX Predicates for Belief Update the Disjunctive Fluent Calculus

FLUX Example for Belief Update with the Disjunctive Fluent Calculus

FLUX Predicates for Belief Update with the Implicative Fluent Calculus

FLUX Example of Belief Update with the Implicative Fluent Calculus

FLUX Predicates for Planning and Acting with the Implicative Fluent Calculus

FLUX Example of Planning and Acting with the Implicative Fluent Calculus

FLUX Predicates for Belief Update with the Concurrent Fluent Calculus

FLUX Example of Belief Update with the Concurrent Fluent Calculus

FLUX Predicates for Planning and Acting with the Concurrent Fluent Calculus

FLUX Example of Planning and Acting with the Concurrent Fluent Calculus

FLUX Predicates for Belief Update with the Infinite Domain Fluent Calculus

FLUX Example of Belief Update with the Infinite Domain Fluent Calculus

FLUX Predicates for Planning and Acting with the Infinite Domain Fluent Calculus

FLUX Example of Planning and Acting with the Infinite Domain Fluent Calculus

FLUX Predicates for Belief Update with the Meta Fluent Calculus

FLUX Example of Belief Update with the Meta Fluent Calculus

FLUX Predicates for Belief Revision with the Meta Fluent Calculus

FLUX Example of Belief Revision with the Meta Fluent Calculus

FLUX Predicates for Planning and Acting with the Meta Fluent Calculus

FLUX Example of Planning and Acting with the Meta Fluent Calculus

FLUX Predicates for Belief Update with the Communicative Fluent Calculus

FLUX Example of Belief Update with the Communicative Fluent Calculus

FLUX Predicates for Belief Revision with the Meta Fluent Calculus

FLUX Example of Belief Revision with the Meta Fluent Calculus

FLUX Predicates for Planning and Acting with the Communicative Fluent Calculus

FLUX Example of Planning and Acting with the Communicative Fluent Calculus

Conclusion

References  sodas.cs.memphis.edu/ai/data/situationCalc.ppt 