First-order logic. AI Slides (5e) c Lin

Size: px
Start display at page:

Download "First-order logic. AI Slides (5e) c Lin"

Transcription

1 First-order logic 6 AI Slides (5e) c Lin Zuoquan@PKU

2 6 First-Order Logic 2.1 First-order logic Syntax Semantics 2.2 Representation in FOL 2.3 Agents in first-order case AI Slides (5e) c Lin Zuoquan@PKU

3 Why FOL Pros and cons of propositional logic (PL) PL is declarative: pieces of syntax correspond to facts PL allows partial/disjunctive/negated information (unlike most data structures and databases) PL is compositional: meaning of B 1,1 P 1,2 is derived from meaning of B 1,1 and of P 1,2 Meaning in PL is context-independent (unlike natural language, where meaning depends on context) PL has very limited expressive power (unlike natural language) E.g., cannot say pits cause breezes in adjacent squares except by writing one sentence for each square AI Slides (5e) c Lin Zuoquan@PKU

4 FOL theses Mathematics: Hilbert s Thesis There is no logic beyond first-order logic that when one is forced to make all one s mathematical (extralogical) assumption explicit, these axioms can always be expressed in FOL, and that the informal notion of provable used in mathematics is made precise by the formal notion of provable in FOL AI: McCarthy s Thesis There is no declarative knowledge representation beyond firstorder logic FOL is very powerful can be used as a full programming language there is no way to detect in general when a program is looping AI Slides (5e) c Lin Zuoquan@PKU

5 First order logic Whereas PL assumes world contains facts, FOL (like natural language) assumes the world contains Objects: people, houses, numbers, theories, Ronald McDonald, colors, baseball games, wars, centuries... Relations: red, round, bogus, prime, multistoried..., brother of, bigger than, inside, part of, has color, occurred after, owns, comes between,... Functions: father of, best friend, third inning of, one more than, end of... AI Slides (5e) c Lin Zuoquan@PKU

6 Syntax Let L be a first-order language Vocabulary: Constants kingjohn, 2, pku,... Predicates Brother, >,... Functions sqrt, lef tlegof,... Variables x, y, a, b,... Connectives Equality = Quantifiers AI Slides (5e) c Lin Zuoquan@PKU

7 Syntax arity: number of arguments arity 0 predicates: propositional symbols arity 0 functions: constant symbols The predicates and functions are non-logical symbols predicate: mixed case capitalized, e.g., OlderThan functions: mixed case uncapitalized, e.g., brotherof Sometimes no distinction if no confusion Notation: occasionally add or omit (,) use [,] and {,} also AI Slides (5e) c Lin Zuoquan@PKU

8 Atomic sentences Atomic sentence (formula) = predicate(term 1,...,term n ) or term 1 = term 2 Term = function(term 1,...,term n ) or constant or variable E.g., Brother(kingJohn, richardt helionheart) > (Length(lef tlegof(richard)), Length(lef tlegof(kingjohn))) AI Slides (5e) c Lin Zuoquan@PKU

9 Complex sentences Complex sentences(well-formed formulas, wffs) are made from atomic sentences using connectives 1. Every atomic sentence is a wff 2. If S 1 and S 1 are wffs, and x is a variable, then S, S 1 S 2, S 1 S 2, S 1 S 2, S 1 S 2, xs 1 (x), xs 1 (x) are wffs E.g. Sibling(kingJohn, richard) Sibling(richard, kingjohn) >(1,2) (1,2) >(1,2) >(1,2) PL as FOL subset: no terms, no quantifiers AI Slides (5e) c Lin Zuoquan@PKU

10 variables sentence Everyone at Beida is smart: x At(x, beida) Smart(x) Universal quantification x P is true in a model m iff P is true with x being each possible object in the model Roughly speaking, equivalent to the conjunction of instantiations of P (At(kingJohn,beida) Smart(kingJohn)) (At(richard,beida) Smart(richard)) (At(lin,Beida) Smart(lin))... AI Slides (5e) c Lin Zuoquan@PKU

11 variables sentence Someone at Qinghua is smart: x At(x,qinghua) Smart(x) Existential quantification x P is true in a model m iff P is true with x being some possible object in the model Roughly speaking, equivalent to the disjunction of instantiations of P (At(kingJohn, Qinghua) Smart(kingJohn)) (At(richard, Qinghua) Smart(richard)) (At(wang, qinghua) Smart(wang))... AI Slides (5e) c Lin Zuoquan@PKU

12 Mistakes to avoid Typically, is the main connective with Mistake: using as the main connective with : x At(x,beida) Smart(x) means Everyone is at Beida and everyone is smart Typically, is the main connective with Mistake: using as the main connective with : x At(x, qinghua) Smart(x) is true if there is anyone who is not at Qinghua AI Slides (5e) c Lin Zuoquan@PKU

13 x y is the same as y x x y is the same as y x Properties of quantifiers x y is not the same as y x x y Loves(x,y) There is a person who loves everyone in the world y x Loves(x,y) Everyone in the world is loved by at least one person Quantifier duality: each can be expressed using the other x Likes(x, icecream) x Likes(x, broccoli) x Likes(x, icecream) x Likes(x, broccoli) AI Slides (5e) c Lin Zuoquan@PKU

14 Variable scope The variables have a scope determined by the quantifiers P(x) xp(x) Q(x) free bound occurrences of variables - sentences: wffs with no free variables (i.e., closed wffs) - usually, free variables assumed to be universally quantified -usedot. forthescope, e.g., x.p(x) Q(x)for x(p(x) Q(x)) Substitution: α[x/t] means α with all free occurrences of the x replaced by term t also, α[t 1,...,t n ] means α[x 1 /t 1,,x n /t n ], or simple α[x/t] x = (x 1,,x n ) stands for a tuple of variables (also terms) AI Slides (5e) c Lin Zuoquan@PKU

15 Semantics Consider how to interpret sentences what do sentences claim about the world? or, what does believing one amount to? Without meaning, sentences cannot be used to represent knowledge Comparing with PL, cannot fully specify interpretation of sentences because non-logical symbols reach outside the language Logical interpretation specification of how to understand predicate and function symbols Problem: cannot realistically expect to specify once and for all what a sentence means the non-logical symbols are used in an application dependent way E.g., Happy(lin), who slin, evenifweweretoagreeonwhat Happy means AI Slides (5e) c Lin Zuoquan@PKU

16 Semantics Abstract structure to specify interpretation 1. There are objects (in the world) 2. ForanypredicateP (ofarity1), someoftheobjectswill satisfy P and some will not each interpretation settles extension of P aach interpretation assigns to function f a mapping from objects to objects functions always well-defined and single-valued 3. No other aspects of the world matter The FOL assumption this is all you need to know about the non-logical symbols to understand which sentences of FOL are true or false AI Slides (5e) c Lin Zuoquan@PKU

17 Models Sentences are true w.r.t. a model and an interpretation Model contains 1 objects (domain elements) and relations among them Interpretation specifies referents for constant symbols objects predicate symbols relations function symbols functional relations An atomic sentence predicate(term 1,...,term n ) is true iff the objects referred to by term 1,...,term n are in the relation referred to by predicate AI Slides (5e) c Lin Zuoquan@PKU

18 Models: Example crown person brother brother on head person king R $ J left leg left leg AI Slides (5e) c Lin Zuoquan@PKU

19 Models: Truth Consider the interpretation in which richard Richard the Lionheart john the evil King John Brother the brotherhood relation Under this interpretation, Brother(richard, john) is true just in case Richard the Lionheart and the evil King John are in the brotherhood relation in the model AI Slides (5e) c Lin Zuoquan@PKU

20 Models: Entailment Entailment in PL can be computed by enumerating models We can enumerate the FOL models for a given KB vocabulary: For each number of domain elements n from 1 to For each k-ary predicate P k in the vocabulary For each possible k-ary relation on n objects For each constant symbol C in the vocabulary For each choice of referent for C from n objects... Computing entailment by enumerating FOL models is not easy AI Slides (5e) c Lin Zuoquan@PKU

21 Interpretation Interpretation I: the domain I 1.If σ is an object constant, then I(σ) I 2.If π is an n-ary function constant, then I(π) : I n I 3.If ρ is an n-ary relation constant, then I(ρ) I n AI Slides (5e) c Lin Zuoquan@PKU

22 Assignment Variable assignment U: a function from the variables of L to objects of I Term assignment T IU : given I and U 1.If τ is an object constant, then T IU (τ) = I(τ) 2.If τ is a variable, then T IU (τ) = U(τ) 3.If τ is a term of the form π(τ 1,,τ n ) and I(π) = g and T IU (τ i ) = x i, then T IU (τ) = g(x 1,,x n ) AI Slides (5e) c Lin Zuoquan@PKU

23 Satisfaction Satisfaction = I φ[u] (simply =): a sentence φ is satisfied by an interpretation I and a variable assignment U 1. = (σ = τ) iff T IU (σ) = T IU (τ) 2. = ρ(τ 1,,τ n ) iff < T IU (τ 1 ),,T IU (τ n ) > I(ρ) 3. = φ iff = φ 4. = φ ψ iff = φ and = ψ 5. = φ ψ iff = φ or = ψ 6. = φ ψ iff = φ or = ψ 7. = xφ(x) iff for all d I it is the case that = φ[v], where V(x) = d and V(y) = U(y) for x y 8. = xφ(x) iff for some d I it is the case that = φ[v], where V(x) = d and V(y) = U(y) for x y AI Slides (5e) c Lin Zuoquan@PKU

24 Models and entailment Model I: If an interpretation I satisfies a sentence φ for all variable assignments, then I is said to be a model of φ, written = I φ or I = φ Similarly (in PL), a sentence is valid if it is true in all models E.g., A A, A A, (A (A B)) B A sentence is unsatisfiable if it is true in no models E.g., A A Entailment =: Let KB be a set of sentences and φ a sentence, KB = φ iff φ is true in all models of KB AI Slides (5e) c Lin Zuoquan@PKU

25 Brothers are siblings Representation in FOL AI Slides (5e) c Lin Zuoquan@PKU

26 Representation in sentences Brothers are siblings x, y Brother(x, y) Sibling(x, y). Sibling is symmetric AI Slides (5e) c Lin Zuoquan@PKU

27 Representation in sentences Brothers are siblings x, y Brother(x, y) Sibling(x, y). Sibling is symmetric x,y Sibling(x,y) Sibling(y,x). One s mother is one s female parent AI Slides (5e) c Lin Zuoquan@PKU

28 Representation in sentences Brothers are siblings x, y Brother(x, y) Sibling(x, y). Sibling is symmetric x,y Sibling(x,y) Sibling(y,x). One s mother is one s female parent x,y Mother(x,y) (Female(x) Parent(x,y)). A first cousin is a child of a parent s sibling AI Slides (5e) c Lin Zuoquan@PKU

29 Brothers are siblings Representation in sentences x, y Brother(x, y) Sibling(x, y). Sibling is symmetric x,y Sibling(x,y) Sibling(y,x). One s mother is one s female parent x,y Mother(x,y) (Female(x) Parent(x,y)). A first cousin is a child of a parent s sibling x,y FirstCousin(x,y) p,ps Parent(p,x) Sibling(ps,p) P arent(ps, y) AI Slides (5e) c Lin Zuoquan@PKU

30 Equality term 1 = term 2 is true under a given interpretation if and only if term 1 and term 2 refer to the same object E.g., 1 = 2 and x (Sqrt(x),Sqrt(x)) = x are satisfiable 2 = 2 is valid E.g., definition of (full) Sibling in terms of Parent: x,y Sibling(x,y) [ (x=y) m,f (m=f) P arent(m, x) P arent(f, x) P arent(m, y) P arent(f, y)] AI Slides (5e) c Lin Zuoquan@PKU

31 Knowledge engineering KR is first and foremost about knowledge meaning and entailment find individuals and properties, then encode facts sufficient for entailments Before implementing, need to understand clearly what is to be computed? why and where inference is necessary? Task: KB with appropriate entailments what vocabulary? what facts to represent? AI Slides (5e) c Lin Zuoquan@PKU

32 Knowledge base KB is set of sentences explicit statement of sentences believed (including any assumed connections among non-logical symbols) KB = φ φ is a further consequence of what is believed explicit knowledge: KB implicit knowledge: {φ KB = φ} AI Slides (5e) c Lin Zuoquan@PKU

33 Knowledge-based systems Building (larger) KB to represent what is explicitly known e.g. what the system has been told or has learned Want to influence behaviour based on what is implicit in the KB Requires reasoning deductive inference process of calculating entailments of KB i.e., KB = φ AI Slides (5e) c Lin Zuoquan@PKU

34 Agents in first-order case Suppose a wumpus-world agent is using an FOL KB and perceives a smell and a breeze (but no glitter) at t = 5: T ell(kb, P ercept([smell, Breeze, N one], 5)) Ask(KB, a Action(a, 5)) I.e., does KB entail any particular actions at t = 5? Answer: Y es, {a/shoot} substitution (binding list) Given a sentence S and a substitution σ, Sσ denotes the result of plugging σ into S; e.g., S = Smarter(x,y) σ = {x/hillary, y/bill} Sσ = Smarter(Hillary, Bill) Ask(KB,S) returns some/all σ such that KB = Sσ AI Slides (5e) c Lin Zuoquan@PKU

35 Application of FOL Facts hold in situations, rather than eternally E.g., Holding(Gold, N ow) rather than just Holding(Gold) Situation calculus is one way to represent change in FOL: Adds a situation argument to each non-eternal predicate E.g., Now in Holding(Gold,Now) denotes a situation Situations are connected by the Result function Result(a,s) is the situation that results from doing a in s PIT Gold PIT PIT Gold PIT PIT S 1 PIT S 0 Forward AI Slides (5e) c Lin Zuoquan@PKU

36 KB: example The law says that it is a crime for an American to sell weapons to hostile nations. The country Nono, an enemy of America, has some missiles, and all of its missiles were sold to it by Colonel West, who is American. Prove that Col. West is a criminal AI Slides (5e) c Lin Zuoquan@PKU

37 KB: example... it is a crime for an American to sell weapons to hostile nations: AI Slides (5e) c Lin Zuoquan@PKU

38 KB: example... it is a crime for an American to sell weapons to hostile nations: American(x) W eapon(y) Sells(x, y, z) Hostile(z) Criminal(x) Nono... has some missiles AI Slides (5e) c Lin Zuoquan@PKU

39 KB: example... it is a crime for an American to sell weapons to hostile nations: American(x) W eapon(y) Sells(x, y, z) Hostile(z) Criminal(x) Nono... has some missiles, i.e., x Owns(Nono,x) Missile(x): Owns(Nono,M 1 ) and Missile(M 1 )... all of its missiles were sold to it by Colonel West AI Slides (5e) c Lin Zuoquan@PKU

40 KB: example... it is a crime for an American to sell weapons to hostile nations: American(x) W eapon(y) Sells(x, y, z) Hostile(z) Criminal(x) Nono... has some missiles, i.e., x Owns(Nono,x) Missile(x): Owns(Nono,M 1 ) and Missile(M 1 )... all of its missiles were sold to it by Colonel West x Missile(x) Owns(Nono,x) Sells(West,x,Nono) Missiles are weapons: AI Slides (5e) c Lin Zuoquan@PKU

41 KB: example... it is a crime for an American to sell weapons to hostile nations: American(x) W eapon(y) Sells(x, y, z) Hostile(z) Criminal(x) Nono... has some missiles, i.e., x Owns(Nono,x) Missile(x): Owns(Nono,M 1 ) and Missile(M 1 )... all of its missiles were sold to it by Colonel West x Missile(x) Owns(Nono,x) Sells(West,x,Nono) Missiles are weapons: Missile(x) Weapon(x) An enemy of America counts as hostile : AI Slides (5e) c Lin Zuoquan@PKU

42 KB: example... it is a crime for an American to sell weapons to hostile nations: American(x) W eapon(y) Sells(x, y, z) Hostile(z) Criminal(x) Nono... has some missiles, i.e., x Owns(Nono,x) Missile(x): Owns(Nono,M 1 ) and Missile(M 1 )... all of its missiles were sold to it by Colonel West x Missile(x) Owns(Nono,x) Sells(West,x,Nono) Missiles are weapons: Missile(x) Weapon(x) An enemy of America counts as hostile : Enemy(x,America) Hostile(x) West, who is American... American(W est) The country Nono, an enemy of America... Enemy(N ono, America) AI Slides (5e) c Lin Zuoquan@PKU

43 KB: the wumpus world Perception b,g,t Percept([Smell,b,g],t) Smelt(t) s,b,t Percept([s,b,Glitter],t) AtGold(t) Reflex: t AtGold(t) Action(Grab, t) Reflex with internal state: do we have the gold already? t AtGold(t) Holding(Gold, t) Action(Grab, t) Holding(Gold, t) cannot be observed keeping track of change is essential AI Slides (5e) c Lin Zuoquan@PKU

44 Reasoning Properties of locations: x, t At(Agent, x, t) Smelt(t) Smelly(x) x, t At(Agent, x, t) Breeze(t) Breezy(x) Squares are breezy near a pit: Diagnostic rule infer cause from effect y Breezy(y) x Pit(x) Adjacent(x,y) Causal rule infer effect from cause x,y Pit(x) Adjacent(x,y) Breezy(y) Neither of these is complete e.g., the causal rule doesn t say whether squares far away from pits can be breezy Definition for the Breezy predicate: y Breezy(y) [ x Pit(x) Adjacent(x,y)] AI Slides (5e) c Lin Zuoquan@PKU

First-order logic. Chapter 8. Chapter 8 1

First-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 information

First-order logic. Chapter 8. Chapter 8 1

First-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 information

First-order logic. First-order logic. Logics in general. Outline. Syntax of FOL: Basic elements. Pros and cons of propositional logic

First-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 information

CS 380: ARTIFICIAL INTELLIGENCE FIRST ORDER LOGIC. Santiago Ontañón

CS 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 information

CS 380: ARTIFICIAL INTELLIGENCE INFERENCE IN PROPOSITIONAL LOGIC

CS 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 information

Lecture 8: (Predicate) First Order Logic

Lecture 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 information

First-Order Logic. Language of FOL: Grammar. 22c:145 Artificial Intelligence. Norvig. Universal quantification. A common mistake to avoid

First-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 information

First Order Logic. Philipp Koehn. 8 October 2015

First 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 information

CS:4420 Artificial Intelligence

CS: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 information

First-Order Logic. CS367 ARTIFICIAL INTELLIGENCE Chapter 8

First-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

Planning and search. FOL and situation calculus. FOL and situation calculus 1

Planning 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 information

First-Order Logic. Michael Rovatsos. University of Edinburgh R&N: February Informatics 2D

First-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 information

First-Order Logic. Chapter 8

First-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 information

First order logic (FOL) Chapters 8 & 9

First 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 information

First-Order Logic. Chapter 8

First-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 information

First-Order Logic. Propositional logic. First Order logic. First Order Logic. Logics in General. Syntax of FOL. Examples of things we can say:

First-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 information

First-Order Logic. Chapter 8

First-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 information

J 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

J 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 information

Chapter 8 First Order Logic

Chapter 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 information

CS 188: Artificial Intelligence Spring 2007

CS 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 information

Logical Agents. CITS3001 Algorithms, Agents and Artificial Intelligence. 2018, Semester 2

Logical Agents. CITS3001 Algorithms, Agents and Artificial Intelligence. 2018, Semester 2 Logical Agents CITS3001 Algorithms, Agents and Artificial Intelligence Tim French School of Computer Science and Software Engineering The University of Western Australia 2018, Semester 2 Summary We motivate

More information

CSC242: Intro to AI. Lecture 13. Thursday, February 28, 13

CSC242: Intro to AI. Lecture 13. Thursday, February 28, 13 CSC242: Intro to AI Lecture 13 Recap Rooms adjacent to pits will have breezes Socrates is a person All people are mortal Anybody s grandmother is either their mother s or their father s mother Elements

More information

Logic. Foundations of First Order Logic. franconi. Enrico Franconi

Logic. 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 information

First-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 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 information

First Order Logic (FOL)

First 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 information

Logic III. Introduction to Artificial Intelligence CSE 150

Logic III. Introduction to Artificial Intelligence CSE 150 Logic III Introduction to Artificial Intelligence CSE 150 Outline Last Lecture Propositional Logic and Sound inference rules Introduction First order logic Symbols, Variables, Functions, Predicates This

More information

Date Topic Readings Due 11/18 First-order logic Ch. 9 HW 6 11/25 First-order inference, Ch. 10 HW7 (Othello) 12/2 Planning. Chs. 11 & 12 HW8.

Date Topic Readings Due 11/18 First-order logic Ch. 9 HW 6 11/25 First-order inference, Ch. 10 HW7 (Othello) 12/2 Planning. Chs. 11 & 12 HW8. Today Lecture 8 Administrivia Discuss test 1 Discuss projects First order logic CS 91.420/543 Artificial Intelligence Fall 2008 Administrivia Readings for today: Nov. 18: Chs. 8 & 9 Readings for next week:

More information

First Order Logic (FOL)

First 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 information

Reasoning. Inference. Knowledge Representation 4/6/2018. User

Reasoning. 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 information

Artificial Intelligence

Artificial Intelligence Artificial Intelligence First-Order Logic Marc Toussaint University of Stuttgart Winter 2015/16 (slides based on Stuart Russell s AI course) First-order logic (FOL) is exactly what is sometimes been thought

More information

Outline. First-order logic. Atomic sentences. Intelligent Systems and HCI D7023E. Syntax of FOL: Basic elements. Pros and cons of propositional logic

Outline. 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 information

First-Order Logic Chap8 1. Pros and Cons of Prop. Logic

First-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 information

Logic: First Order Logic (Part I)

Logic: 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 information

Inference in first-order logic

Inference in first-order logic Inference in first-order logic Chapter 9 Chapter 9 1 Outline Reducing first-order inference to propositional inference Unification Generalized Modus Ponens Forward and backward chaining Logic programming

More information

Knowledge Representation Logic and Inference Propositional Logic First-order logic Vumpus World

Knowledge 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 information

Syntax of FOL: Basic elements

Syntax of FOL: Basic elements First-order logic Chapter 7 CS 580, Jana Kosecka, Chapter 7 1 Syntax of FOL: Basic elements Constants KingJohn, 2, UCB,... Predicates Brother, >,... Functions Sqrt, Lef tlegof,... Variables x, y, a, b,...

More information

First Order Logic Semantics (3A) Young W. Lim 9/17/17

First 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 information

CS 771 Artificial Intelligence. First Order Logic Inference

CS 771 Artificial Intelligence. First Order Logic Inference CS 771 Artificial Intelligence First Order Logic Inference Universal instantiation (UI) Notation: Subst({v/g}, α) means the result of substituting ground term g for variable v in sentence α Every instantiation

More information

Inference in First-Order Predicate Calculus

Inference in First-Order Predicate Calculus Inference in First-Order Predicate Calculus Deepak Kumar November 2017 Knowledge Engineering in FOPC Identify the task Assemble relevant knowledge Decide on a vocabulary of predicates, functions, and constants

More information

First Order Logic Semantics (3A) Young W. Lim 8/9/17

First 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 information

CSCI-495 Artificial Intelligence. Lecture 17

CSCI-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 information

Reading: AIMA Chapter 9 (Inference in FOL)

Reading: 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 information

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

CSC242: 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 information

Inference in first-order logic

Inference in first-order logic Revised by Hankui Zhuo, March 28, 2018 Inference in first-order logic Chapter 9 Chapter 9 1 Outline Reducing first-order inference to propositional inference Unification Generalized Modus Ponens Forward

More information

First-Order Predicate Calculus

First-Order Predicate Calculus First-Order Predicate Calculus Deepak Kumar November 2017 Propositional Logic - Syntax Sentences Well-formed formulas (wffs) Any atom is a wff [Atomic Sentences] e.g. P, Q, R, R3 Complex Sentences If ω

More information

Outline. Reducing first-order inference to propositional inference Unification. Forward chaining Backward chaining

Outline. Reducing first-order inference to propositional inference Unification. Forward chaining Backward chaining Inference in First-Order Od Logic 1 Outline Reducing first-order inference to propositional inference Unification Generalized Modus Ponens Forward chaining Backward chaining Resolution 2 Universal instantiation

More information

Inf2D 11: Unification and Generalised Modus Ponens

Inf2D 11: Unification and Generalised Modus Ponens Inf2D 11: Unification and Generalised Modus Ponens School of Informatics, University of Edinburgh 08/02/18 Slide Credits: Jacques Fleuriot, Michael Rovatsos, Michael Herrmann Outline Reducing first-order

More information

Introduction to Artificial Intelligence 2 nd semester 2016/2017. Chapter 9: Inference in First-Order Logic

Introduction to Artificial Intelligence 2 nd semester 2016/2017. Chapter 9: Inference in First-Order Logic Introduction to Artificial Intelligence 2 nd semester 2016/2017 Chapter 9: Inference in First-Order Logic Mohamed B. Abubaker Palestine Technical College Deir El-Balah 1 Outlines Reducing first-order inference

More information

THE LANGUAGE OF FIRST-ORDER LOGIC (FOL) Sec2 Sec1(1-16)

THE 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 information

ARTIFICIAL INTELLIGENCE

ARTIFICIAL 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 information

Foundations of Artificial Intelligence

Foundations of Artificial Intelligence Foundations of Artificial Intelligence 9. Predicate Logic Syntax and Semantics, Normal Forms, Herbrand Expansion, Resolution Wolfram Burgard, Bernhard Nebel and Martin Riedmiller Albert-Ludwigs-Universität

More information

Logical Agents. Propositional Logic [Ch 6] Syntax, Semantics, Entailment, Derivation. Predicate Calculus Representation [Ch 7]

Logical Agents. Propositional Logic [Ch 6] Syntax, Semantics, Entailment, Derivation. Predicate Calculus Representation [Ch 7] Logical Agents Reasoning [Ch 6] Propositional Logic [Ch 6] Syntax Semantics Entailment Derivation Predicate Calculus Representation [Ch 7] Syntax Semantics Expressiveness... Situation Calculus Predicate

More information

KR: First Order Logic - Intro

KR: 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 information

Inference in First-Order Logic

Inference in First-Order Logic A brief history of reasoning 450B.C. Stoics propositional logic, inference (maybe) 322B.C. Aristotle syllogisms (inference rules), quantifi 1565 Cardano probability theory (propositional logic + uncertainty)

More information

First Order Logic (FOL) and Inference

First Order Logic (FOL) and Inference First Order Logic (FOL) and Inference CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2018 Soleymani Artificial Intelligence: A Modern Approach, 3 rd Edition, Chapter

More information

Inference in first-order logic

Inference in first-order logic Inference in first-order logic Chapter 9 Chapter 9 1 Outline Reducing first-order inference to propositional inference Unification Generalized Modus Ponens Forward and backward chaining Logic programming

More information

Rational Agents. Paolo Turrini. Introduction to Artificial Intelligence 2nd Part. Department of Computing, Imperial College London

Rational Agents. Paolo Turrini. Introduction to Artificial Intelligence 2nd Part. Department of Computing, Imperial College London Rational Agents Department of Computing, Imperial College London Introduction to Artificial Intelligence 2nd Part What you have seen You have seen procedures for computational problem-solving: searching

More information

Inference in first-order logic

Inference in first-order logic Inference in first-order logic Chapter 9 Chapter 9 1 Ch. 9 Outline Reducing first-order inference to propositional inference Unification Generalized Modus Ponens Forward and backward chaining Resolution

More information

(Part II) Reading: R&N Chapters 8, 9

(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 information

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

Logical 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 information

Logic-based agents. Logic Summary

Logic-based agents. Logic Summary Artificial Intelligence Programming Inference Chris Brooks Department of Computer Science University of San Francisco Logic-based agents The big picture: our agent needs to make decisions about what to

More information

Inference in first-order logic

Inference in first-order logic Inference in first-order logic Chapter 9 Chapter 9 1 Outline Reducing first-order inference to propositional inference Unification Generalized Modus Ponens Forward and backward chaining Logic programming

More information

CS 5100: Founda.ons of Ar.ficial Intelligence

CS 5100: Founda.ons of Ar.ficial Intelligence CS 5100: Founda.ons of Ar.ficial Intelligence Logical Inference Prof. Amy Sliva September 29, 2011 Outline First- order logic Review syntax and semantics Conjunctive normal form Inference in FOL Theoretical

More information

Introduc)on to Ar)ficial Intelligence

Introduc)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 information

Syntax. Notation Throughout, and when not otherwise said, we assume a vocabulary V = C F P.

Syntax. Notation Throughout, and when not otherwise said, we assume a vocabulary V = C F P. First-Order Logic Syntax The alphabet of a first-order language is organised into the following categories. Logical connectives:,,,,, and. Auxiliary symbols:.,,, ( and ). Variables: we assume a countable

More information

VO Grundzüge der Artificial Intelligence SS Hans Tompits Institut für Informationssysteme Arbeitsbereich Wissensbasierte Systeme

VO Grundzüge der Artificial Intelligence SS Hans Tompits Institut für Informationssysteme Arbeitsbereich Wissensbasierte Systeme VO Grundzüge der Artificial Intelligence SS 2009 Hans Tompits Institut für Informationssysteme Arbeitsbereich Wissensbasierte Systeme Knowledge Representation Folien adaptiert nach Vorlagen von Stuart

More information

CS 561: Artificial Intelligence

CS 561: Artificial Intelligence CS 561: Artificial Intelligence Instructor: TAs: Sofus A. Macskassy, macskass@usc.edu Nadeesha Ranashinghe (nadeeshr@usc.edu) William Yeoh (wyeoh@usc.edu) Harris Chiu (chiciu@usc.edu) Lectures: MW 5:00-6:20pm,

More information

Set 8: Inference in First-order logic. ICS 271 Fall 2013 Chapter 9: Russell and Norvig

Set 8: Inference in First-order logic. ICS 271 Fall 2013 Chapter 9: Russell and Norvig Set 8: Inference in First-order logic ICS 271 Fall 2013 Chapter 9: Russell and Norvig Universal instantiation (UI) Every instantiation of a universally quantified sentence is entailed by it: v α Subst({v/g},

More information

Inference in first-order logic

Inference in first-order logic Inference in first-order logic CE417: Introduction to Artificial Intelligence Sharif University of Technology Spring 2014 Soleymani Artificial Intelligence: A Modern Approach, 3 rd Edition, Chapter 9 Outline

More information

Deliberative Agents Knowledge Representation II. First Order Predicate Logic

Deliberative Agents Knowledge Representation II. First Order Predicate Logic Deliberative Agents Knowledge Representation II Vasant Honavar Bioinformatics and Computational Biology Program Center for Computational Intelligence, Learning, & Discovery honavar@cs.iastate.edu www.cs.iastate.edu/~honavar/

More information

Propositional Logic: Logical Agents (Part I)

Propositional 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 information

Artificial Intelligence. Propositional logic

Artificial 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 information

ITS336 Lecture 6 First-Order Logic

ITS336 Lecture 6 First-Order Logic ITS6 Lecture 6 First-Order Logic 6.1 Syntax for FOL Basic Elements of FOL Constant Symbols A constant is an specific object such as a person name Tom, a particular apple etc. Variable Symbols A countably

More information

Set 8: Inference in First-order logic. ICS 271 Fall 2017 Chapter 9: Russell and Norvig

Set 8: Inference in First-order logic. ICS 271 Fall 2017 Chapter 9: Russell and Norvig Set 8: Inference in First-order logic ICS 271 Fall 2017 Chapter 9: Russell and Norvig Universal instantiation (UI) Every instantiation of a universally quantified sentence is entailed by it: v α Subst({v/g},

More information

RN, Chapter 8 Predicate Calculus 1

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 information

Foundations of Artificial Intelligence

Foundations 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 information

Foundations of Artificial Intelligence

Foundations 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 information

CS 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. 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 information

Introduction to Intelligent Systems

Introduction to Intelligent Systems Logical Agents Objectives Inference and entailment Sound and complete inference algorithms Inference by model checking Inference by proof Resolution Forward and backward chaining Reference Russel/Norvig:

More information

Introduction to Intelligent Systems

Introduction to Intelligent Systems Logical Agents Objectives Inference and entailment Sound and complete inference algorithms Inference by model checking Inference by proof Resolution Forward and backward chaining Reference Russel/Norvig:

More information

Logic: First Order Logic

Logic: First Order Logic Logic: First Order Logic Raffaella Bernardi bernardi@inf.unibz.it P.zza Domenicani 3, Room 2.28 Faculty of Computer Science, Free University of Bolzano-Bozen http://www.inf.unibz.it/~bernardi/courses/logic06

More information

Logic. Stephen G. Ware CSCI 4525 / 5525

Logic. Stephen G. Ware CSCI 4525 / 5525 Logic Stephen G. Ware CSCI 4525 / 5525 Logic How can we represent knowledge about the world in a general, reusable way? How can we use existing knowledge to gain new knowledge? Problem Solving Approaches

More information

7. Propositional Logic. Wolfram Burgard and Bernhard Nebel

7. Propositional Logic. Wolfram Burgard and Bernhard Nebel Foundations of AI 7. Propositional Logic Rational Thinking, Logic, Resolution Wolfram Burgard and Bernhard Nebel Contents Agents that think rationally The wumpus world Propositional logic: syntax and semantics

More information

First-Order Logic. Peter Antal

First-Order Logic. Peter Antal First-Order Logic Peter Antal antal@mit.bme.hu 10/16/2015 1 Why FOL? Syntax and semantics of FOL Knowledge engineering in FOL Inference in FOL Reducing first-order inference to propositional inference

More information

Logic. 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 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 information

Logical Agents (I) Instructor: Tsung-Che Chiang

Logical Agents (I) Instructor: Tsung-Che Chiang Logical Agents (I) Instructor: Tsung-Che Chiang tcchiang@ieee.org Department of Computer Science and Information Engineering National Taiwan Normal University Artificial Intelligence, Spring, 2010 編譯有誤

More information

Foundations of Artificial Intelligence

Foundations 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 information

Logical Agents. Outline

Logical 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 information

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

Lecture Overview [ ] Introduction to Artificial Intelligence COMP 3501 / COMP Lecture 6. Motivation. Logical Agents Lecture Overview [7.1-7.4] COMP 3501 / COMP 4704-4 Lecture 6 Prof. JGH 318 Logical Agents Wumpus World Propositional Logic Inference Theorem Proving via model checking Motivation Existing techniques help

More information

Outline. Inference in first- order logic: just a taste. Universal instan8a8on (UI) Inference with Quan8fiers. Reduc8on to proposi8onal inference

Outline. Inference in first- order logic: just a taste. Universal instan8a8on (UI) Inference with Quan8fiers. Reduc8on to proposi8onal inference Outline Inference in first- order logic: just a taste Dr. Melanie Mar8n CS 4480 Based on slides from hap://aima.eecs.berkeley.edu/2nd- ed/slides- ppt/ Reducing first- order inference to proposi8onal inference

More information

Computational Logic. Davide Martinenghi. Spring Free University of Bozen-Bolzano. Computational Logic Davide Martinenghi (1/26)

Computational Logic. Davide Martinenghi. Spring Free University of Bozen-Bolzano. Computational Logic Davide Martinenghi (1/26) Computational Logic Davide Martinenghi Free University of Bozen-Bolzano Spring 2010 Computational Logic Davide Martinenghi (1/26) Propositional Logic - algorithms Complete calculi for deciding logical

More information

Outline. Why FOL? Syntax and semantics of FOL Using FOL. Knowledge engineering in FOL

Outline. Why FOL? Syntax and semantics of FOL Using FOL. Knowledge engineering in FOL First-Order Logic Outline Why FOL? Syntax and semantics of FOL Using FOL Wumpus world in FOL Knowledge engineering in FOL Outline Knowledge-based agents Wumpus world Logic in general - models and entailment

More information

CS 331: Artificial Intelligence Propositional Logic I. Knowledge-based Agents

CS 331: Artificial Intelligence Propositional Logic I. Knowledge-based Agents CS 331: Artificial Intelligence Propositional Logic I 1 Knowledge-based Agents Can represent knowledge And reason with this knowledge How is this different from the knowledge used by problem-specific agents?

More information

RN, 1 C 0 h. a 3 pter Situation Calculus 1

RN, 1 C 0 h. a 3 pter Situation Calculus 1 Situation Calculus 1 RN, Chapter 10.3 Logical Agents Reasoning [Ch 6] Propositional Logic [Ch 7] Predicate Calculus Representation [Ch 8] Inference [Ch 9] Implemented Systems [Ch 10] Situation Calculus

More information

Knowledge-based Agents. CS 331: Artificial Intelligence Propositional Logic I. Knowledge-based Agents. Outline. Knowledge-based Agents

Knowledge-based Agents. CS 331: Artificial Intelligence Propositional Logic I. Knowledge-based Agents. Outline. Knowledge-based Agents Knowledge-based Agents CS 331: Artificial Intelligence Propositional Logic I Can represent knowledge And reason with this knowledge How is this different from the knowledge used by problem-specific agents?

More information

Propositional Logic: Logical Agents (Part I)

Propositional 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 information

Knowledge Representation using First-Order Logic (Part III)

Knowledge 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 information

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

Inf2D 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 information

CS 771 Artificial Intelligence. First order Logic

CS 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 information

First-Order Logic and Inference

First-Order Logic and Inference First-Order Logic and Inference Berlin Chen Department of Computer Science & Information Engineering National Taiwan Normal University References: 1. S. Russell and P. Norvig. Artificial Intelligence:

More information