CS 621 Artificial Intelligence Lecture 4 – 05/08/05

Slides:



Advertisements
Similar presentations
Artificial Intelligence 8. The Resolution Method
Advertisements

CS344: Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 12–Prolog examples: Himalayan club, member, rem_duplicate,
Inference Rules Universal Instantiation Existential Generalization
CS344: Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 10– Club and Circuit Examples.
Standard Logical Equivalences
First-Order Logic (FOL) aka. predicate calculus. First-Order Logic (FOL) Syntax User defines these primitives: – Constant symbols (i.e., the "individuals"
UIUC CS 497: Section EA Lecture #2 Reasoning in Artificial Intelligence Professor: Eyal Amir Spring Semester 2004.
CS344 : Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 9,10,11- Logic; Deduction Theorem 23/1/09 to 30/1/09.
For Friday No reading Homework: –Chapter 9, exercise 4 (This is VERY short – do it while you’re running your tests) Make sure you keep variables and constants.
Logic Use mathematical deduction to derive new knowledge.
CS344: Artificial Intelligence
Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus.
RESOLUTION: A COMPLETE INFERENCE PROCEDURE. I Then we certainly want to be able to conclude S(A); S(A) is true if S(A) or R(A) is true, and one of those.
1 Applied Computer Science II Resolution in FOL Luc De Raedt.
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
CSE (c) S. Tanimoto, 2008 Propositional Logic
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 21– Predicate Calculus and Knowledge Representation 7 th September,
Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus.
CS621: Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–4: Fuzzy Inferencing 29 th July 2010.
INFERENCE IN FIRST-ORDER LOGIC IES 503 ARTIFICIAL INTELLIGENCE İPEK SÜĞÜT.
CS344 : Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 22, 23- Prolog.
Notes for Chapter 12 Logic Programming The AI War Basic Concepts of Logic Programming Prolog Review questions.
CSNB234 ARTIFICIAL INTELLIGENCE
CS344: Introduction to Artificial Intelligence (associated lab: CS386) Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 17, 18: Predicate Calculus 15.
Logical Agents Logic Propositional Logic Summary
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 28– Interpretation; Herbrand Interpertation 30 th Sept, 2010.
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
CS344: Introduction to Artificial Intelligence (associated lab: CS386) Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 15, 16: Predicate Calculus 8.
CS621 : Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 9 Continuation of Logic and Semantic Web.
CS344: Introduction to Artificial Intelligence (associated lab: CS386) Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–3: Fuzzy Inferencing: Inverted.
The AI War LISP and Prolog Basic Concepts of Logic Programming
Prof. Pushpak Bhattacharyya, IIT Bombay 1 CS 621 Artificial Intelligence Lecture /08/05 Prof. Pushpak Bhattacharyya Fuzzy Set (contd) Fuzzy.
CS344 : Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 9- Completeness proof; introducing knowledge representation.
Propositional Logic Predicate Logic
CS621: Artificial Intelligence
1 Knowledge Based Systems (CM0377) Lecture 6 (last modified 20th February 2002)
CS344: Introduction to Artificial Intelligence (associated lab: CS386) Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 14: AI, Logic, and Puzzle Solving.
CS.462 Artificial Intelligence SOMCHAI THANGSATHITYANGKUL Lecture 05 : Knowledge Base & First Order Logic.
Prof. Pushpak Bhattacharyya, IIT Bombay 1 CS 621 Artificial Intelligence Lecture /08/05 Prof. Pushpak Bhattacharyya Fuzzy Logic Application.
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 35–Himalayan Club example; introducing Prolog.
CS 344 Artificial Intelligence By Prof: Pushpak Bhattacharya Class on 26/Feb/2007.
Prof. Pushpak Bhattacharyya, IIT Bombay1 CS 621 Artificial Intelligence Lecture /08/05 Prof. Pushpak Bhattacharyya Fuzzy Inferencing.
CS344 : Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 4- Logic.
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–6: Propositional calculus, Semantic Tableau, formal System 2 nd August,
CS344 : Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 5- Deduction Theorem.
EA C461 Artificial Intelligence
CS621: Artificial Intelligence
Knowledge Representation and Reasoning
Resolution in the Propositional Calculus
CS 621 Artificial Intelligence Lecture 1 – 28/07/05
CS621: Introduction to Artificial Intelligence
Propositional Resolution
Logic Use mathematical deduction to derive new knowledge.
Biointelligence Lab School of Computer Sci. & Eng.
CS 416 Artificial Intelligence
Back to “Serious” Topics…
Fuzzy Inferencing – Inverted Pendulum Problem
Biointelligence Lab School of Computer Sci. & Eng.
CS621: Artificial Intelligence
CSNB234 ARTIFICIAL INTELLIGENCE
CS621 : Artificial Intelligence
CSNB234 ARTIFICIAL INTELLIGENCE
CS621: Artificial Intelligence
CS621: Artificial Intelligence
CS621: Artificial Intelligence
CS621: Artificial Intelligence
Artificial Intelligence
CS 621 Artificial Intelligence Lecture /09/05 Prof
Logical Inference 4 wrap up
Artificial Intelligence
Presentation transcript:

CS 621 Artificial Intelligence Lecture 4 – 05/08/05 Prof. Pushpak Bhattacharyya KNOWLEDGE REPRESENTATION & INFERENCING USING PREDICATE CALCULUS 05-08-05 Prof. Pushpak Bhattacharyya, IIT Bombay

Prof. Pushpak Bhattacharyya, IIT Bombay Example Example: John, Jack & Jill are members of Alpine club. Every member of the club is either a mountain climber or a skier. All skiers like snow. No mountain climber likes rain. Jack dislikes whatever John likes, and likes whatever John dislikes. John likes rain and snow. Is there a member who is a mountain climber but not a skier. 05-08-05 Prof. Pushpak Bhattacharyya, IIT Bombay

Knowledge Representation member (John, Alpine) member (Jack, Alpine) member (Jill, Alpine) x [member(x, Alpine) → mc(x) sk(x)] x [sk(x) → like(x, snow)] x [mc(x) → ~like(x, rain)] x [like(John, x) → ~like(John, x)] x [~like(John, x) → like(Jack, x)] like(John, rain) like(John, snow) Ques: x [member(x, Alpine) mc(x) ~sk(x)] 05-08-05 Prof. Pushpak Bhattacharyya, IIT Bombay

Inference Strategy - RESOLUTION Basic Idea: REFUTATION of the goal Proof by contradiction Suppose the goal is false. Then show contradiction in the knowledge base. 05-08-05 Prof. Pushpak Bhattacharyya, IIT Bombay

Prof. Pushpak Bhattacharyya, IIT Bombay Steps in Inferencing Convert all expressions, including the falsified goal, into clauses. member (John, Alpine) member (Jack, Alpine) member (Jill, Alpine) ~ member(x1, Alpine) ν mc(x1) ν sk(x1) ~ sk(x2) ν like(x2,snow) ~ mc(x3) ν ~ like(x3,rain) ~ like(John, x4) ν ~ like(Jack, x4) like(John, x5) ν like(Jack, x5) like(John, rain) like(John, snow) ~ member(x6, Alpine) ν ~ mc(x6) ν sk(x6) 05-08-05 Prof. Pushpak Bhattacharyya, IIT Bombay

Prof. Pushpak Bhattacharyya, IIT Bombay Run Resolution By unification find value for x6 Theory of resolution: given P & ~P ν Q Resolvents we can obtain Q (Resolute) 05-08-05 Prof. Pushpak Bhattacharyya, IIT Bombay

Prof. Pushpak Bhattacharyya, IIT Bombay Inverted Tree Diagram P ~P ν Q Q Aim C1 C2 Indicates contradiction null clause 05-08-05 Prof. Pushpak Bhattacharyya, IIT Bombay

Prof. Pushpak Bhattacharyya, IIT Bombay Goal with Negation ~[ x{(member (x, Alpine) Λ mc(x) Λ ~ sk(x))}] x[~ member (x, Alpine) ν ~ mc(x) ν sk(x)] 11. ~ member(x6, Alpine) ν ~ mc(x6) ν sk(x6) 05-08-05 Prof. Pushpak Bhattacharyya, IIT Bombay

Prof. Pushpak Bhattacharyya, IIT Bombay Monotonic Logic Every step of resolution increases the KB monotonically. Non-monotonic logic which used default reasoning. NEGATION BY FAILURE 05-08-05 Prof. Pushpak Bhattacharyya, IIT Bombay

Which Pair of Clauses for Resolvents? 10 7 unification of x4 with snow snow/x4 snow/x4 12. ~ like(Jack, snow) 5 Jack/x2 13. ~ sk(Jack) 4 Jack/x1 14. ~ member(Jack, Alpine) ν mc(Jack) 05-08-05 Prof. Pushpak Bhattacharyya, IIT Bombay

Prof. Pushpak Bhattacharyya, IIT Bombay Resolvents (Contd) 2 14 15. mc(Jack) 11 16. ~ member(Jack) ν sk(Jack) 13 ~ member(Jack) 2 05-08-05 Prof. Pushpak Bhattacharyya, IIT Bombay

Prof. Pushpak Bhattacharyya, IIT Bombay Resolution Strategy Start from negated goal Use the derived clause as one of the pairs always - set of support strategy If the  is not reached, then The knowledge base is not complete. The inference rules are not adequate (modus ponens) Wrong inference path 05-08-05 Prof. Pushpak Bhattacharyya, IIT Bombay

Modus Ponens & Modus Tolens P & P →Q gives Q Modus Tolens: ~Q and P →Q gives ~P 05-08-05 Prof. Pushpak Bhattacharyya, IIT Bombay

Prof. Pushpak Bhattacharyya, IIT Bombay Prolog Predicate calculus (HORN Clause) + Resolution HORN Clauses: All the implications have single literal as consequent. A(antecedent) → B(consequent) B is a single literal, never contain any operator. Moreover B has to be a positive literal. 05-08-05 Prof. Pushpak Bhattacharyya, IIT Bombay