Künstliche Intelligenz

Similar documents
Individuals and Relations

Contents Chapters 2 & 3

Chapters 2&3: A Representation and Reasoning System

Propositions. c D. Poole and A. Mackworth 2010 Artificial Intelligence, Lecture 5.1, Page 1

Logic: Top-down proof procedure and Datalog

Reasoning Under Uncertainty: Introduction to Probability

Propositional Logic: Semantics and an Example

Logic: Intro & Propositional Definite Clause Logic

Reasoning Under Uncertainty: Introduction to Probability

Reasoning under Uncertainty: Intro to Probability

COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning

Logic: Bottom-up & Top-down proof procedures

Propositional Definite Clause Logic: Syntax, Semantics and Bottom-up Proofs

Propositions. c D. Poole and A. Mackworth 2008 Artificial Intelligence, Lecture 5.1, Page 1

First Order Logic (FOL)

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system):

Logic. Propositional Logic: Syntax. Wffs

Logic: Propositional Logic (Part I)

How to determine if a statement is true or false. Fuzzy logic deal with statements that are somewhat vague, such as: this paint is grey.

Logic. Introduction to Artificial Intelligence CS/ECE 348 Lecture 11 September 27, 2001

First Order Logic: Syntax and Semantics

KB Agents and Propositional Logic

Logical Agents. Knowledge based agents. Knowledge based agents. Knowledge based agents. The Wumpus World. Knowledge Bases 10/20/14

Description Logics. Foundations of Propositional Logic. franconi. Enrico Franconi

Propositional Logic: Review

Propositional Logic: Syntax

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Announcements. Project 1 underway... Second midterm Friday. discuss ideas with TAs check out wiki

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Propositional Logic: Bottom-Up Proofs

Why Knowledge Representation?

Examples: P: it is not the case that P. P Q: P or Q P Q: P implies Q (if P then Q) Typical formula:

Introduction to Intelligent Systems

Chapter 5: Propositions and Inference. c D. Poole, A. Mackworth 2010, W. Menzel 2015 Artificial Intelligence, Chapter 5, Page 1

CS560 Knowledge Discovery and Management. CS560 - Lecture 3 1

Why Knowledge Representation? Example. Example. CSE 3401: Intro to AI & LP Knowledge Representation & First-Order Logic

THE LANGUAGE OF FIRST-ORDER LOGIC (FOL) Sec2 Sec1(1-16)

Logic. Propositional Logic: Syntax

CS 730/730W/830: Intro AI

CSCI-495 Artificial Intelligence. Lecture 17

Logical Agents. September 14, 2004

Artificial Intelligence Chapter 7: Logical Agents

Introduction to Intelligent Systems

Outline. Logical Agents. Logical Reasoning. Knowledge Representation. Logical reasoning Propositional Logic Wumpus World Inference

Intelligent Agents. First Order Logic. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University. last change: 19.

CS1021. Why logic? Logic about inference or argument. Start from assumptions or axioms. Make deductions according to rules of reasoning.

Foundation of proofs. Jim Hefferon.

CS 331: Artificial Intelligence Propositional Logic I. Knowledge-based Agents

Knowledge-based Agents. CS 331: Artificial Intelligence Propositional Logic I. Knowledge-based Agents. Outline. Knowledge-based Agents

Knowledge based Agents

Modal Logics. Most applications of modal logic require a refined version of basic modal logic.

Predicate Calculus - Syntax

Logik für Informatiker Logic for computer scientists

Logic in AI Chapter 7. Mausam (Based on slides of Dan Weld, Stuart Russell, Subbarao Kambhampati, Dieter Fox, Henry Kautz )

Intelligent Agents. Pınar Yolum Utrecht University

Overview. Knowledge-Based Agents. Introduction. COMP219: Artificial Intelligence. Lecture 19: Logic for KR

INF5390 Kunstig intelligens. Logical Agents. Roar Fjellheim

Chapter 4: Classical Propositional Semantics

1 First-order logic. 1 Syntax of first-order logic. 2 Semantics of first-order logic. 3 First-order logic queries. 2 First-order query evaluation

Outline. Logical Agents. Logical Reasoning. Knowledge Representation. Logical reasoning Propositional Logic Wumpus World Inference

Outline. Formale Methoden der Informatik First-Order Logic for Forgetters. Why PL1? Why PL1? Cont d. Motivation

Logic: Resolution Proofs; Datalog

Knowledge Representation. Propositional logic.

A conceptualization is a map from the problem domain into the representation. A conceptualization specifies:

Logical Agent & Propositional Logic

INTRODUCTION TO LOGIC 1 Sets, Relations, and Arguments. Why logic? Arguments

THE LOGIC OF QUANTIFIED STATEMENTS. Predicates and Quantified Statements I. Predicates and Quantified Statements I CHAPTER 3 SECTION 3.

MAI0203 Lecture 7: Inference and Predicate Calculus

Chapter 2: Introduction to Propositional Logic

Artificial Intelligence Knowledge Representation I

Tecniche di Verifica. Introduction to Propositional Logic

Predicate Logic: Sematics Part 1

KR: First Order Logic - Intro

Agents that reason logically

Introduction to Artificial Intelligence. Logical Agents

CSC242: Intro to AI. Lecture 12. Tuesday, February 26, 13

CSC384: Intro to Artificial Intelligence Knowledge Representation II. Required Readings: 9.1, 9.2, and 9.5 Announcements:

Knowledge Representation. Propositional logic

Price: $25 (incl. T-Shirt, morning tea and lunch) Visit:

7. Propositional Logic. Wolfram Burgard and Bernhard Nebel

Definite Logic Programs

AI Programming CS S-09 Knowledge Representation

CS589 Principles of DB Systems Fall 2008 Lecture 4e: Logic (Model-theoretic view of a DB) Lois Delcambre

Kecerdasan Buatan M. Ali Fauzi

Lecture Overview [ ] Introduction to Artificial Intelligence COMP 3501 / COMP Lecture 6. Motivation. Logical Agents

Knowledge representation DATA INFORMATION KNOWLEDGE WISDOM. Figure Relation ship between data, information knowledge and wisdom.

cis32-ai lecture # 18 mon-3-apr-2006

Foundations of Artificial Intelligence

From Constructibility and Absoluteness to Computability and Domain Independence

Artificial Intelligence. Propositional logic

Foundations of Artificial Intelligence

RN, Chapter 8 Predicate Calculus 1

First Order Logic (FOL)

Database Theory VU , SS Complexity of Query Evaluation. Reinhard Pichler

Logical Inference. Artificial Intelligence. Topic 12. Reading: Russell and Norvig, Chapter 7, Section 5

a. ~p : if p is T, then ~p is F, and vice versa

Logical Agent & Propositional Logic

Restricted truth predicates in first-order logic

Theory of Computer Science

Introduction to Metalogic

Transcription:

Künstliche Intelligenz 4. Wissensrepräsentation Dr. Claudia Schon schon@uni-koblenz.de Institute for Web Science and Technologies 1

Except for some small changes these slides are transparencies from Poole, Mackworth and Goebel, Computational Intelligence: A Logical Approach, Oxford University Press, 1998.

Representation and Reasoning System A Representation and Reasoning System (RRS) is made up of: formal language: specifies the legal sentences semantics: specifies the meaning of the symbols reasoning theory or proof procedure: nondeterministic specification of how an answer can be produced.

Implementation of an RRS An implementation of an RRS consists of language parser: maps sentences of the language into data structures. reasoning procedure: implementation of reasoning theory + search strategy. Note: the semantics aren t reflected in the implementation!

Using an RRS 1. Begin with a task domain. 2. Distinguish those things you want to talk about (the ontology). 3. Choose symbols in the computer to denote objects and relations. 4. Tell the system knowledge about the domain. 5. Ask the system questions.

Role of Semantics in an RRS in(alan,r123). part_of(r123,cs_building). in(x,y) part_of(z,y) in(x,z). alan r123 r023 cs_building in(, ) part_of(, ) person( ) in(alan,cs_building)

Simplifying Assumptions of Initial RRS An agent s knowledge can be usefully described in terms of individuals and relations among individuals. An agent s knowledge base consists of definite and positive statements. The environment is static. There are only a finite number of individuals of interest in the domain. Each individual can be given a unique name. Datalog

Syntax of Datalog variable starts with upper-case letter. constant starts with lower-case letter or is a sequence of digits (numeral). predicate symbol starts with lower-case letter. term is either a variable or a constant. atomic symbol (atom) is of the form p or p(t 1,...,t n ) where p is a predicate symbol and t i are terms.

Syntax of Datalog (cont) definite clause is either an atomic symbol (a fact) or of the form: }{{} a b 1 b }{{ m } head body where a and b i are atomic symbols. query is of the form?b 1 b m. knowledge base is a set of definite clauses.

Example Knowledge Base in(alan, R) teaches(alan, cs322) in(cs322, R). grandfather(william, X) father(william, Y) parent(y, X). slithy(toves) mimsy borogroves outgrabe(mome, Raths).

Semantics: General Idea A semantics specifies the meaning of sentences in the language. An interpretation specifies: what objects (individuals) are in the world the correspondence between symbols in the computer and objects & relations in world constants denote individuals predicate symbols denote relations

Formal Semantics An interpretation is a triple I = hd,, i, where D, the domain, is a nonempty set. Elements of D are individuals. is a mapping that assigns to each constant an element of D. Constant c denotes individual (c). is a mapping that assigns to each n-ary predicate symbol a relation: a function from D n into {TRUE, FALSE}.

Example Interpretation Constants: phone, pencil, telephone. Predicate Symbol: noisy (unary), left_of (binary). D ={,, }. (phone) =, (pencil) =, (telephone) =. (noisy): h i FALSE h i TRUE h i FALSE (left_of ): h, i FALSE h, i TRUE h, i TRUE h, i FALSE h, i FALSE h, i TRUE h, i FALSE h, i FALSE h, i FALSE

Important points to note The domain D can contain real objects. (e.g., a person, a room, a course). D can t necessarily be stored in a computer. (p) specifies whether the relation denoted by the n-ary predicate symbol p is true or false for each n-tuple of individuals. If predicate symbol p has no arguments, then (p) is either TRUE or FALSE.

Truth in an interpretation A constant c denotes in I the individual (c). Ground (variable-free) atom p(t 1,...,t n ) is true in interpretation I if (p)(t1 0,...,t0 n ) = TRUE, where t i denotes t 0 i in interpretation I and false in interpretation I if (p)(t 0 1,...,t0 n ) = FALSE. Ground clause h b 1 ^...^ b m is false in interpretation I if h is false in I and each b i is true in I, and is true in interpretation I otherwise.

Example Truths In the interpretation given before: noisy(phone) noisy(telephone) noisy(pencil) left_of (phone, pencil) left_of (phone, telephone) noisy(pencil) left_of (phone, telephone) noisy(pencil) left_of (phone, pencil) noisy(phone) noisy(telephone) ^ noisy(pencil) true true false true false true false true

Models and logical consequences A knowledge base, KB, is true in interpretation I if and only if every clause in KB is true in I. A model of a set of clauses is an interpretation in which all the clauses are true. If KB is a set of clauses and g is a conjunction of atoms, g is a logical consequence of KB, written KB = g, if g is true in every model of KB. That is, KB = g if there is no interpretation in which KB is true and g is false.

Simple Example KB = 8 >< >: p q. q. r s. (p) (q) (r) (s) I 1 TRUE TRUE TRUE TRUE is a model of KB I 2 FALSE FALSE FALSE FALSE not a model of KB I 3 TRUE TRUE FALSE FALSE is a model of KB I 4 TRUE TRUE TRUE FALSE is a model of KB I 5 TRUE TRUE FALSE TRUE not a model of KB KB = p, KB = q, KB 6 = r, KB 6 = s

Aufgabe: Sei die folgende KB gegeben: KB = 8 < : p. s q. p r. Geben Sie alle Modelle der Wissensbasis KB an. Untersuchen Sie für jedes in KB vorkommende Atom, ob es eine logische Konsequenz aus der Wissensbasis ist.

User s view of Semantics 1. Choose a task domain: intended interpretation. 2. Associate constants with individuals you want to name. 3. For each relation you want to represent, associate a predicate symbol in the language. 4. Tell the system clauses that are true in the intended interpretation: axiomatizing the domain. 5. Ask questions about the intended interpretation. 6. If KB = g, then g must be true in the intended interpretation.

Computer s view of semantics The computer doesn t have access to the intended interpretation. All it knows is the knowledge base. The computer can determine if a formula is a logical consequence of KB. If KB = g then g must be true in the intended interpretation. If KB 6 = g then there is a model of KB in which g is false. This could be the intended interpretation.