Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.

Slides:



Advertisements
Similar presentations
Artificial Intelligence 8. The Resolution Method
Advertisements

Resolution Proof System for First Order Logic
First-Order Logic.
Inference Rules Universal Instantiation Existential Generalization
Standard Logical Equivalences
Inference in first-order logic Chapter 9. Outline Reducing first-order inference to propositional inference Unification Generalized Modus Ponens Forward.
UIUC CS 497: Section EA Lecture #2 Reasoning in Artificial Intelligence Professor: Eyal Amir Spring Semester 2004.
Automated Reasoning Systems For first order Predicate Logic.
Artificial Intelligence
First Order Logic Resolution
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.
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.
Methods of Proof Chapter 7, second half.. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound)
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 20
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.
Agents That Reason Logically Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2004.
Methods of Proof Chapter 7, Part II. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound) generation.
Propositional Logic Russell and Norvig: Chapter 6 Chapter 7, Sections 7.1—7.4 Slides adapted from: robotics.stanford.edu/~latombe/cs121/2003/home.htm.
Logic.
Computability and Complexity 9-1 Computability and Complexity Andrei Bulatov Logic Reminder (Cnt’d)
Formal Logic Proof Methods Direct Proof / Natural Deduction Conditional Proof (Implication Introduction) Reductio ad Absurdum Resolution Refutation.
Proof methods Proof methods divide into (roughly) two kinds: –Application of inference rules Legitimate (sound) generation of new sentences from old Proof.
Inference in FOL Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 9 Spring 2004.
Inference and Resolution for Problem Solving
Knowledge Representation I (Propositional Logic) CSE 473.
1 AI=Knowledge Representation & Reasoning zSyntax zSemantics zInference Procedure yAlgorithm ySound? yComplete? yComplexity.
Methods of Proof Chapter 7, second half.
Knoweldge Representation & Reasoning
Chapter 3 Propositional Logic
Artificial Intelligence
Propositional Logic Reasoning correctly computationally Chapter 7 or 8.
Proof Systems KB |- Q iff there is a sequence of wffs D1,..., Dn such that Dn is Q and for each Di in the sequence: a) either Di is in KB or b) Di can.
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.
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.
Pattern-directed inference systems
Logical Agents Logic Propositional Logic Summary
1 Knowledge Representation. 2 Definitions Knowledge Base Knowledge Base A set of representations of facts about the world. A set of representations of.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
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.
An Introduction to Artificial Intelligence – CE Chapter 7- Logical Agents Ramin Halavati
S P Vimal, Department of CSIS, BITS, Pilani
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
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 Chapter 7. 2 A simple knowledge-based agent The agent must be able to: –Represent states, actions, etc. –Incorporate new percepts –Update.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 12 Friday, 17 September.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
CS6133 Software Specification and Verification
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 15 of 41 Friday 24 September.
1 The Wumpus Game StenchBreeze Stench Gold Breeze StenchBreeze Start  Breeze.
For Wednesday Read chapter 9, sections 1-3 Homework: –Chapter 7, exercises 8 and 9.
Artificial Intelligence “Introduction to Formal Logic” Jennifer J. Burg Department of Mathematics and Computer Science.
© Copyright 2008 STI INNSBRUCK Intelligent Systems Propositional Logic.
Reasoning with Propositional Logic automated processing of a simple knowledge base CD.
© Daniel S. Weld Topics Agency Problem Spaces SearchKnowledge Representation Planning PerceptionNLPMulti-agentRobotics Uncertainty MDPs Supervised.
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 Propositional Logic Limits The expressive power of propositional logic is limited. The assumption is that everything can be expressed by simple facts.
Logical Agents Chapter 7. Outline Knowledge-based agents Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem.
Propositional Logic or how to reason correctly Chapter 8 (new edition) Chapter 7 (old edition)
Logical Agents Chapter 7 Part I. 2 Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic.
Proof Methods for Propositional Logic CIS 391 – Intro to Artificial Intelligence.
Knowledge Repn. & Reasoning Lecture #9: Propositional Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2005.
Propositional Logic. Assignment Write any five rules each from two games which you like by using propositional logic notations.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
Logical Inference: Through Proof to Truth
CS 416 Artificial Intelligence
Knowledge Representation I (Propositional Logic)
Methods of Proof Chapter 7, second half.
Presentation transcript:

Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10

Some KR Languages Propositional Logic Predicate Calculus Frame Systems Rules with Certainty Factors Bayesian Belief Networks Influence Diagrams Semantic Networks Concept Description Languages Nonmonotonic Logic

In Fact… All popular knowledge representation systems are equivalent to (or a subset of) –Logic (Propositional Logic or Predicate Calculus) –Probability Theory

4 Propositional Logic Syntax –Atomic sentences: P, Q, … –Connectives: , , ,  Semantics – Truth Tables Inference –Modus Ponens –Resolution –DPLL –GSAT –Resolution Complexity

5 Notation Sound  implies  = Complete  = implies       = Inference Entailment Implication (syntactic symbol) }

Propositional Logic: SEMANTICS Multiple interpretations –Assignment to each variable either T or F –Assignment of T or F to each connective via defns P T T F F Q P T T F F Q P T T F F Q P T F P  Q P  Q P  Q  P Note: (P  Q) equivalent to  P  Q T FF F F TT T T TT F T F

7 FOL Definitions Constants: a,b, dog33. –Name a specific object. Variables: X, Y. –Refer to an object without naming it. Functions: father-of –Mapping from objects to objects. Terms: father-of(father-of(dog33)) –Refer to objects Atomic Sentences: in(father-of(dog33), food6) –Can be true or false –Correspond to propositional symbols P, Q

Terminology Literal u or  u, where u is a variable Clause disjunction of literals Formula, , conjunction of clauses  (u) take  and set all instances of u true; simplify –e.g.  =((P,  Q)(R, Q)) then  (Q)=P Pure literal var appearing in a formula either as a negative literal or a positive literal (but not both) Unit clause clause with only one literal

9 Definitions valid = tautology = always true satisfiable = sometimes true unsatisfiable = never true 1) smoke  smoke 2) smoke  fire 3) (smoke  fire)  (  smoke   fire) 4)smoke  fire   fire  smoke  smoke valid  smoke  fire satisfiable  (  smoke  fire)  (  smoke   fire) valid (smoke   fire)   smoke   fire valid

Inference Backward Chaining (Goal Reduction) –Based on rule of modus ponens –If know P 1 ...  P n and know (P 1 ...  P n )=> Q –Then can conclude Q Resolution (Proof by Contradiction) GSAT

Student-Prof Example Some students like all professors. No student likes any tough professors. Thus, no professor is tough.

Unification and Substitution Substitution –a set of pairs s={x=a, y=b} –Instance of a substitution F=p(x,y,f(a)), Fs=applying s on F={p(a,b,f(a)} Replacement is simultaneous t={x=a,y=x} –Composition of Substitutions st=? Unifier: a substitution that makes two expressions the same –Most General Unifier: MGU is a smallest unifier; –Example: unify p(f(x), h(y), a) and p(f(x), z, a)

Normal Forms (Chapter 9, page 281) CNF = Conjunctive Normal Form Conjunction of disjuncts (each disjunct = “clause”) (P  Q)  R (P  Q)  R  (P  Q)  R  P   Q  R (  P   Q)  R (  P  R)  (  Q  R)

Removing Existential Skolem Constants (page 281) Skolem Functions (page 282)

Conversion to Normal Form Remove implications Move negation inwards Standardize variables Move quantifiers left Skolemization (every body has a heart) Distribute and, or’s Clausal Form

Resolution A  B  C,  C  D   E A  B  D   E Refutation Complete –Given an unsatisfiable KB in CNF, –Resolution will eventually deduce the empty clause Proof by Contradiction –To show   = Q –Show   {  Q} is unsatisfiable!

Resolution Refutation Procedure Page 281 of text –Negating theorem –Normal Form Conversion –Derive an empty clause –Answer Extraction

Student-Prof Example FOL sentences Conclusion clause: negate Use refutation to prove.

Finding Answers Father’s father is a grandfarther John is Ken’s father Larry is Joh’s father Question: who is Ken’s grandfather?

Application: Logic Programming Prolog (page 304) –Sequence of sentences –Horn clauses –Queries –Negation as failure –Distinct names = distinct objects –Built-in predicates for math, etc. –Example: membership function

Logic Programming (page 304) Defining membership –member(X, [X|L]). –member(X, [Y|L]) :- member(X,L). How does Logic Programming Systems find answers?

Semantic Networks (page 317) Graphically represent the following –Birds are animals –Mammals are animals –Penguins are birds –Cats are mammals –Birds fly –Penguins don’t fly –Animals are alive –Animals don’t fly –Birds have two legs –Mammals have 4 legs Semantic Networks have –Properties –Subset links –Member links

GSAT Procedure GSAT (CNF formula: , max-restarts, max-climbs) For i := 1 to max-restarts do A := randomly generated truth assignment for j := 1 to max-climbs do if A satisfies  then return yes A := random choice of one of best successors to A ;; successor means only 1 (var,val) changes from A ;; best means making the most clauses true [1992]