Lecture 4-1CS250: Intro to AI/Lisp Logical Reasoning I Lecture 4-2 January 25 th, 1999 CS250.

Slides:



Advertisements
Similar presentations
Knowledge Representation using First-Order Logic
Advertisements

First-Order Logic Chapter 8.
Russell and Norvig Chapter 7
Agents That Reason Logically Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2004.
Propositional Logic Reading: C , C Logic: Outline Propositional Logic Inference in Propositional Logic First-order logic.
Logic CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
3/30/00 Agents that Reason Logically by Chris Horn Jiansui Yang Xiaojing Wu.
Artificial Intelligence Knowledge-based Agents Russell and Norvig, Ch. 6, 7.
Logical Agents Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Fall 2005.
Knowledge Representation & Reasoning.  Introduction How can we formalize our knowledge about the world so that:  We can reason about it?  We can do.
CS 561, Sessions Knowledge and reasoning – second part Knowledge representation Logic and representation Propositional (Boolean) logic Normal forms.
Class Project Due at end of finals week Essentially anything you want, so long as its AI related and I approve Any programming language you want In pairs.
CS 460, Sessions Knowledge and reasoning – second part Knowledge representation Logic and representation Propositional (Boolean) logic Normal forms.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 9 Jim Martin.
Agents That Reason Logically Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 6.
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.
Computing & Information Sciences Kansas State University Lecture 11 of 42 CIS 530 / 730 Artificial Intelligence Lecture 11 of 42 William H. Hsu Department.
Knowledge Representation & Reasoning (Part 1) Propositional Logic chapter 6 Dr Souham Meshoul CAP492.
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.
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.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 8 Jim Martin.
LOGICAL AGENTS Yılmaz KILIÇASLAN. Definitions Logical agents are those that can:  form representations of the world,  use a process of inference to.
Logical Agents Chapter 7 Feb 26, Knowledge and Reasoning Knowledge of action outcome enables problem solving –a reflex agent can only find way from.
Logical Agents Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2005.
Logical Agents Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2008.
Agents that Reason Logically Logical agents have knowledge base, from which they draw conclusions TELL: provide new facts to agent ASK: decide on appropriate.
Logical Agents Chapter 7 (based on slides from Stuart Russell and Hwee Tou Ng)
Artificial Intelligence Lecture No. 9 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
February 20, 2006AI: Chapter 7: Logical Agents1 Artificial Intelligence Chapter 7: Logical Agents Michael Scherger Department of Computer Science Kent.
‘In which we introduce a logic that is sufficent for building knowledge- based agents!’
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.
Logical Agents Chapter 7. Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic Equivalence,
Slide 1 Propositional Definite Clause Logic: Syntax, Semantics and Bottom-up Proofs Jim Little UBC CS 322 – CSP October 20, 2014.
Class Project Due at end of finals week Essentially anything you want, so long as its AI related and I approve Any programming language you want In pairs.
CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes Jan 17, 2012.
Logical Agents Chapter 7. Knowledge bases Knowledge base (KB): set of sentences in a formal language Inference: deriving new sentences from the KB. E.g.:
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Knowledge Representation Lecture # 17, 18 & 19. Motivation (1) Up to now, we concentrated on search methods in worlds that can be relatively easily represented.
For Friday Read chapter 8 Homework: –Chapter 7, exercise 1.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
Knowledge-based agents: they keep track of the world by means of an internal state which is constantly updated by the agent itself A Knowledge-Based Agent.
1 Logical Inference Algorithms CS 171/271 (Chapter 7, continued) Some text and images in these slides were drawn from Russel & Norvig’s published material.
11 Artificial Intelligence CS 165A Thursday, October 25, 2007  Knowledge and reasoning (Ch 7) Propositional logic 1.
Wumpus World 1 Wumpus and 1 pile of gold in a pit-filled cave Starts in [1,1] facing right - Random cave Percepts: [smell, breeze, gold, bump, scream]
Lecture 8-1CS250: Intro to AI/Lisp FOPL, Part Deux Lecture 8-1 November 16 th, 1999 CS250.
Computing & Information Sciences Kansas State University Wednesday, 13 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 10 of 42 Wednesday, 13 September.
1 UNIT-3 KNOWLEDGE REPRESENTATION. 2 Agents that reason logically(Logical agents) A Knowledge based Agent The Wumpus world environment Representation,
Some Thoughts to Consider 5 Take a look at some of the sophisticated toys being offered in stores, in catalogs, or in Sunday newspaper ads. Which ones.
Logical Agents Chapter 7 Part I. 2 Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic.
1 Knowledge Representation Logic and Inference Propositional Logic Vumpus World Knowledge Representation Logic and Inference Propositional Logic Vumpus.
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)
Knowledge and reasoning – second part
EA C461 – Artificial Intelligence Logical Agent
Learning and Knowledge Acquisition
Artificial Intelli-gence 1: logic agents
Logical Agents Chapter 7.
Artificial Intelligence
Artificial Intelligence: Logic agents
Class #9– Thursday, September 29
Knowledge and reasoning – second part
Logical Agents Chapter 7.
EA C461 – Artificial Intelligence Logical Agent
Knowledge Representation I (Propositional Logic)
CMSC 471 Fall 2011 Class #10 Tuesday, October 4 Knowledge-Based Agents
Logical Agents Prof. Dr. Widodo Budiharto 2018
Presentation transcript:

Lecture 4-1CS250: Intro to AI/Lisp Logical Reasoning I Lecture 4-2 January 25 th, 1999 CS250

Lecture 4-1CS250: Intro to AI/Lisp Announcements Unix classes Office hours today TA (Office hours,Style) Quiz Midterm on Tuesday of 6th Week Project descriptions by by end of week Lisp for Windows

Lecture 4-1CS250: Intro to AI/Lisp A Little Lisp What about progn ? Validity checking?

Lecture 4-1CS250: Intro to AI/Lisp Designing an Interplanetary Explorer Goals for the explorer Actions we can take Situations that might arise

Lecture 4-1CS250: Intro to AI/Lisp Telling Your Computer about the World What you know How to go from what you know to what you don’t know Will Rogers

Lecture 4-1CS250: Intro to AI/Lisp Knowledge Base Knowledge base:Database :: Knowledge:Data KB stores what the computer knows about the world Knowledge representation language –How we encode knowledge about the world –Each bit of knowledge is a sentence

Lecture 4-1CS250: Intro to AI/Lisp Getting through to your computer KB Interaction –Tell: Add new sentences to the KB –Ask: Query what’s known (or what follows from what is known)

Lecture 4-1CS250: Intro to AI/Lisp ;;;; Main Functions on KBs: Tell, Retract, Ask-Each, ;;;; Ask, Ask-Pattern[s] ;;; First we define a very simple kind of knowledge base, ;;; literal-kb, that just stores a list of literal sentences. (defstructure literal-kb "A knowledge base that just stores a set of literal sentences." (sentences '())) Tell-Ask.lisp I

Lecture 4-1CS250: Intro to AI/Lisp ;;; There are three generic functions that operate on ;;; knowledge bases, and that must be defined as methods ;;; for each type of knowledge base: TELL, RETRACT, and ;;; ASK-EACH. Here we show the implementation for literal-kb; ;;; elsewhere you'll see implementations for propositional, ;;; Horn, and FOL KBs. (defmethod tell ((kb literal-kb) sentence) "Add the sentence to the knowledge base." (pushnew sentence (literal-kb-sentences kb) :test #'equal)) (defmethod retract ((kb literal-kb) sentence) "Remove the sentence from the knowledge base." (deletef sentence (literal-kb-sentences kb) :test #'equal)) (defmethod ask-each ((kb literal-kb) query fn) "For each proof of query, call fn on the substitution that the proof ends up with." (declare (special +no-bindings+)) (for each s in (literal-kb-sentences kb) do (when (equal s query) (funcall fn +no-bindings+)))) Tell-Ask.lisp II

Lecture 4-1CS250: Intro to AI/Lisp ;;; There are three other ASK functions, defined below, ;;; that are defined in terms of ASK-EACH. These are ;;; defined once and for all here (not for each kind ;;; of KB)." (defun ask (kb query) "Ask if query sentence is true; return t or nil." (ask-each kb (logic query) #'(lambda (s) (declare (ignore s)) (RETURN-FROM ASK t)))) ;;; Omitted pattern-matching ASK’s Tell-Ask.lisp III

Lecture 4-1CS250: Intro to AI/Lisp Knowledge-Based Agents  Agents perceive the world around them  Perceptions are recorded in the KB  Actions are chosen based on the KB  Results of actions are recorded

Lecture 4-1CS250: Intro to AI/Lisp Levels of Agents Knowledge level –What an agent knows –Planetary core samples must be taken at least 100mm below the surface Logical level –Knowledge is encoded at this level –MinDepth(CoreSample,100) Implementation level –Inside the machine

Lecture 4-1CS250: Intro to AI/Lisp Building Knowledge Agents Lean on the inference mechanism –Tell agent what it needs to know Declarative –Declare the state of the world, and let ‘er rip Adding learning –Reacting to percepts

Lecture 4-1CS250: Intro to AI/Lisp Separate Domain-Specific from the General

Lecture 4-1CS250: Intro to AI/Lisp Wumpus World

Lecture 4-1CS250: Intro to AI/Lisp Specifying the Wumpus World Percepts? Actions? Goals?

Lecture 4-1CS250: Intro to AI/Lisp Describing the Wumpus World Is the world… –Deterministic –Fully accessible –Static –Discrete

Lecture 4-1CS250: Intro to AI/Lisp One Environment is Easy If we know the environment well, can engineer it Range of environments?

Lecture 4-1CS250: Intro to AI/Lisp Exploring the world Perceive: [None, None, None, None, None] Perception: Stench, Breeze, Glitter, Bump, Scream

Lecture 4-1CS250: Intro to AI/Lisp Move Forward to 2,1

Lecture 4-1CS250: Intro to AI/Lisp Perception after One Move Stench: None Breeze:Yes Glitter:None Bump:None Scream:None

Lecture 4-1CS250: Intro to AI/Lisp What Does the World Look Like?

Lecture 4-1CS250: Intro to AI/Lisp Knowledge Representation Not just computer readable… …computer reasonable as well Syntax - Rules for building expressions Semantics - Relationship between facts in the world and sentences Examples?

Lecture 4-1CS250: Intro to AI/Lisp Entailment What follows from what Entailment is relationship among sentences –KB entails a “Follows” is a relationship among facts in the world Inference procedures that generate only entailed sentences is sound

Lecture 4-1CS250: Intro to AI/Lisp Logical Committment