CS621: Artificial Intelligence

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,
CS344: Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 10– Club and Circuit Examples.
Standard Logical Equivalences
First Order Logic Resolution
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.
We have seen that we can use Generalized Modus Ponens (GMP) combined with search to see if a fact is entailed from a Knowledge Base. Unfortunately, there.
Logic Use mathematical deduction to derive new knowledge.
13 Automated Reasoning 13.0 Introduction to Weak Methods in Theorem Proving 13.1 The General Problem Solver and Difference Tables 13.2 Resolution.
CS344: Artificial Intelligence
CS344: Introduction to Artificial Intelligence (associated lab: CS386) Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–5 and 6: Propositional Calculus.
Logic Concepts Lecture Module 11.
CS344: Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 7– Predicate Calculus and Knowledge Representation.
Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus.
CS344: Introduction to Artificial Intelligence (associated lab: CS386) Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–28, 29: Predicate Calculus;
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
1 Automated Reasoning Introduction to Weak Methods in Theorem Proving 13.1The General Problem Solver and Difference Tables 13.2Resolution Theorem.
Inference and Resolution for Problem Solving
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 21– Predicate Calculus and Knowledge Representation 7 th September,
Artificial Intelligence
Formal Aspects of Computer Science – Week 12 RECAP Lee McCluskey, room 2/07
Propositional Logic Reasoning correctly computationally Chapter 7 or 8.
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.
CS344: Introduction to Artificial Intelligence (associated lab: CS386) Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 17, 18: Predicate Calculus 15.
Conjunctive normal form: any formula of the predicate calculus can be transformed into a conjunctive normal form. Def. A formula is said to be in conjunctive.
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.
The AI War LISP and Prolog Basic Concepts of Logic Programming
LECTURE LECTURE Propositional Logic Syntax 1 Source: MIT OpenCourseWare.
Automated Reasoning Early AI explored how to automated several reasoning tasks – these were solved by what we might call weak problem solving methods as.
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
CS344: Introduction to Artificial Intelligence (associated lab: CS386) Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 14: AI, Logic, and Puzzle Solving.
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.
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,
By P. S. Suryateja Asst. Professor, CSE Vishnu Institute of Technology
Introduction to Logic for Artificial Intelligence Lecture 2
CS344: Introduction to Artificial Intelligence (associated lab: CS386)
Knowledge Representation and Reasoning
Resolution in the Propositional Calculus
Propositional Logic Resolution
CS 621 Artificial Intelligence Lecture 1 – 28/07/05
ARTIFICIAL INTELLIGENCE
Proposition & Predicates
Logical Inference: Through Proof to Truth
CS 621 Artificial Intelligence Lecture 4 – 05/08/05
Logic Use mathematical deduction to derive new knowledge.
Biointelligence Lab School of Computer Sci. & Eng.
CS 416 Artificial Intelligence
Prolog IV Logic, condensed.
Back to “Serious” Topics…
Biointelligence Lab School of Computer Sci. & Eng.
CS621: Artificial Intelligence
Predicates and Quantifiers
CSNB234 ARTIFICIAL INTELLIGENCE
CS621 : Artificial Intelligence
CS621: Artificial Intelligence
CS621: Artificial Intelligence
CS621: Artificial Intelligence
CS621: Artificial Intelligence
Prof. Pushpak Bhattacharyya, IIT Bombay
Artificial Intelligence
Artificial Intelligence
Presentation transcript:

CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 23– Predicate Calculus; Applications 21st September, 2010

Recap

Knowledge Representation Natural Language: Vague, Ambiguous, human understandable Logic: Precise, Non-ambiguous, Machine understandable Logic: Propositional Calculus, First Order Logic, Second Order Logic…

Natural Language -> Logic Natural language difficult for processing Conversion needed for machine processing Ellipsis: Text dropping while converting from natural language to logic Noun dropping Sentences with similar syntactic representation but different meaning. I promised him to give a party. I forced him to give a party. He is easy to please He is eager to please

Predicate Calculus First Order logic Building blocks Predicate P(x1, x2, … xn) is n-place predicate xn‘s are arguments P is the predicate symbol. Can be looked as a function P: x1 X x2 X x3 … X xn -> {True, False} Eg: Father(Ram, Shyam) Operators ( ) Variables: arguments of predicates Quantifiers: : Universal Quantifier : Existential Quantifier Constants

Goal proving Resolution Refutation Steps: Goal is negated De Morgan’s rule: Expressions converted to Clausal Form Universal Quantifier dropped Variables Standardized apart using variable renaming Resolution applied If we get null clause in the end that means negation of the goal cannot be proved which means the goal is proved

Resolution – Refutation: example man(x) → mortal(x) Convert to clausal form ~man(shakespeare) mortal(x) Clauses in the knowledge base man(shakespeare) mortal(shakespeare)

Resolution – Refutation contd Negate the goal ~man(shakespeare) Get a pair of resolvents

Resolution Tree

Search in resolution Heuristics for Resolution Search Goal Supported Strategy Always start with the negated goal Set of support strategy Always one of the resolvents is the most recently produced resolute

Inferencing in Predicate Calculus Forward chaining Given P, , to infer Q P, match L.H.S of Assert Q from R.H.S Backward chaining Q, Match R.H.S of assert P Check if P exists Resolution – Refutation Negate goal Convert all pieces of knowledge into clausal form (disjunction of literals) See if contradiction indicated by null clause can be derived

P converted to Draw the resolution tree (actually an inverted tree). Every node is a clausal form and branches are intermediate inference steps.

Theoretical basis of Resolution Resolution proves something and the answer to the question is a side effect

Theoretical basis of Resolution (cont …) Using Semantic Tree Contradiction

Theoretical basis of Resolution (cont …) Monotone Inference Size of Knowledge Base goes on increasing as we proceed with resolution process since intermediate resolvents added to the knowledge base Non-monotone Inference Size of Knowledge Base does not increase Human beings use non-monotone inference

Terminology Pair of clauses being resolved is called the Resolvents. The resulting clause is called the Resolute. Choosing the correct pair of resolvents is a matter of search.

Himalayan Club example Introduction through an example (Zohar Manna, 1974): Problem: A, B and C belong to the Himalayan club. Every member in the club is either a mountain climber or a skier or both. A likes whatever B dislikes and dislikes whatever B likes. A likes rain and snow. No mountain climber likes rain. Every skier likes snow. Is there a member who is a mountain climber and not a skier? Given knowledge has: Facts Rules

Example contd. Let mc denote mountain climber and sk denotes skier. Knowledge representation in the given problem is as follows: member(A) member(B) member(C) ∀x[member(x) → (mc(x) ∨ sk(x))] ∀x[mc(x) → ~like(x,rain)] ∀x[sk(x) → like(x, snow)] ∀x[like(B, x) → ~like(A, x)] ∀x[~like(B, x) → like(A, x)] like(A, rain) like(A, snow) Question: ∃x[member(x) ∧ mc(x) ∧ ~sk(x)] We have to infer the 11th expression from the given 10. Done through Resolution Refutation.

Club example: Inferencing member(A) member(B) member(C) Can be written as

Negate–

Now standardize the variables apart which results in the following member(A) member(B) member(C)

10 7 12 5 4 13 14 2 11 15 16 13 2 17