Events Events are abstractions. They represent time related objects in space and time. Events can be treated as similar to ”ordinary” objects, but when.

Slides:



Advertisements
Similar presentations
Knowledge Representation using First-Order Logic
Advertisements

Artificial Intelligence
1 Knowledge Representation Introduction KR and Logic.
Logic Puzzles and Modal Logic. Closure properties in modal logic.
Artificial Intelligence Knowledge Representation
First-Order Logic: Better choice for Wumpus World Propositional logic represents facts First-order logic gives us Objects Relations: how objects relate.
The Foundations: Logic and Proofs
Situation Calculus for Action Descriptions We talked about STRIPS representations for actions. Another common representation is called the Situation Calculus.
Agents That Reason Logically Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2004.
Knowledge Representation
Key Stone Problem… Key Stone Problem… next Set 21 © 2007 Herbert I. Gross.
Knowledge Representation Formalization of facts about the real world Used for reasoning Ad-hoc or systematic? Comprehensiveness Completeness Ease of use.
Knowledge Representation AIMA 2 nd Ed. Chapter 10.
For Friday Finish chapter 10 No homework (get started on program 2)
Mental Events and Mental Objects Chapter 10 – Section 4.
Propositional Calculus A propositional calculus formula is composed of atomic propositions, which area simply statements that are either true or false.
CPSC 322, Lecture 19Slide 1 Propositional Logic Intro, Syntax Computer Science cpsc322, Lecture 19 (Textbook Chpt ) February, 23, 2009.
© Franz Kurfess Knowledge-Based Systems CSC 480: Artificial Intelligence Dr. Franz J. Kurfess Computer Science Department Cal Poly.
1 Chapter 7 Propositional and Predicate Logic. 2 Chapter 7 Contents (1) l What is Logic? l Logical Operators l Translating between English and Logic l.
Knowledge in intelligent systems So far, we’ve used relatively specialized, naïve agents. How can we build agents that incorporate knowledge and a memory?
From Chapter 4 Formal Specification using Z David Lightfoot
Logical and Rule-Based Reasoning Part I. Logical Models and Reasoning Big Question: Do people think logically?
Propositional Calculus Math Foundations of Computer Science.
Copyright © Cengage Learning. All rights reserved.
C++ Object Oriented 1. Class and Object The main purpose of C++ programming is to add object orientation to the C programming language and classes are.
Dr. Samy Abu Nasser Faculty of Engineering & Information Technology Artificial Intelligence.
Inference is a process of building a proof of a sentence, or put it differently inference is an implementation of the entailment relation between sentences.
Systems Architecture I1 Propositional Calculus Objective: To provide students with the concepts and techniques from propositional calculus so that they.
Ontologies Reasoning Components Agents Simulations Belief Update, Planning and the Fluent Calculus Jacques Robin.
CSNB234 ARTIFICIAL INTELLIGENCE
For Friday Exam 1. For Monday No reading Take home portion of exam due.
MATH 224 – Discrete Mathematics
1 Chapter 7 Propositional and Predicate Logic. 2 Chapter 7 Contents (1) l What is Logic? l Logical Operators l Translating between English and Logic l.
Journal Write a paragraph about a decision you recently made. Describe the decision and circumstances surrounding it. How did it turn out? Looking back,
Inductive Generalizations Induction is the basis for our commonsense beliefs about the world. In the most general sense, inductive reasoning, is that in.
For Wednesday Read chapter 13 Homework: –Chapter 10, exercise 5 (part 1 only, don’t redo) Progress for program 2 due.
LOGIC AND ONTOLOGY Both logic and ontology are important areas of philosophy covering large, diverse, and active research projects. These two areas overlap.
1 Knowledge Representation CS 171/CS How to represent reality? Use an ontology (a formal representation of reality) General/abstract domain Specific.
Propositional Calculus – Methods of Proof Predicate Calculus Math Foundations of Computer Science.
Propositional Calculus CS 270: Mathematical Foundations of Computer Science Jeremy Johnson.
Activity 1-19: The Propositional Calculus
Grade Book Database Presentation Jeanne Winstead CINS 137.
1 CS 2710, ISSP 2610 Chapter 12 Knowledge Representation.
Automated Reasoning Early AI explored how to automated several reasoning tasks – these were solved by what we might call weak problem solving methods as.
Artificial Intelligence 2004 Non-Classical Logics Non-Classical Logics Specific Language Constructs added to classic FOPL Different Types of Logics.
CS 285- Discrete Mathematics Lecture 4. Section 1.3 Predicate logic Predicate logic is an extension of propositional logic that permits concisely reasoning.
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?
11 Artificial Intelligence CS 165A Thursday, October 25, 2007  Knowledge and reasoning (Ch 7) Propositional logic 1.
Lecture 7-2CS250: Intro to AI/Lisp Building Knowledge Bases Lecture 7-2 February 18 th, 1999 CS250.
For Wednesday Read chapter 13 No homework. Program 2 Any questions?
Lecture 8-2CS250: Intro to AI/Lisp What do you mean, “What do I mean?” Lecture 8-2 November 18 th, 1999 CS250.
Artificial Intelligence Chapter 23 Multiple Agents Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
1 UNIT-3 KNOWLEDGE REPRESENTATION. 2 Agents that reason logically(Logical agents) A Knowledge based Agent The Wumpus world environment Representation,
Lecture 8-2CS250: Intro to AI/Lisp What do you mean, “What do I mean?” Lecture 8-2 November 18 th, 1999 CS250.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
PHILOSOPHY OF LANGUAGE Some topics and historical issues of the 20 th century.
Propositional Logic. Assignment Write any five rules each from two games which you like by using propositional logic notations.
Events Events are abstractions. They represent time related objects in space and time. Events can be treated as similar to ”ordinary” objects, but when.
Logic.
Valid and Invalid Arguments
CS 4700: Foundations of Artificial Intelligence
Knowledge and reasoning – second part
Knowledge Representation
CS 4700: Foundations of Artificial Intelligence
Artificial Intelligence Chapter 23. Multiple Agents
Knowledge and reasoning – second part
CS621: Artificial Intelligence
Artificial Intelligence 2004 Non-Classical Logics
Presentation transcript:

Events Events are abstractions. They represent time related objects in space and time. Events can be treated as similar to ”ordinary” objects, but when we talk about events, we use different wordings than for non temporal objects. The following paralells exist: SubEvent(BattleOf Britain,WorldWarII) Partof ( BattleOfBritain,WorldWarII) Period(BattleOf Britain)= [1940,1942]. Has(BattleOfBritain,period, [1940,1942]) Duration(Period(BattleOf Britain))=Years(2) Has(BattleOf Britain,Duration,2). Note that time intervals can be regarded as special form of event. SubEvent( BattleOf Britain, [1940,1942]).

Categorization of Events Like any other sort of objects, events can be grouped into categories. For example, WorldWarII belongs to the category Wars. To say that a Civil war occurred in England in the 1640s, we could say ako(event,thing). haveatt(event,period,interval). ako(war,event). haveatt(war,location,place). ako(civilwar,war). isa(w1,civilwars). has( w1,period,[1640,1649]). has(w1,location,england).

Event Examples We can add arguments to event description to create more specific categories. To say that Shankar flew from New York to New Dehli yesterday, we could write ako(flyevent,event). haveatt(flyevent,passenger,agent). haveatt(flyevent,source,place). haveatt(flyevent,destination,place). ako(fly(shankar,newyork,newdehli),flyevent). isa(e1, fly(shankar,newyork,newdehli)). has(e1,period,yesterday). A short notation for all this is E(fly(shankar,newyork,newdehli),yesterday). If we use a slightly different notation, we get close to a verbal expression do(fly(shankar,newyork,newdehli),yesterday).

Event objects and event categories In the previous example, it was tempting to let fly(shankar,newdelhi,newyork) be an event instead of an event category. ’isa(fly(shankar,newyork,newdehli),flyevent).’ ’has(fly(shankar,newyork,newdehli),period,yesterday).’ There are reasons to avoid this however because if Shankar flew from New York to New Delhi several times there would be no way to distinguish the the different times from the same expression fly(shankar,newyork,newdehli). However, there is a way of making a definition E(c,i)   e e  c  SubEvent(e,i) E(fly(shankar,newyork,newdehli),yesterday ). If we replace E by do, we we get closer to a verbal expression do(fly(shankar,newyork,newdehli),yesterday). Shankar did (at least once) yesterday fly from New York to New Delhi.

Shopping Event Examples In the shopping world, we can talk about shopping events. Yesterday, John went to the North Berkely Safeway supermarket and bought two pound of tomatoes and a pound of ground beef. We could give properties to buying event like this ako(buyingevent,event). haveatt(buyingevent,buyer,person). haveatt(buyingevent,purchase,bunchofgoods). haveatt(buyingevent,amount,money).

Shopping event cont’d A concrete shopping event can now be identified isa(e1,buyingevent). has(e1,buyer,john). has(e1,time,yesterday). has(e1,bunchofgoods,sometomatoesandbeef). We can also connect a verbal expression to a buyingevent do(buy(john, sometomatoesandbeef),yesterday). as isa(E,buyingevent), has(e1,buyer,john), has(e1,bunchofgoods,sometomatoesandbeef), has(e1,time,yesterday).

Processes The events so far are what we call discrete events. However, the category or set of events denoted Flying(Shankar) is actually made up of several subevents which are all members of Flying(Shankar). Categories of events with this property is called process categories. One metapredicate T(c,i) expresses that a process c is going on throughout an interval i. T(Working(Stuart),ToDayLunchHour).

Time Intervals Time is important for agents, and we shall look at two types: Moments and Intervals. Intervals have a Start, an End and a duration. Moments are special cases of Intervals with no duration, and Start = End. J. Allen was a pioneer in systematization of interval structures:

Relations between time intervals j i before(i,j) equal(i,j) | equal(j,i) (13 relations ) after(i,j)

Predicates on time intervals Meet(i,j) Before(i,j) After(j,i) During(i,j) Overlap(i,j) Overlap(j,i) Ends(i,j) Equals(i,j) Starts(i,j) i i i i j j j j i j There are 13 different relations (considering symmetries) i j i j

Event Calculus Event Calculus is a formalism for reasoning about events, times and actions. Event calculus reifies fluents and events. A complete set of predicates for one version of event calculus is: Holdsat(f,t) Fluent f is true at time t (”T(f,t)”) Happens(e,i) Event e happens over time interval i Initiates(e,f,t) Event e causes fluent f to start to hold at time t Terminates(e,f,t) Event e causes fluent f to cease to hold at time t Clipped(f,i) Fluent f ceases to be true during interval i Restored(f,i) Fluent f becomes true sometime during interval i

EC scenario % Tower Of Hanoi narration holdsat(on(a,b),sk(0)). holdsat(clear(a),sk(0)). holdsat(on(b,c)),sk(0)).. holdsat(on(c,p1),sk(0)). holdsat(clear(p2),sk(0)). holdsat(clear(p3),sk(0)). happens(begin,sk(0)). happens(move(a,p3), sk(1)). happens(move(b,p2), sk(2)). happens(move(a,b), sk(3)). happens(move(c,p3), sk(4)). happens(move(a,p1), sk(5)). happens(move(b,c), sk(6)). happens(move(a,b), sk(7)). happens(end,sk(10)). % Sample run run:- happens(end,T), holdsat(on(X,Y),T), ans(on(X,Y)). | ?- run. on(c,p3) ; on(b,c) ; on(a,b);

EC Scenario axioms % Box world axioms initiates(move(X,Y),on(X,Y),E1) :- holdsat(clear(X),E1), holdsat(clear(Y),E1), diff(X,Y), diff(X,table). initiates(move(X,Y),clear(Z),E1) :- holdsat(clear(X),E1), holdsat(clear(Y),E1), diff(X,Y), holdsat(on(X,Z),E1), diff(Y,Z). % terminates(move(X,Y),clear(Y),E1):- holdsat(clear(X),E1), holdsat(clear(Y),E1), diff(X,Y), diff(X,table). terminates(move(X,Y),on(X,Z),E1):- holdsat(clear(X),E1), holdsat(clear(Y),E1), diff(X,Y), holdsat(on(X,Z),E1), diff(Y,Z).

Mental Events and Mental Objects Agents so far may have beliefs and can deduce new beliefs. Yet none of them has any knowledge about beliefs and about deduction. The objects of beliefs are called mental objects. So we have relationships between agents and mental objects, called propositional attitudes. The most important relationships between an agent A and a mental object P are Believes(A,P) Knows(A,P) Wants(A,P) Says(A,P) The representation of mental objects has the form of a proposition. Turning a proposition into an object is called reification. Example: Believes(Lois,Fly(Superman)).

Referential Transparency and Opacity There is a problem with propositional attitudes. As we but not Lois knows, Clark = Superman But the following inference does not hold Clark=Superman  Believes(Lois,Fly(Superman))  Believes(Lois,Fly(Clark)) Technically, the property of being able to substitute a term freely is called referential transparency. If not, the situation is referentially opaque.

Axioms of knowledge and belief Some definitions: Knowledge is true belief Knows(A,P) Believes(A,P)  P From that follows that Knows(A,P) => P Knows(A,P) => Believes(A,P) If P is a tautology (|=P) then Knows(A,P) Know whether is defined by KnowsWhether(A,P) Knows(A,P)  Knows(A,  P).

Axioms of knowledge and belief (cont) More fun with axioms of knowledge and belief The following applies for Believes as well Logical agents can do simple reasoning (Modus Ponens) Knows(A,P)  Knows(A,P =>Q) => Knows(A,Q) Logical agents can handle conjuntions Knows(A,P)  Knows(A,Q) Knows(A,P  Q) Logical agents can make resolution inference, e.g. Knows(A,  P )  Knows(A,P ,Q) => Knows(A,Q)

Three wise mens problem The two wise mens problem is a simplified version of the Three wise mens problem. Here is a version that is simplified to illustrate inference in modal logic. Two persons, A and B get a spot on their forehead. They can see each other's spot, but not their own. They are told that the colour of the spot is either black or white, and that at least one of them is white. The rule of the game is that as soon as one of them knows that he has a white spot, he shall announce it. Actually, both have got a white spot. After a period of time, A says: I have a white spot! How did he know that?

Exercise Do exercise 12.5 in R&N: AIMA. You may use the book, chapter 12 as the basis. Try to answer the challenges stated in items (a) – (f). You may use the treatise in this handout and program examples on the repository as an inspiration. Ideally you should be able to make a runnable system for some of the tasks, but that is not a requirement. You are not required to to fill out details that are not explicitly asked for.