Lecture Overview [ ] Introduction to Artificial Intelligence COMP 3501 / COMP Lecture 6. Motivation. Logical Agents

Similar documents
Logical Agents. Knowledge based agents. Knowledge based agents. Knowledge based agents. The Wumpus World. Knowledge Bases 10/20/14

7 LOGICAL AGENTS. OHJ-2556 Artificial Intelligence, Spring OHJ-2556 Artificial Intelligence, Spring

Logical Agents. Outline

INF5390 Kunstig intelligens. Logical Agents. Roar Fjellheim

Intelligent Agents. Pınar Yolum Utrecht University

CS 4700: Artificial Intelligence

CS 331: Artificial Intelligence Propositional Logic I. Knowledge-based Agents

Knowledge-based Agents. CS 331: Artificial Intelligence Propositional Logic I. Knowledge-based Agents. Outline. Knowledge-based Agents

Logical Agents (I) Instructor: Tsung-Che Chiang

Introduction to Intelligent Systems

Inf2D 06: Logical Agents: Knowledge Bases and the Wumpus World

Introduction to Intelligent Systems

Propositional Logic: Logical Agents (Part I)

EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS

Logical Agents. Chapter 7

Logic & Logic Agents Chapter 7 (& background)

Class Assignment Strategies

Introduction to Artificial Intelligence. Logical Agents

Chapter 7 R&N ICS 271 Fall 2017 Kalev Kask

Agents that reason logically

Logical Agents. Santa Clara University

Artificial Intelligence Chapter 7: Logical Agents

Logical Agent & Propositional Logic

CS 771 Artificial Intelligence. Propositional Logic

Proof Methods for Propositional Logic

Kecerdasan Buatan M. Ali Fauzi

Logic & Logic Agents Chapter 7 (& Some background)

Logic. proof and truth syntacs and semantics. Peter Antal

Logic. Introduction to Artificial Intelligence CS/ECE 348 Lecture 11 September 27, 2001

Propositional Logic: Logical Agents (Part I)

Logical Agents. Administrative. Thursday: Midterm 1, 7p-9p. Next Tuesday: DOW1013: Last name A-M DOW1017: Last name N-Z

Artificial Intelligence. Propositional logic

Logical Agent & Propositional Logic

Knowledge- Based Agents. Logical Agents. Knowledge Base. Knowledge- Based Agents 10/7/09

7. Propositional Logic. Wolfram Burgard and Bernhard Nebel

Foundations of Artificial Intelligence

CSCI 5582 Artificial Intelligence. Today 9/28. Knowledge Representation. Lecture 9

7. Logical Agents. COMP9414/ 9814/ 3411: Artificial Intelligence. Outline. Knowledge base. Models and Planning. Russell & Norvig, Chapter 7.

CS 380: ARTIFICIAL INTELLIGENCE LOGICAL AGENTS. Santiago Ontañón

CS 4700: Foundations of Artificial Intelligence

Foundations of Artificial Intelligence

Foundations of Artificial Intelligence

Logical Agents. Chapter 7

CS:4420 Artificial Intelligence

AI Programming CS S-09 Knowledge Representation

Chương 3 Tri th ức và lập luận

Artificial Intelligence

Introduction to Arti Intelligence

Outline. Logical Agents. Logical Reasoning. Knowledge Representation. Logical reasoning Propositional Logic Wumpus World Inference

Revised by Hankui Zhuo, March 21, Logical agents. Chapter 7. Chapter 7 1

CS 188: Artificial Intelligence Spring 2007

Artificial Intelligence

Outline. Logical Agents. Logical Reasoning. Knowledge Representation. Logical reasoning Propositional Logic Wumpus World Inference

Logical Agents: Propositional Logic. Chapter 7

TDT4136 Logic and Reasoning Systems

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system):

Logical agents. Chapter 7. Chapter 7 1

Lecture 7: Logic and Planning

Logical Agents. Soleymani. Artificial Intelligence: A Modern Approach, 3 rd Edition, Chapter 7

What is the relationship between number of constraints and number of possible solutions?

Lecture 7: Logical Agents and Propositional Logic

The Wumpus Game. Stench Gold. Start. Cao Hoang Tru CSE Faculty - HCMUT

Outline. Logic. Knowledge bases. Wumpus world characteriza/on. Wumpus World PEAS descrip/on. A simple knowledge- based agent

Logical Agents. Course material: Artificial Intelligence: A Modern Approach, 3 rd Edition, Chapter 7

Logical Agents. Soleymani. Artificial Intelligence: A Modern Approach, 3 rd Edition, Chapter 7

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Agenda. Artificial Intelligence. Reasoning in the Wumpus World. The Wumpus World

CSC242: Intro to AI. Lecture 11. Tuesday, February 26, 13

First Order Logic (FOL)

Knowledge Based Systems: Logic and Deduction

Logical Agents. Seung-Hoon Na Chonbuk National University. 1 Department of Computer Science

CS 7180: Behavioral Modeling and Decision- making in AI

Adversarial Search & Logic and Reasoning

Logical Agents. Outline

Logic. Stephen G. Ware CSCI 4525 / 5525

Overview. Knowledge-Based Agents. Introduction. COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Price: $25 (incl. T-Shirt, morning tea and lunch) Visit:

Last update: March 4, Logical agents. CMSC 421: Chapter 7. CMSC 421: Chapter 7 1

First Order Logic (FOL)

Artificial Intelligence

Knowledge Representation Logic and Inference Propositional Logic First-order logic Vumpus World

20/c/applet/more.html Local Beam Search The best K states are selected.

Lecture 6: Knowledge 1

COMP3702/7702 Artificial Intelligence Week 5: Search in Continuous Space with an Application in Motion Planning " Hanna Kurniawati"

Pengju XJTU 2016

CS 380: ARTIFICIAL INTELLIGENCE PREDICATE LOGICS. Santiago Ontañón

Knowledge-Based Agents

Rational Agents. Paolo Turrini. Introduction to Artificial Intelligence 2nd Part. Department of Computing, Imperial College London

Propositional Logic: Semantics and an Example

Title: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5)

Nathan Sturtevant FOL

Knowledge-Based Agents Chapter

CS 380: ARTIFICIAL INTELLIGENCE

7.5.2 Proof by Resolution

Logic and Reasoning. Foundations of Computing Science. Pallab Dasgupta Professor, Dept. of Computer Sc & Engg INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR

Artificial Intelligence

Pengju

proposi/onal logic, first- order logic CS 4100/5100 Founda/ons of AI

Logical Agents. September 14, 2004

Transcription:

Lecture Overview [7.1-7.4] COMP 3501 / COMP 4704-4 Lecture 6 Prof. JGH 318 Logical Agents Wumpus World Propositional Logic Inference Theorem Proving via model checking Motivation Existing techniques help us solve: Shortest path problems Some classes of optimization problems What about problems that require logical reasoning? eg creating a Sherlock Holmes agent When you have eliminated the impossible, whatever remains, however improbable, must be the truth. Logical Agents Maintain representation of knowledge of the world Use factored state representation States are assignments of values to variables Like CSPs can generalize to many different problems Can also generalize to different goals

Knowledge-based agents Logical agents maintain world knowledge Knowledge base (KB) Knowledge stored in sentences Each sentence represents knowledge about the world Sherlock Holmes was a fictional detective Knowledge-based agents Add knowledge: TELL Query knowledge: ASK Agent loop: TELL KB about perceptions ASK actions to perform ASK not necessarily formulated explicitly Knowledge Wumpus World Declarative: TELL an agent what is needed No extra knowledge Procedural: Encode knowledge in program code SAS is often procedural Generalized planning is declarative Performance 1000 for getting gold and returning to start -1000 for dying -10 for shooting the arrow -1 for each action

Wumpus World Wumpus World Environment Actuators 4x4 grid of rooms Turn right Agent has heading Turn left Agent starts at [1, 1] Forward Gold & wumpus randomly placed Shoot Probability 0.2 of a pit Grab Exit Wumpus World (WW) Sensors Can perceive stench from location adjoining (vertically/horizontally) a wumpus Can perceive breeze from location adjoining a pit Can perceive glitter in cell with gold Can perceive scream when wumpus dies

Logic Syntax: defines well-formed sentences Semantics: what sentences mean x + y = 4 is true when x = 2 and y = 2 Model: possible world Includes all assignments of values to x/y If α is true in m: m satisfies α M(α) is the set of all models of α What models exist for WW problem? Entailment α entails ß or α ß ß follows logically from α In every model in which α is true, ß is also true M(α) M(ß) Entailment examples α = KB ß = No pit in [1, 2] Reminder α ß; ß follows logically from α; M(α) M(ß) α = (x = 0), ß = (xy = 0) α = (AI lectures on Wednesday), ß = (No AI lectures on the weekends) α = (dogs have tails), ß = (puppies have tails) α = (girls like flowers; Rachel is a girl), ß = (Rachel likes flowers) Everyone in class give their own example

α = KB ß = No pit in [2, 2] Entailment This shows how entailment can be used to derive conclusions about the world Performing logical inference Model checking Generate all possible models Must be a finite number of models Check if hypothesis is true Inference KB!i α α is derived from KB by inference algorithm i A sound inference algorithm only derives entailed sentences A complete inference algorithm can derive any entailed sentence Model checking is sound & complete (when applicable) Propositional Logic Simple form of logic Can seem limited, but more complex forms of logic can be reduced to propositional logic

Propositional Logic: Symbols Not: And: Or: Implies: or If and only if: Prop. Logic Syntax Sentence AtomicSentence ComplexSentence AtomicSentence True False P Q R Complex Sentence (Sentence) [Sentence] Sentence Sentence Sentence Sentence Sentence Sentence Sentence Sentence Sentence Operator precedence:,,,, Prop. Logic Semantics Semantics A model fixes the values of all variables to true or false True/False are always True/False Variables have their values defined in a model P is true iff P is false in model P Q is true iff P and Q are both true in model P Q is true iff P or Q are both true in model P Q is true iff P is false or P&Q are both true in model and not strictly needed A B is the same as A B A B is the same as (A B) (B A) P Q is true iff P&Q have the same values in model

Construct WW KB Px, y is true if there is a pit in [x, y] Wx, y is true if there is a wumpus in [x, y] Bx, y is true if the agent perceives breeze in [x, y] Sx, y is true if the agent perceives stench in [x, y] WW KB There is no pit in [1, 1] R1: P1, 1 A square is breezy iff there is a pit in a neighboring square R2: B1,1 (P1,2 P2,1) Prop. Logic: Simple inference How many variables? How many models? In how many is KB true? R3: B2,1 (P1,1 P2,2 P3,1) Percepts: R4: B1,1 R5: B2,1 270

Selection of possible models Simple model checking B11 B21 P11 P12 P21 P22 P31 R1 R2 R3 R3 R5 KB How could we turn this into an algorithm? What is the running time? F F F F F F F F T F F F F T F T F F F T F F T F F F T T Homework: 7.2