CS 416 Artificial Intelligence

Slides:



Advertisements
Similar presentations
Inference Rules Universal Instantiation Existential Generalization
Advertisements

UIUC CS 497: Section EA Lecture #2 Reasoning in Artificial Intelligence Professor: Eyal Amir Spring Semester 2004.
Artificial Intelligence
Methods of Proof Chapter 7, second half.. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound)
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.
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.
Resolution Theorem Proving
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.
Logic.
Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus.
Proof methods Proof methods divide into (roughly) two kinds: –Application of inference rules Legitimate (sound) generation of new sentences from old Proof.
Logic in general Logics are formal languages for representing information such that conclusions can be drawn Syntax defines the sentences in the language.
Logical Agents Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Fall 2005.
ITCS 3153 Artificial Intelligence Lecture 11 Logical Agents Chapter 7 Lecture 11 Logical Agents Chapter 7.
Methods of Proof Chapter 7, second half.
Knoweldge Representation & Reasoning
Artificial Intelligence
Logical Agents Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2005.
Rutgers CS440, Fall 2003 Propositional Logic Reading: Ch. 7, AIMA 2 nd Ed. (skip )
Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus.
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.
February 20, 2006AI: Chapter 7: Logical Agents1 Artificial Intelligence Chapter 7: Logical Agents Michael Scherger Department of Computer Science Kent.
CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes Jan 19, 2012.
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.
Logical Agents Chapter 7. Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic Equivalence,
An Introduction to Artificial Intelligence – CE Chapter 7- Logical Agents Ramin Halavati
S P Vimal, Department of CSIS, BITS, Pilani
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.
LECTURE LECTURE Propositional Logic Syntax 1 Source: MIT OpenCourseWare.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
1 Logical Inference Algorithms CS 171/271 (Chapter 7, continued) Some text and images in these slides were drawn from Russel & Norvig’s published material.
CS6133 Software Specification and Verification
1 The Wumpus Game StenchBreeze Stench Gold Breeze StenchBreeze Start  Breeze.
© Copyright 2008 STI INNSBRUCK Intelligent Systems Propositional Logic.
Dr. Shazzad Hosain Department of EECS North South Universtiy Lecture 04 – Part B Propositional Logic.
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.
Proof Methods for Propositional Logic CIS 391 – Intro to Artificial Intelligence.
Logical Agents Chapter 7. Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic Equivalence,
CS666 AI P. T. Chung Logic Logical Agents Chapter 7.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
ECE457 Applied Artificial Intelligence Fall 2007 Lecture #6
Notes 7: Knowledge Representation, The Propositional Calculus
EA C461 Artificial Intelligence
Announcements No office hours today!
Knowledge Representation and Reasoning
EA C461 – Artificial Intelligence Logical Agent
Resolution in the Propositional Calculus
ARTIFICIAL INTELLIGENCE
Logical Inference: Through Proof to Truth
Logical Agents Chapter 7.
EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS
Logical Agents Chapter 7 Selected and slightly modified slides from
Logical Agents Reading: Russell’s Chapter 7
Artificial Intelligence: Logic agents
CSE 4705 Artificial Intelligence
Artificial Intelligence
Biointelligence Lab School of Computer Sci. & Eng.
Artificial Intelligence: Agents and Propositional Logic.
Back to “Serious” Topics…
CPS 570: Artificial Intelligence Logic
Biointelligence Lab School of Computer Sci. & Eng.
CS 416 Artificial Intelligence
Methods of Proof Chapter 7, second half.
Propositional Logic: Methods of Proof (Part II)
Artificial Intelligence Propositional Logic
Presentation transcript:

CS 416 Artificial Intelligence Lecture 11 Logical Agents Chapter 7

Midterm Exam Midterm will be on Thursday, March 13th It will cover material up until Feb 27th

Reasoning w/ propositional logic Remember what we’ve developed so far Logical sentences And, or, not, implies (entailment), iff (equivalence) Syntax vs. semantics Truth tables Satisfiability, proof by contradiction

Logical Equivalences Know these equivalences

Reasoning w/ propositional logic Inference Rules Modus Ponens: Whenever sentences of form a => b and a are given the sentence b can be inferred R1: Green => Martian R2: Green Inferred: Martian

Reasoning w/ propositional logic Inference Rules And-Elimination Any of conjuncts can be inferred R1: Martian ^ Green Inferred: Martian Inferrred: Green Use truth tables if you want to confirm inference rules

Example of a proof P? P? ~P ~B B P? P?

Example of a proof P? ~P ~P ~B B ~P P?

Constructing a proof Proving is like searching Find sequence of logical inference rules that lead to desired result Note the explosion of propositions Good proof methods ignore the countless irrelevant propositions

Monotonicity of knowledge base Knowledge base can only get larger Adding new sentences to knowledge base can only make it get larger If (KB entails a) ((KB ^ b) entails a) This is important when constructing proofs A logical conclusion drawn at one point cannot be invalidated by a subsequent entailment

How many inferences? Previous example relied on application of inference rules to generate new sentences When have you drawn enough inferences to prove something? Too many make search process take longer Too few halt logical progression and make proof process incomplete

Resolution Unit Resolution Inference Rule If m and li are complementary literals

Resolution Inference Rule Also works with clauses But make sure each literal appears only once

Resolution and completeness Any complete search algorithm, applying only the resolution rule, can derive any conclusion entailed by any knowledge base in propositional logic More specifically, refutation completeness Able to confirm or refute any sentence Unable to enumerate all true sentences

What about “and” clauses? Resolution only applies to “or” clauses Every sentence of propositional logic can be transformed to a logically equivalent conjunction of disjunctions of literals Conjunctive Normal Form (CNF) A sentence expressed as conjunction of disjunction of literals k-CNF: exactly k literals per clause

CNF

An algorithm for resolution We wish to prove KB entails a Must show (KB ^ ~a) is unsatisfiable No possible way for KB to entail (not a) Proof by contradiction

An algorithm for resolution KB ^ ~a is put in CNF Each pair with complementary literals is resolved to produce new clause which is added to KB (if novel) Cease if no new clauses to add (~a is not entailed) Cease if resolution rule derives empty clause (~a is entailed)

Example of resolution Proof that there is not a pit in P1,2: ~P1,2 KB ^ P1,2 leads to empty clause Therefore ~P1,2 is true

Formal Algorithm

Horn Clauses Horn Clause Disjunction of literals with at most one is positive (~a V ~b V ~c V d) (~a V b V c V ~d) Not a Horn Clause

Horn Clauses Can be written as a special implication (~a V ~b V c)  (a ^ b) => c (~a V ~b V c) == (~(a ^ b) V c) … de Morgan (~(a ^ b) V c) == ((a ^ b) => c … implication elimination

Horn Clauses Permit straightforward inference determination Forward chaining Backward chaining

Horn Clauses Permit determination of entailment in linear time (in order of knowledge base size)

Forward Chaining

Forward Chaining Properties Data Driven Sound Complete All entailed atomic sentence will be derived Data Driven Start with what we know Derive new info until we discover what we want

Backward Chaining Start with what you want to know, a query (q) Look for implications that conclude q Goal-Directed Reasoning