Agents that reason logically

Similar documents
INF5390 Kunstig intelligens. Logical Agents. Roar Fjellheim

Artificial Intelligence. Propositional logic

Logical Agents (I) Instructor: Tsung-Che Chiang

Foundations of Artificial Intelligence

Foundations of Artificial Intelligence

Artificial Intelligence Chapter 7: Logical Agents

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

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

CS 4700: Artificial Intelligence

Inference Methods In Propositional Logic

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

Logical Agents. Outline

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

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

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

Intelligent Agents. Pınar Yolum Utrecht University

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

Foundations of Artificial Intelligence

Inference Methods In Propositional Logic

EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS

Logical Agent & Propositional Logic

Logical Agents. Santa Clara University

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

Artificial Intelligence Knowledge Representation I

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

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

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

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

Logical Agents. Chapter 7

Introduction to Artificial Intelligence. Logical Agents

Logical Agent & Propositional Logic

Logical Agents: Propositional Logic. Chapter 7

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

Kecerdasan Buatan M. Ali Fauzi

Class Assignment Strategies

7. Propositional Logic. Wolfram Burgard and Bernhard Nebel

CS:4420 Artificial Intelligence

Logical agents. Chapter 7. Chapter 7 1

TDT4136 Logic and Reasoning Systems

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

Logic: Propositional Logic (Part I)

Knowledge Based Systems: Logic and Deduction

Lecture 7: Logical Agents and Propositional Logic

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

CS 4700: Foundations of Artificial Intelligence

CS 771 Artificial Intelligence. Propositional Logic

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

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

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

Logical Agents. September 14, 2004

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

Proof Methods for Propositional Logic

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

Introduction to Intelligent Systems

Introduction to Intelligent Systems

Logic & Logic Agents Chapter 7 (& background)

Chapter 7 R&N ICS 271 Fall 2017 Kalev Kask

Lecture 7: Logic and Planning

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

AI Programming CS S-09 Knowledge Representation

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

CS 7180: Behavioral Modeling and Decision- making in AI

Knowledge based Agents

CS 380: ARTIFICIAL INTELLIGENCE

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

Logical Agents. Chapter 7

Propositional Logic Part 1

Logic & Logic Agents Chapter 7 (& Some background)

Description Logics. Foundations of Propositional Logic. franconi. Enrico Franconi

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

Artificial Intelligence

Propositional Logic: Logical Agents (Part I)

Lecture 6: Knowledge 1

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

Logic. proof and truth syntacs and semantics. Peter Antal

Artificial Intelligence

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

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

Artificial Intelligence

Propositional Logic: Review

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

First Order Logic (FOL)

KB Agents and Propositional Logic

Inference in Propositional Logic

CS 188: Artificial Intelligence Spring 2007

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

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

Propositions. c D. Poole and A. Mackworth 2010 Artificial Intelligence, Lecture 5.1, Page 1

Propositional Logic. Logic. Propositional Logic Syntax. Propositional Logic

Propositional Logic: Methods of Proof (Part II)

Propositional and First-Order Logic

COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning

Logical agents. Chapter 7. Chapter 7 1

Propositional Logic: Logical Agents (Part I)

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

Artificial Intelligence

Advanced Topics in LP and FP

Logical Inference. Artificial Intelligence. Topic 12. Reading: Russell and Norvig, Chapter 7, Section 5

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

Transcription:

Artificial Intelligence Sanguk Noh Logical Agents Agents that reason logically A Knowledge-Based Agent. function KB-Agent (percept) returns an action 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. Tell: add new sentences to the KB. Ask: query what is known

A Knowledge-Based Agent KB a set of representations of facts about world declarative: adding one by one the sentences that represent the designer s knowledge learning: create general knowledge about the environment given a series of percepts fully autonomous agent Logic: representation, reasoning, and learning A Knowledge-Based Agent * inference Mechanism - What can we deduce? e.g.) If ~breeze and ~stench, then OK!

Representation, Reasoning and Logic * Knowledge representation language - Syntax: possible configurations - Semantics: the facts on the world e.g.) Syntax: x y Semantics: when x is greater than or equal to y, this is true. Representation, Reasoning and logic * Inference Given the syntax and semantics, we can derive an inference mechanism. Representation ----------------------------------------------------- World Sentences Semantics Entails Sentence Semantics Facts Follows Fact (Aspect of the real world)

Representation, Reasoning and logic Logical inference generates new sentences that are entailed by existing sentences. KB = α (KB entails α) Checking validity of sentences e.g.) propositional logic, first-order logic α (i derives α from KB) KB - i proof procedure(logically sound) Representation, Reasoning and logic Validity (Tautology) iff a sentence is true under all possible interpretations in all possible worlds satisfiable vs. unsatisfiable (self contradictory sentence) satisfiable iff there is some interpretation in some world for which it is true.

Propositional Logic * Syntax Propositional symbols and the logical connectives Sentence AtomicSentence ComplexSentence AtomicSentence True False Symbol Symbol P Q R ComplexSentence (Sentence) Sentence connective Sentence Sentence Connective Propositional Logic * Semantics: the interpretation of the proposition symbols and constants Truth table * Models Def.) model: a world in which a sentence is true under a particular interpretation a true row in a truth table. If the models of KB are all models of α, KB = α

Propositional Logic * Rules of inference α - β : β can be derived from α by inference. Figure 7.11 logical equivalences Modus Ponens ((α => β) ^ α) => β ((~α v β) ^ α) => β (~α ^ α ) v (β ^ α) => β ~(β ^ α) v β ~β v ~α v β = ((~β v β) v ~ α) e.g.) if (WumpusAhead ^ WumpusAlive) => Shoot and (WumpusAhead ^ WumpusAlive) are given, then Shoot can be inferred. And-Elimination (α ^ β) => α e.g.) from (WumpusAhead ^ WumpusAlive), WumpusAlive can be inferred. Resolution - Resolution If there is an axiom of the form E 1 E 2 and there is another axiom of the form ~E 2 E 3 then E 1 E 3 must be true. (Implication is transitive.) e.g.) If you invest in the stock market, then you will get rich. If you get rich, then you will be happy. Therefore, if you invest in the stock market, then you will be happy.

Propositional Logic * Monotonic Logic Entailed sentences are preserved when new knowledge is added. If KB 1 = α then (KB 1 KB 2 ) = α (no matter what the KB 2 is) * Horn Sentences (Horn Clauses) P 1^ P 2 ^ ^ P n Q polynomial time inference procedure. If Q is false, then it is ~P 1 V..V~P n When n=1 & P 1 is true, then Q. An Agent for the Wumpus World S ij : There is a Stench in [i,j]. B ij : There is a Breeze in [i,j]. W ij : Wumpus *Finding the wumpus 4 3 2 1 A S,OK V OK B,V OK 1 2 3 4

Finding the wumpus 1. R1: S 11 W 11 ^ W 12 ^ W 21 We know S 11. Therefore, W 11 ^ W 12 ^ W 21. We obtain W 11, W 12, and W 21. 2. R2: S 21 W 11 ^ W 21 ^ W 22 ^ W 31 We obtain W 11, W 21, W 22, and W 31. Finding the wumpus 3. R 3 : S 12 W 13 W 12 W 22 W 11 We obtain W 13 W 12 W 22 W 11. 4. α: W 13 W 12 W 22, β: W 11 ((α v β) ^ ~β) α (α ^ ~β) v (β ^ ~β) α ~ α v β v α W 13 W 12 W 22

Finding the wumpus 5. ((W 13 W 12 ) W 22 ) ^ W 22 (W 13 W 12 ) 6. (W 13 W 12 ) ^ W 12 W 13 Therefore, W 13. We conclude that the wumpus is in [1,3]. Using the propositional rules e.g.) A 11 ^ East A ^ W 21 GoForward For each action, say, should I go Forward? function P-KB-Agent (Percept) returns an action TELL(KB, Make-Percept-Sentence(percept,t)) for each action in the list of actions do if ASK(KB,Make-Action-Query(t,action)) then t t+1 return action end

Problems with the propositional agent e.g.) Simple rule Don t GO FORWARD if the wumpus is in front of you. 1. The world size: a set of 64 rules (16 squares x 4 orientations) 2. Inference procedure: Size of a Truth Table:2 n (n - # of symbols in KB) Problems with the propositional agent 3. The world changes over time. When the agent makes its first move, A 11 becomes false and A 21 becomes true. To run for 100 time steps, 64x100=6400 rules will be needed. becomes impractical for even very small worlds.

Program Completed School of CSIE The Catholic University of Korea http://cis.catholic.ac.kr/sunoh/