CS344: Introduction to Artificial Intelligence (associated lab: CS386) Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–28, 29: Predicate Calculus;

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

CS344: Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 10– Club and Circuit Examples.
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.
CS344: Artificial Intelligence
CS344: Introduction to Artificial Intelligence (associated lab: CS386) Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–5 and 6: Propositional Calculus.
INTRODUCTION TO ARTIFICIAL INTELLIGENCE Massimo Poesio LECTURE 3: Logic: predicate calculus, psychological evidence.
CS344: Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 7– Predicate Calculus and Knowledge Representation.
Knowledge Representation Methods
Logic Programming Languages. Objective To introduce the concepts of logic programming and logic programming languages To introduce a brief description.
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 21– Predicate Calculus and Knowledge Representation 7 th September,
CSE115/ENGR160 Discrete Mathematics 01/20/11 Ming-Hsuan Yang UC Merced 1.
Logical and Rule-Based Reasoning Part I. Logical Models and Reasoning Big Question: Do people think logically?
CS621: Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–4: Fuzzy Inferencing 29 th July 2010.
FIRST ORDER LOGIC Levent Tolga EREN.
Predicates and Quantifiers
Predicates & Quantifiers Goal: Introduce predicate logic, including existential & universal quantification Introduce translation between English sentences.
Ming Fang 6/12/2009. Outlines  Classical logics  Introduction to DL  Syntax of DL  Semantics of DL  KR in DL  Reasoning in DL  Applications.
First Order Logic Chapter 7. PL is a Weak Representational Language §Propositional Logic (PL) is not a very expressive language because: §Hard to identify.
CS344: Introduction to Artificial Intelligence (associated lab: CS386) Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 17, 18: Predicate Calculus 15.
Propositional Calculus Composed of symbols –P – some true statement P might represent something like “It is Monday” or “the car is red” And sentences –a.
1 COSC3306: Programming Paradigms Lecture 8: Declarative Programming Specifications Haibin Zhu, Ph.D. Computer Science Nipissing University (C) 2003.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
1.  Provides the ability to access individual assertions. e.g. in Predicate calculus we may say: P denotes “It rained on Tuesday” but in predicate calculus.
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 28– Interpretation; Herbrand Interpertation 30 th Sept, 2010.
CS344 Artificial Intelligence Prof. Pushpak Bhattacharya Class on 5 Mar 2007.
CS344: Introduction to Artificial Intelligence (associated lab: CS386) Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 19: Interpretation in Predicate.
CS344: Introduction to Artificial Intelligence (associated lab: CS386) Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 15, 16: Predicate Calculus 8.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 13 of 41 Monday, 20 September.
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–7, 9, 10,14: Predicate calculus.
Computing & Information Sciences Kansas State University Lecture 14 of 42 CIS 530 / 730 Artificial Intelligence Lecture 14 of 42 William H. Hsu Department.
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–7: (a) Formal System;(b) How to read research papers 3 rd August, 2010.
Artificial Intelligence 7. Making Deductive Inferences Course V231 Department of Computing Imperial College, London Jeremy Gow.
Artificial Intelligence Chapter 15 The Predicate Calculus Artificial Intelligence Chapter 15 The Predicate Calculus Biointelligence Lab School of Computer.
CS344 : Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 9- Completeness proof; introducing knowledge representation.
For Wednesday Read chapter 9, sections 1-3 Homework: –Chapter 7, exercises 8 and 9.
For Friday Read chapter 8 Homework: –Chapter 7, exercises 2 and 10 Program 1, Milestone 2 due.
Discrete Structures Predicate Logic 1 Dr. Muhammad Humayoun Assistant Professor COMSATS Institute of Computer Science, Lahore.
11 Artificial Intelligence CS 165A Tuesday, October 30, 2007  Knowledge and reasoning (Ch 7) Propositional logic  First-order logic (Ch 8) 1.
CS344: Introduction to Artificial Intelligence (associated lab: CS386) Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 14: AI, Logic, and Puzzle Solving.
Computing & Information Sciences Kansas State University Lecture 12 of 42 CIS 530 / 730 Artificial Intelligence Lecture 12 of 42 William H. Hsu Department.
Prof. Pushpak Bhattacharyya, IIT Bombay 1 CS 621 Artificial Intelligence Lecture 5 – 08/08/05 Prof. Pushpak Bhattacharyya FUZZY LOGIC & INFERENCING.
1-1 An Introduction to Logical Programming Sept
Copyright © Peter Cappello 2011 Predicates & Quantifiers.
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.
Predicate Logic Although Propositional Logic is complete... It is still inadequate.
Lecture 041 Predicate Calculus Learning outcomes Students are able to: 1. Evaluate predicate 2. Translate predicate into human language and vice versa.
CS344 : Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 4- Logic.
CS621 : Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 16 Description Logic.
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–6: Propositional calculus, Semantic Tableau, formal System 2 nd August,
CS621: Artificial Intelligence
CS344: Introduction to Artificial Intelligence (associated lab: CS386)
Predicates & Quantifiers
CS201: Data Structures and Discrete Mathematics I
Logic Programming Languages
Knowledge Representation and Inference
CSE 321 Discrete Structures
CS621: Artificial Intelligence
CSNB234 ARTIFICIAL INTELLIGENCE
Predicates and Quantifiers
CS621 : Artificial Intelligence
CS201: Data Structures and Discrete Mathematics I
CS621: Artificial Intelligence
Artificial Intelligence
Logical and Rule-Based Reasoning Part I
CS621: Artificial Intelligence
Prof. Pushpak Bhattacharyya, IIT Bombay
Artificial Intelligence
Presentation transcript:

CS344: Introduction to Artificial Intelligence (associated lab: CS386) Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–28, 29: Predicate Calculus; Interpretation 22 nd and 26 th March, 2012

Well known examples Man is mortal : rule ∀ x[man(x) → mortal(x)] shakespeare is a man man(shakespeare) To infer shakespeare is mortal mortal(shakespeare)

Predicate Calculus: more succinct expression than propositional calculus

Predicate Calculus: finer than propositional calculus

Double causative in Hindi giving rise to higher place predicates जॉन ने खाना खाया John ne khana khaya John food ate John ate food eat(John, food) जॉन ने जैक को खाना खिलाया John ne Jack ko khana khilaya John Jack food fed John fed Jack eat(John, Jack, food) जॉन ने जैक को जिल के द्वारा खाना खिलाया John ne Jack ko Jill ke dvara khana khilaya John Jack Jill food made-to-eat John fed Jack through Jill eat(John, Jack, Jill, food)

Predicate Calculus: origin Predicate calculus originated in language Sentence PredicateSubject Grass is green Subject Predicate green(grass) D : Domain

Predicate Calculus: only for declarative sentences Is grass green ? Oh, grass is green! Grass which is supple is green supple(grass) green(grass) Declarative Sentence PredicateSubject

PC primitive: N-ary Predicate Arguments of predicates can be variables and constants Ground instances : Predicate all whose arguments are constants

N-ary Functions president(India) : Prathiba Patel Constants & Variables : Zero-order objects Predicates & Functions : First-order objects President of India is a lady lady(president(India)) Prime minister of India is older than the president of India older(prime_minister(India), president(India))

Operators Universal Quantifier Existential Quantifier All men are mortal Some men are rich

Tautologies 2 nd tautology in English: Not a single man in this village is educated implies all men in this village are uneducated Tautologies are important instruments of logic, but uninteresting statements!

Inferencing: Forward Chaining man(x) → mortal(x) Dropping the quantifier, implicitly Universal quantification assumed man(shakespeare) Goal mortal(shakespeare) Found in one step x = shakespeare, unification

Backward Chaining man(x) → mortal(x) Goal mortal(shakespeare) x = shakespeare Travel back over and hit the fact asserted man(shakespeare)

Wh-Questions and Knowledge what how why where which who when Factoid / Declarative procedural Reasoning

Fixing Predicates Natural Sentences Verb(subject,object) predicate(subject)

Examples Ram is a boy Boy(Ram)? Is_a(Ram,boy)? Ram Playes Football Plays(Ram,football)? Plays_football(Ram)?

Knowledge Representation of Complex Sentence “In every city there is a thief who is beaten by every policeman in the city”

Interpretation in Logic Logical expressions or formulae are “FORMS” (placeholders) for whom contents are created through interpretation. Example: This is a Second Order Predicate Calculus formula. Quantification on ‘F’ which is a function.

Interpretation:1 D=N (natural numbers) a = 0 and b = 1 x ∈ N P(x) stands for x > 0 g(m,n) stands for (m x n) h(x) stands for (x – 1) Above interpretation defines Factorial Examples

Interpretation:2 D={strings) a = b = λ P(x) stands for “x is a non empty string” g(m, n) stands for “append head of m to n” h(x) stands for tail(x) Above interpretation defines “reversing a string” Examples (contd.)