Knowledge Based Systems: Logic and Deduction Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.

Slides:



Advertisements
Similar presentations
Russell and Norvig Chapter 7
Advertisements

Artificial Intelligence
Artificial Intelligence Inference in first-order logic Fall 2008 professor: Luigi Ceccaroni.
Logic Use mathematical deduction to derive new knowledge.
Agents That Reason Logically Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2004.
Propositional Logic Reading: C , C Logic: Outline Propositional Logic Inference in Propositional Logic First-order logic.
Logic CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
3/30/00 Agents that Reason Logically by Chris Horn Jiansui Yang Xiaojing Wu.
Logical Agents Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Fall 2005.
Class Project Due at end of finals week Essentially anything you want, so long as its AI related and I approve Any programming language you want In pairs.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 9 Jim Martin.
Computing & Information Sciences Kansas State University Lecture 11 of 42 CIS 530 / 730 Artificial Intelligence Lecture 11 of 42 William H. Hsu Department.
Knowledge Representation & Reasoning (Part 1) Propositional Logic chapter 6 Dr Souham Meshoul CAP492.
Knowledge Representation I (Propositional Logic) CSE 473.
Knowledge in intelligent systems So far, we’ve used relatively specialized, naïve agents. How can we build agents that incorporate knowledge and a memory?
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 8 Jim Martin.
Oregon State University – CS430 Intro to AI (c) 2003 Thomas G. Dietterich and Devika Subramanian1 Reasoning/Inference  Given a set of facts/beliefs/rules/evidence.
Methods of Proof Chapter 7, second half.
Knoweldge Representation & Reasoning
Knowledge Representation & Reasoning (Part 1) Propositional Logic chapter 5 Dr Souham Meshoul CAP492.
Logical Agents Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2005.
Logical Agents Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2008.
Represent the following sentences in first-order logic, using a consistent vocabulary
Agents that Reason Logically Logical agents have knowledge base, from which they draw conclusions TELL: provide new facts to agent ASK: decide on appropriate.
Propositional Logic Agenda: Other forms of inference in propositional logic Basics of First Order Logic (FOL) Vision Final Homework now posted on web site.
Inference in First-Order logic Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes Jan 19, 2012.
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Logical Agents Logic Propositional Logic Summary
Logical Agents Chapter 7. Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic Equivalence,
Class Project Due at end of finals week Essentially anything you want, so long as its AI related and I approve Any programming language you want In pairs.
Logic in AI CSE 573. © Daniel S. Weld 2 Logistics Monday? Reading Ch 8 Ch 9 thru p 278 Section 10.3 Projects Due 11/10 Teams and project plan due by this.
Computing & Information Sciences Kansas State University Wednesday, 20 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 12 of 42 Wednesday, 20 September.
First-Order Logic Introduction Syntax and Semantics Using First-Order Logic Summary.
Artificial Intelligence: Introduction Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 13 of 41 Monday, 20 September.
Computing & Information Sciences Kansas State University Lecture 13 of 42 CIS 530 / 730 Artificial Intelligence Lecture 13 of 42 William H. Hsu Department.
지식표현 Agent that reason logically
CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes Jan 17, 2012.
Logical Agents Chapter 7. Knowledge bases Knowledge base (KB): set of sentences in a formal language Inference: deriving new sentences from the KB. E.g.:
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
1 Logical Agents Chapter 7. 2 A simple knowledge-based agent The agent must be able to: –Represent states, actions, etc. –Incorporate new percepts –Update.
For Friday Read chapter 8 Homework: –Chapter 7, exercise 1.
9/30/98 Prof. Richard Fikes Inference In First Order Logic Computer Science Department Stanford University CS222 Fall 1998.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes Jan 24, 2012.
CS6133 Software Specification and Verification
1 The Wumpus Game StenchBreeze Stench Gold Breeze StenchBreeze Start  Breeze.
Artificial Intelligence 7. Making Deductive Inferences Course V231 Department of Computing Imperial College, London Jeremy Gow.
For Wednesday Read chapter 9, sections 1-3 Homework: –Chapter 7, exercises 8 and 9.
Propositional Logic Predicate Logic
For Friday Read chapter 8 Homework: –Chapter 7, exercises 2 and 10 Program 1, Milestone 2 due.
First-Order Logic Reading: C. 8 and C. 9 Pente specifications handed back at end of class.
Dr. Shazzad Hosain Department of EECS North South Universtiy Lecture 04 – Part B Propositional Logic.
Computing & Information Sciences Kansas State University Lecture 12 of 42 CIS 530 / 730 Artificial Intelligence Lecture 12 of 42 William H. Hsu Department.
1 UNIT-3 KNOWLEDGE REPRESENTATION. 2 Agents that reason logically(Logical agents) A Knowledge based Agent The Wumpus world environment Representation,
Logical Agents ECE457 Applied Artificial Intelligence Spring 2008 Lecture #6.
Logical Agents Chapter 7 Part I. 2 Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic.
Logic and Reasoning 1 Sentences and the Real World  syntax  describes the principles for constructing and combining sentences  e.g. BNF grammar for.
1 Knowledge Representation Logic and Inference Propositional Logic Vumpus World Knowledge Representation Logic and Inference Propositional Logic Vumpus.
Artificial Intelligence Logical Agents Chapter 7.
Computing & Information Sciences Kansas State University Monday, 18 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 11 of 42 Monday, 18 September.
ECE457 Applied Artificial Intelligence Fall 2007 Lecture #6
Introduction to Knowledge-bases
Learning and Knowledge Acquisition
Logic Use mathematical deduction to derive new knowledge.
Artificial Intelligence
Logical Agents Chapter 7 How do we reason about reasonable decisions
Knowledge Representation I (Propositional Logic)
CMSC 471 Fall 2011 Class #10 Tuesday, October 4 Knowledge-Based Agents
Presentation transcript:

Knowledge Based Systems: Logic and Deduction Department of Computer Science & Engineering Indian Institute of Technology Kharagpur

CSE, IIT Kharagpur2 Knowledge and Reasoning Representation, Reasoning and Logic Propositional Logic First-Order Logic Inference in first-order logic –Generalized Modus Ponens –Forward and backward chaining –Resolution Logical Reasoning Systems

CSE, IIT Kharagpur3 The Wumpus World Environment Adjacent refers to left, right, top, and bottom (not diagonal) Stench:In squares containing and adjacent to wumpus Breeze:In squares adjacent to a pit There can be one wumpus, one gold, and many pits. Agent starts from the bottom-left square of a grid. The agent dies if it enters a square containing a pit or the wumpus The agent can shoot the wumpus along a straight line The agent has only one arrow

CSE, IIT Kharagpur4 Logic A formal system for describing states of affairs, consisting of: –The syntax of the language, which describes how to make sentences, and –The semantics of the language, which describes the relation between the sentences and the states of affairs A proof theory – a set of rules for deducing the entailments of a set of sentences Improper definition of logic, or an incorrect proof theory can result in absurd reasoning

CSE, IIT Kharagpur5 Types of Logics LanguageWhat existsBelief of agent Propositional LogicFactsTrue/False/Unknown First-Order LogicFacts, Objects, RelationsTrue/False/Unknown Temporal LogicFacts, Objects, Relations, Times True/False/Unknown Probability TheoryFactsDegree of belief 0..1 Fuzzy LogicDegree of truthDegree of belief 0..1

CSE, IIT Kharagpur6 Propositional Logic Given a set of atomic propositions AP Sentence  Atom | ComplexSentence Atom  True | False | AP ComplexSentence  ( Sentence ) | Sentence Connective Sentence |  Sentence Connective  |  |  | 

CSE, IIT Kharagpur7 Inference Rules Modus Ponens or Implication Elimination: Unit Resolution: Resolution: or …. and several other rules

CSE, IIT Kharagpur8 Automated Reasoning Deducing the position of the wumpus Another example – If the unicorn is mythical, then it is immortal, but if it is not mythical, then it is a mortal mammal. If the unicorn is either immortal or a mammal, then it is horned. The unicorn is magical if it is horned Can we prove that the unicorn is mythical? Magical? Horned? In general, the inference problem is NP-complete (Cook’s Theorem) If we restrict ourselves to Horn sentences, then repeated use of Modus Ponens gives us a polytime procedure. Horn sentences are of the form: P 1  P 2  …  P n  Q

CSE, IIT Kharagpur9 First-order Logic Sentence  AtomicSentence | Sentence Connective Sentence | Quantifier Variable, … Sentence |  Sentence | (Sentence) AtomicSentence  Predicate(Term, …)| Term = Term Term  Function(Term, …)| Constant| Variable Connective   |  |  |  Quantifier   |  Constant  A | 5 | Kolkata | … Variable  a | x | s | … Predicate  Before | HasColor | Raining | … Function  Mother | Cosine | Headoflist | …

CSE, IIT Kharagpur10 Examples Other examples: –Not all students take both History and Biology –Only one student failed History –Only one student failed both History and Biology –The best score in History is better than the best score in Biology –No person likes a professor unless the professor is smart –Politicians can fool some of the people all the time, and they can fool all the people some of the time, but they cant fool all the people all the time Russel’s Paradox: –There is a single barber in town. Those and only those who do not shave themselves are shaved by the barber. Who shaves the barber?