SIF8072 Distributed Artificial Intelligence and Intelligent Agents 20 February 2003 Lecture 6: Agent Theory Lecturer: Sobah.

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

Brief Introduction to Logic. Outline Historical View Propositional Logic : Syntax Propositional Logic : Semantics Satisfiability Natural Deduction : Proofs.
ARCHITECTURES FOR ARTIFICIAL INTELLIGENCE SYSTEMS
Artificial Intelligence Chapter 13 The Propositional Calculus Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Biointelligence Lab School of Computer Sci. & Eng.
Artificial Intelligence Chapter 21 The Situation Calculus Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
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.
CS6133 Software Specification and Verification
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
LDK R Logics for Data and Knowledge Representation Modal Logic Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto Giunchiglia,
Knowledge Representation Methods
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Computability and Complexity 9-1 Computability and Complexity Andrei Bulatov Logic Reminder (Cnt’d)
Logic. Propositional Logic Logic as a Knowledge Representation Language A Logic is a formal language, with precisely defined syntax and semantics, which.
Logic Programming Languages. Objective To introduce the concepts of logic programming and logic programming languages To introduce a brief description.
Brief Introduction to Logic. Outline Historical View Propositional Logic : Syntax Propositional Logic : Semantics Satisfiability Natural Deduction : Proofs.
Department of Computer Science© G.M.P O'Hare University College Dublin DEPARTMENT OF COMPUTER SCIENCE COMP 4.19Multi-Agent Systems(MAS) Lectures 19&20.
Lecture 4&5: Model Checking: A quick introduction Professor Aditya Ghose Director, Decision Systems Lab School of IT and Computer Science University of.
Presentation on Formalising Speech Acts (Course: Formal Logic)
From Chapter 4 Formal Specification using Z David Lightfoot
Logical Agents Chapter 7 Feb 26, Knowledge and Reasoning Knowledge of action outcome enables problem solving –a reflex agent can only find way from.
Predicate Calculus.
Artificial Intelligence: Definition “... the branch of computer science that is concerned with the automation of intelligent behavior.” (Luger, 2009) “The.
Chapter 8 Architecture Analysis. 8 – Architecture Analysis 8.1 Analysis Techniques 8.2 Quantitative Analysis  Performance Views  Performance.
Automaten und Formale Sprachen Epilog
Reasoning About the Knowledge of Multiple Agents Ashker Ibne Mujib Andrew Reinders 1.
Introduction to AgentSpeak and Jason for Programming Multi-agent Systems (1) Dr Fuhua (Oscar) Lin SCIS Athabasca University June 19, 2009.
EEL 5937 Models of agents based on intentional logic EEL 5937 Multi Agent Systems.
Declarative vs Procedural Programming  Procedural programming requires that – the programmer tell the computer what to do. That is, how to get the output.
Pattern-directed inference systems
ISBN Chapter 3 Describing Semantics -Attribute Grammars -Dynamic Semantics.
ARTIFICIAL INTELLIGENCE Lecture 3 Predicate Calculus.
LOGIC AND ONTOLOGY Both logic and ontology are important areas of philosophy covering large, diverse, and active research projects. These two areas overlap.
Semantic web course – Computer Engineering Department – Sharif Univ. of Technology – Fall Description Logics: Logic foundation of Semantic Web Semantic.
LDK R Logics for Data and Knowledge Representation Modal Logic Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto Giunchiglia,
LDK R Logics for Data and Knowledge Representation PL of Classes.
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Spring 2006-Lecture 8.
Key Concepts Representation Inference Semantics Discourse Pragmatics Computation.
3.2 Semantics. 2 Semantics Attribute Grammars The Meanings of Programs: Semantics Sebesta Chapter 3.
Theory and Applications
Modeling Speech Acts and Joint Intentions in Modal Markov Logic Henry Kautz University of Washington.
©Agent Technology, 2008, Ai Lab NJU Agent Technology Agent model and theory.
CS6133 Software Specification and Verification
Reasoning about Knowledge 1 INF02511: Knowledge Engineering Reasoning about Knowledge (a very short introduction) Iyad Rahwan.
Artificial Intelligence 2004 Non-Classical Logics Non-Classical Logics Specific Language Constructs added to classic FOPL Different Types of Logics.
For Wednesday Read chapter 9, sections 1-3 Homework: –Chapter 7, exercises 8 and 9.
CS2351 Artificial Intelligence Bhaskar.V Class Notes on Knowledge Representation - Logical Agents.
ece 627 intelligent web: ontology and beyond
1 CSEP590 – Model Checking and Automated Verification Lecture outline for July 9, 2003.
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.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
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.
Logics for Data and Knowledge Representation ClassL (part 1): syntax and semantics.
EEL 5937 Content languages EEL 5937 Multi Agent Systems Lecture 10, Feb. 6, 2003 Lotzi Bölöni.
Knowledge Representation and Reasoning
1 Lecture 3 The Languages of K, T, B and S4. 2 Last time we extended the language PC to the language S5 by adding two new symbols ‘□’ (for ‘It is necessary.
Knowledge Representation and Inference Dr Nicholas Gibbins 32/3019.
Logics for Data and Knowledge Representation ClassL (part 1): syntax and semantics.
Artificial Intelligence Logical Agents Chapter 7.
Logics for Data and Knowledge Representation
The Propositional Calculus
Proposition & Predicates
EPISTEMIC LOGIC.
Logics for Data and Knowledge Representation
Artificial Intelligence Chapter 23. Multiple Agents
Computer Security: Art and Science, 2nd Edition
Artificial Intelligence 2004 Non-Classical Logics
Introduction to Computational Linguistics
Presentation transcript:

SIF8072 Distributed Artificial Intelligence and Intelligent Agents 20 February 2003 Lecture 6: Agent Theory Lecturer: Sobah Abbas Petersen

2 Lecture Outline 1.Why agent theory? 2.Agents as intentional systems 3.Foundations of formal logic 4.Introduction to modal logic 5.Logic of knowledge 6.Examples of agent theory amd models

3 References - Curriculum Wooldridge: ”Introduction to MAS”, –Chapter 12 Not in curriculum: –M. J. Wooldridge, N. R. Jennings. Intelligent Agents: Theory and Practice Knowledge Engineering Review, 1995, (Section 2).

4 Why Thoery? Formal theory have (arguably) had little impact on the general practice of software development. Why should they be relevant in agent-based systems?  Answer: we need to be able to give a semantics to the architecture, languages and tools that we use – literally a meaning. Without a semantics, it is never clear exactly what is happenng and why it works. End users (e.g. programmers) need never read or understand these semantics. We need a theory to reach any kind of profound understanding of these tools.

5 Use of Formalisms Formalisation of agents have been used for 2 distinct purposes: 1.As internal specification language to be used by the agent in its reasoning or action. 2.As external metalanguage to be used by the designer to specify, design and verify certain behavioural properties of agents situated in a dynamic environment. Ref: Singh et. al., 1999

6 What is Agent Theory? Agent theory gives: –An overview of the ways in which an agent is conceptualised. –Semantics to the architecture, language and tools. An agent model is needed to develop a theory of agents. –e.g: Intentional systems - agent’s behavior is explained in terms of attitudes such as believing and wanting. Two main issues: semantic and syntactic.

7 Study of Knowledge 1 1.What do we know? 2.What can we know? 3.What does it mean to say someone knows something? 4.What does an agent need to know in order to perform an action? 5.How does an agent know whether it knows enough to perform an action? 6.At what point does an economic agent know enough to stop gathering information and make a decision?

8 Individual Perspective Group Perspective –True facts about the world –Knowledge of other agents in the group –Everyone knows, everyone knows that everyone knows... –Distributed Knowledge Study of Knowledge 2

9 Where do theorists start from?  The notion of an agent as an intentional system. So, agent theorists start with the strong view of agents as intentional systems: one whose simplest consistent description requires the intentional stance. Agents as Intentional Systems

10 We want to be able to design and build computer systems in terms of mentalistic notions. Before we can do this, we need to identify a manageable subset of these attitudes and a model of how they interact to generate system behaviour. So first, which attitutes? Thoeries of Attitudes 1

11 Two categories: –information attitudes –pro-attitudes Thoeries of Attitudes 2 belief knowledge desire intention obligation commitment choice …..

12 How do we formalise attitudes? Consider… Janine believes Cronos is father of Zeus Naive translation into first-order logic: Bel(Janine, Father(Zeus,Cronos) –Father(Zeus, Cronos) is a formula of first-order logic and not a term  Need to be able to apply ”Bel” to formulae Formalising Attitudes 1

13 Allows us to substitute terms with the same denomination: –Consider (Zeus = Jupiter) Bel(Janine, Father(Jupiter,Cronos) –But believing that father of Zeus is Cronos is not the same as believing that father of Zeus is Jupiter.  Intentional systems are referentially opaque –Standard substitution rules of first-order logic do not apply. (intentional notions are not truth functional) Formalising Attitudes 2

14 There are 2 sorts of problems to be addressed in developing a logical formalism for intentional notions: 1.Syntactic 2.Semantic Thus, any formalism can be characterised in terms of two attributes: its language of fomulation and semantic model. Formalising Attitudes 3

15 Two fundamental approaches to the syntactic problem: 1.Use a modal language, which contains modal operators, which are applied to formulae; 2.Use a meta-language: a first-order language containing terms that denote formulae of some other object language. Two basic approaches to the semantic problem: 1.Possible worlds semantics 2.Interpreted symbol structures  We will focus on the possible world semantics and modal logic. Formalising Attitudes 4

16 Foundations of Formal Logic 1 A formal logic is a game for producing symbolic objects according to given rules. Syntax: Alphabet: –Variables (X, Y,..) –Constants (a, abc, 15,...) –Functors (f/n) –Predicate symbols (p, q,..) –Logical Connectivities ( , , , ,  ) –Quantifiers ( ,  ) –Auxiliary symbols

17 Foundations of Formal Logic 2 Terms: –any constant in T is in A –any variable in T is in A –if f is an n-ary functor in A and t 1..t n  T, then f(t 1..t n )  T

18 Foundations of Formal Logic 3 Semantics of formulae: –Negation:  A is true if A is false –Conjunction: A  B is true if both A and B are true –Disjunction: A  B is true if either A or B is true –Implication: A  B is true if either  A or B are true –Universal quantifier  X: A(x) is true if A is true for every X –Existential quantifier  X: A(x) is true if A is true for some X

19 Foundations of Formal Logic 4 Semantics of formulae continued: –Propositional logic is the logic of connectives, , , ,  –Adding quantifiers give First-Order Logic, sometimes called Predicate Calculus –Adding quantifiers over formula variables give Higher Order Logic Example: Janine believes Cronos is father of Zeus can be expressed as: Bel(Janine, Father(Zeus,Cronos)

20 Possible Worlds 1 Intuitive Idea: –Besides the true states of affairs, there are a number of states of affairs, or ”worlds”. Each world represents one state of affairs.  An agent’s beliefs can be characterised as a set of possible worlds. Can be represented using modal logic. Advantages of this approach: –mathematical theory is appealing. –neutral on the subject of the cognitive structure.

21 Possible Worlds 2 Consider an agent playing a card game (e.g. poker), who possessed the ace of spades. How could the agent deduce what cards were possessed by the opponents? First, calculate all the various ways that the pack of cards could possibly have been distributed among the various players. Then, systematically eliminate all those configurations which are not possible, given what the agent knows. (e.g. any configuration in which the agent did not possess the ace of spades could be rejected.)

22 Possible Worlds 3 Each configuration remaining after this is a world; A state of affairs considered possible, given what the agent knows.  Epistemic alternatives Something true in all our agent’s possibilities is believed by the agent. e.g. In all our agent’s epistemic alternatives, it has the ace of spades. How can possible worlds be incorporated into the semantic framework of logic?

23 Modal Logic 1 Modal logic was used by philosophers to investigate different modes of truth, –e.g. possibly true, necessarily true In the study of agents, it is used to give meaning to concepts such as belief and knowledge.

24 Modal Logic – 2 Modal logic can be considered as the logical theory of necessity and possibility It is essentially classical propositional logic extended by two operators  necessity  possibility Examples: –”it is necessary that the sun rises in the east” –  sun-rises-in-the-east –”it is possible that it rains” -  rain

25 Modal Logic – 3 Syntax: Let S = {p, q,... } be a set of atomic propositions If p  S then p is a formula If A, B are formulae, then so are  A and A  B If A is a formulae, then so are  A and  A

26 Modal Logic 4 Duality of operators –  A     A –  A     A Two Basic Properties 1.K axiom schema:  (A  B)  (  A   B) (K in honour of Kripke) 2.Necessitation Rule: if A is valid, then  A is valid

27 Modal Logic 5 The semantics of modal logic is traditionally given in terms of possible worlds. –The formula  A is true if A is true in every world accessible from the current world –The formula  A is true if A is true in at least one world accessible from the current world With sets of worlds as primitive, the structure of the model is captured by relating the different worlds via a binary accessibility relation.

28 Modal Logic 6 Formalising possible worlds (Kripke structure): –(S, π, K 1 …K n ) S – set of possible worlds Π – set of formulae true at a world K i – a binary accessibility relation on S (a set of pairs of elements of S) w1 w2 w3 P,Q P,  Q  P,  Q w1 :  P  Q Worlds w2 and w3 are accessible from world w1.

29 Modal Logic 7 Possible properties of accessibility relations: –Reflexive, for all s  S, we have (s,s)  K –Symmetric, for all s,t  S, we have (s,t)  K iff (t,s)  K –Transitive, for all s,t,u  S, we have that if (s,t)  K and (t,u)  K, then (s,u)  K –Serial, for all s  S, there is some t such that (s,t)  K –Euclidian, for all s,t,u  S, whenever (s,t)  K and (s,u)  K, then (t,u)  K

30 Modal Logic 7 Properties of acessibility relation are represented by axiom schemas: –T axiom : corresponds to reflexive accessibility relation  A  A –D axiom : corresponds to serial accessibility relation  A   A –4 axiom : corresponds to transitive accessibility relation  A    A –5 axiom : corresponds to euclidean accessibility relation  A    A

31 Modal Logic 8 w1 w2 P,Q  P,  Q w4 P,  Q w1:  P w2:  P w1:  P Transitivity: w1:  P w2:  P w1:   P Euclidean w1 w2 P,Q  P,  Q w4 P,  Q w5  P,Q

32 Logic of knowledge 1 The formula  A is read as ”it is known that A” or ”agent knows A” For group knowledge, we have an indexed set of modal operators K 1,.., K n for  K 1 A is read as ”agent 1 know A”

33 Logic of knowledge 2 Some examples: K 1 K 2 p  K 2 K 1 K 2 p –Agent1 knows that Agent2 knows p, but Agent2 doesn’t know that Agent1 knows that Agent2 knows p  K 1  (K 2 K 1 K 2 p)   K 1  (  K 2 K 1 K 2 p) –Agent1 doesn’t know whether Agent2 knows that Agent1 knows that Agent2 knows p

34 Modal Logic and Knowledge and Belief 1 How well does normal modal logic serve as a logic of knowledge and belief? Consider the K axiom and the necessitation rule: K axiom schema:  (A  B)  (  A   B) Necessitation Rule: if A is valid, then  A is valid Necessitation rule: an agent knows all valid formulae, (an agent will have an infinite number of items of knowledge). K axiom: agent’s knowledge is closed under logical consequence.

35 Logical omniscience problem – constituted by that of knowing all valid formulae and that of knowledge/belief being closed under consequence. Disadvantages of using possible world semantics for agents are: agents believe all valid formulae agents’ beliefs are closed under logical consequence equivalent propositions are identical beliefs if agents are inconsistent, then they believe everything. Modal Logic and Knowledge and Belief 2

36 T axiom (Knowledge axiom) K i A  A what is known is true D axiom K i A   K i  A if i knows A then i doesn’t know  A 4 axiom (positive introspection) K i A  K i K i A if i knows A then i knows that it knows A 5 axiom (negative introspection)  K i A  K i  K i  A i is aware of what it doesn’t know Modal Logic and Knowledge and Belief 3

37 Knowledge is often defined as true belief:  agent knows A if agent believes A and A is true. Axioms KTD45 are often chosen as a logic of knowledge Axioms KD45 are often chosen as a logic of belief Modal Logic and Knowledge and Belief 4

38 Systems and formalisms that give primary importance to intentions are often referred to as BDI-architecture. Formalisation of intentions based on branching-time possible worlds model. Crucial elements are: –Intentions are treated on a par with beliefs and goals. –Distinguishes between choices and the possibilities of the different outcomes of actions. –Interrelationship between beliefs, goals and intentions are specified. –(Goals are chosen desires of an agent.) BDI Architecture 1- belief, desire, intentions

39 BDI Architecture 2 Informal semantics: The world is modelled by using a temporal structure with a branching time future and a single past – this is called a time tree. A particular time point in a particular world is a situation. Event types transform one time point to another. Primitive events are those events directly performable by the agent and uniquely determines the next time point. The branches in a time tree represent the choices available to an agent.

40 belief-accessible world goal-accessible world intentions-accessible world Example of an interrelationship: Intentions are goals that the agents have committed to attempt to realise. BDI Architecture 5

41 Uses 2 modal operators: –Optional: a path formula is said to be optional if, at a particular time point in a time tree, it is true of atleast one path emanating from that point. –Inevitable: a path formula is said to be inevitable if it is true of all paths emanating from that point. Temporal operators: next, eventually, always and until. A combination of these modalities can be used to describe the options available to an agent. BDI Architecture 3

42 p: it is optional that John will eventually visit London r: it is optional that Mary will always live in Australia q: it is inevitable that the world with eventually come to an end s: it is inevitable that one plus one will always be two BDI Architecture 4 s s rsrs rsrs s psps rsrs q q q optionally eventually p optionally always r inevitable eventually q inevitably always s

43 Intentions: intentions are represented by a set of intention-accessible worlds. These worlds are ones that an agent has committed to attempt to realise. The intention-accessible worlds of an agent must be compatible with its goal-accessible worlds. For each goal-accessible world w in time t, there must be an intention- accessible sub-world of w at time t. BDI Architecture 6

44 Per wants to have a party. He believes that Ole and Kristin would also like a party and will help him plan and organise it. Per recognises the potential for cooperation with Ole and Kristin to organise the party. Let’s define Per’s beliefs about organising the party. Let’s plan a party….

45 Per’s beliefs: goal(Per, drinks)  goal(Ole, food)  goal(Kristin, music)  bel(Per, food)  bel(Per, I-can(Ole, food))  bel(Per, I-can(Kristin, music))   can(Per, music)   can(Per, drinks)……. Ole and kristin will have similar beliefs. Let’s plan a party….

46 Summary 1.Why agent theory? 2.Agents as intentional systems 3.Foundations of formal logic 4.Introduction to modal logic 5.Logic of knowledge 6.Examples of agent theory amd models

47 Next Lecture: Agent-oriented Software Engineering Will be based on: ”Methodologies”, Chapter 10 in Wooldridge: ”Introduction to MultiAgent Systems”