Artificial Intelli-gence 1: logic agents

Slides:



Advertisements
Similar presentations
Russell and Norvig Chapter 7
Advertisements

Propositional Logic Reading: C , C Logic: Outline Propositional Logic Inference in Propositional Logic First-order logic.
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.
Logic in general Logics are formal languages for representing information such that conclusions can be drawn Syntax defines the sentences in the language.
Knowledge Representation & Reasoning.  Introduction How can we formalize our knowledge about the world so that:  We can reason about it?  We can do.
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.
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 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.
Logical Agents Chapter 7 Feb 26, Knowledge and Reasoning Knowledge of action outcome enables problem solving –a reflex agent can only find way from.
Rutgers CS440, Fall 2003 Propositional Logic Reading: Ch. 7, AIMA 2 nd Ed. (skip )
Logical Agents Chapter 7 (based on slides from Stuart Russell and Hwee Tou Ng)
Logical Agents. Knowledge bases Knowledge base = set of sentences in a formal language Declarative approach to building an agent (or other system): 
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.
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,
Logical Agents Chapter 7. Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic Equivalence,
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.
1 Logical Agents Chapter 7. 2 A simple knowledge-based agent The agent must be able to: –Represent states, actions, etc. –Incorporate new percepts –Update.
Knowledge Representation Lecture # 17, 18 & 19. Motivation (1) Up to now, we concentrated on search methods in worlds that can be relatively easily represented.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
Computing & Information Sciences Kansas State University Wednesday, 13 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 10 of 42 Wednesday, 13 September.
Logical Agents Chapter 7. Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic Equivalence,
1 UNIT-3 KNOWLEDGE REPRESENTATION. 2 Agents that reason logically(Logical agents) A Knowledge based Agent The Wumpus world environment Representation,
Logical Agents Chapter 7. Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic Equivalence,
Logical Agents Chapter 7. Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic Equivalence,
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.
Logical Agents Chapter 7. Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic Equivalence,
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)
CS666 AI P. T. Chung Logic Logical Agents Chapter 7.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
Propositional Logic: Logical Agents (Part I)
ECE457 Applied Artificial Intelligence Fall 2007 Lecture #6
CS 4700: Foundations of Artificial Intelligence
Knowledge and reasoning – second part
Introduction to Knowledge-bases
Logical Agents.
EA C461 – Artificial Intelligence Logical Agent
Logical Agents Chapter 7.
CS 188: Artificial Intelligence Spring 2007
Logical Agents Chapter 7 Selected and slightly modified slides from
Logical Agents Reading: Russell’s Chapter 7
Artificial Intelligence: Logic agents
Logical Agents Chapter 7.
CSE 4705 Artificial Intelligence
CSE 4705 Artificial Intelligence
Artificial Intelligence
Artificial Intelligence: Logic agents
Knowledge and reasoning – second part
Logical Agents Chapter 7.
EA C461 – Artificial Intelligence Logical Agent
CS 416 Artificial Intelligence
Knowledge Representation I (Propositional Logic)
Problems in AI Problem Formulation Uninformed Search Heuristic Search
LECTURE 06 Logical Agent Course : T0264 – Artificial Intelligence
Logical Agents Prof. Dr. Widodo Budiharto 2018
Presentation transcript:

Artificial Intelli-gence 1: logic agents Notes adapted from lecture notes for CMSC 421 by B.J. Dorr Artificial Intelli-gence 1: logic agents Lecturer: Tom Lenaerts Institut de Recherches Interdisciplinaires et de Développements en Intelligence Artificielle (IRIDIA) Université Libre de Bruxelles

“Thinking Rationally” Computational models of human “thought” processes Computational models of human behavior Computational systems that “think” rationally Computational systems that behave rationally November 8, 2018 TLo (IRIDIA)

Logical Agents Reflex agents find their way from Arad to Bucharest by dumb luck Chess program calculates legal moves of its king, but doesn’t know that no piece can be on 2 different squares at the same time Logic (Knowledge-Based) agents combine general knowledge with current percepts to infer hidden aspects of current state prior to selecting actions Crucial in partially observable environments November 8, 2018 TLo (IRIDIA)

Outline Knowledge-based agents Wumpus world Logic in general Propositional and first-order logic Inference, validity, equivalence and satifiability Reasoning patterns Resolution Forward/backward chaining November 8, 2018 TLo (IRIDIA)

Knowledge Base tell ask Knowledge Base : set of sentences represented in a knowledge representation language and represents assertions about the world. Inference rule: when one ASKs questions of the KB, the answer should follow from what has been TELLed to the KB previously. tell ask November 8, 2018 TLo (IRIDIA)

Generic KB-Based Agent November 8, 2018 TLo (IRIDIA)

Abilities KB agent Agent must be able to: Represent states and actions, Incorporate new percepts Update internal representation of the world Deduce hidden properties of the world Deduce appropriate actions November 8, 2018 TLo (IRIDIA)

Desription level The KB agent is similar to agents with internal state Agents can be described at different levels Knowledge level What they know, regardless of the actual implementation. (Declarative description) Implementation level Data structures in KB and algorithms that manipulate them e.g propositional logic and resolution. November 8, 2018 TLo (IRIDIA)

A Typical Wumpus World Wumpus November 8, 2018 TLo (IRIDIA)

Wumpus World PEAS Description November 8, 2018 TLo (IRIDIA)

Wumpus World Characterization Observable? Deterministic? Episodic? Static? Discrete? Single-agent? November 8, 2018 TLo (IRIDIA)

Wumpus World Characterization Observable? No, only local perception Deterministic? Episodic? Static? Discrete? Single-agent? November 8, 2018 TLo (IRIDIA)

Wumpus World Characterization Observable? No, only local perception Deterministic? Yes, outcome exactly specified Episodic? Static? Discrete? Single-agent? November 8, 2018 TLo (IRIDIA)

Wumpus World Characterization Observable? No, only local perception Deterministic? Yes, outcome exactly specified Episodic? No, sequential at the level of actions Static? Discrete? Single-agent? November 8, 2018 TLo (IRIDIA)

Wumpus World Characterization Observable? No, only local perception Deterministic? Yes, outcome exactly specified Episodic? No, sequential at the level of actions Static? Yes, Wumpus and pits do not move Discrete? Single-agent? November 8, 2018 TLo (IRIDIA)

Wumpus World Characterization Observable? No, only local perception Deterministic? Yes, outcome exactly specified Episodic? No, sequential at the level of actions Static? Yes, Wumpus and pits do not move Discrete? Yes Single-agent? November 8, 2018 TLo (IRIDIA)

Wumpus World Characterization Observable? No, only local perception Deterministic? Yes, outcome exactly specified Episodic? No, sequential at the level of actions Static? Yes, Wumpus and pits do not move Discrete? Yes Single-agent? Yes, Wumpus is essentially a natural feature. November 8, 2018 TLo (IRIDIA)

Exploring the Wumpus World [1,1] The KB initially contains the rules of the environment. The first percept is [none, none,none,none,none], move to safe cell e.g. 2,1 [2,1] breeze which indicates that there is a pit in [2,2] or [3,1], return to [1,1] to try next safe cell November 8, 2018 TLo (IRIDIA)

Exploring the Wumpus World [1,2] Stench in cell which means that wumpus is in [1,3] or [2,2] YET … not in [1,1] YET … not in [2,2] or stench would have been detected in [2,1] THUS … wumpus is in [1,3] THUS [2,2] is safe because of lack of breeze in [1,2] THUS pit in [1,3] move to next safe cell [2,2] November 8, 2018 TLo (IRIDIA)

Exploring the Wumpus World [2,2] move to [2,3] [2,3] detect glitter , smell, breeze THUS pick up gold THUS pit in [3,3] or [2,4] November 8, 2018 TLo (IRIDIA)

What is a logic? A formal language E.g the language of arithmetic Syntax – what expressions are legal (well-formed) Semantics – what legal expressions mean in logic the truth of each sentence with respect to each possible world. E.g the language of arithmetic X+2 >= y is a sentence, x2+y is not a sentence X+2 >= y is true in a world where x=7 and y =1 X+2 >= y is false in a world where x=0 and y =6 November 8, 2018 TLo (IRIDIA)

Entailment One thing follows from another KB |=  KB entails sentence  if and only if  is true in worlds where KB is true. E.g. x+y=4 entails 4=x+y Entailment is a relationship between sentences that is based on semantics. November 8, 2018 TLo (IRIDIA)

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  November 8, 2018 TLo (IRIDIA)

Wumpus world model November 8, 2018 TLo (IRIDIA)

Wumpus world model November 8, 2018 TLo (IRIDIA)

Wumpus world model November 8, 2018 TLo (IRIDIA)

Wumpus world model November 8, 2018 TLo (IRIDIA)

Wumpus world model November 8, 2018 TLo (IRIDIA)

Wumpus world model November 8, 2018 TLo (IRIDIA)

Logical inference The notion of entailment can be used for logic inference. Model checking (see wumpus example): enumerate all possible models and check whether  is true. If an algorithm only derives entailed sentences it is called sound or thruth preserving. Otherwise it just makes things up. i is sound if whenever KB |-i  it is also true that KB|=  Completeness : the algorithm can derive any sentence that is entailed. i is complete if whenever KB |=  it is also true that KB|-i  November 8, 2018 TLo (IRIDIA)

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. November 8, 2018 TLo (IRIDIA)