Artificial Intelligence Logical Agents Chapter 7.

Slides:



Advertisements
Similar presentations
Logic Use mathematical deduction to derive new knowledge.
Advertisements

Agents That Reason Logically Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2004.
Propositional Logic CMSC 471 Chapter , 7.7 and Chuck Dyer
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.
CS 561, Sessions Knowledge and reasoning – second part Knowledge representation Logic and representation Propositional (Boolean) logic Normal forms.
1 Problem Solving CS 331 Dr M M Awais Representational Methods Formal Methods Propositional Logic Predicate Logic.
CS 460, Sessions Knowledge and reasoning – second part Knowledge representation Logic and representation Propositional (Boolean) logic Normal forms.
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 Representation & Reasoning (Part 1) Propositional Logic chapter 6 Dr Souham Meshoul CAP492.
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?
III KNOWLEDGE AND REASONING
Knoweldge Representation & Reasoning
Knowledge Representation & Reasoning (Part 1) Propositional Logic chapter 5 Dr Souham Meshoul CAP492.
Let remember from the previous lesson what is Knowledge representation
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.
Inference is a process of building a proof of a sentence, or put it differently inference is an implementation of the entailment relation between sentences.
Logical Agents Chapter 7 (based on slides from Stuart Russell and Hwee Tou Ng)
Propositional Logic: Logical Agents (Part I) This lecture topic: Propositional Logic (two lectures) Chapter (this lecture, Part I) Chapter 7.5.
Fall 98 Introduction to Artificial Intelligence LECTURE 7: Knowledge Representation and Logic Motivation Knowledge bases and inferences Logic as a representation.
Pattern-directed inference systems
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,
1 CMSC 471 Fall 2002 Class #10/12–Wednesday, October 2 / Wednesday, October 9.
An Introduction to Artificial Intelligence – CE Chapter 7- Logical Agents Ramin Halavati
지식표현 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.
Knowledge Representation Lecture # 17, 18 & 19. Motivation (1) Up to now, we concentrated on search methods in worlds that can be relatively easily represented.
For Friday Read chapter 8 Homework: –Chapter 7, exercise 1.
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.
11 Artificial Intelligence CS 165A Thursday, October 25, 2007  Knowledge and reasoning (Ch 7) Propositional logic 1.
Dr. Shazzad Hosain Department of EECS North South Universtiy Lecture 04 – Part B Propositional Logic.
9/18/2000copyright Brian Williams1 Propositional Logic Brian C. Williams J/6.834J October 10, 2001.
First-Order Logic Semantics Reading: Chapter 8, , FOL Syntax and Semantics read: FOL Knowledge Engineering read: FOL.
Propositional Logic Rather than jumping right into FOL, we begin with propositional logic A logic involves: §Language (with a syntax) §Semantics §Proof.
Logical Agents Chapter 7. Outline Knowledge-based agents Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem.
1 UNIT-3 KNOWLEDGE REPRESENTATION. 2 Agents that reason logically(Logical agents) A Knowledge based Agent The Wumpus world environment Representation,
Some Thoughts to Consider 5 Take a look at some of the sophisticated toys being offered in stores, in catalogs, or in Sunday newspaper ads. Which ones.
Logical Agents Chapter 7 Part I. 2 Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic.
1 Knowledge Representation Logic and Inference Propositional Logic Vumpus World Knowledge Representation Logic and Inference Propositional Logic Vumpus.
March 3, 2016Introduction to Artificial Intelligence Lecture 12: Knowledge Representation & Reasoning I 1 Back to “Serious” Topics… Knowledge Representation.
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
Knowledge Representation and Reasoning
Knowledge and reasoning – second part
Knowledge Representation
EA C461 – Artificial Intelligence Logical Agent
Logical Agents Chapter 7.
Logic Use mathematical deduction to derive new knowledge.
Knowledge and reasoning – second part
Back to “Serious” Topics…
Logical Agents Chapter 7.
Chapter 7. Propositional and Predicate Logic
Knowledge Representation I (Propositional Logic)
Propositional Logic CMSC 471 Chapter , 7.7 and Chuck Dyer
Logical Agents Prof. Dr. Widodo Budiharto 2018
Presentation transcript:

Artificial Intelligence Logical Agents Chapter 7

Outline of this Chapter Knowledge-Based Agents Logic in general Inference Type of logic Propositional (Boolean) logic Validity & satisfiability Inference rules for Propositional logic An Agent for the Wumpus World

Knowledge-Based Agents The central component of Intelligent agents is knowledge about the world to reach good decisions. A Knowledge-Based Agent is composed of: –Inference mechanism. –Knowledge Base (KB) Knowledge Base (KB) is a set of representations of facts about the world known as Sentences.( here sentence is used as a technical term, it is related but is not identical to the sentence of English or other language ) The sentences are expressed in a language called knowledge Representation Language (KRL). KB agent can operate by storing sentences about the world in its KB, using the inference mechanism to infer new sentences & using them to decide what action to take.

A simple knowledge-based agent Agent gains additional knowledge about the world while interacting with its environment. The agent operates as follow:operates 1.It TELLs the KB what it perceives. 2.It ASKs the KB what action it should perform. 3.It performs the chosen action.

Architecture of a KB Agent Agents can be viewed at 3 levels: At the Knowledge level: the most abstract-- describes agent by saying what it knows. At the Logical level: It describes how the agent knows. At the Implementation level: it describes how knowledge is implemented. i.e., data structures in KB and algorithms that manipulate them Knowledge level Logical level Implementation level What it knows How it knows How K is implemented

Logic in general Logic is a formal language for representing information such that conclusions can be drawn It consists of two parts, a language and a method of reasoning. The objective of KRL(knowledge Representation Language) is to express knowledge in a computer adaptable manner, so that agents can perform well. A knowledge representation language is defined by two aspects: Syntax: Specifies the symbols in the language and how they can be combined to form sentences. Semantic: defines the meaning of sentences; Example: –x ≥ y is a sentence The semantic of the language says: –x ≥ y is false if y is a bigger number than x, and true otherwise If a language has well defined syntax and semantics, then it is called a logic

The Connection between Sentences & Facts Facts are part of the world– their representation must be encoded to physically store within an agent. Cannot put the world inside a computer -  all reasoning must operate on representation of facts, rather than on facts themselves. Semantics maps sentences in logic into facts in the world. The property of one fact following from some other facts is mirrored by the property of one sentence being entailed by another.

Entailment Entailment means that one thing follows from another: E.g., x+y = 4 entails 4 = x+y In mathematical notation: KB ╞ α Knowledge base KB entails sentence α if and only if α is true in all worlds where KB is true In other words, every world where KB is true is also a world where α is true. E.g., the KB containing “A won” and “B won” entails“Either A won or B won”. Entailment is a relationship between sentences (i.e., syntax) that is based on semantics.

Inference Inference- A process by which conclusions are reached KB ├ i α = sentence α can be derived from KB by procedure I Logical inference (inferencing or deduction) is the process of generating new sentences based on existing sentences.Logical inference An inference algorithm or process that drives only entailed sentences is called Sound/ truth-preserving. An inferencing process is complete if it can derive all sentences that are entailed (Have as a logical consequence). Notice that if we make wrong statements about our 'world' the inference is likely to be wrong.

Type of Logic Table bellow shows several logics as classified by their Ontological and Epistemological commitments. Ontological commitments defines the entities that a language uses to describe the world Epistemological commitments are the values that a sentence can have according to the experiences of an agent. LanguageOntological commitment (what exists in the world) Epistemological commitment (what an agent believes) Propositional logicFactsTrue/false/unknown First-Order LogicFacts,object,relationsTrue/false/unknown Temporal logicFacts,object,relations, times True/false/unknown ProbabilityFactsDegree of belief 0..1 Fuzzy logicDegree of truthDegree of belief 0..1

Propositional logic(PL): Syntax Propositional/Boolean logic is the simplest logic – illustrates many of the concepts of logic. Sentences in Propositional logic are made of the following symbols: –Constants: TRUE, FALSE –Proposition Symbols: P 1, P 2 etc are sentences –Round brackets: () to wrap sentences, which yields a single sentence, e.g (P 1 Ú P 2 ) –Logical Connectives:  (and),  (or),  (implication),  (equivalence),  (negation). –A sentence can be formed by combining simpler sentences with one of the 5 logical connectives: If S is a sentence,  S is a sentence (negation) If S 1 and S 2 are sentences, S 1  S 2 is a sentence (conjunction: The state of being joined together) If S 1 and S 2 are sentences, S 1  S 2 is a sentence (disjunction: State of being disconnected) If S 1 and S 2 are sentences, S 1  S 2 is a sentence (implication:- Something that is conditional (entailed or implied) "his resignation had political implications") If S 1 and S 2 are sentences, S 1  S 2 is a sentence (biconditional – iff means if and only if )

PL Syntax example

Propositional logic: Semantics The semantic of sentences in Propositional Logic is defined by: Interpreting the proposition symbols - they are considered satisfiable ( true in some model ) but not valid sentences (can mean whatever you want), Interpreting the constants- their meaning is fixed: FALSE equals FALSE, and TRUE equals TRUE, and specifying the meanings of the 5 logical connectives (their behaviour is shown in the truth tables ).

Examples of PL sentences A simple language useful for showing key ideas and definitions User defines a set of propositional symbols, like P and Q. User defines the semantics of each of these symbols, e.g.: –P means "It is hot" –Q means "It is humid" –R means "It is raining" (P ^ Q)  R "If it is hot and humid, then it is raining“ Q  P "If it is humid, then it is hot“ Q "It is humid."

Validity & Satisfiability There are three types of sentences: Valid: Characteristic of sentences that are true under all possible interpretations of the world (in all models), also called tautologies.Valid: e.g. A  A, A  A, (A  (A  B))  B Satisfiable: Characteristic of sentences that are true under some interpretations of the worldSatisfiable: e.g., A  B, C Un-satisfiable: Characteristic of sentences that are false under all interpretation of the world e.g., A  AUn-satisfiable:

Semantic example

Logical equivalence Two sentences are logically equivalent, iff true in same models: α ≡ ß iff α╞ β and β╞ α You can use these equivalences to modify sentences.

Inference Rules for Propositional Logic Modus-Ponens or Implication elimination (From an implication and the premise of the implication, you can infer the conclusion) And-Elimination (From a conjunction, you can infer any of the conjuncts ) Or-Introduction (From a sentence, you can infer its disjunction) And-Introduction (From a list of sentences, you can infer their conjunction)             n       n  i       n Whenever any sentences of the form  &  are given   can be inferred The inferencing rules that can be used to derive new sentences in propositional logic are described below:

Inference Rules for Propositional Logic Double-Negation Elimination (from doubly - sentence, you can infer + sentence) Unit Resolution (From disjunction, if one is false, then you can infer the other one is true ) Resolution (most difficult Because  cannot be both true and false)           