Lecture 8-1CS250: Intro to AI/Lisp FOPL, Part Deux Lecture 8-1 November 16 th, 1999 CS250.

Slides:



Advertisements
Similar presentations
Knowledge Representation using First-Order Logic
Advertisements

First-Order Logic Chapter 8.
Artificial Intelligence
First-Order Logic: Better choice for Wumpus World Propositional logic represents facts First-order logic gives us Objects Relations: how objects relate.
Artificial Intelligence Chapter 21 The Situation Calculus Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Artificial Intelligence CS482, CS682, MW 1 – 2:15, SEM 201, MS 227 Prerequisites: 302, 365 Instructor: Sushil Louis,
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.
3/30/00 Agents that Reason Logically by Chris Horn Jiansui Yang Xiaojing Wu.
First-Order Logic Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 8 Spring 2004.
Artificial Intelligence Knowledge-based Agents Russell and Norvig, Ch. 6, 7.
Knowledge Representation & Reasoning.  Introduction How can we formalize our knowledge about the world so that:  We can reason about it?  We can do.
First-Order Logic Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 8 Spring 2007.
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 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.
First-Order Logic: Better choice for Wumpus World Propositional logic represents facts First-order logic gives us Objects Relations: how objects relate.
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.
Knowledge Representation using First-Order Logic (Part III) This lecture: R&N Chapters 8, 9 Next lecture: Chapter 13; Chapter (Please read lecture.
First-Order Logic Chapter 8. Outline Why FOL? Syntax and semantics of FOL Using FOL Wumpus world in FOL Knowledge engineering in FOL.
Agents that Reason Logically Logical agents have knowledge base, from which they draw conclusions TELL: provide new facts to agent ASK: decide on appropriate.
First-Order Logic Knowledge Representation Reading: Chapter 8, , FOL Syntax and Semantics read: FOL Knowledge Engineering read:
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.
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.
First-Order Logic Chapter 8. Outline Why FOL? Syntax and semantics of FOL Using FOL Wumpus world in FOL Knowledge engineering in FOL.
Computing & Information Sciences Kansas State University Lecture 13 of 42 CIS 530 / 730 Artificial Intelligence Lecture 13 of 42 William H. Hsu Department.
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
For Friday Read chapter 8 Homework: –Chapter 7, exercise 1.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 12 Friday, 17 September.
Logical Agents. Logical agents for the Wumpus World Three (non-exclusive) agent architectures: Reflex agents –Have rules that classify situations based.
Logical Agents. Logical agents for the Wumpus World Three (non-exclusive) agent architectures: Reflex agents –Have rules that classify situations based.
For Wednesday Read chapter 9, sections 1-4 Homework: –Chapter 8, exercise 6 May be done in groups.
1 Propositional logic (cont…) 命題論理 Syntax&Semantics of first-order logic 構文論と意味論 Deducing hidden properties Describing actions Propositional logic (cont…)
First-Order Logic. Outline Why FOL? Syntax and semantics of FOL Using FOL Knowledge engineering in FOL.
Lecture 4-1CS250: Intro to AI/Lisp Logical Reasoning I Lecture 4-2 January 25 th, 1999 CS250.
1 CS 2710, ISSP 2160 Chapter 12, Part 1 Knowledge Representation.
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,
First-Order Logic Chapter 8. Problem of Propositional Logic  Propositional logic has very limited expressive power –E.g., cannot say "pits cause breezes.
Lecture 8-2CS250: Intro to AI/Lisp What do you mean, “What do I mean?” Lecture 8-2 November 18 th, 1999 CS250.
1 Knowledge Representation Logic and Inference Propositional Logic Vumpus World Knowledge Representation Logic and Inference Propositional Logic Vumpus.
LOGICAL AGENTS CHAPTER 7 AIMA 3. OUTLINE  Knowledge-based agents  Wumpus world  Logic in general - models and entailment  Propositional (Boolean)
First-Order Logic Knowledge Representation
L7. Logic for knowledge representation
First-Order Logic Chapter 8.
Logical Agents.
EA C461 – Artificial Intelligence Logical Agent
First-Order Logic Knowledge Representation
L7. Logic for knowledge representation
First-Order Logic Knowledge Representation
First-Order Logic Knowledge Representation
First-Order Logic Chapter 8.
Logical Agents.
Introduction to Artificial Intelligence
Artificial Intelligence
Artificial Intelligence: Logic agents
First-order Logic Propositional logic (cont…)
Knowledge Representation using First-Order Logic (Part III)
First-Order Logic Knowledge Representation
Knowledge Representation I (Propositional Logic)
Logical Agents.
First-Order Logic Chapter 8.
Lecture 5-2 February 4th, 1999 CS250
Logical Agents Prof. Dr. Widodo Budiharto 2018
Presentation transcript:

Lecture 8-1CS250: Intro to AI/Lisp FOPL, Part Deux Lecture 8-1 November 16 th, 1999 CS250

Lecture 8-1CS250: Intro to AI/Lisp First-Order Logic World consists of objects and predicates on objects Get to keep Boolean operators Add quantifiers Example “The wumpus is dead” could be Dead(wumpus) “All wumpi are dead” could be  x Wumpi(x)  Dead(x)

Lecture 8-1CS250: Intro to AI/Lisp Return to the Land of the Wumpus Use Tell to add assertions to the knowledge base Use Ask to pose queries –Answers to Ask ed queries are binding lists (aka substitutions) Tell(KB,Percept([Smell, Breeze, None],5)) Ask(KB,  a Action(a, 5)) Does the KB entail any particular action at t=5? {a/Shoot} (That’s a yes)

Lecture 8-1CS250: Intro to AI/Lisp A Little Syntax Given a sentence S, and a substitution,  S  denotes the result of plugging  into S S = Smarter(x, y)  = {x/Hillary, y/Bill} S  = Smarter(Hillary, Bill) What does Ask(KB, S) do in these terms? Returns some (or all)  such that: KB |= S 

Lecture 8-1CS250: Intro to AI/Lisp KB for WW Represent perceptions more abstractly –Write rules to transform percepts into predicates Map from predicates to actions Why is this a better approach?

Lecture 8-1CS250: Intro to AI/Lisp “The Only Constant is Change” How do we reason about changing situations? –Minimal internal state, but story history of percepts –Build an internal model of the world –Need diachronic rules Already use time, but not the whole context

Lecture 8-1CS250: Intro to AI/Lisp Be here now. Predicate calculus doesn’t have time for time –“For all x” means “for all x, today, tomorrow and the day after, and the day after that...” –Fine for the immutable things in this world, but need a fix for changing predicates

Lecture 8-1CS250: Intro to AI/Lisp Three’s Company Add situations to predicate calculus

Lecture 8-1CS250: Intro to AI/Lisp Ever-Changing Predicates Add a situation argument to properties that change over time, S i Actions move from one situation to the next situation Result(action, situation) –Actions have effects Example: “If something that’s portable is present, then if you grab it, you’ll be holding it”  (x, s) Present(x, s)  Portable(x)  Holding(x, Result(Grab,s))

Lecture 8-1CS250: Intro to AI/Lisp Tracking Action Effects If the agent is at a location with gold, and grabs the gold, the agent is then holding the gold in the next situation Portable(Gold)  s AtGold(s)  Present(Gold, s)  x,s Present(x,s)  Portable(x)  Holding(x, Result(Grab, s))  x,s  Holding(x, Result(Release, s)) And if the agent releases the gold?

Lecture 8-1CS250: Intro to AI/Lisp Flavors of Axioms State the effects of actions (Effect axioms) What about the non-effects of inaction? (Frame axioms) If the agent is Holding an object in a situation, and performs any action except Release, then the agent is Holding the object in the resulting situation Don’t forget about not Holding !

Lecture 8-1CS250: Intro to AI/Lisp Frame Problems Representational frame problem –Writing down what doesn’t change Inferential frame problem –Reasoning about what doesn’t change –Situation calculus requires carrying every property through time - even if it doesn’t change –What if most of the world doesn’t change?

Lecture 8-1CS250: Intro to AI/Lisp A New Flavor Combination Successor state axioms combine effect and frame axioms Each axiom is “about” a predicate: true afterwards  [an action made it true  true already and no action made it false]

Lecture 8-1CS250: Intro to AI/Lisp Other problems? Qualification problem –Exactly describing when a an action will occur Ramification problem –Inferring what goes with what

Lecture 8-1CS250: Intro to AI/Lisp Doin’ the Sherlock Thing Squares are near a breezy pit Diagnostic - infer cause from effect Causal - infer effect from cause Model-based reasoning versus diagnostic approaches

Lecture 8-1CS250: Intro to AI/Lisp Planning Special search systems for reasoning about actions –Different representations Making good choices –Preferences among actions