CS 188: Artificial Intelligence Logical Agents Instructor: Stuart Russell University of California, Berkeley.

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

UIUC CS 497: Section EA Lecture #2 Reasoning in Artificial Intelligence Professor: Eyal Amir Spring Semester 2004.
Situation Calculus for Action Descriptions We talked about STRIPS representations for actions. Another common representation is called the Situation Calculus.
Artificial Intelligence CS482, CS682, MW 1 – 2:15, SEM 201, MS 227 Prerequisites: 302, 365 Instructor: Sushil Louis,
Propositional Logic Russell and Norvig: Chapter 6 Chapter 7, Sections 7.1—7.4 Slides adapted from: robotics.stanford.edu/~latombe/cs121/2003/home.htm.
Logic.
Planning Search vs. planning STRIPS operators Partial-order planning.
Artificial Intelligence Knowledge-based Agents Russell and Norvig, Ch. 6, 7.
CS 460, Session 20 1 Planning Search vs. planning STRIPS operators Partial-order planning.
CS 561, Sessions Knowledge and reasoning – second part Knowledge representation Logic and representation Propositional (Boolean) logic Normal forms.
CS 460, Sessions Knowledge and reasoning – second part Knowledge representation Logic and representation Propositional (Boolean) logic Normal forms.
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.
CS 561, Session Planning Search vs. planning STRIPS operators Partial-order planning.
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?
Carla P. Gomes CS4700 CS 4700: Foundations of Artificial Intelligence Carla P. Gomes Module: Intro to Logic (Reading R&N: Chapter.
Methods of Proof Chapter 7, second half.
Logical Agents Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2005.
Artificial Intelligence Lecture No. 9 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes Jan 19, 2012.
Knowledge Representation Use of logic. Artificial agents need Knowledge and reasoning power Can combine GK with current percepts Build up KB incrementally.
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Logical Agents Logic Propositional Logic Summary
Dr. Shazzad Hosain Department of EECS North South Universtiy Lecture 04 – Part A Knowledge Representation and Reasoning.
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
October 17, 2012Introduction to Artificial Intelligence Lecture 11: Knowledge Representation and Reasoning I 1Semantics In propositional logic, we associate.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
Introduction to Artificial Intelligence CS 438 Spring 2008 Today –AIMA, Ch. 13 –Reasoning with Uncertainty Tuesday –AIMA, Ch. 14.
CS 188: Artificial Intelligence
Lecture 8-1CS250: Intro to AI/Lisp FOPL, Part Deux Lecture 8-1 November 16 th, 1999 CS250.
Automated Reasoning in Propositional Logic Problem Given: KB: a set of sentence  : a sentence Answer: KB  ?
Ch. 7 – Logical Agents Supplemental slides for CSE 327 Prof. Jeff Heflin.
Computing & Information Sciences Kansas State University Wednesday, 13 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 10 of 42 Wednesday, 13 September.
First-Order Logic Chapter 8. Problem of Propositional Logic  Propositional logic has very limited expressive power –E.g., cannot say "pits cause breezes.
Propositional Logic Russell and Norvig: Chapter 6 Chapter 7, Sections 7.1—7.4.
Consider the task get milk, bananas, and a cordless drill.
Logical Agents Chapter 7 Part I. 2 Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic.
Automated Reasoning in Propositional Logic Russell and Norvig: Chapters 6 and 9 Chapter 7, Sections 7.5—7.6 CS121 – Winter 2003.
Propositional Logic Russell and Norvig: Chapter 6 Chapter 7, Sections 7.1—7.4 CS121 – Winter 2003.
Knowledge Repn. & Reasoning Lecture #9: Propositional Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2005.
Ch. 7 – Logical Agents Supplemental slides for CSE 327 Prof. Jeff Heflin.
1 Knowledge Representation Logic and Inference Propositional Logic Vumpus World Knowledge Representation Logic and Inference Propositional Logic Vumpus.
Announcements  Upcoming due dates  Thursday 10/1 in class Midterm  Coverage: everything in lecture and readings except first-order logic; NOT probability.
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)
Propositional Logic Russell and Norvig: Chapter 6 Chapter 7, Sections 7.1—7.4 CS121 – Winter 2003.
Knowledge and reasoning – second part
First-Order Logic Chapter 8.
Planning Search vs. planning STRIPS operators Partial-order planning
EA C461 – Artificial Intelligence Logical Agent
Planning Search vs. planning STRIPS operators Partial-order planning
Planning Search vs. planning STRIPS operators Partial-order planning
Logical Agents Chapter 7.
First-Order Logic Chapter 8.
Artificial Intelligence
Artificial Intelligence: Logic agents
Knowledge and reasoning – second part
Back to “Serious” Topics…
Logical Agents Chapter 7.
Automated Reasoning in Propositional Logic
EA C461 – Artificial Intelligence Logical Agent
Warm-up: What is the relationship between number of constraints and number of possible solutions? In other words, as the number of the constraints increases,
Knowledge Representation I (Propositional Logic)
CS 188: Artificial Intelligence
Warm-up: The regions below visually enclose the set of models that satisfy the respective sentence
First-Order Logic Chapter 8.
Announcements Midterm is Wednesday March 20, 7pm-9pm 
Supplemental slides for CSE 327 Prof. Jeff Heflin
Supplemental slides for CSE 327 Prof. Jeff Heflin
Logical Agents Prof. Dr. Widodo Budiharto 2018
Presentation transcript:

CS 188: Artificial Intelligence Logical Agents Instructor: Stuart Russell University of California, Berkeley

A knowledge-based agent function KB-AGENT(percept) returns an action persistent: KB, a knowledge base t, an integer, initially 0 TELL(KB, MAKE-PERCEPT-SENTENCE(percept, t)) action ← ASK(KB, MAKE-ACTION-QUERY(t)) TELL(KB, MAKE-ACTION-SENTENCE(action, t)) t←t+1 return action

Reminder: POPacman variables  Pacman perceives just the local walls/gaps  Formulation: what variables do we need?  Pacman’s location  At_1,1_0 (Pacman is at [1,1] at time 0) At_3,3_1 etc  Wall locations  Wall_0,0 Wall_0,1 etc  Percepts  Blocked_W_0 (blocked by wall to my West at time 0) etc.  Actions  W_0 (Pacman moves West at time 0), E_0 etc.

Reminder: Sensor model  State facts about how Pacman’s percepts arise…  Pacman perceives a wall to the West at time t if and only if he is in x,y and there is a wall at x-1,y  Blocked_W_0  ((At_1,1_0  Wall_0,1) v (At_1,2_0  Wall_0,2) v (At_1,3_0  Wall_0,3) v …. )

Transition model  How does each state variable or fluent at each time gets its value?  State variables for POPacman are At_ x, y _ t, e.g., At_3,3_17  A state variable gets its value according to a successor-state axiom  X t  [X t-1   (some action t-1 made it false)] v [  X t-1  (some action t-1 made it true)]  For Pacman location:  At_3,3_17  [At_3,3_16   ((  Wall_3,4  N_16) v (  Wall_4,3  E_16) v …)] v [  At_3,3_16  ((At_3,2_16   Wall_3,3  N_16) v (At_2,3_16   Wall_3,3  N_16) v …)]

Initial state  The agent may know its initial location:  At_1,1_0  Or, it may not:  At_1,1_0 v At_1,2_0 v At_1,3_0 v … v At_3,3_0  We also need a domain constraint – cannot be in two places at once!   (At_1,1_0  At_1,2_0)   (At_1,1_0  At_1,3_0)  …   (At_1,1_1  At_1,2_1)   (At_1,1_1  At_1,3_1)  … ……

State estimation  Recall the definition of the agent’s belief state from PO search:  Set of world states that could be the case given actions and percepts to date  State estimation means maintaining the current belief state (predict/update)  For a logical agent, working out what is true in the current state is just a matter of logical inference  E.g., ask whether KB   |= Wall_2,2  This is “lazy”: it involves reasoning about one’s whole life history at each step!

State estimation contd.  A more “proactive” form of state estimation:  After each action and percept  For each state variable X t  If X t is entailed, add to KB  If  X t is entailed, add to KB  Is that enough for accurate state estimation?  No! There can be cases where neither X t nor  X t is entailed, and neither  Y t nor  Y t is entailed, but some constraint, e.g., X t v Y t, is entailed  Example: agent location with initial uncertainty  Perfect state estimation is intractable in general

Planning as satisfiability  Given a hyper-efficient SAT solver, can we use it to make plans?  Yes, for fully observable, deterministic case: planning problem is solvable iff there is some satisfying assignment for actions etc.  For T = 1 to infinity, set up the KB as follows and run SAT solver:  Initial state, domain constraints  Transition model sentences up to time T  Goal is true at time T  Precondition axioms: At_1,1_0  N_0   Wall_1,2 etc.  Action exclusion axioms:  (N_0  W_0)   (N_0  S_0) ..etc.