Individuals and Relations

Similar documents
Künstliche Intelligenz

Contents Chapters 2 & 3

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

Reasoning Under Uncertainty: Introduction to Probability

Chapters 2&3: A Representation and Reasoning System

Reasoning Under Uncertainty: Introduction to Probability

Propositional Logic: Semantics and an Example

Logic: Top-down proof procedure and Datalog

Logic: Intro & Propositional Definite Clause Logic

Announcements. Assignment 5 due today Assignment 6 (smaller than others) available sometime today Midterm: 27 February.

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

Logic: Bottom-up & Top-down proof procedures

Reasoning under Uncertainty: Intro to Probability

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

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

COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning

Artificial Intelligence Chapter 7: Logical Agents

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Relational Probabilistic Models

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

CS 730/730W/830: Intro AI

Foundation of proofs. Jim Hefferon.

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

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

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

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

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

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

First Order Logic: Syntax and Semantics

CSCI-495 Artificial Intelligence. Lecture 17

Foundations of Artificial Intelligence

Foundations of Artificial Intelligence

Why Knowledge Representation?

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

Learning Objectives. c D. Poole and A. Mackworth 2010 Artificial Intelligence, Lecture 7.2, Page 1

First Order Logic (FOL)

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

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

Propositional Logic: Syntax

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

Logic. Propositional Logic: Syntax. Wffs

7. Propositional Logic. Wolfram Burgard and Bernhard Nebel

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:

an efficient procedure for the decision problem. We illustrate this phenomenon for the Satisfiability problem.

Logic. Propositional Logic: Syntax

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

Introduction to Intelligent Systems

Logical Agent & Propositional Logic

MAI0203 Lecture 7: Inference and Predicate Calculus

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

Logic: Propositional Logic (Part I)

Intelligent Agents. Pınar Yolum Utrecht University

EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS

Introduction to Artificial Intelligence Propositional Logic & SAT Solving. UIUC CS 440 / ECE 448 Professor: Eyal Amir Spring Semester 2010

Propositional Logic: Bottom-Up Proofs

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

CS 730/830: Intro AI. 3 handouts: slides, asst 6, asst 7. Wheeler Ruml (UNH) Lecture 12, CS / 16. Reasoning.

Introduction to Intelligent Systems

Logic & Logic Agents Chapter 7 (& background)

Knowledge based Agents

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

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

Agents that reason logically

Predicate Logic: Sematics Part 1

Logical Agents (I) Instructor: Tsung-Che Chiang

Logic Background (1A) Young W. Lim 5/14/18

Logic and Proofs. (A brief summary)

Artificial Intelligence Knowledge Representation I

Lecture 2: Syntax. January 24, 2018

CS 4700: Foundations of Artificial Intelligence

Motivation. CS389L: Automated Logical Reasoning. Lecture 10: Overview of First-Order Theories. Signature and Axioms of First-Order Theory

Mathematical Foundations of Logic and Functional Programming

Introduction to Artificial Intelligence. Logical Agents

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

Propositional Logic: Review

CHAPTER 4 CLASSICAL PROPOSITIONAL SEMANTICS

Foundations of Artificial Intelligence

Logical Agents. September 14, 2004

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

Logical Agent & Propositional Logic

Overview, cont. Overview, cont. Logistics. Optional Reference #1. Optional Reference #2. Workload and Grading

KB Agents and Propositional Logic

02 Propositional Logic

CSCI 5582 Artificial Intelligence. Today 9/28. Knowledge Representation. Lecture 9

Learning Goals of CS245 Logic and Computation

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

Kecerdasan Buatan M. Ali Fauzi

Inf2D 06: Logical Agents: Knowledge Bases and the Wumpus World

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

CS 188: Artificial Intelligence Spring 2007

cse541 LOGIC FOR COMPUTER SCIENCE

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.

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

Lecture 2. Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits. Reading (Epp s textbook)

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

Logical Agents. Chapter 7

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

Tecniche di Verifica. Introduction to Propositional Logic

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

Transcription:

Individuals and Relations It is useful to view the world as consisting of individuals (objects, things) and relations among individuals. Often features are made from relations among individuals and functions of individuals. Reasoning in terms of individuals and relationships can be simpler than reasoning in terms of features, if we can express general knowledge that covers all individuals. Sometimes we may know some individual exists, but not which one. Sometimes there are infinitely many individuals we want to refer to (e.g., set of all integers, or the set of all stacks of blocks). c D. Poole and A. Mackworth 2016 Artificial Intelligence, Lecture 13.1, Page 1

Role of Semantics in Automated Reasoning in(kim,r123). part_of(r123,cs_building). in(x,y) part_of(z,y) in(x,z). kim r123 r023 cs_building in(, ) part_of(, ) person( ) in(kim,cs_building) c D. Poole and A. Mackworth 2016 Artificial Intelligence, Lecture 13.1, Page 2

Features of Automated Reasoning Users can have meanings for symbols in their head. The computer doesn t need to know these meanings to derive logical consequence. Users can interpret any answers according to their meaning. c D. Poole and A. Mackworth 2016 Artificial Intelligence, Lecture 13.1, Page 3

Decision-theoretic Planning flat or modular or hierarchical explicit states or features or individuals and relations static or finite stage or indefinite stage or infinite stage fully observable or partially observable deterministic or stochastic dynamics goals or complex preferences single agent or multiple agents knowledge is given or knowledge is learned perfect rationality or bounded rationality c D. Poole and A. Mackworth 2016 Artificial Intelligence, Lecture 13.1, Page 4

Representational Assumptions of Datalog 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 c D. Poole and A. Mackworth 2016 Artificial Intelligence, Lecture 13.1, Page 5

Syntax of Datalog A variable starts with upper-case letter. A constant starts with lower-case letter or is a sequence of digits (numeral). A predicate symbol starts with lower-case letter. A term is either a variable or a constant. An 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. c D. Poole and A. Mackworth 2016 Artificial Intelligence, Lecture 13.1, Page 6

Syntax of Datalog (cont) A 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. c D. Poole and A. Mackworth 2016 Artificial Intelligence, Lecture 13.1, Page 7

Example Knowledge Base in(kim, R) teaches(kim, cs322) in(cs322, R). grandfather(william, X ) father(william, Y ) parent(y, X ). slithy(toves) mimsy borogroves outgrabe(mome, Raths). c D. Poole and A. Mackworth 2016 Artificial Intelligence, Lecture 13.1, Page 8

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 c D. Poole and A. Mackworth 2016 Artificial Intelligence, Lecture 13.1, Page 9

Formal Semantics An interpretation is a triple I = D, φ, π, 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}. c D. Poole and A. Mackworth 2016 Artificial Intelligence, Lecture 13.1, Page 10

Example Interpretation Constants: phone, pencil, telephone. Predicate Symbol: noisy (unary), left of (binary). D = {,, }. φ(phone) =, φ(pencil) =, φ(telephone) =. π(noisy): FALSE TRUE FALSE π(left of ):, FALSE, TRUE, TRUE, FALSE, FALSE, TRUE, FALSE, FALSE, FALSE c D. Poole and A. Mackworth 2016 Artificial Intelligence, Lecture 13.1, Page 11

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. c D. Poole and A. Mackworth 2016 Artificial Intelligence, Lecture 13.1, Page 12

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)( φ(t 1 ),..., φ(t n ) ) = TRUE in interpretation I and false otherwise. 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. c D. Poole and A. Mackworth 2016 Artificial Intelligence, Lecture 13.1, Page 13

Example Truths In the interpretation given before, which of following are true? noisy(phone) noisy(telephone) noisy(pencil) left of (phone, pencil) left of (phone, telephone) noisy(phone) left of (phone, telephone) noisy(pencil) left of (phone, telephone) noisy(pencil) left of (phone, pencil) noisy(phone) noisy(telephone) noisy(pencil) c D. Poole and A. Mackworth 2016 Artificial Intelligence, Lecture 13.1, Page 14

Example Truths In the interpretation given before, which of following are true? noisy(phone) true noisy(telephone) true noisy(pencil) false left of (phone, pencil) true left of (phone, telephone) false noisy(phone) left of (phone, telephone) true noisy(pencil) left of (phone, telephone) true noisy(pencil) left of (phone, pencil) false noisy(phone) noisy(telephone) noisy(pencil) true c D. Poole and A. Mackworth 2016 Artificial Intelligence, Lecture 13.1, Page 15

Models and logical consequences (recall) 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. c D. Poole and A. Mackworth 2016 Artificial Intelligence, Lecture 13.1, Page 16

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. c D. Poole and A. Mackworth 2016 Artificial Intelligence, Lecture 13.1, Page 17

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 = g then there is a model of KB in which g is false. This could be the intended interpretation. c D. Poole and A. Mackworth 2016 Artificial Intelligence, Lecture 13.1, Page 18

Role of Semantics in an RRS in(kim,r123). part_of(r123,cs_building). in(x,y) part_of(z,y) in(x,z). kim r123 r023 cs_building in(, ) part_of(, ) person( ) in(kim,cs_building) c D. Poole and A. Mackworth 2016 Artificial Intelligence, Lecture 13.1, Page 19