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

Similar documents
Logical Agents. Outline

Artificial Intelligence. Propositional logic

EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS

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

Logical Agents. Chapter 7

Intelligent Agents. Pınar Yolum Utrecht University

CS 771 Artificial Intelligence. Propositional Logic

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

Chapter 7 R&N ICS 271 Fall 2017 Kalev Kask

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

Propositional Logic: Logical Agents (Part I)

Logic. proof and truth syntacs and semantics. Peter Antal

Logical Agent & Propositional Logic

Logical Agents. Santa Clara University

Class Assignment Strategies

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

Introduction to Artificial Intelligence. Logical Agents

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

Artificial Intelligence Chapter 7: Logical Agents

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

Agents that reason logically

Logical Agent & Propositional Logic

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

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

Kecerdasan Buatan M. Ali Fauzi

CS 188: Artificial Intelligence Spring 2007

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

Logical Agents: Propositional Logic. Chapter 7

Propositional Logic: Logical Agents (Part I)

Proof Methods for Propositional Logic

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

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

CS 4700: Artificial Intelligence

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

Logical Agents (I) Instructor: Tsung-Che Chiang

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

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

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

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

Logical Agents. Chapter 7

Logical agents. Chapter 7. Chapter 7 1

Artificial Intelligence

Logic & Logic Agents Chapter 7 (& background)

TDT4136 Logic and Reasoning Systems

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

Propositional Logic: Methods of Proof (Part II)

CS 4700: Foundations of Artificial Intelligence

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

Propositional Logic: Methods of Proof. Chapter 7, Part II

Artificial Intelligence

AI Programming CS S-09 Knowledge Representation

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

Introduction to Intelligent Systems

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

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

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

CS:4420 Artificial Intelligence

Propositional Logic: Methods of Proof (Part II)

Lecture 7: Logic and Planning

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

Inference Methods In Propositional Logic

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

Knowledge Based Systems: Logic and Deduction

Logic & Logic Agents Chapter 7 (& Some background)

Foundations of Artificial Intelligence

Logical Agents. September 14, 2004

Foundations of Artificial Intelligence

Foundations of Artificial Intelligence

CS 2740 Knowledge Representation. Lecture 4. Propositional logic. CS 2740 Knowledge Representation. Administration

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

Inference Methods In Propositional Logic

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

Introduction to Intelligent Systems

INF5390 Kunstig intelligens. Logical Agents. Roar Fjellheim

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

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

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

CS 380: ARTIFICIAL INTELLIGENCE

7. Propositional Logic. Wolfram Burgard and Bernhard Nebel

Knowledge Representation. Propositional logic

Deliberative Agents Knowledge Representation I. Deliberative Agents

Adversarial Search & Logic and Reasoning

CSCI-495 Artificial Intelligence. Lecture 17

Propositional Logic: Bottom-Up Proofs

CS:4420 Artificial Intelligence

Knowledge based Agents

Lecture 6: Knowledge 1

Logic: Propositional Logic (Part I)

Propositional Logic: Methods of Proof (Part II)

Lecture 7: Logical Agents and Propositional Logic

KB Agents and Propositional Logic

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

Inference in Propositional Logic

Artificial Intelligence Knowledge Representation I

Introduction to Arti Intelligence

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

cis32-ai lecture # 18 mon-3-apr-2006

Logic in AI Chapter 7. Mausam (Based on slides of Dan Weld, Stuart Russell, Subbarao Kambhampati, Dieter Fox, Henry Kautz )

CS 7180: Behavioral Modeling and Decision- making in AI

Transcription:

CSCI 5582 Artificial Intelligence Lecture 9 Jim Martin Today 9/28 Review propositional logic Reasoning with Models Break More reasoning Knowledge Representation A knowledge representation is a formal scheme that dictates how an agent is going to represent its knowledge. Syntax: Rules that determine the possible strings in the language. Semantics: Rules that determine a mapping from sentences in the representation to situations in the world. 1

Propositional Logic Atomic Propositions That are true or false And stay that way Connectives to form sentences that receive truth conditions based on a compositional semantics Semantics Compositional semantics Modus ponens Resolution Model-based semantics Compositional Semantics The semantics of a complex sentence is derived from the semantics of its parts a A! B 2

Compositional Semantics Syntactic Manipulations And elimination And introduction Or introduction Double negation removal Compositional Semantics And introduction You know You can add A B A! B Modus Ponens You know What can you conclude? A A! B B 3

Resolution You know What can you conclude? A! B B! C A! C Modeling Wumpus World Environmental state No stench in 1,1 S1,1 Modeling Wumpus World Long term rules of the world Breezes are found in states adjacent to pits Stenches are found in states adjacent to Wumpi No stench means no Wumpus nearby For example S 1,1 W 1,1 ^ W 2,1 ^ W 1,2 4

Alternative Schemes Wumpuses cause stenches Or W! 1,1 " S1,1! S1,2 S 2,1 S1,1 implies W1,1 or W1,2 or W2,1 S! 1,1 " W 1,1! W 1,2 W 2,1 Inference in Wumpus World Organizing Inference By itself, the semantics of a logic does not provide a computationally tractable method for inference. It just defines a space of reasonable things to try. But first 5

Organizing Inference Two ways to think about this Reason directly about models (today) This turns the inference process into a search process Directly harness the various rules of inference (next time) This turns the inference process into a search process Last quiz discussion 1. True 2. H = Max (h i ) 5. False Break 6. 81 7. Number of leaves examined (number of times the eval function is called. Quiz 6

Quiz: Uniform-Cost F B E G L E A C G L H A C G L A C G L K C G L K G L D K L J D K M J D K J D J I Done Quiz: A* F G 4 L 4 B 4.6 E 4.6 J 4 L 4 B 4.6 E 4.6 D 6 N 4 L 4 B 4.6 E 4.6 I 5.4 D 6 Done. Readings for logic Break Chapter 7 all except circuit-agent material Chapter 8 all Chapter 9 272-290, 295-300 Chapter 10 320-331, Sec 10.5 7

Models Inference, entailment, satisfiability, validity, possible worlds, etc, ugh Let s go back and cover something I skipped last time What s a model A possible world Possible? Models Assume for a moment that there s only one pit. Percept [Breeze] 8

Models Can there be a pit in 4,4? Can there be a pit in 3,1? Does there have to be a pit in either 3,1 or 2,2? Is there gold in 4,1? Models Can there be a pit in 4,4? No, because there are no models with a pit there. Can there be a pit in 3,1? Yes, because there is a model with a pit there. Does there have to be a pit in either 3,1 or 2,2? Yes, because that statement is true in all the models. Is there gold in 4,1? Dunno. Some models have it there, some don t. Models So reasoning with models gives you all you need to answer questions. Yes, no, maybe Yes: True in all possible worlds No: False in all possible worlds Could be: True in some worlds, false in others 9

Model Checking If you ask me if something is true or false all I have to do is enumerate models. If it s true in all it s true, false in all it s false. If you ask me if something could be true or false then I just need to find a model where its true or false. If I can t find any model where it could be true then it s false. Entailment One thing follows from another KB = α KB entails sentence α if and only if α is true in all the worlds where KB is true. Entailment is a relationship between sentences that is based on semantics. Models Logicians typically think in terms of models, which are formally structured worlds with respect to which truth can be evaluated. m is a model of a sentence α if α is true in m M(α) is the set of all models of α 10

Wumpus world model Wumpus world model Wumpus world model 11

Wumpus world model Wumpus world model Wumpus world model 12

Logical inference The notion of entailment can be used for logic inference. Model checking: enumerate all possible models and check whether α is true. If an algorithm only derives entailed sentences it is called sound or truth preserving. Otherwise it is just makes things up. Completeness : the algorithm can derive any sentence that is entailed. Schematic perspective If KB is true in the real world, then any sentence α derived From KB by a sound inference procedure is also true in the real world. Next time Focus on inference algorithms Resolution Forward and backward chaining DPLL WalkSat 13