ITCS 3153 Artificial Intelligence Lecture 10 Logical Agents Chapter 7 Lecture 10 Logical Agents Chapter 7.

Slides:



Advertisements
Similar presentations
Agents That Reason Logically Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2004.
Advertisements

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.
3/30/00 Agents that Reason Logically by Chris Horn Jiansui Yang Xiaojing Wu.
Artificial Intelligence Knowledge-based Agents Russell and Norvig, Ch. 6, 7.
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.
CS 561, Sessions Knowledge and reasoning – second part Knowledge representation Logic and representation Propositional (Boolean) logic Normal forms.
CSCI 5582 Fall 2006 CSCI 5582 Artificial Intelligence Lecture 9 Jim Martin.
Logical Agents Chapter 7. Why Do We Need Logic? Problem-solving agents were very inflexible: hard code every possible state. Search is almost always exponential.
Logical Agents Chapter 7. Why Do We Need Logic? Problem-solving agents were very inflexible: hard code every possible state. Search is almost always exponential.
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?
Knoweldge Representation & Reasoning
CS 4700: Foundations of Artificial Intelligence
Logical Agents Chapter 7 Feb 26, Knowledge and Reasoning Knowledge of action outcome enables problem solving –a reflex agent can only find way from.
Logical Agents Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2005.
Propositional Logic: Logical Agents (Part I) This lecture topic: Propositional Logic (two lectures) Chapter (this lecture, Part I) Chapter 7.5.
Propositional Logic Reasoning correctly computationally Chapter 7 or 8.
Logical Agents Chapter 7 (based on slides from Stuart Russell and Hwee Tou Ng)
February 20, 2006AI: Chapter 7: Logical Agents1 Artificial Intelligence Chapter 7: Logical Agents Michael Scherger Department of Computer Science Kent.
CS 416 Artificial Intelligence Lecture 9 Logical Agents Chapter 7 Lecture 9 Logical Agents Chapter 7.
CSC 423 ARTIFICIAL INTELLIGENCE LOGICAL AGENTS. 2 Introduction This chapter introduces knowledge-based agents. The concepts that we discuss—the representation.
Propositional Logic: Logical Agents (Part I) This lecture topic: Propositional Logic (two lectures) Chapter (this lecture, Part I) Chapter 7.5.
Knowledge Representation Use of logic. Artificial agents need Knowledge and reasoning power Can combine GK with current percepts Build up KB incrementally.
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
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,
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
CS 416 Artificial Intelligence Lecture 9 Logical Agents Chapter 7 Lecture 9 Logical Agents Chapter 7.
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.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
CS6133 Software Specification and Verification
© Copyright 2008 STI INNSBRUCK Intelligent Systems Propositional Logic.
Dr. Shazzad Hosain Department of EECS North South Universtiy Lecture 04 – Part B Propositional Logic.
1 Logical Agents Chapter 7. 2 Logical Agents What are we talking about, “logical?” –Aren’t search-based chess programs logical Yes, but knowledge is used.
Propositional Logic Rather than jumping right into FOL, we begin with propositional logic A logic involves: §Language (with a syntax) §Semantics §Proof.
ARTIFICIAL INTELLIGENCE Lecture 2 Propositional Calculus.
Logical Agents Chapter 7. Outline Knowledge-based agents Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem.
Logical Agents Chapter 7. Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic Equivalence,
Logical Agents Chapter 7. Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic Equivalence,
Logical Agents Chapter 7 Part I. 2 Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic.
March 3, 2016Introduction to Artificial Intelligence Lecture 12: Knowledge Representation & Reasoning I 1 Back to “Serious” Topics… Knowledge Representation.
Artificial Intelligence Logical Agents Chapter 7.
Logical Agents Chapter 7. Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic Equivalence,
Logical Agents. Inference : Example 1 How many variables? 3 variables A,B,C How many models? 2 3 = 8 models.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
Propositional Logic: Logical Agents (Part I)
Chapter 7. Propositional and Predicate Logic
CS 4700: Foundations of Artificial Intelligence
Knowledge and reasoning – second part
ARTIFICIAL INTELLIGENCE
EA C461 – Artificial Intelligence Logical Agent
Logical Agents Chapter 7 Selected and slightly modified slides from
Logical Agents Chapter 7.
Artificial Intelligence
Artificial Intelligence: Logic agents
CS 416 Artificial Intelligence
Knowledge and reasoning – second part
Back to “Serious” Topics…
Logical Agents Chapter 7.
Chapter 7. Propositional and Predicate Logic
CS 416 Artificial Intelligence
Knowledge Representation I (Propositional Logic)
Logical Agents Prof. Dr. Widodo Budiharto 2018
Presentation transcript:

ITCS 3153 Artificial Intelligence Lecture 10 Logical Agents Chapter 7 Lecture 10 Logical Agents Chapter 7

Logical Agents What are we talking about, “logical?” Aren’t search-based chess programs logicalAren’t search-based chess programs logical –Yes, but knowledge is used in a very specific way  Win the game  Not useful for extracting strategies or understanding other aspects of chess We want to develop more general-purpose knowledge systems that support a variety of logical analysesWe want to develop more general-purpose knowledge systems that support a variety of logical analyses What are we talking about, “logical?” Aren’t search-based chess programs logicalAren’t search-based chess programs logical –Yes, but knowledge is used in a very specific way  Win the game  Not useful for extracting strategies or understanding other aspects of chess We want to develop more general-purpose knowledge systems that support a variety of logical analysesWe want to develop more general-purpose knowledge systems that support a variety of logical analyses

Why study knowledge-based agents Partially observable environments combine available information (percepts) with general knowledge to select actionscombine available information (percepts) with general knowledge to select actions Natural Language Language is too complex and ambiguous. Problem-solving agents are impeded by high branching factor.Language is too complex and ambiguous. Problem-solving agents are impeded by high branching factor.Flexibility Knowledge can be reused for novel tasks. New knowledge can be added to improve future performance.Knowledge can be reused for novel tasks. New knowledge can be added to improve future performance. Partially observable environments combine available information (percepts) with general knowledge to select actionscombine available information (percepts) with general knowledge to select actions Natural Language Language is too complex and ambiguous. Problem-solving agents are impeded by high branching factor.Language is too complex and ambiguous. Problem-solving agents are impeded by high branching factor.Flexibility Knowledge can be reused for novel tasks. New knowledge can be added to improve future performance.Knowledge can be reused for novel tasks. New knowledge can be added to improve future performance.

Components of knowledge-based agent Knowledge Base Store informationStore information –knowledge representation language Add information (Tell)Add information (Tell) Retrieve information (Ask)Retrieve information (Ask) Perform inferencePerform inference –derive new sentences (knowledge) from existing sentences Knowledge Base Store informationStore information –knowledge representation language Add information (Tell)Add information (Tell) Retrieve information (Ask)Retrieve information (Ask) Perform inferencePerform inference –derive new sentences (knowledge) from existing sentences

Knowledge Representation Must be syntactically and semantically correct Syntax the formal specification of how information is storedthe formal specification of how information is stored –a + 2 = c (typical mathematical syntax) –a2y += (not legal syntax) Semantics the meaning of the informationthe meaning of the information –a + 2 = c (c must be 2 more than a) Must be syntactically and semantically correct Syntax the formal specification of how information is storedthe formal specification of how information is stored –a + 2 = c (typical mathematical syntax) –a2y += (not legal syntax) Semantics the meaning of the informationthe meaning of the information –a + 2 = c (c must be 2 more than a)

Logical Reasoning Entailment one sentence follows logically from anotherone sentence follows logically from another –a->b –the sentence a entails the sentence b a->b if and only ifa->b if and only if –every model in which a is true, b is also true Entailment one sentence follows logically from anotherone sentence follows logically from another –a->b –the sentence a entails the sentence b a->b if and only ifa->b if and only if –every model in which a is true, b is also true

Logical inference Entailment permitted logic we inferred new knowledge from entailmentswe inferred new knowledge from entailments Model Checking We enumerated all possibilities to ensure inference was completeWe enumerated all possibilities to ensure inference was complete Entailment permitted logic we inferred new knowledge from entailmentswe inferred new knowledge from entailments Model Checking We enumerated all possibilities to ensure inference was completeWe enumerated all possibilities to ensure inference was complete

Inference Algorithms Sound only entailed sentences are inferredonly entailed sentences are inferred always truealways trueComplete inference algorithm can derive any sentence that is entailedinference algorithm can derive any sentence that is entailed can inference algorithm become caught in infinite loop?can inference algorithm become caught in infinite loop?Sound only entailed sentences are inferredonly entailed sentences are inferred always truealways trueComplete inference algorithm can derive any sentence that is entailedinference algorithm can derive any sentence that is entailed can inference algorithm become caught in infinite loop?can inference algorithm become caught in infinite loop?

Propositional (Boolean) Logic Syntax of allowable sentences atomic sentencesatomic sentences –indivisible syntactic elements –one propositional symbol –Use uppercase letters as representation –True and False are predefined proposition symbols Syntax of allowable sentences atomic sentencesatomic sentences –indivisible syntactic elements –one propositional symbol –Use uppercase letters as representation –True and False are predefined proposition symbols

Complex sentences Formed from symbols using connectives ~ (not): the negation~ (not): the negation ^ (and): the conjunction^ (and): the conjunction V (or): the disjunctionV (or): the disjunction => (implies): the implication=> (implies): the implication  (if and only if): the biconditional  (if and only if): the biconditional Formed from symbols using connectives ~ (not): the negation~ (not): the negation ^ (and): the conjunction^ (and): the conjunction V (or): the disjunctionV (or): the disjunction => (implies): the implication=> (implies): the implication  (if and only if): the biconditional  (if and only if): the biconditional

Backus-Naur Form (BNF)

Propositional (Boolean) Logic Semantics given a particular model (situation), what are the rules that determine the truth of a sentence?given a particular model (situation), what are the rules that determine the truth of a sentence? use a truth table to compute the value of any sentence with respect to a model by recursive evaluationuse a truth table to compute the value of any sentence with respect to a model by recursive evaluationSemantics given a particular model (situation), what are the rules that determine the truth of a sentence?given a particular model (situation), what are the rules that determine the truth of a sentence? use a truth table to compute the value of any sentence with respect to a model by recursive evaluationuse a truth table to compute the value of any sentence with respect to a model by recursive evaluation

Truth table

Concepts related to entailment logical equivalence a and b are logically equivalent if they are true in the same set of models… a  ba and b are logically equivalent if they are true in the same set of models… a  b validity (or tautology) a sentence that is valid in all modelsa sentence that is valid in all models –P V ~P –deduction theorem: a entails b if and only if a implies b satisfiability a sentence that is true in some modela sentence that is true in some model a entails b  (a ^ ~b) is unsatisfiablea entails b  (a ^ ~b) is unsatisfiable logical equivalence a and b are logically equivalent if they are true in the same set of models… a  ba and b are logically equivalent if they are true in the same set of models… a  b validity (or tautology) a sentence that is valid in all modelsa sentence that is valid in all models –P V ~P –deduction theorem: a entails b if and only if a implies b satisfiability a sentence that is true in some modela sentence that is true in some model a entails b  (a ^ ~b) is unsatisfiablea entails b  (a ^ ~b) is unsatisfiable

Something to work on Attributes = {B, C, D, E, F} Dom(B) = {b1, b2} Dom(C) = {c1, c2, c3, c4} Dom(D) = {d1, d2, d3} Dom(E) = {e1, e2, e3, e4, e5} Dom(F) = {f1, f2, f3, f4} Query Language 1) Syntax 2) Semantics