CSC242: Intro to AI. Lecture 13. Thursday, February 28, 13
|
|
- Deirdre Merritt
- 6 years ago
- Views:
Transcription
1 CSC242: Intro to AI Lecture 13
2
3 Recap
4 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
5 Elements of First- Objects (in the world) Relations among (tuples of) objects Mappings from (tuples of) objects to objects (i.e., objects identified in terms of other objects) Order Logic Connectives Variables and Quantifiers
6 Syntax of First-Order Logic Constants Functional expressions } Terms Atomic sentences Connectives Variables and Quantifiers
7 Atomic Sentences Predicate symbol + list of terms (arguments) Brother(R, J) Married(Father(Richard), Mother(John))
8 Syntax of First-Order Logic Constants Functional expressions } Terms Atomic sentences Connectives Variables and Quantifiers
9 Complex Sentences Connectives combine sentences Brother(LeftLeg(R), J) Brother(R, J) Brother(J, R) King(R) King(J)
10 Syntax of First-Order Logic Constants Functional expressions } Terms Atomic sentences Connectives Variables and Quantifiers
11 Quantifiers If α is a sentence, then so are x α x α
12 Syntax of First-Order Logic Constants Functional expressions } Terms Atomic sentences Connectives Variables and Quantifiers
13 Semantics of First- Order Logic
14 Possible Worlds for PL Assignment of truth values to propositional variables
15 Semantics of PL B1,1 P1,2 P2,1 P1,2 P2,1 B1,1 (P1,2 P2,1) true true true true true false true true true false true false true true true false false true true false true true false true true false true false true false true false false false false false false false false true
16 Possible Worlds for FOL Domain: Non-empty set of objects in the world Relations: Sets of tuples of objects Functions: Total mappings from tuples of objects to objects
17 Interpretation Mapping from elements a sentence to elements of a possible world Specifies exactly which objects, relations, and functions are referred to by the constant, predicate, and function symbols
18 Interpretation Domain of objects D Mapping from constant symbols to objects: I(c) 2 D Mapping from predicate symbols to relations: I(p) D n for p of arity n Mapping from function symbols to (total) functions: I(f) :D n! D for f of arity n
19 Semantics of Unquantified Sentences P (hx 1,...,x n i) is true in interpetation I if hi(x 1 ),...,I(x n )i2i(p ) Connectives: use truth tables (as for PL)
20 Semantics of Quantified Sentences
21 Extended Interpretation Adds mapping from variables to objects: I(v) 2 D
22 Semantics of Quantified Sentences 8x is true in interpetation I if I 0 ( ) is true in every extended interpetation I 9x is true in interpetation I if I 0 ( ) is true in some extended interpetation I
23 Semantics of FOL Atomic sentences: Use interpretation Complex sentences: Use semantics of connectives 8x : True in every extended interpretation 9x : True in at least one extended interp.
24 Entailment If α entails β: = Whenever α is true, so is β Every model of α is a model of β Models(α) Models(β) α is at least as strong an assertion as β Rules out no fewer possible worlds
25 crown person brother brother on head person king R $ J left leg left leg 137,506,194,466 models with 6 objects!
26 Computing Entailment Number of models (probably) unbounded And anyway hard to evaluate truth in a model Can t do model checking Look for inference rules, do theorem proving
27 First-Order Inference
28 x King(x) Evil(x) King(J)
29 x King(x) Evil(x) King(J) Modus Ponens Evil(J)
30 Universal Instantiation 8xP(x) P (a),p(b),p(c),p(f(a)),p(f(b)),p(g(a)),...
31 Propositionalization x King(x) Evil(x) King(R) Evil(R) King(J) Evil(J) King(Father(R)) Evil(Father(R))...
32 Propositionalization Convert FOL sentences to PL sentences and do PL inference on them Seems kind of indirect Technical problem enumerating all the ground terms (could be infinite; see book)
33 x King(x) Evil(x) King(J)
34 x King(x) Evil(x) King(J)
35 King(J) Evil(J) King(J)
36 King(J) Evil(J) King(J) Evil(J)
37 x King(x) Greedy(x) Evil(x) King(J) Greedy(J), Greedy(R)
38 x King(x) Greedy(x) Evil(x) King(J) Greedy(J), Greedy(R) Evil(J)
39 x King(x) Greedy(x) Evil(x) King(J) Greedy(J), Greedy(R) Evil(J)
40 x King(x) Greedy(x) Evil(x) King(J) Greedy(J), Greedy(R) Evil(J)
41 x King(x) Greedy(x) Evil(x) King(J) Greedy(J), Greedy(R) Evil(J)
42 Substitution Replacement (binding) of variables by terms { x/j } { x/r, y/father(j) }
43 x King(x) Greedy(x) Evil(x) King(J) { x/j } Greedy(J), Greedy(R) If there is some substitution that makes the premises true, then the conclusion with the same substitution is also true
44 x King(x) Greedy(x) Evil(x) King(J) y Greedy(y) { x/j, y/j }
45 Generalized Modus Ponens p 0 1,p 0 2,,p 0 n, (p 1 p 2 p n q) Subst(,q) p i,p 0 i,q are atomic sentences is a substitution such that: Subst(,p 0 i)=subst(,p i )
46 Lifted Inference Rule Inference rule lifted from ground (variablefree) propositional logic to first-order logic The key advantage of lifted inference rules over propositionalization is that they make only those substitutions that are required to allow particular inferences to succeed
47 Inference Rules ( ) ( ) And-elimination Double negation DeMorgan s Laws ),, ( ) ) ( ) ) ( ) ) ( ) ), Modus Ponens Definition of biconditional
48 Unit Resolution Clause l 1 l i l k, m l 1 l i 1 l i+1 l k Unit Clause l1,..., lk are literals li and m are complementary Positive literal: P Negative literal: P Complementary literals
49 Resolution l 1 l i l k, m 1 m j m n l 1 l i 1 l i+1 l k m 1 m j 1 m j+1 m n l1,..., lk, m1,..., mn are literals li and mj are complementary Technical note: Resulting clause must be factored to contain only one copy of each literal.
50 Resolution Sound Complete Can it be lifted to FOL?
51 CNF for FOL Every sentence of first-order logic can be converted into an inferentially equivalent sentence in conjunctive normal form (CNF)
52 CNF for FOL Eliminate implications Move negation inwards Standardize variables apart Skolemize existential variables Drop universal variables Distribute over
53 CNF for FOL Every sentence of first-order logic can be converted into an inferentially equivalent sentence in conjunctive normal form (CNF) Not logically equivalent Inferentially equivalent: (un)satisfiable iff original sentence is (un)satisfiable
54 Resolution l 1 l i l k, m 1 m j m n l 1 l i 1 l i+1 l k m 1 m j 1 m j+1 m n l1,..., lk, m1,..., mn are literals li and mj are complementary Technical note: Resulting clause must be factored to contain only one copy of each literal.
55 x King(x) Greedy(x) Evil(x) King(J) y Greedy(y) { x/j, y/j }
56 Unification Unify(p, q) = where Subst(,p)=Subst(,q)
57 Knows(John,x) and Knows(John,Jane) { x/jane } Knows(John,x) and Knows(y, Bill) {x/bill, y/john } Knows(John,x) and Knows(y, Mother(y)) { y/john, x/mother(john) } Knows(John,x) and Knows(x,Elizabeth) Fails
58 Unification Unify(p, q) = where Subst(,p)=Subst(,q) Variables need to be standardized apart Occurs check Most general unifier: places the fewest restrictions on the variables Is unique AIMA Fig 9.1
59 FOL Resolution l 1 l i l k, m 1 m j m n Subst(,l 1 l i 1 l i+1 l k m 1 m j 1 m j+1 m n ) = Unify(l i, m j )
60 Proof by Resolution Convert KB to CNF Convert α to CNF and add to KB Apply resolution rule to complementary clauses (with unification) Until you derive the empty clause
61 American(x) Weapon(y) Sells(x,y,z) Hostile(z) Criminal(x) Criminal(West) American(West) American(West) Weapon(y) Sells(West,y,z) Hostile(z) Missile(x) Weapon(x) Weapon(y) Sells(West,y,z) Hostile(z) Missile(M 1 ) Missile(y) Sells(West,y,z) Hostile(z) Missile(x) Owns(Nono,x) Sells(West,x,Nono) Sells(West,M 1,z) Hostile(z) Missile(M 1 ) Missile(M 1 ) Owns(Nono,M 1 ) Hostile(Nono) Owns(Nono,M 1 ) Enemy(x,America) Hostile(x) Owns(Nono,M 1 ) Hostile(Nono) Hostile(Nono) Enemy(Nono, America) Enemy(Nono, America)
62 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 its missiles were sold to it by Colonel West, who is American. To prove: West is a criminal
63 It is a crime for an American to sell weapons to hostile nations. 8x, y, z American(x) Weapon(y) Sells(x, y, z) Hostile(z) ) Criminal(x) Nono... has some missiles. 9x Owns(Nono,x) Missile(x) All Nono s missiles were sold to it by Colonel West. 8x Missile(x) Owns(Nono,x) ) Sells(West,x,Nono) Missiles are weapons. 8x Missile(x) ) Weapon(x) An enemy of America counts as hostile. 8x Enemy(x, America) ) Hostile(x) West is an American. American(West) Nono is an enemy of America. Enemy(Nono, America)
64 8x, y, z American(x) Weapon(y) Sells(x, y, z) Hostile(z) ) Criminal(x) 9x Owns(Nono,x) Missile(x) 8x Missile(x) Owns(Nono,x) ) Sells(West,x,Nono) 8x Missile(x) ) Weapon(x) 8x Enemy(x, America) ) Hostile(x) American(West) Enemy(Nono, America)
65 Proof by Resolution Convert KB to CNF Convert α to CNF and add to KB Apply resolution rule to complementary clauses (with unification) Until you derive the empty clause
66 Convert to CNF Eliminate implications Move negation inwards Standardize variables apart Skolemize existential variables Drop universal variables Distribute over
67 8x, y, z American(x) Weapon(y) Sells(x, y, z) Hostile(z) ) Criminal(x) Eliminate implications: x, y, z [American(x) Weapon(y) Sells(x, y, z) Hostile(z)] Criminal(x) Move negation inwards (DeMorgan s Laws) x, y, z [ American(x) Weapon(y) Sells(x, y, z) Hostile(z)] Criminal(x) Standardize variables apart Skolemize existential variables Drop universal quantifiers American(x) Weapon(y) Sells(x, y, z) Hostile(z) Criminal(x) Distribute over
68 8x, y, z American(x) Weapon(y) Sells(x, y, z) Hostile(z) ) Criminal(x) American(x) Weapon(y) Sells(x, y, z) Hostile(z) Criminal(x)
69 8x, y, z American(x) Weapon(y) Sells(x, y, z) Hostile(z) ) Criminal(x) American(x) Weapon(y) Sells(x, y, z) Hostile(z) Criminal(x) 9x Owns(Nono,x) Missile(x) Owns(Nono,M 1 ), Missile(M 1 ) 8x Missile(x) Owns(Nono,x) ) Sells(West,x,Nono) Missile(x) Owns(Nono,x) Sells(West,x,Nono) 8x Missile(x) ) Weapon(x) Missile(x) Weapon(x) 8x Enemy(x, America) ) Hostile(x) Enemy(x, America) American(West) American(West) Hostile(x) Enemy(Nono, America) Enemy(Nono, America)
70 American(x) Weapon(y) Sells(x, y, z) Hostile(z) Criminal(x) Owns(Nono,M 1 ), Missile(M 1 ) Missile(x) Owns(Nono,x) Sells(West,x,Nono) Missile(x) Weapon(x) Enemy(x, America) Hostile(x) American(West) Enemy(Nono, America)
71 Proof by Resolution Convert KB to CNF Convert α to CNF and add to KB Apply resolution rule to complementary clauses (with unification) Until you derive the empty clause
72 West is a criminal Criminal(West) Negate and convert to CNF Criminal(West)
73 American(x) Weapon(y) Sells(x, y, z) Hostile(z) Criminal(x) Owns(Nono,M 1 ), Missile(M 1 ) Missile(x) Owns(Nono,x) Sells(West,x,Nono) Missile(x) Weapon(x) Enemy(x, America) Hostile(x) American(West) Enemy(Nono, America) Criminal(West)
74 Proof by Resolution Convert KB to CNF Convert α to CNF and add to KB Apply resolution rule to complementary clauses (with unification) Until you derive the empty clause
75 American(x) Weapon(y) Sells(x, y, z) Hostile(z) Criminal(x) Owns(Nono,M 1 ), Missile(M 1 ) Missile(x) Owns(Nono,x) Sells(West,x,Nono) Missile(x) Weapon(x) Enemy(x, America) Hostile(x) American(West) Enemy(Nono, America) Criminal(West)
76 American(x) Weapon(y) Sells(x, y, z) Hostile(z) Criminal(x) Owns(Nono,M 1 ), Missile(M 1 ) Missile(x) Owns(Nono,x) Sells(West,x,Nono) Missile(x) Weapon(x) Enemy(x, America) Hostile(x) American(West) { x/west } Enemy(Nono, America) Criminal(West)
77 American(x) Weapon(y) Sells(x, y, z) Hostile(z) Criminal(x) Criminal(West) { x/west } American(West) Weapon(y) Sells(West,y,z) Hostile(z)
78 American(x) Weapon(y) Sells(x,y,z) Hostile(z) Criminal(x) Criminal(West) American(West) American(West) Weapon(y) Sells(West,y,z) Hostile(z) Missile(x) Weapon(x) Weapon(y) Sells(West,y,z) Hostile(z) Missile(M 1 ) Missile(y) Sells(West,y,z) Hostile(z) Missile(x) Owns(Nono,x) Sells(West,x,Nono) Sells(West,M 1,z) Hostile(z) Missile(M 1 ) Missile(M 1 ) Owns(Nono,M 1 ) Hostile(Nono) Owns(Nono,M 1 ) Enemy(x,America) Hostile(x) Owns(Nono,M 1 ) Hostile(Nono) Hostile(Nono) Enemy(Nono, America) Enemy(Nono, America)
79 American(x) Weapon(y) Sells(x,y,z) Hostile(z) Criminal(x) Criminal(West) American(West) American(West) Weapon(y) Sells(West,y,z) Hostile(z) Missile(x) Weapon(x) Weapon(y) Sells(West,y,z) Hostile(z) Missile(M 1 ) Missile(y) Sells(West,y,z) Hostile(z) Missile(x) Owns(Nono,x) Sells(West,x,Nono) Sells(West,M 1,z) Hostile(z) Missile(M 1 ) Missile(M 1 ) Owns(Nono,M 1 ) Hostile(Nono) Owns(Nono,M 1 ) Enemy(x,America) Hostile(x) Owns(Nono,M 1 ) Hostile(Nono) Hostile(Nono) Enemy(Nono, America) Enemy(Nono, America)
80 Resolution Proof Since KB { Criminal(West)} is unsatisfiable, KB = Criminal(West)
81 Forward Chaining Knowledge base of definite clauses Starting from known facts, trigger rules whose premises are satisfied Using substitution to match Add their conclusions to the KB Until the query is answered or no new facts can be generated
82 Backward Chaining Work backward from the goal, chaining through rules to find known facts that support the proof Allow substitutions when matching facts and rules DFS => incomplete The basis of logic programming (Prolog)
83 FOL Inference Semantics of first-order sentences Entailment: same as PL! Lifted inference rules Resolution (first-order CNF, unification) Proof by contradiction Forward and backward chaining
84 For Next Time: Review for Midterm AIMA Chapters 1-9 (per syllabus) Exam issues: me ASAP
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 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 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 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 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 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 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 Ch. 9 Outline Reducing first-order inference to propositional inference Unification Generalized Modus Ponens Forward and backward chaining Resolution
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 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 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 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 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 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 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 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 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 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 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 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 informationCSC242: Intro to AI. Lecture 12. Tuesday, February 26, 13
CSC242: Intro to AI Lecture 12 Quiz Stop Time: 2:15 ULW First draft due Mar 1 8-10 pages minimum First-Order Logic First-Order Logic Propositional Logic Syntax & Semantics Truth tables Model checking
More 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 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 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 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 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 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 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 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 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 informationAdvanced Artificial Intelligence (SCOM7341) First Order Logic. Dr. Mustafa Jarrar
Lecture Notes, Advanced Artificial Intelligence (SCOM7341) Sina Institute, University of Birzeit 2 nd Semester, 2012 Advanced Artificial Intelligence (SCOM7341) First Order Logic Dr. Mustafa Jarrar Sina
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 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 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 informationFirst-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 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 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 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 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 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 informationOutline. 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 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 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 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. AI Slides (5e) c Lin
First-order logic 6 AI Slides (5e) c Lin Zuoquan@PKU 2003-2018 6 1 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
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 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 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 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 informationInference in Propositional Logic
Inference in Propositional Logic Deepak Kumar November 2017 Propositional Logic A language for symbolic reasoning Proposition a statement that is either True or False. E.g. Bryn Mawr College is located
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 informationproposi/onal logic, first- order logic CS 4100/5100 Founda/ons of AI
proposi/onal logic, first- order logic CS 4100/5100 Founda/ons of AI Announcements Assignment 1 out Due September 27 th, 6pm Piazza Blackboard Reading Responses PROPOSITIONAL LOGIC Knowledge- Based Agents
More informationPropositional Logic: Review
Propositional Logic: Review Propositional logic Logical constants: true, false Propositional symbols: P, Q, S,... (atomic sentences) Wrapping parentheses: ( ) Sentences are combined by connectives:...and...or
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 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 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 informationIntelligent Agents. Pınar Yolum Utrecht University
Intelligent Agents Pınar Yolum p.yolum@uu.nl Utrecht University Logical Agents (Based mostly on the course slides from http://aima.cs.berkeley.edu/) Outline Knowledge-based agents Wumpus world Logic in
More informationLogical Agents. Chapter 7
Logical Agents Chapter 7 Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem
More 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 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 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 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 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 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 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 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 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 informationIntroduction 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 informationIntroduction 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 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 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 informationPropositional logic II.
Lecture 5 Propositional logic II. Milos Hauskrecht milos@cs.pitt.edu 5329 ennott quare Propositional logic. yntax yntax: ymbols (alphabet) in P: Constants: True, False Propositional symbols Examples: P
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 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 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 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 informationLogical 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 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 informationAI Programming CS S-09 Knowledge Representation
AI Programming CS662-2013S-09 Knowledge Representation David Galles Department of Computer Science University of San Francisco 09-0: Overview So far, we ve talked about search, which is a means of considering
More informationPropositional Logic: Methods of Proof. Chapter 7, Part II
Propositional Logic: Methods of Proof Chapter 7, Part II Inference in Formal Symbol Systems: Ontology, Representation, ti Inference Formal Symbol Systems Symbols correspond to things/ideas in the world
More informationLogical Agent & Propositional Logic
Logical Agent & Propositional Logic Berlin Chen Department of Computer Science & Information Engineering National Taiwan Normal University References: 1. S. Russell and P. Norvig. Artificial Intelligence:
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 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 informationPropositional Logic: Methods of Proof (Part II)
Propositional Logic: Methods of Proof (Part II) This lecture topic: Propositional Logic (two lectures) Chapter 7.1-7.4 (previous lecture, Part I) Chapter 7.5 (this lecture, Part II) (optional: 7.6-7.8)
More 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 informationAdvanced Topics in LP and FP
Lecture 1: Prolog and Summary of this lecture 1 Introduction to Prolog 2 3 Truth value evaluation 4 Prolog Logic programming language Introduction to Prolog Introduced in the 1970s Program = collection
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 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 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 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 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 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 informationLogic. Introduction to Artificial Intelligence CS/ECE 348 Lecture 11 September 27, 2001
Logic Introduction to Artificial Intelligence CS/ECE 348 Lecture 11 September 27, 2001 Last Lecture Games Cont. α-β pruning Outline Games with chance, e.g. Backgammon Logical Agents and thewumpus World
More 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 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 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 informationPropositional Logic: Bottom-Up Proofs
Propositional Logic: Bottom-Up Proofs CPSC 322 Logic 3 Textbook 5.2 Propositional Logic: Bottom-Up Proofs CPSC 322 Logic 3, Slide 1 Lecture Overview 1 Recap 2 Bottom-Up Proofs 3 Soundness of Bottom-Up
More informationLanguage of Propositional Logic
Logic A logic has: 1. An alphabet that contains all the symbols of the language of the logic. 2. A syntax giving the rules that define the well formed expressions of the language of the logic (often called
More informationINF5390 Kunstig intelligens. Logical Agents. Roar Fjellheim
INF5390 Kunstig intelligens Logical Agents Roar Fjellheim Outline Knowledge-based agents The Wumpus world Knowledge representation Logical reasoning Propositional logic Wumpus agent Summary AIMA Chapter
More informationLogical Agents. Santa Clara University
Logical Agents Santa Clara University Logical Agents Humans know things Humans use knowledge to make plans Humans do not act completely reflexive, but reason AI: Simple problem-solving agents have knowledge
More information