First Order Logic - Inference
|
|
- Madlyn Barrett
- 5 years ago
- Views:
Transcription
1 First Order Logic - Inference
2 Logistics qcompensatory Classes ooption 1 ØMarch 18 th (Saturday) and April 1 st ooption 2 (Saturday) ØApril 1 st (Saturday) and April 9 th (Sunday) qquizzes oq5 March 30th oq6 April 20 th qmid-semester Feedback for Course Correction First Order Logic CSL302 - ARTIFICIAL INTELLIGENCE 2
3 Reasoning and Inference in FOL qinstantiation qtechniques opropositionalization ounification oforward Chaining obackward Chaining oresolution FOL CSL302 - ARTIFICIAL INTELLIGENCE 3
4 Universal Instantiation quniversally quantified sentence oall students in the AI class are smart x Student AICourse, x Smart(x) qintuitively, x can be anything: o Student AICourse, Tom Smart Tom o Student AIcourse, Chair Smart Chair o Student AICourse, LeftLeg John qformally: x Subst S x/p, S Smart LeftLeg John ox is replaced with p (ground term) in S, and the quantifier is removed. FOL CSL302 - ARTIFICIAL INTELLIGENCE 4
5 Existential Instantiation qexistentially Quantified sentence othere is smart student in the AI class x Student AICourse, x Smart x qintuitively, x must name something. But what? ocan we conclude:student AICourse, Tom Smart Tom??? ono! The sentence might not be true for Tom! qinstead, Use a Skolem constant and draw the conclusion, Formally x S Subst x/k, S ok is called a Skolem constant and is a completely new symbol you created. FOL CSL302 - ARTIFICIAL INTELLIGENCE 5
6 Inference I: Propositionalization qsuppose KB contains just the following: x King x Greedy x Evil(x) King(John) Greedy(Richard) Brother(Richard, John) qinstantiating will result in King John Greedy John Evil John King Richard Greedy Richard Evil Richard King John Greedy Richard Brother(Richard, John) q The new KB is now propositionalized. What are the proposition symbols? FOL CSL302 - ARTIFICIAL INTELLIGENCE 6
7 Inference I: Propositionalization qsuppose KB contains just the following: x King x Greedy x Evil(x) King(John) Greedy(Richard) Brother(Richard, John) qinstantiating will result in King John Greedy John Evil John King Richard Greedy Richard Evil Richard King John Greedy Richard Brother(Richard, John) q The new KB is now propositionalized. What are the proposition symbols? King John, Greedy John, King Richard, FOL CSL302 - ARTIFICIAL INTELLIGENCE 7
8 Propositionalization (2) qevery FOL KB and query can be propositionalized in such a way that entailment is preserved. opropositionalize the KB and query oapply resolution! qproblems can occur with Function Symbols. oe.g., Father Father John qherbrand Theorem: If a sentence α is entailed by an FOL KB, it is entailed by a finite subset of the propositional KB. qidea: For n = 0 to do ocreate a propositional KB by instantiating with depth nterms. osee if α is entailed by this KB. Works fine if α is entailed, but loops otherwise. Similar to halting problem in Turning machines - Semidecidable. FOL CSL302 - ARTIFICIAL INTELLIGENCE 8
9 Problems with Propositionalization qcan generate lot of irrelevant sentences qe.g., suppose we have x King x Greedy x Evil x King John y Greedy y Brother(Richard, John) qit seems obvious that Evil John, but propositionalization produces lots of facts such as Greedy Richard that are irrelevant qwith p k-ary predicates and n constants there are p R n S instantiations qwith function symbols, it gets much worse!! FOL CSL302 - ARTIFICIAL INTELLIGENCE 9
10 Propositionalization (3) qwhat if we want to use modus ponens from propositional logic? α β, α β γ γ qin FOL? x Student AICourse, x Smart(x) Student AICourse, Ram???? qmust unify x with Ram: oneed to substitute x/ram in Student AICourse, x Smart(x)to infer Smart(Ram) FOL CSL302 - ARTIFICIAL INTELLIGENCE 10
11 Unification qgoing back, suppose we have x King x Greedy x Evil x King John Greedy John Brother(Richard, John) qwe can get the inference immediately if we can find a substitution θ such that oking(x) and Greedy(x) match with King(John) and Greedy John oθ = x/john works FOL CSL302 - ARTIFICIAL INTELLIGENCE 11
12 Unification qgoing back, suppose we have x King x Greedy x Evil x King John y Greedy y Brother(Richard, John) qwe can still find a substitution θ such that oking(x) and Greedy(x) match King(John) and Greedy y oθ = x/john, y/john works qunify α, β = θ if αθ = βθ FOL CSL302 - ARTIFICIAL INTELLIGENCE 12
13 Unification - Most General Unifier qmatch up expressions by finding variable values that make the expressions identical Unify Student AICourse, x and Student(AICourse, Ram) using {x/ram} qunify(a, b) returns the most general unifier. othat places fewest restrictions on values of variables Unify Knows Ram, x, Knows y, z returns {y Ram, x/z} or y Ram, x Ram, z Ram MGU qunification vs Substitution? FOL CSL302 - ARTIFICIAL INTELLIGENCE 13
14 Unification Examples qunify Knows John, x, Knows John, Jane - x/jane FOL CSL302 - ARTIFICIAL INTELLIGENCE 14
15 Unification Examples (2) qunify Knows John, x, Knows John, Jane qunify Brother x, John, Brother Richard, y - x/richard, y/john FOL CSL302 - ARTIFICIAL INTELLIGENCE 15
16 Unification Examples (3) qunify Knows John, x, Knows John, Jane qunify Brother x, John, Brother Richard, y qunify Brother x, Richard, Brother(John, x) FOL CSL302 - ARTIFICIAL INTELLIGENCE 16
17 Unification Examples (4) qunify Knows John, x, Knows John, Jane qunify Brother x, John, Brother Richard, y qunify Brother x, Richard, Brother(John, x) otwo sentences happen to use the same variable ostandardizing apart - renaming the variables in one of the sentences to avoid name clashes. Unify Brother x, Richard, Brother(John, y) x/john, y/richard FOL CSL302 - ARTIFICIAL INTELLIGENCE 17
18 Unification Examples (5) qunify Knows John, x, Knows John, Jane qunify Brother x, John, Brother Richard, y qunify Brother x, Richard, Brother(John, x) qunify f g x, dog, y, f g cat, y, dog x/cat, y/dog FOL CSL302 - ARTIFICIAL INTELLIGENCE 18
19 Unification Examples (6) qunify Knows John, x, Knows John, Jane qunify Brother x, John, Brother Richard, y qunify Brother x, Richard, Brother(John, x) qunify f g x, dog, y, f g cat, y, dog qunify f g x, f(x) FOL CSL302 - ARTIFICIAL INTELLIGENCE 19
20 Unification Examples (7) qunify Knows John, x, Knows John, Jane qunify Brother x, John, Brother Richard, y qunify Brother x, Richard, Brother(John, x) qunify f g x, dog, y, f g cat, y, dog qunify f g x, f(x) oa variable may not contain itself in a substitution ooccur-check FOL CSL302 - ARTIFICIAL INTELLIGENCE 20
21 Unification Examples (8) qunify Knows John, x, Knows John, Jane qunify Brother x, John, Brother Richard, y qunify Brother x, Richard, Brother(John, x) qunify f g x, dog, y, f g cat, y, dog qunify f g x, f(x) qunify f g cat, y, y, f x, dog x/g(cat, y), y/dog FOL CSL302 - ARTIFICIAL INTELLIGENCE 21
22 Unification Examples (9) qunify Knows John, x, Knows John, Jane qunify Brother x, John, Brother Richard, y qunify Brother x, Richard, Brother(John, x) qunify f g x, dog, y, f g cat, y, dog qunify f g x, f(x) qunify f g cat, y, y, f x, dog qunify f g y, f x x/g(y) FOL CSL302 - ARTIFICIAL INTELLIGENCE 22
23 Unification Algorithm function UNIFY(x, y, θ) returns asubstitutiontomakex and y identical inputs: x,avariable,constant,list,orcompoundexpression y, avariable,constant,list,orcompoundexpression θ, thesubstitutionbuiltupsofar(optional,defaultstoempty) if θ = failure then return failure else if x = y then return θ else if VARIABLE?(x ) then return UNIFY-VAR(x, y, θ) else if VARIABLE?(y) then return UNIFY-VAR(y, x, θ) else if COMPOUND?(x ) and COMPOUND?(y) then return UNIFY(x.ARGS, y.args,unify(x.op, y.op, θ)) else if LIST?(x ) and LIST?(y) then return UNIFY(x.REST, y.rest,unify(x.first, y.first, θ)) else return failure function UNIFY-VAR(var, x, θ) returns asubstitution if {var/val} θ then return UNIFY(val, x, θ) else if {x/val} θ then return UNIFY(var, val, θ) else if OCCUR-CHECK?(var, x ) then return failure else return add {var/x } to θ FOL CSL302 - ARTIFICIAL INTELLIGENCE 23
24 Generalized Modus Ponens (GMP) Student AIcourse, Ram x Student AICourse, x Smart(x)???? qunify x with Ram - x/ram in Student AICourse, x Smart(x) qapply MP to infer Smart(Ram) qgeneralized Modus Ponens (GMP) o Lifted version of MP (lifts MP from ground Pl to FOL) p a b, p c b,, p d b, (p a p c p d q) Subst θ, q qwhere p g b θ = p g θ for all i GMP used with KB of clauses, all variables assumed universally quantified. Prove GMP is sound! FOL CSL302 - ARTIFICIAL INTELLIGENCE 24
25 Inference II: Forward Chaining The algorithm: Start with the KB Add any fact you can generate with GMP (unify + GMP) Repeat until goal is reached or generation halts. FOL CSL302 - ARTIFICIAL INTELLIGENCE 25
26 Forward Chaining Example qit is a crime for an Indian to sell weapons to hostile nations. The country Nono, an enemy of India, has some missiles. All of its missiles were sold to it by Traitor, who is an Indian. qis Traitor a criminal? FOL CSL302 - ARTIFICIAL INTELLIGENCE 26
27 Forward Chaining Example qit is a crime for an Indian to sell weapons to hostile nations. The country Nono, an enemy of India, has some missiles. All of its missiles were sold to it by Traitor, who is an Indian. qis Traitor a criminal? Criminal Traitor? qkb of definite clauses (exactly one positive literal) o Indian x Weapon y Sells x, y, z Hostile z Criminal(x) o Enemy(Nono, India) o Owns Nono, M a M a is a Skolem constant o Missile M a o Missile x Owns Nono, x Sells(Traitor, x, Nono) o Indian Traitor o Missle x Weapon x o Enemy x, India Hostile(x) FOL CSL302 - ARTIFICIAL INTELLIGENCE 27
28 Forward Chaining Example Missile x Owns Nono, x Sells Traitor, x, Nono Missle x Weapon x Enemy x, India Hostile(x) Indian Traitor Missile M a Owns Nono, M a Enemy(Nono, India) Initial Facts in the KB FOL CSL302 - ARTIFICIAL INTELLIGENCE 28
29 Forward Chaining Example Missile x Owns Nono, x Sells Traitor, x, Nono Missle x Weapon x Enemy x, India Hostile(x) Weapon M a Sells Traitor, M a, Nono Hostile Nono 3 x/m a 2 1 x/nono x/m a Indian Traitor Missile M a Owns Nono, M a Enemy(Nono, India) Initial Facts in the KB FOL CSL302 - ARTIFICIAL INTELLIGENCE 29
30 Forward Chaining Example Indian x Weapon y Sells x, y, z Hostile z Criminal(x) Therefore, Traitor is a criminal Criminal Traitor x Traitor, y M a, z Nono Weapon M a Sells Traitor, M a, Nono Hostile Nono 3 x/m a 2 1 x/nono x/m a Indian Traitor Missile M a Owns Nono, M a Enemy(Nono, India) Initial Facts in the KB FOL CSL302 - ARTIFICIAL INTELLIGENCE 30
31 Inference II: Forward Chaining The algorithm: Start with the KB Add any fact you can generate with GMP (unify + GMP) Repeat until goal is reached or generation halts. FOL CSL302 - ARTIFICIAL INTELLIGENCE 31
32 Inference II: Forward Chaining qsound oyes, Because GMP is sound qcomplete oyes, if KB contains only definite clauses qefficiency ounification via exhaustive pattern matching orule rechecking for premise satisfaction at every iteration oirrelevant fact generation Check pg. 331 in textbook Check section for possible strategies FOL CSL302 - ARTIFICIAL INTELLIGENCE 32
33 Inference III: Backward Chaining Start with KB and goal Find all rules whose results unify with goal: Add the premises of these rules to the goal list Remove the corresponding result from the goal list Stop when goal list is empty(success) or progress halts (failure) FOL CSL302 - ARTIFICIAL INTELLIGENCE 33
34 Backward Chaining Example Goal Criminal Traitor FOL CSL302 - ARTIFICIAL INTELLIGENCE 34
35 Backward Chaining Example qindian x Weapon y Sells x, y, z Hostile z Criminal(x) Criminal Traitor x Traitor FOL CSL302 - ARTIFICIAL INTELLIGENCE 35
36 Backward Chaining Example qdepth-first Traversal Criminal Traitor x Traitor Indian x Weapon y Sells x, y, z Hostile z FOL CSL302 - ARTIFICIAL INTELLIGENCE 36
37 Backward Chaining Example qdepth-first Traversal Criminal Traitor x Traitor Indian Traitor Weapon y Sells x, y, z Hostile z FOL CSL302 - ARTIFICIAL INTELLIGENCE 37
38 Backward Chaining Example qdepth-first Traversal Criminal Traitor x Traitor Indian Traitor Weapon y Sells x, y, z Hostile z New Subgoal FOL CSL302 - ARTIFICIAL INTELLIGENCE 38
39 Backward Chaining Example qdepth-first Traversal qkb: Missile y Weapon y ; Missile M a Criminal Traitor x Traitor, y M a Indian Traitor Weapon y Sells x, y, z Hostile z Missile y y M a FOL CSL302 - ARTIFICIAL INTELLIGENCE 39
40 Backward Chaining Example qdepth-first Traversal Criminal Traitor x Traitor, y M a Indian Traitor Weapon y Sells x, y, z Hostile z New Subgoal Missile y y M a z? FOL CSL302 - ARTIFICIAL INTELLIGENCE 40
41 Backward Chaining Example qdepth-first Traversal qmissile y Owns Nono, y Sells Traitor, y, Nono qmissile M a qowns Nono, M a Criminal Traitor x Traitor, y M a, z Nono Indian Traitor Weapon y Sells x, y, z Hostile z z Nono Missile y y M a Missile M a Owns Nono, M a FOL CSL302 - ARTIFICIAL INTELLIGENCE 41
42 Backward Chaining Example qdepth-first Traversal Criminal Traitor x Traitor, y M a, z Nono Indian Traitor Weapon y Sells x, y, z Hostile z z Nono New Subgoal Missile y y M a Missile M a Owns Nono, M a FOL CSL302 - ARTIFICIAL INTELLIGENCE 42
43 Backward Chaining Example qdepth-first Traversal qkb: Enemy z, India Hostile z ; qenemy(nono, India) Criminal Traitor x Traitor, y M a, z Nono Indian Traitor Weapon y Sells x, y, z Hostile z z Nono Missile y Missile M a Owns Nono, M a Enemy(Nono, India) y M a FOL CSL302 - ARTIFICIAL INTELLIGENCE 43
44 Backward Chaining Example qdepth-first Traversal Criminal Traitor x Traitor, y M a, z Nono Indian Traitor Weapon y Sells x, y, z Hostile z z Nono Missile y Missile M a Owns Nono, M a Enemy(Nono, India) y M a FOL CSL302 - ARTIFICIAL INTELLIGENCE 44
45 Inference III: Backward Chaining qdepth-first recursive search: space is linear in size of proof. qincomplete due to infinite loops(e.g., repeated states) ofix by checking current goal against all goals on stack ocannot fix infinite paths though qwidely used for Logic Programming oprolog (Check Section for more information). FOL CSL302 - ARTIFICIAL INTELLIGENCE 45
46 Inference IV: Resolution qrecall from propositional logic p q, p r s q q r s qliteral in one clause qits negation in the other clause qresult is the disjunction of the remaining literals. FOL CSL302 - ARTIFICIAL INTELLIGENCE 46
47 Inference IV: Resolution qin general p x q A, p B r x s y q q A r B s y l a l S, m a m d (l a l gra l gsa l S m a m tra m tsa m d )θ qwhere Unify l g, m t = θ qthe two clauses are assumed to be standardized apart so that they share no variables. qapply resolution steps to CNF(KB α). Substitute MGU x/b in all literals FOL CSL302 - ARTIFICIAL INTELLIGENCE 47
48 FOL: Conversion to CNF qeveryone who loves all animals is loved by someone x y Animal y Loves x, y y Loves(y, x) qsteps to convert to CNF oeliminate biconditionals and implications omove inwards x, p x p, x p x p ostandardize the variables: each quantifier should use a different variable oskolemize: A more general form of existential instantiation ØEach existential variable is replaced by a Skolem function of the enclosing universally quantified variables odrop universal quantifiers odistribute over FOL CSL302 - ARTIFICIAL INTELLIGENCE 48
49 Skolemize qremove existential quantifiers by elimination o xp x into P A, where A is a new constant qhowever, this cannot be applied to general sentences. For example o x y Animal y Loves x, y z Loves z, x o x Animal A Loves x, A Loves B, x qintroduce Skolem Functions F and G o x Animal F x Loves x, F x Loves G x, x Logical Agents CSL452 - ARTIFICIAL INTELLIGENCE 49
50 FOL: Conversion to CNF qit is a crime for an Indian to sell weapons to hostile nations. The country Nono, an enemy of India, has some missiles. All of its missiles were sold to it by Traitor, who is an Indian. o Indian x Weapon y Sells x, y, z Hostile z Criminal(x) o Enemy(Nono, India) o Owns Nono, M a o Missile M a o Missile x Owns Nono, x Sells(Traitor, x, Nono) o Indian Traitor o Missle x Weapon x o Enemy x, India Hostile(x) qresolution uses proof by contradiction o Show KB α by showing KB α is unsatisfiable. Variables are not standardized here. qto prove, Traitor is a criminal. Add Criminal Traitor to KB and derive empty clause. FOL CSL302 - ARTIFICIAL INTELLIGENCE 50
51 Indian x Weapon y Sells x, y, z Hostile z Criminal(x) Criminal Traitor Indian Traitor Weapon y Sells Traitor, y, z Hostile z Weapon y Sells Traitor, y, z Hostile z Missile y Sells Traitor, y, z Hostile z Sells Traitor, M a, z Hostile z Missile M a Owns Nono, M a Hostile(Nono) Indian Traitor Missle x Weapon x Missile M a Missile x Owns Nono, x Sells(Traitor, x, Nono) Missile M a Hostile(Nono) Owns Nono, M a Missile M a Hostile(Nono) Enemy Nono, India Enemy x, India Hostile(x) Enemy(Nono, India) FOL CSL302 - ARTIFICIAL INTELLIGENCE 51
52 FOL Resolution Example (2) qeveryone who loves all animals is loved by someone x y Animal y Loves x, y y Loves(y, x) qanyone who kills an animal is loved by no one x z Animal z Kills x, z qjack loves all animals qeither Jack or Curiosity killed the cat, who is named Tuna Kills Jack, Tuna Kills Curiosity, Tuna qdid Curiosity kill the cat? y Loves(y, x) x Animal x Loves Jack, x Kills Curiosity, Tuna? x Cat x Animal x Cat(Tuna) FOL CSL302 - ARTIFICIAL INTELLIGENCE 52
53 x y Animal y Loves x, y x y Animal y Loves x, y y Loves(y, x) y Loves(y, x) x y Animal y Loves x, y x y Animal y Loves x, y x y Animal y Loves x, y y Loves(y, x) y Loves(y, x) z Loves(z, x) x Animal F x Loves x, F x Loves G x, x Animal F x Loves x, F x Loves G x, x Animal F x Loves G x, x Loves x, F x Loves G x, x x z Animal z Kills x, z y Loves(y, x) x z Animal z Kills x, z y Loves(y, x) x z Animal z Kills x, z y Loves(y, x) x z Animal z Kills x, z y Loves(y, x) Animal z Kills x, z Loves(y, x) x Animal x Loves Jack, x x Animal x Loves Jack, x Animal x Loves Jack, x x Cat x Animal x x Cat x Animal x Cat x Animal x FOL CSL302 - ARTIFICIAL INTELLIGENCE 53
54 Cat(Tuna) Cat x Animal x Kills Jack, Tuna Kills Curiosity, Tuna Animal Tuna Kills Curiosity, Tuna Animal z Kills x, z Loves(y, x) Kills Jack, Tuna Kills x, Tuna Loves(y, x) Loves x, F x Loves G x, x Animal x Loves Jack, x Animal F Jack Loves G(Jack), Jack Animal F x Loves G x, x Loves(y, Jack) Loves G(Jack), Jack FOL CSL302 - ARTIFICIAL INTELLIGENCE 54
Propositional Logic. üdeclarative - pieces of syntax correspond to facts üallows partial/disjunctive/negated information
First Order Logic Propositional Logic üdeclarative - pieces of syntax correspond to facts üallows partial/disjunctive/negated information ücompositional (B "" P "% is derived from B "" and P "% ) ücontext
More informationInference 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 informationCS 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 informationIntroduction 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 informationOutline. 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 informationInference 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 Resolution Chapter
More informationFirst 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 informationInference 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 informationArtificial Intelligence Chapter 9: Inference in First-Order Logic
Artificial Intelligence Chapter 9: Inference in First-Order Logic Andreas Zell After the Textbook: Artificial Intelligence, A Modern Approach by Stuart Russell and Peter Norvig (3 rd Edition) 9 Inference
More informationInf2D 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 informationInference 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 informationCSC242: 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 informationInference 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 informationInference 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 informationCS 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 informationInference 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 informationInference in First-Order Logic
Inference in First-Order Logic Dr. Richard J. Povinelli rev 1.0, 10/7/2001 Page 1 Objectives You should! be able to analyze and employ logical inference in first-order logic. rev 1.0, 10/7/2001 Page 2
More informationSet 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 informationInference 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 informationSet 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 informationInference 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 informationArtificial 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 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 informationEE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS
EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS Lecture 13, 5/18/2005 University of Washington, Department of Electrical Engineering Spring 2005 Instructor: Professor Jeff A. Bilmes Inference in first-order
More informationOutline. 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 informationInference in first-order logic
CS 2710 Foundations of AI Lecture 15 Inference in first-order logic Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square Logical inference in FOL Logical inference problem: Given a knowledge base KB
More informationInference 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 informationLecture 10: Even more on predicate logic" Prerequisites for lifted inference: Skolemization and Unification" Inference in predicate logic"
CS440/ECE448: Intro to Artificial Intelligence Lecture 10: Even more on predicate logic Prof. Julia Hockenmaier juliahmr@illinois.edu http://cs.illinois.edu/fa11/cs440 Inference in predicate logic All
More informationInference in First Order Logic
Inference in First Order Logic Course: CS40002 Instructor: Dr. Pallab Dasgupta Department of Computer Science & Engineering Indian Institute of Technology Kharagpur Inference rules Universal elimination:
More informationFirst-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 informationKnowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system):
Logic Knowledge-based agents Inference engine Knowledge base Domain-independent algorithms Domain-specific content Knowledge base (KB) = set of sentences in a formal language Declarative approach to building
More informationCS 520: Introduction to Artificial Intelligence. Review
CS 520: Introduction to Artificial Intelligence Prof. Louis Steinberg : First-order Logic Proof Algorithms 1 Review Representing a Domain in FOL A domain is a portion of the world about which we wish to
More informationFoundations 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 informationCS 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 informationObjectives. Logical Reasoning Systems. Proofs. Outline. Example proof. Example proof. You should
Copyright Richard J. Povinelli rev 1.0, 10/1//2001 Page 1 Logical Reasoning Systems Objectives You should be able to analyze and employ logical inference in first-order logic. Dr. Richard J. Povinelli
More informationCS 380: ARTIFICIAL INTELLIGENCE
CS 380: RTIFICIL INTELLIGENCE PREDICTE LOGICS 11/8/2013 Santiago Ontañón santi@cs.drexel.edu https://www.cs.drexel.edu/~santi/teaching/2013/cs380/intro.html Summary of last day: Logical gents: The can
More informationFirst-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 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 informationInference in first-order logic
CS 57 Introduction to AI Lecture 5 Inference in first-order logic Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square Logical inference in FOL Logical inference problem: Given a knowledge base KB (a
More informationCS 380: ARTIFICIAL INTELLIGENCE PREDICATE LOGICS. Santiago Ontañón
CS 380: RTIFICIL INTELLIGENCE PREDICTE LOGICS Santiago Ontañón so367@drexeledu Summary of last day: Logical gents: The can reason from the knowledge they have They can make deductions from their perceptions,
More informationLogical 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 informationDate 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 informationLogic-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 informationInf2D 13: Resolution-Based Inference
School of Informatics, University of Edinburgh 13/02/18 Slide Credits: Jacques Fleuriot, Michael Rovatsos, Michael Herrmann Last lecture: Forward and backward chaining Backward chaining: If Goal is known
More informationGuest Speaker. CS 416 Artificial Intelligence. First-order logic. Diagnostic Rules. Causal Rules. Causal Rules. Page 1
Page 1 Guest Speaker CS 416 Artificial Intelligence Lecture 13 First-Order Logic Chapter 8 Topics in Optimal Control, Minimax Control, and Game Theory March 28 th, 2 p.m. OLS 005 Onesimo Hernandez-Lerma
More informationArtificial Intelligence
Jörg Hoffmann Artificial Intelligence Chapter 12: Predicate Logic Reasoning, Part II 1/56 Artificial Intelligence 12. Predicate Logic Reasoning, Part II: Reasoning And Now: How to Actually Think in Terms
More informationArtificial Intelligence Chapter 7: Logical Agents
Artificial Intelligence Chapter 7: Logical Agents Michael Scherger Department of Computer Science Kent State University February 20, 2006 AI: Chapter 7: Logical Agents 1 Contents Knowledge Based Agents
More information[1] Describe with examples, the three inference rules involving quantifiers
[1] Describe with examples, the three inference rules involving quantifiers The three new inference rules are as follows: 1- Universal Instantiation : For any sentence a, variable v, and ground term g
More informationProof Methods for Propositional Logic
Proof Methods for Propositional Logic Logical equivalence Two sentences are logically equivalent iff they are true in the same models: α ß iff α β and β α Russell and Norvig Chapter 7 CS440 Fall 2015 1
More informationDeliberative 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 informationArtificial Intelligence
Artificial Intelligence Propositional Logic Marc Toussaint University of Stuttgart Winter 2016/17 (slides based on Stuart Russell s AI course) Motivation: Most students will have learnt about propositional
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 Inference. Artificial Intelligence. Topic 12. Reading: Russell and Norvig, Chapter 7, Section 5
rtificial Intelligence Topic 12 Logical Inference Reading: Russell and Norvig, Chapter 7, Section 5 c Cara MacNish. Includes material c S. Russell & P. Norvig 1995,2003 with permission. CITS4211 Logical
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 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 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
Jörg Hoffmann Artificial Intelligence Chapter 12: Predicate Logic Reasoning, Part II 1/56 Artificial Intelligence 12. Predicate Logic Reasoning, Part II: Reasoning And Now: How to Actually Think in Terms
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 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 informationPropositional Logic. Logic. Propositional Logic Syntax. Propositional Logic
Propositional Logic Reading: Chapter 7.1, 7.3 7.5 [ased on slides from Jerry Zhu, Louis Oliphant and ndrew Moore] Logic If the rules of the world are presented formally, then a decision maker can use logical
More informationArtificial Intelligence
Artificial Intelligence Propositional Logic Marc Toussaint University of Stuttgart Winter 2015/16 (slides based on Stuart Russell s AI course) Outline Knowledge-based agents Wumpus world Logic in general
More informationInference Methods In Propositional Logic
Lecture Notes, Artificial Intelligence ((ENCS434)) University of Birzeit 1 st Semester, 2011 Artificial Intelligence (ENCS434) Inference Methods In Propositional Logic Dr. Mustafa Jarrar University of
More informationThe only sets are the empty set and those made by adjoining something to a set: s: Set(s) s = Ø x, s 2 : Set(s 2 ) s = { x s 2 }.
171 Axioms for sets To define sets we use: Constant symbol Ø, which refers to the empty set Unary predicate Set, which is true of sets Binary predicates x s and s 1 s 2 Binary function are s 1 Us 2, s
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 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 informationCMSC 671 Fall FOL / Inference in FOL. Thu 10/7/10. Prof. Laura Zavala, ITE 373,
CMSC 671 Fall 2010 Thu 10/7/10 FOL / Inference in FOL Prof. Laura Zavala, laura.zavala@umbc.edu, ITE 373, 410-455-8775 Some material adopted from Hwee Tou Ng's course slides Knowledge based agents and
More informationInference Methods In Propositional Logic
Lecture Notes, Advanced Artificial Intelligence (SCOM7341) Sina Institute, University of Birzeit 2 nd Semester, 2012 Advanced Artificial Intelligence (SCOM7341) Inference Methods In Propositional Logic
More informationKnowledge based Agents
Knowledge based Agents Shobhanjana Kalita Dept. of Computer Science & Engineering Tezpur University Slides prepared from Artificial Intelligence A Modern approach by Russell & Norvig Knowledge Based Agents
More informationAI Programming CS S-10 First Order Logic
AI Programming CS662-2013S-10 First Order Logic David Galles Department of Computer Science University of San Francisco 10-0: Representation Propositional Logic has several nice features Lets us easily
More informationLogical Inference 2 rule based reasoning
Logical Inference 2 rule based reasoning Chapter 9 Some material adopted from notes by Andreas Geyer-Schulz,, Chuck Dyer, and Mary Getoor Automated inference for FOL Automated inference for FOL is harder
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 informationRevised by Hankui Zhuo, March 21, Logical agents. Chapter 7. Chapter 7 1
Revised by Hankui Zhuo, March, 08 Logical agents Chapter 7 Chapter 7 Outline Wumpus world Logic in general models and entailment Propositional (oolean) logic Equivalence, validity, satisfiability Inference
More informationCSC242: Intro to AI. Lecture 11. Tuesday, February 26, 13
CSC242: Intro to AI Lecture 11 Propositional Inference Propositional Inference Factored Representation Splits a state into variables (factors, attributes, features, things you know ) that can have values
More informationLogical agents. Chapter 7. Chapter 7 1
Logical agents Chapter 7 Chapter 7 1 Outline Knowledge-based agents Logic in general models and entailment Propositional (oolean) logic Equivalence, validity, satisfiability Inference rules and theorem
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 informationStrong AI vs. Weak AI Automated Reasoning
Strong AI vs. Weak AI Automated Reasoning George F Luger ARTIFICIAL INTELLIGENCE 6th edition Structures and Strategies for Complex Problem Solving Artificial intelligence can be classified into two categories:
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 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 informationPropositional Reasoning
Propositional Reasoning CS 440 / ECE 448 Introduction to Artificial Intelligence Instructor: Eyal Amir Grad TAs: Wen Pu, Yonatan Bisk Undergrad TAs: Sam Johnson, Nikhil Johri Spring 2010 Intro to AI (CS
More informationOutline. Logical Agents. Logical Reasoning. Knowledge Representation. Logical reasoning Propositional Logic Wumpus World Inference
Outline Logical Agents ECE57 Applied Artificial Intelligence Spring 007 Lecture #6 Logical reasoning Propositional Logic Wumpus World Inference Russell & Norvig, chapter 7 ECE57 Applied Artificial Intelligence
More information1 FUNDAMENTALS OF LOGIC NO.10 HERBRAND THEOREM Tatsuya Hagino hagino@sfc.keio.ac.jp lecture URL https://vu5.sfc.keio.ac.jp/slide/ 2 So Far Propositional Logic Logical connectives (,,, ) Truth table Tautology
More informationThe Wumpus Game. Stench Gold. Start. Cao Hoang Tru CSE Faculty - HCMUT
The Wumpus Game Stench Stench Gold Stench Start 1 The Wumpus Game Stench in the square containing the wumpus and in the directly adjacent squares in the squares directly adjacent to a pit Glitter in the
More informationCogSysI Lecture 8: Automated Theorem Proving
CogSysI Lecture 8: Automated Theorem Proving Intelligent Agents WS 2004/2005 Part II: Inference and Learning Automated Theorem Proving CogSysI Lecture 8: Automated Theorem Proving p. 200 Remember......
More informationConvert to clause form:
Convert to clause form: Convert the following statement to clause form: x[b(x) ( y [ Q(x,y) P(y) ] y [ Q(x,y) Q(y,x) ] y [ B(y) E(x,y)] ) ] 1- Eliminate the implication ( ) E1 E2 = E1 E2 x[ B(x) ( y [
More informationLogical agents. Chapter 7. Chapter 7 1
Logical agents Chapter 7 Chapter 7 Outline Knowledge-based agents Wumpus world Logic in general models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules
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 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 informationLogic. Knowledge Representation & Reasoning Mechanisms. Logic. Propositional Logic Predicate Logic (predicate Calculus) Automated Reasoning
Logic Knowledge Representation & Reasoning Mechanisms Logic Logic as KR Propositional Logic Predicate Logic (predicate Calculus) Automated Reasoning Logical inferences Resolution and Theorem-proving Logic
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 informationTDT4136 Logic and Reasoning Systems
TDT436 Logic and Reasoning Systems Chapter 7 - Logic gents Lester Solbakken solbakke@idi.ntnu.no Norwegian University of Science and Technology 06.09.0 Lester Solbakken TDT436 Logic and Reasoning Systems
More informationRational 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 informationOutline First-order logic. First-order Logic. Introduction. Recall: 4-Queens problem. First-order Logic. First-order Logic Syntax.
First-order Logic CS 486/686 Sept 25, 2008 University of Waterloo Outline First-order logic Syntax and semantics Inference Propositionalization with ground inference Lifted resolution 1 2 Introduction
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 information7. Logical Agents. COMP9414/ 9814/ 3411: Artificial Intelligence. Outline. Knowledge base. Models and Planning. Russell & Norvig, Chapter 7.
COMP944/984/34 6s Logic COMP944/ 984/ 34: rtificial Intelligence 7. Logical gents Outline Knowledge-based agents Wumpus world Russell & Norvig, Chapter 7. Logic in general models and entailment Propositional
More informationLogic and Inferences
Artificial Intelligence Logic and Inferences Readings: Chapter 7 of Russell & Norvig. Artificial Intelligence p.1/34 Components of Propositional Logic Logic constants: True (1), and False (0) Propositional
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 informationOutline. Logical Agents. Logical Reasoning. Knowledge Representation. Logical reasoning Propositional Logic Wumpus World Inference
Outline Logical Agents ECE57 Applied Artificial Intelligence Spring 008 Lecture #6 Logical reasoning Propositional Logic Wumpus World Inference Russell & Norvig, chapter 7 ECE57 Applied Artificial Intelligence
More informationLogic and Reasoning. Foundations of Computing Science. Pallab Dasgupta Professor, Dept. of Computer Sc & Engg INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR
Logic and Reasoning Foundations of Computing Science Pallab Dasgupta Professor, Dept. of Computer Sc & Engg 2 Knowledge and Reasoning Representation, Reasoning and Logic Propositional Logic First-Order
More informationLogic. 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 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 information