Logical Agents. Propositional Logic [Ch 6] Syntax, Semantics, Entailment, Derivation. Predicate Calculus Representation [Ch 7]
|
|
- Shannon Mills
- 5 years ago
- Views:
Transcription
1 Logical Agents Reasoning [Ch 6] Propositional Logic [Ch 6] Syntax Semantics Entailment Derivation Predicate Calculus Representation [Ch 7] Syntax Semantics Expressiveness... Situation Calculus Predicate Calculus Inference [Ch 9] Resolution Implemented Systems [Ch 10] Applications [Ch 8] Planning [Ch 11] Predicate-Calculus 1
2 Predicate-Calculus 2
3 Types of Logic Logics are characterized by what they commit to as primitives Ontological commitment: What exists: facts? objects? time? beliefs? Epistemological commitment: What states of knowledge? Language Ontological Epistemological Commitment Commitment Propositional logic facts true/false/unknown First-order logic facts objects true/false/unknown relations Temporal logic facts objects true/false/unknown relations times Probability theory facts degree of belief [0 1] Fuzzy logic degree of truth degree of truth [0 1] Predicate-Calculus 3
4 Prop. Logic vs Predicate Calculus Propositional Logic World consists of propositions... either true in world or not. W 12 W 11 W 12 W 44 (W 11 W 12 ) (W 11 W 13 ) (W 34 W 44 ) Note: W 12 (syntactically) unrelated to W 13 Predicate Calculus World consists of Objects Predicates (properties relations functions) (which participate in propositions that could be true in world) At(Wumpus [ 1 2 ]) l At( Wumpus l ) l 1 l 2 At(Wumpus l 1 ) At(Wumpus l 2 ) l 1 = l2 Predicate calculus is MORE POWERFUL than Propositional Logic Predicate-Calculus 4
5 Parts of Predicate Calculus Objects: things w/ individual identity (people houses numbers theories colors wars Ronald McDonald... ) Predicates: distinguish objects from one another properties (of single object) (red round bogus prime... ) relations amoung sets of objects (brother-of part-of has-color owns... ) functions: rel n w/ single value for each input (father-of one-more-than... ) Each predicate SET of object-tuples: Red = { rose#1 blood#7 ruby# } Brother = { Russ Miles Tom Mark... } Successor = { } NEUTRAL: can describe categories time... but nothing is built in... Predicate-Calculus 5
6 Predicate Calculus: Syntax Atomic Propositions basic statements about world At(Wumpus [ 3 4 ]) Adjacent([ 3 4 ] l 2 ) Smelly( [ 3 5 ] )... built from... Predicate Symbols: At Adjacent =... Constant Symbols: Agent Wumpus Pit S 1 [ 3 5 ]... Variable Symbols: s a l... Function Symbols: Turn Result Next... Well-formed atomic proposition is P ( t 1... t n ) where P is Predicate of arity n & Each t i is a term constant variable functional term: F ( t 1... t m ) if F is a Function of arity m; and each t i is a term. (representing object) Predicate-Calculus 6
7 Examples of Atomic Propositions Smelly( [ 3 5 ] ): Smelly has arity 1; [ 3 5 ] is term as it is constant At( Wumpus l 2 ): At has arity 2; Wumpus is term as it is constant l 2 is term as it is variable AgentAt( l 2 Next(S 0 ) ): AgentAt has arity 2; l 2 is term as it is variable Next(S 0 ) is term as Next is function of 1 arg and S 0 is term as constant Predicate-Calculus 7
8 Logical Connectives Build sentences from atomic prop s using: connectives: quantifiers: and or not implies equivalence if... then (biconditional) for all exists Examples Adjacent( [ 1 2 ] [ 1 3 ] ) At( Wumpus [ 1 3 ] ) At( Wumpus [ 2 2 ] ) l 1 l 2 At(Wumpus l 1 ) Adjacent(l 1 l 2 ) Smelly(l 2 ) l 1 l 2 Pit(l 1 ) Adjacent(l 1 l 2 ) Breezy(l 2 ) See p. 187 R&N. Predicate-Calculus 8
9 Predicate Calculus: Semantics Proposition Logic: Model m f based on f : Var {T F } { } A B C D f = m f = A m f = B C... Predicate Calculus Models... based on Extensions of Objects Relations Functions f : Symbol Extension f( RG ) = f( P rof ) = RG f( JS ) = RG JS JS DL TM f( P erson ) = RG JvR... Predicate-Calculus 9
10 f( Red ) = { Block1 FireEngine... } FireEngine JS f( T aller ) = RG JS FireEngine RG RG Block1...
11 Using Extension Q: Given extension f( ) is m f =? P rof(rg)? A: True as f( RG ) f( P rof ) RG RG JS DL TM... YES! m f =? P rof(block1)? False as f( Block1 ) f( P rof ) Block1 RG JS DL TM... Predicate-Calculus 10
12 Extension #2 m f = T aller(rg JS): f( RG ) f( JS ) f( T aller ) RG JS FireEngine RG JS FireEngine RG JS RG Block1... In general: m f = A(B C) iff f(b) f(c) f(a) Similar issues for 0-ary relations (aka constants ) n-ary relations functions Predicate-Calculus 11
13 Meaning of Quantifiers x Q(x) Q(v 1 ) Q(v 2 ) Q(v n ) over all objects v i ( number of them) Eg: All cats are mammals x Cat(x) Mammal(x) Cat( Spot ) Mammal( Spot ) Cat(Rebeca) Mammal(Rebeca) Cat( Felix ) Mammal( Felix ) Cat(Richard) Mammal(Richard) Cat( John ) Mammal( John ) x Q(x) Q(v 1 ) Q(v 2 ) Q(v n ) over all objects v i Eg: Spot has a sister who is a cat x Sister(x Spot) Cat(x) Sister( Spot Spot) Cat( Spot ) Sister(Rebeca Spot) Cat(Rebeca) Sister( Felix Spot) Cat( Felix ) Sister(Richard Spot) Cat(Richard) Sister( John Spot) Cat( John ) Predicate-Calculus 12
14 Notes on Quantifiers Common Mistakes: x Cat(x) Mammal(x) means everything is BOTH a cat and a mammal! x Sister(x Spot) Cat(x) means either something is not a sister of Spot or something is cat! Nesting: x y Parent(x y) Child(y x) y xparent(x y) Child(y x) Similarly x y... y x... But... x y Loves(x y) y x Loves(x y) (Everyone loves his mother... vs... GoodAngel loved by all) Duality: Everyone dislikes Parsnips there is no one who likes Parsnips x Likes(x Parsnips) xlikes(x Parsnips) De Morgan Rules: x P x P P Q (P Q) x P x P (P Q) P Q x P x P P Q ( P Q) x P x P ( P Q) P Q Predicate-Calculus 13
15 Sufficient Representation Kinship Domain Definition: A mother is a female parent m c Mother(m c) Female(m) Parent(m c) Disjointness: Males and females are disjoint x Male(x) Female(x) Inverse: Parent and child are inverse relations p c Parent(p c) Child(c p) Intervening Entity: A grandparent is a parent of one s (intervening) parent g c GrandParent(g c) p Parent(g p) Parent(p c) Exclusive: A sibling is another child of one s parents... x y Sibling(x y) x y p Parent(p x) Parent(p y) + Sets lists arithmetic... R/N p.197ff... Situations... Predicate-Calculus 14
16 Implementation of Agent Tell stores facts Tell(KB l 1 l 2 At(Wumpus l 1 ) Adjacent(l 1 l 2 ) Smelly(l 2 ) ) Tell(KB Adjacent([ 3 4 ] [ 2 4 ]) ) Tell(KB Smelly([ 3 1 ]) )... Ask answers queries (using inference rules) Ask(KB Adj([ 3 4 ] [ 2 4 ])) Yes Ask(KB Adj([ 3 4 ] l) ) Yes[l/[ 2 4 ]] Ask(KB Action(x 5) ) Yes[x/Grab] NOTE: Not just Yes but also a value required How does it get answers...? Predicate-Calculus 15
17 Substitution Given sentence S and substitution σ Sσ denotes result of plugging σ into S Eg S = Smarter(x y) σ = {x/hillary y/bill} Sσ = Smarter(HillaryBill) Ask(KB S) returns all σ s such that KB = Sσ More about substitutions... LATER! Predicate-Calculus 16
18 Formalization C1 1 2 X1 X2 1 3 A2 A1 O1 2 one-bit full adder : Inputs: two inputs and a carry Output: one output and carry Four gates types: AND OR XOR NOT Goal#1: see if design matches specification Consider: circuits terminals signals. Keep task in mind Eg for fault diagnosis: if wires can be broken may want to specify wires (eg Wire(xy)) Predicate-Calculus 17
19 Vocabulary Constants: X 1 X 2... XOR AND... On Off (signal values) Functions: Type(X 1 ) = XOR Q. Advantage of function vs Type( X 1 XOR)? Out(1 X 1 ) In(1 X 1 ) In(2 X 1 ) In(3 X 1 ) terms representing terminals Signal(x) signal value fn (eg Signal( In(1 X 1 ) )) Relations: Connected( Out(1 X 1 ) In(1 X 2 )) for connectivity: Note: don t have to name terminals explicity! Semantics of function will assign some unique object to it. Predicate-Calculus 18
20 General Rules Tell agent... How signals behave: R1 : t 1 t 2 Connected(t 1 t 2 ) Signal(t 1 ) = Signal(t 2 ) R2a : t Signal(t) = On Signal(t) = Off R2b : On Off R3 : t 1 t 2 Connected(t 1 t 2 ) Connected(t 2 t 1 ) How gates behave: R4 : g Type(g) = OR Signal(Out(1 g)) = On n Signal(In(n g)) = On R5 : g Type(g) = AND Signal(Out(1 g)) = On n Signal(In(n g)) = On R6 : g Type(g) = XOR Signal(Out(1 g)) = On (Signal(In(1 g)) Signal(In(2 g))) R7 : g Type(g) = NOT Signal(Out(1 g)) = On (Signal(In(1 g)) = Off Predicate-Calculus 19
21 Current Situation General Rules are Few (7) good ontology Clear good vocabulary Now what? Describe SPECIFIC circuit Ask questions about this specific circuit Predicate-Calculus 20
22 Describing Specific Circuit C1 1 2 X1 X2 1 3 A2 A1 O1 2 Tell agent: Types of gates: Type(X 1 ) = XOR Type(X 2 ) = XOR Type(A 1 ) = AND... Conectivity Connected( Out(1X 1 ) In(1X 2 ) ) Connected( In(1C 1 ) In(1X 1 ) ) Connected( Out(1X 1 ) In(1A 2 ) ) Connected( In(1C 1 ) In(1A 1 ) )... Predicate-Calculus 21
23 Queries Our KB captures full behavior. Can Ask different queries about behavior Q: i 1 i 2 i 3 Signal(In(1C 1 )) = i 1 Signal(In(2C 1 )) = i 2 Signal(In(3C 1 )) = i 3 Signal(Out(1C 1 )) = Off Signal(Out(2C 1 )) = On? A: (i 1 = On i 2 = On i 3 = Off) (i 1 = On i 2 = Off i 3 = On) (i 1 = Off i 2 = On i 3 = On) Q: What is the advantage over direct simulation? A: Allows agent to reason about overall behavior. Eg What inputs give a particular output? Predicate-Calculus 22
24 Pro/Con wrt Formalizing + Used in analysis of circuits/systems Contrast with Truth table method + Formalization is somewhat facilitated by closeness between logical formalisms and digital circuitry... allows for very powerful design methods (but did not prevent Pentium bug... ) Defining natural kinds: game or chair... difficulty w/ necessary and sufficient conditions. [R&N p.232] Problem with strict definition [Quine 1953] the Pope is a bachelor Predicate-Calculus 23
25 Summary First-order logic: objects relations are semantic primitives syntax: constants functions predicates equality quantifiers Increased expressive power: sufficient to define Wumpus World Situation calculus: conventions for describing actions and change in FOL can formulate planning as inference wrt a situation calculus KB Predicate-Calculus 24
26 Useful Equivalencies [Needs only & ] P P P Q [( P ) ( Q)] [P Q] ( P ) ( Q) P Q ( P ) Q (P Q) P Q [(P Q) (Q P )] (P Q) (Q P ) x. φ(x) [ x. φ(x)] [ x. φ(x)] x. φ(x) ϕ τ τ ϕ!x. φ(x) x. [φ(x) z. φ(z) z = x]... Exactly n values of ϕ... Predicate-Calculus 25
27 Example of Using U = Set of natural numbers N n. 6 n 2 n n. 6 n 2 n A = { n : 6 n } = { } B = { n : 2 n } = { } Notice A B = N (Hence each n N n satisfies either 6 n or 2 n) So n 6 n 2 n Predicate-Calculus 26
RN, Chapter 8 Predicate Calculus 1
Predicate Calculus 1 RN, Chapter 8 Logical Agents Reasoning [Ch 6] Propositional Logic [Ch 7] Predicate Calculus Representation [Ch 8] Syntax, Semantics, Expressiveness Example: Circuits Inference [Ch
More informationFirst Order Logic (FOL)
First Order Logic (FOL) CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2015 Soleymani Artificial Intelligence: A Modern Approach, 3 rd Edition, Chapter 8 Why FOL?
More informationFirst-Order Logic Chap8 1. Pros and Cons of Prop. Logic
Chapter8 First-Order Logic 20070503 Chap8 1 Pros and Cons of Prop. Logic PL is declarative Knowledge and inference are separate and inference is entirely domain-independent. PL is compositional Meaning
More informationFirst-Order Logic. Chapter 8
First-Order Logic Chapter 8 Outline Why FOL? Syntax and semantics of FOL Using FOL Wumpus world in FOL Knowledge engineering in FOL Pros and cons of propositional logic Propositional logic is declarative
More informationFirst-Order Logic. Chapter 8
First-Order Logic Chapter 8 1 Outline Why FOL? Syntax and semantics of FOL Using FOL Wumpus world in FOL Knowledge engineering in FOL 2 Pros and cons of propositional logic Propositional logic is declarative
More informationFirst-Order Logic. Chapter 8
First-Order Logic Chapter 8 Outline Why FOL? Syntax and semantics of FOL Using FOL Wumpus world in FOL Knowledge engineering in FOL Pros/cons of propositional logic Propositional logic is declarative (recall
More informationLecture 8: (Predicate) First Order Logic
Lecture 8: (Predicate) First Order Logic CS 580 (001) - Spring 2018 Amarda Shehu Department of Computer Science George Mason University, Fairfax, VA, USA April 04, 2018 Amarda Shehu (580) 1 1 Outline of
More informationFirst-order logic. Chapter 8. Chapter 8 1
First-order logic Chapter 8 Chapter 8 1 Outline Why FOL? Syntax and semantics of FOL Fun with sentences Wumpus world in FOL Chapter 8 2 Pros and cons of propositional logic Propositional logic is declarative:
More informationFirst-order logic. First-order logic. Logics in general. Outline. Syntax of FOL: Basic elements. Pros and cons of propositional logic
First-order logic Whereas propositional logic assumes world contains facts, first-order logic (like natural language) assumes the world contains First-order logic Chapter 8 Objects: people, houses, numbers,
More informationKnowledge Representation using First-Order Logic (Part III)
Knowledge Representation using First-Order Logic (Part III) This lecture: R&N Chapters 8, 9 Next lecture: Chapter 13; Chapter 14.1-14.2 (Please read lecture topic material before and after each lecture
More informationCS 188: Artificial Intelligence Spring 2007
CS 188: Artificial Intelligence Spring 2007 Lecture 9: Logical Agents 2 2/13/2007 Srini Narayanan ICSI and UC Berkeley Many slides over the course adapted from Dan Klein, Stuart Russell or Andrew Moore
More informationFirst Order Logic (FOL)
First Order Logic (FOL) CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2013 Soleymani Course material: Artificial Intelligence: A Modern Approach, 3 rd Edition, Chapter
More informationFirst-Order Logic. CS367 ARTIFICIAL INTELLIGENCE Chapter 8
First-Order Logic CS367 ARTIFICIAL INTELLIGENCE Chapter 8 2012 Semester 2 Patricia J Riddle Adapted from slides by Stuart Russell, http://aima.cs.berkeley.edu/instructors.html 1 Outline Why FOL? Syntax
More information(Part II) Reading: R&N Chapters 8, 9
Knowledge Representation using First-Order Logic (Part II) Reading: R&N Chapters 8, 9 Outline Review: KB = S is equivalent to = (KB S) So what does {} = S mean? Review: Follows, Entails, Derives Follows:
More informationCS 380: ARTIFICIAL INTELLIGENCE FIRST ORDER LOGIC. Santiago Ontañón
CS 380: ARTIFICIAL INTELLIGENCE FIRST ORDER LOGIC Santiago Ontañón so367@drexel.edu Pros and cons of propositional logic Propositional logic is declarative: pieces of syntax correspond to facts Propositional
More informationFirst-order logic. Chapter 8. Chapter 8 1
First-order logic Chapter 8 Chapter 8 1 (Slides borrowed from Stuart Russel: http://aima.eecs.berkeley.edu/slides-tex/) Chapter 8 2 First-order logic Whereas propositional logic assumes world contains
More informationFirst-Order Logic. Michael Rovatsos. University of Edinburgh R&N: February Informatics 2D
First-Order Logic R&N: 8.1-8.3 Michael Rovatsos University of Edinburgh 4 February 2016 Outline Why FOL? Syntax and semantics of FOL Using FOL Wumpus world in FOL Pros and cons of propositional logic Propositional
More informationJ Propositional logic is declarative J Propositional logic is compositional: q meaning of B 1,1 P 1,2 is derived from meaning of B 1,1 and of P 1,2
Propositional logic First-Order Logic Russell and Norvig Chapter 8 J Propositional logic is declarative J Propositional logic is compositional: meaning of B 1,1 P 1,2 is derived from meaning of B 1,1 and
More informationFirst-Order Logic. Propositional logic. First Order logic. First Order Logic. Logics in General. Syntax of FOL. Examples of things we can say:
Propositional logic First-Order Logic Russell and Norvig Chapter 8 Propositional logic is declarative Propositional logic is compositional: meaning of B 1,1 P 1,2 is derived from meaning of B 1,1 and of
More informationOutline. First-order logic. Atomic sentences. Intelligent Systems and HCI D7023E. Syntax of FOL: Basic elements. Pros and cons of propositional logic
Outline Intelligent Systems and HCI D7023E Lecture 8: First-order Logic [Ch.8] Paweł Pietrzak Why FOL? Syntax and semantics of FOL Using FOL Knowledge engineering in FOL Some inference in FOL 1 Pros and
More informationCS 771 Artificial Intelligence. First order Logic
CS 771 Artificial Intelligence First order Logic Pros and cons of propositional logic Propositional logic is declarative - Knowledge and inference are separate - Inference is domain independent Propositional
More informationFirst Order Logic Semantics (3A) Young W. Lim 9/17/17
First Order Logic (3A) Young W. Lim Copyright (c) 2016-2017 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version
More informationCS 380: ARTIFICIAL INTELLIGENCE INFERENCE IN PROPOSITIONAL LOGIC
CS 380: ARTIFICIAL INTELLIGENCE INFERENCE IN PROPOSITIONAL LOGIC 11/11/2013 Santiago Ontañón santi@cs.drexel.edu https://www.cs.drexel.edu/~santi/teaching/2013/cs380/intro.html Summary of last day: Logic:
More informationLogical Agents. Knowledge based agents. Knowledge based agents. Knowledge based agents. The Wumpus World. Knowledge Bases 10/20/14
0/0/4 Knowledge based agents Logical Agents Agents need to be able to: Store information about their environment Update and reason about that information Russell and Norvig, chapter 7 Knowledge based agents
More informationFirst Order Logic. Philipp Koehn. 8 October 2015
First Order Logic Philipp Koehn 8 October 2015 Wittgenstein: Tractatus Logico-Philosophicus 1 1. The world is everything that is the case. 2. What is the case (a fact) is the existence of states of affairs.
More informationFirst Order Logic Semantics (3A) Young W. Lim 8/9/17
First Order Logic (3A) Young W. Lim Copyright (c) 2016-2017 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version
More informationLogic. Introduction to Artificial Intelligence CS/ECE 348 Lecture 11 September 27, 2001
Logic Introduction to Artificial Intelligence CS/ECE 348 Lecture 11 September 27, 2001 Last Lecture Games Cont. α-β pruning Outline Games with chance, e.g. Backgammon Logical Agents and thewumpus World
More informationReasoning. Inference. Knowledge Representation 4/6/2018. User
Reasoning Robotics First-order logic Chapter 8-Russel Representation and Reasoning In order to determine appropriate actions to take, an intelligent system needs to represent information about the world
More informationDescription Logics. Foundations of Propositional Logic. franconi. Enrico Franconi
(1/27) Description Logics Foundations of Propositional Logic Enrico Franconi franconi@cs.man.ac.uk http://www.cs.man.ac.uk/ franconi Department of Computer Science, University of Manchester (2/27) Knowledge
More information7.5.2 Proof by Resolution
137 7.5.2 Proof by Resolution The inference rules covered so far are sound Combined with any complete search algorithm they also constitute a complete inference algorithm However, removing any one inference
More informationPropositional Logic: Logical Agents (Part I)
Propositional Logic: Logical Agents (Part I) This lecture topic: Propositional Logic (two lectures) Chapter 7.1-7.4 (this lecture, Part I) Chapter 7.5 (next lecture, Part II) Next lecture topic: First-order
More informationDomain Modelling: An Example (LOGICAL) DOMAIN MODELLING. Modelling Steps. Example Domain: Electronic Circuits (Russell/Norvig)
(LOGICAL) DOMAIN MODELLING Domain Modelling: An Example Provision of a formal, in particular logical language for knowledge representation. Application of these means to represent the formal structure
More informationArtificial Intelligence. Propositional logic
Artificial Intelligence Propositional logic Propositional Logic: Syntax Syntax of propositional logic defines allowable sentences Atomic sentences consists of a single proposition symbol Each symbol stands
More informationKnowledge Representation Logic and Inference Propositional Logic First-order logic Vumpus World
Knowledge Representation Logic and Inference Propositional Logic First-order logic Vumpus World 1 Assume that We design an intelligent agent (travel agent, driving agent, ) What is an intelligent agent?
More informationCS:4420 Artificial Intelligence
CS:4420 Artificial Intelligence Spring 2018 First-Order Logic Cesare Tinelli The University of Iowa Copyright 2004 18, Cesare Tinelli and Stuart Russell a a These notes were originally developed by Stuart
More informationFirst-Order Logic. Language of FOL: Grammar. 22c:145 Artificial Intelligence. Norvig. Universal quantification. A common mistake to avoid
Language of FOL: Grammar 22c:145 Artificial Intelligence Sentence ::= AtomicS ComplexS AtomicS ::= True False RelationSymb(Term,...) Term = Term ComplexS ::= (Sentence) Sentence Connective Sentence Sentence
More informationChapter 8 First Order Logic
1 Chapter 8 First Order Logic BBM 405 Artificial Intelligence Pinar Duygulu Slides are mostly adapted from AIMA and MIT Open Courseware CS461 Artificial Intelligence Pinar Spring Pros and cons of propositional
More informationPropositional Logic: Logical Agents (Part I)
Propositional Logic: Logical Agents (Part I) First Lecture Today (Tue 21 Jun) Read Chapters 1 and 2 Second Lecture Today (Tue 21 Jun) Read Chapter 7.1-7.4 Next Lecture (Thu 23 Jun) Read Chapters 7.5 (optional:
More informationKR: First Order Logic - Intro
KR: First Order Logic - Intro First order logic (first order predicate calculus, predicate calculus) is a higherlevel logic than propositional logic The basic components of FOL are 1. Objects 2. Relations
More informationCSCI-495 Artificial Intelligence. Lecture 17
CSCI-495 Artificial Intelligence Lecture 17 Tractable Inference: Horn Logic Resolution in general can be exponential in space and time For tractable inference we need a smaller logic Real-world KBs often
More informationIntroduc)on to Ar)ficial Intelligence
Introduc)on to Ar)ficial Intelligence Lecture 9 Logical reasoning CS/CNS/EE 154 Andreas Krause First order logic (FOL)! Proposi)onal logic is about simple facts! There is a breeze at loca)on [1,2]! First
More informationCS 4700: Foundations of Artificial Intelligence
CS 4700: Foundations of Artificial Intelligence Bart Selman selman@cs.cornell.edu Module: Knowledge, Reasoning, and Planning Part 2 Logical Agents R&N: Chapter 7 1 Illustrative example: Wumpus World (Somewhat
More informationAgenda. Artificial Intelligence. Reasoning in the Wumpus World. The Wumpus World
Agenda Artificial Intelligence 10. Propositional Reasoning, Part I: Principles How to Think About What is True or False 1 Introduction Álvaro Torralba Wolfgang Wahlster 2 Propositional Logic 3 Resolution
More informationCS 771 Artificial Intelligence. Propositional Logic
CS 771 Artificial Intelligence Propositional Logic Why Do We Need Logic? Problem-solving agents were very inflexible hard code every possible state E.g., in the transition of 8-puzzle problem, knowledge
More informationCSCI 5582 Artificial Intelligence. Today 9/28. Knowledge Representation. Lecture 9
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
More informationCS560 Knowledge Discovery and Management. CS560 - Lecture 3 1
CS560 Knowledge Discovery and Management Yugi Lee STB #560D (816) 235-5932 leeyu@umkc.edu www.sce.umkc.edu/~leeyu CS560 - Lecture 3 1 Logic A logic allows the axiomatization of the domain information,
More informationLogic. (Propositional Logic)
Logic (Propositional Logic) 1 REPRESENTING KNOWLEDGE: LOGIC Logic is the branch of mathematics / philosophy concerned with knowledge and reasoning Aristotle distinguished between three types of arguments:
More informationARTIFICIAL INTELLIGENCE
Page1 ARTIFICIAL INTELLIGENCE UNIT-II LOGICAL REASONING Logical Agents propositional logic inferences first-order logic inferences in first-order logic forward chaining- backward chaining unification resolution
More information22c:145 Artificial Intelligence. First-Order Logic. Readings: Chapter 8 of Russell & Norvig.
22c:145 Artificial Intelligence First-Order Logic Readings: Chapter 8 of Russell & Norvig. Einstein s Puzzle in Logic We used propositinal variables to specify everything: x 1 = house #1 is red ; x 2 =
More informationLogic: First Order Logic (Part I)
Logic: First Order Logic (Part I) Alessandro Artale Free University of Bozen-Bolzano Faculty of Computer Science http://www.inf.unibz.it/ artale Descrete Mathematics and Logic BSc course Thanks to Prof.
More informationCSC242: Intro to AI. Lecture 12. Tuesday, February 26, 13
CSC242: Intro to AI Lecture 12 Quiz Stop Time: 2:15 ULW First draft due Mar 1 8-10 pages minimum First-Order Logic First-Order Logic Propositional Logic Syntax & Semantics Truth tables Model checking
More informationLogical Agents. Administrative. Thursday: Midterm 1, 7p-9p. Next Tuesday: DOW1013: Last name A-M DOW1017: Last name N-Z
Logical Agents Mary Herchenhahn, mary-h.com EECS 492 February 2 nd, 2010 Administrative Thursday: Midterm 1, 7p-9p DOW1013: Last name A-M DOW1017: Last name N-Z Next Tuesday: PS2 due PS3 distributed---
More informationNathan Sturtevant FOL
Lecture Overview COMP 3501 / COMP 4704-4 Lecture 8 First order logic (FOL) Inference in FOL Prof. JGH 318 First Order Logic FOL is closer to natural languages that prop. logic FOL contains: Objects (Constants):
More informationINF5390 Kunstig intelligens. Logical Agents. Roar Fjellheim
INF5390 Kunstig intelligens Logical Agents Roar Fjellheim Outline Knowledge-based agents The Wumpus world Knowledge representation Logical reasoning Propositional logic Wumpus agent Summary AIMA Chapter
More informationEE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS
EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS Lecture 10, 5/9/2005 University of Washington, Department of Electrical Engineering Spring 2005 Instructor: Professor Jeff A. Bilmes Logical Agents Chapter 7
More informationChapter 7 R&N ICS 271 Fall 2017 Kalev Kask
Set 6: Knowledge Representation: The Propositional Calculus Chapter 7 R&N ICS 271 Fall 2017 Kalev Kask Outline Representing knowledge using logic Agent that reason logically A knowledge based agent Representing
More informationGS03/4023: Validation and Verification Predicate Logic Jonathan P. Bowen Anthony Hall
GS03/4023: Validation and Verification Predicate Logic Jonathan P. Bowen www.cs.ucl.ac.uk/staff/j.bowen/gs03 Anthony Hall GS03 W1 L3 Predicate Logic 12 January 2007 1 Overview The need for extra structure
More informationIntelligent Agents. Pınar Yolum Utrecht University
Intelligent Agents Pınar Yolum p.yolum@uu.nl Utrecht University Logical Agents (Based mostly on the course slides from http://aima.cs.berkeley.edu/) Outline Knowledge-based agents Wumpus world Logic in
More informationLogical Agents. Chapter 7
Logical Agents Chapter 7 Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem
More informationReading: AIMA Chapter 9 (Inference in FOL)
10-7-2013 Review HW#4 First Order Logic (aka The Predicate Calculus) Representing knowledge in FOL Reading: AIMA Chapter 9 (Inference in FOL) Exam#1, Tuesday, October 8 th, SC166, 7:00 pm Must interpret
More informationPropositional Logic: Methods of Proof (Part II)
Propositional Logic: Methods of Proof (Part II) You will be expected to know Basic definitions Inference, derive, sound, complete Conjunctive Normal Form (CNF) Convert a Boolean formula to CNF Do a short
More informationLecture 7: Logic and Planning
Lecture 7: Logic and Planning Planning and representing knowledge Logic in general Propositional (Boolean) logic and its application to planning COMP-424, Lecture 8 - January 30, 2013 1 What is planning?
More informationNathan Sturtevant FOL
Lecture Overview COMP 3501 / COMP 4704-4 Lecture 8: First Order Logic First order logic (FOL) Inference in FOL Prof. JGH 318 First Order Logic FOL is closer to natural languages that prop. logic FOL contains:
More informationTHE LANGUAGE OF FIRST-ORDER LOGIC (FOL) Sec2 Sec1(1-16)
THE LANGUAGE OF FIRST-ORDER LOGIC (FOL) Sec2 Sec1(1-16) FOL: A language to formulate knowledge Logic is the study of entailment relationslanguages, truth conditions and rules of inference. FOL or Predicate
More informationInference in first-order logic
CS 270 Foundations of AI Lecture 4 Inference in first-order logic Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square First-order logic FOL More epressive than propositional logic Advantages: Represents
More informationLogical Agents. Outline
Logical Agents *(Chapter 7 (Russel & Norvig, 2004)) Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability
More informationCS 1571 Introduction to AI Lecture 14. First-order logic. CS 1571 Intro to AI. Midterm
CS 1571 Introduction to AI Lecture 14 First-order logic Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square Midterm The midterm for the course will be held on October 28, 2014 In class exam Closed book
More informationCS:4420 Artificial Intelligence
CS:4420 rtificial Intelligence Spring 2018 Logical gents Cesare Tinelli The University of Iowa Copyright 2004 18, Cesare Tinelli and Stuart Russell a a These notes were originally developed by Stuart Russell
More informationInf2D 06: Logical Agents: Knowledge Bases and the Wumpus World
Inf2D 06: Logical Agents: Knowledge Bases and the Wumpus World School of Informatics, University of Edinburgh 26/01/18 Slide Credits: Jacques Fleuriot, Michael Rovatsos, Michael Herrmann Outline Knowledge-based
More informationFoundations of Artificial Intelligence
Foundations of Artificial Intelligence 7. Propositional Logic Rational Thinking, Logic, Resolution Joschka Boedecker and Wolfram Burgard and Frank Hutter and Bernhard Nebel Albert-Ludwigs-Universität Freiburg
More informationLecture 7: Logical Agents and Propositional Logic
Lecture 7: Logical Agents and Propositional Logic CS 580 (001) - Spring 2018 Amarda Shehu Department of Computer Science George Mason University, Fairfax, VA, USA March 07, 2018 Amarda Shehu (580) 1 1
More informationAgents that reason logically
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,
More informationCS 730/730W/830: Intro AI
CS 730/730W/830: Intro AI 1 handout: slides 730W journal entries were due Wheeler Ruml (UNH) Lecture 9, CS 730 1 / 16 Logic First-Order Logic The Joy of Power Wheeler Ruml (UNH) Lecture 9, CS 730 2 / 16
More informationFirst order logic (FOL) Chapters 8 & 9
First order logic (FOL) Chapters 8 & 9 Pros and cons of propositional logic Propositional logic is declarative Propositional logic is compositional Meaning in propositional logic is context-independent
More informationClass Assignment Strategies
Class Assignment Strategies ì Team- A'ack: Team a'ack ì Individualis2c: Search for possible ì Poli2cal: look at others and make decision based on who is winning, who is loosing, and conversa;on ì Emo2on
More informationFormal Logic. The most widely used formal logic method is FIRST-ORDER PREDICATE LOGIC
Formal Logic The most widely used formal logic method is FIRST-ORDER PREDICATE LOGIC Reference: Chapter Two The predicate Calculus Luger s Book Examples included from Norvig and Russel. CS 331 Dr M M Awais
More informationPlanning and search. FOL and situation calculus. FOL and situation calculus 1
Planning and search FOL and situation calculus FOL and situation calculus 1 Outline First-order logic continued Situation calculus Logic and planning FOL and situation calculus 2 Fun with sentences Brothers
More informationLogical Agents: Propositional Logic. Chapter 7
Logical Agents: Propositional Logic Chapter 7 Outline Topics: Knowledge-based agents Example domain: The Wumpus World Logic in general models and entailment Propositional (Boolean) logic Equivalence, validity,
More informationExamples: P: it is not the case that P. P Q: P or Q P Q: P implies Q (if P then Q) Typical formula:
Logic: The Big Picture Logic is a tool for formalizing reasoning. There are lots of different logics: probabilistic logic: for reasoning about probability temporal logic: for reasoning about time (and
More informationLogical Agents. Chapter 7
Logical Agents Chapter 7 Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem
More informationFirst-Order Logic. Doug Downey Northwestern EECS 348 Intro to AI Based on slides by Stuart Russell
First-Order Logic Doug Downey Northwestern EECS 348 Intro to AI Based on slides by Stuart Russell Pros and Cons of Propositional Logic Declarative: pieces of syntax correspond to facts Allows partial/disjunctive/negated
More informationIntroduction to Artificial Intelligence. Logical Agents
Introduction to Artificial Intelligence Logical Agents (Logic, Deduction, Knowledge Representation) Bernhard Beckert UNIVERSITÄT KOBLENZ-LANDAU Winter Term 2004/2005 B. Beckert: KI für IM p.1 Outline Knowledge-based
More informationLogic in AI Chapter 7. Mausam (Based on slides of Dan Weld, Stuart Russell, Subbarao Kambhampati, Dieter Fox, Henry Kautz )
Logic in AI Chapter 7 Mausam (Based on slides of Dan Weld, Stuart Russell, Subbarao Kambhampati, Dieter Fox, Henry Kautz ) 2 Knowledge Representation represent knowledge about the world in a manner that
More informationKnowledge and reasoning 2
Knowledge and reasoning 2 DDC65 Artificial intelligence and Lisp Peter Dalenius petda@ida.liu.se Department of Computer and Information Science Linköping University Knowledge-based agents Inside our agent
More informationKecerdasan Buatan M. Ali Fauzi
Kecerdasan Buatan M. Ali Fauzi Artificial Intelligence M. Ali Fauzi Logical Agents M. Ali Fauzi In which we design agents that can form representations of the would, use a process of inference to derive
More informationA Short Introduction to Propositional Logic and First-Order Logic
A Short Introduction to Propositional Logic and First-Order Logic Xiaojin Zhu jerryzhu@cs.wisc.edu Computer Sciences Department University of Wisconsin, Madison [Based on slides from Louis Oliphant and
More informationAI Programming CS S-09 Knowledge Representation
AI Programming CS662-2013S-09 Knowledge Representation David Galles Department of Computer Science University of San Francisco 09-0: Overview So far, we ve talked about search, which is a means of considering
More informationPropositional Logic: Methods of Proof. Chapter 7, Part II
Propositional Logic: Methods of Proof Chapter 7, Part II Inference in Formal Symbol Systems: Ontology, Representation, ti Inference Formal Symbol Systems Symbols correspond to things/ideas in the world
More information03 Review of First-Order Logic
CAS 734 Winter 2014 03 Review of First-Order Logic William M. Farmer Department of Computing and Software McMaster University 18 January 2014 What is First-Order Logic? First-order logic is the study of
More informationPropositional Logic: Methods of Proof (Part II)
Propositional Logic: Methods of Proof (Part II) This lecture topic: Propositional Logic (two lectures) Chapter 7.1-7.4 (previous lecture, Part I) Chapter 7.5 (this lecture, Part II) (optional: 7.6-7.8)
More informationLogic. Foundations of First Order Logic. franconi. Enrico Franconi
(1/41) Logic Foundations of First Order Logic Enrico Franconi franconi@inf.unibz.it http://www.inf.unibz.it/ franconi Faculty of Computer Science, Free University of Bozen-Bolzano (2/41) Motivation We
More informationTitle: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5)
B.Y. Choueiry 1 Instructor s notes #12 Title: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5) Introduction to Artificial Intelligence CSCE 476-876, Fall 2018 URL: www.cse.unl.edu/ choueiry/f18-476-876
More informationArtificial Intelligence
Artificial Intelligence CS482, CS682, MW 1 2:15, SEM 201, MS 227 Prerequisites: 302, 365 Instructor: Sushil Louis, sushil@cse.unr.edu, http://www.cse.unr.edu/~sushil Logic Logical Agents Truth tables you
More informationFoundations of Artificial Intelligence
Foundations of Artificial Intelligence 7. Propositional Logic Rational Thinking, Logic, Resolution Wolfram Burgard, Maren Bennewitz, and Marco Ragni Albert-Ludwigs-Universität Freiburg Contents 1 Agents
More informationPropositional Logic: Methods of Proof (Part II)
Propositional Logic: Methods of Proof (Part II) You will be expected to know Basic definitions Inference, derive, sound, complete Conjunctive Normal Form (CNF) Convert a Boolean formula to CNF Do a short
More informationFoundations of Artificial Intelligence
Foundations of Artificial Intelligence 7. Propositional Logic Rational Thinking, Logic, Resolution Joschka Boedecker and Wolfram Burgard and Bernhard Nebel Albert-Ludwigs-Universität Freiburg May 17, 2016
More informationClassical First-Order Logic
Classical First-Order Logic Software Formal Verification Maria João Frade Departmento de Informática Universidade do Minho 2008/2009 Maria João Frade (DI-UM) First-Order Logic (Classical) MFES 2008/09
More informationCS 730/830: Intro AI. 3 handouts: slides, asst 6, asst 7. Wheeler Ruml (UNH) Lecture 12, CS / 16. Reasoning.
CS 730/830: Intro AI 3 handouts: slides, asst 6, asst 7 Wheeler Ruml (UNH) Lecture 12, CS 730 1 / 16 Logic First-Order Logic The Joy of Power in First-order Logic Wheeler Ruml (UNH) Lecture 12, CS 730
More informationLogical Agent & Propositional Logic
Logical Agent & Propositional Logic Berlin Chen 2005 References: 1. S. Russell and P. Norvig. Artificial Intelligence: A Modern Approach. Chapter 7 2. S. Russell s teaching materials Introduction The representation
More informationPropositional Logic and Semantics
Propositional Logic and Semantics English is naturally ambiguous. For example, consider the following employee (non)recommendations and their ambiguity in the English language: I can assure you that no
More information