CS621 : Artificial Intelligence

Slides:



Advertisements
Similar presentations
CS344: Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 12–Prolog examples: Himalayan club, member, rem_duplicate,
Advertisements

CS344: Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 10– Club and Circuit Examples.
Standard Logical Equivalences
Inference and Reasoning. Basic Idea Given a set of statements, does a new statement logically follow from this. For example If an animal has wings and.
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.
Answer Set Programming Overview Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma de Guadalajara
CS344: Artificial Intelligence
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;
Knowledge Representation Methods
Formal Logic Proof Methods Direct Proof / Natural Deduction Conditional Proof (Implication Introduction) Reductio ad Absurdum Resolution Refutation.
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.
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.
CS344: Introduction to Artificial Intelligence Lecture: Herbrand’s Theorem Proving satisfiability of logic formulae using semantic trees (from Symbolic.
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.
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.
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–7: (a) Formal System;(b) How to read research papers 3 rd August, 2010.
CS344 : Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 9- Completeness proof; introducing knowledge representation.
CS621: Artificial Intelligence
CSE (c) S. Tanimoto, 2008 Predicate Calculus II 1 Predicate Calculus 2 Outline: Unification: definitions, algorithm Formal interpretations and satisfiability.
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.
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 35–Himalayan Club example; introducing Prolog.
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–10: Soundness of Propositional Calculus 12 th August, 2010.
6/11/2016 Linear Resolution and Introduction to First Order Logic Michael Leuschel Softwaretechnik und Programmiersprachen Lecture 5.
March 3, 2016Introduction to Artificial Intelligence Lecture 12: Knowledge Representation & Reasoning I 1 Back to “Serious” Topics… Knowledge Representation.
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,
CS344 : Introduction to Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 5- Deduction Theorem.
Knowledge Based Systems
Knowledge Representation and Reasoning 2
CS621: Artificial Intelligence
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
CS 621 Artificial Intelligence Lecture 1 – 28/07/05
Symbolic Reasoning under uncertainty
Chapter 7: Beyond Definite Knowledge
CS201: Data Structures and Discrete Mathematics I
CS 621 Artificial Intelligence Lecture 4 – 05/08/05
Biointelligence Lab School of Computer Sci. & Eng.
Resolution And yet Another Example:
First Order Logic Rosen Lecture 3: Sept 11, 12.
Back to “Serious” Topics…
Biointelligence Lab School of Computer Sci. & Eng.
Artificial Intelligence Chapter 17. Knowledge-Based Systems
CS621: Artificial Intelligence
Encoding Knowledge with First Order Predicate Logic
Encoding Knowledge with First Order Predicate Logic
CS201: Data Structures and Discrete Mathematics I
CS621: Artificial Intelligence
CS621: Artificial Intelligence
CS621: Artificial Intelligence
Encoding Knowledge with First Order Predicate Logic
CS344 : Introduction to Artificial Intelligence
CS621: Artificial Intelligence
CS 621 Artificial Intelligence Lecture /09/05 Prof
Artificial Intelligence
Presentation transcript:

CS621 : Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 34 Nonmonotonic reasoning

Predicate Calculus deals with complete and consistent knowledge 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

Predicate Calculus: 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.

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

Characteristic of classical reasoning Monotonicity: every inference is valid, since the axioms and inference rules are valid Cannot deal with pieces of assertion which can be both true and false in the current state of knowledge

Questions How can the knowledge base be extended to allow inferences to be made on the basis of lack of knowledge as well as on the presence of it? How can the knowledge base be updated properly when a new fact is added to the system or when an old one is removed? How can knowledge be used to help resolve conflicts when there are several inconsistent nonmonotonic inferences that couldbe drawn?

“Interpretation of WFFs” Fix a domain D Assign for each constant, an element of D Assign for each n-ary function, a mapping from Dn  D Assign for each m-ary predicate, a mapping from Dm  {T, F}

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.

Examples 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 (contd.) 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”

More Examples ∀x [ P(x) → Q(x)] Following interpretations conform to above expression: man(x) → mortal(x) dog(x) → mammal(x) prime(x) → 2_or_odd(x) CS(x) → bad_hand_writing(x)

Structure of Interpretation All interpretations begin with a domain ‘D’, constants (0-order functions) and functions pick values from there. With respect to - ∀x [ P(x) → Q(x)] D = {living beings} P: D → {T, F} Q: D → {T, F} P can be looked upon as a table shown here: Elements of D i.e. x P(x) Ram T Pushpak Virus1201 F

Interpretation of Factorial in the structure D = {0, 1, 2, …, ∞} a = 0, b = 1 g(m, n) = m x n and g: D x D → D h(x) = (x – 1) and h(0) = 0, h: D →D P(x) is x > 0 and P: D → {T, F}

Multiple worlds in NMR For the given set of WFFs, have a model When a new set of WFFS arrive, have a new/modified model and examine which existing WFFs need to be retracted

Operator M For all x and y, if x and y are related and if the fact that x gets along with y is consistent with everything else that is believed, then conclude that x will defend y

How to prove consistency: Negation by Failure Used in Prolog We attempt to prove ~p If we fail, we assume ~p to be false Then we call p consistent Decidable in Prolog, because prolog works with Horn clauses (only one literal on the RHS of a rule)