CS560 Knowledge Discovery and Management. CS560 - Lecture 3 1

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

Reasoning. Inference. Knowledge Representation 4/6/2018. User

CS 1571 Introduction to AI Lecture 14. First-order logic. CS 1571 Intro to AI. Midterm

Propositional Logic: Review

Propositional Logic: Logical Agents (Part I)

Logic: Propositional Logic (Part I)

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

CS 730/730W/830: Intro AI

Logic & Logic Agents Chapter 7 (& background)

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

Propositional Logic: Logical Agents (Part I)

Inference in first-order logic

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

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

A Little Deductive Logic

A Little Deductive Logic

First Order Logic: Syntax and Semantics

Predicate Calculus. Lila Kari. University of Waterloo. Predicate Calculus CS245, Logic and Computation 1 / 59

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

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

First Order Logic Semantics (3A) Young W. Lim 8/9/17

Learning Goals of CS245 Logic and Computation

Ling 130 Notes: Predicate Logic and Natural Deduction

Logic & Logic Agents Chapter 7 (& Some background)

First Order Logic Semantics (3A) Young W. Lim 9/17/17

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

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

Logic. Propositional Logic: Syntax

cse541 LOGIC FOR COMPUTER SCIENCE

CS 380: ARTIFICIAL INTELLIGENCE PREDICATE LOGICS. Santiago Ontañón

Logic. Propositional Logic: Syntax. Wffs

! Predicates! Variables! Quantifiers. ! Universal Quantifier! Existential Quantifier. ! Negating Quantifiers. ! De Morgan s Laws for Quantifiers

Logical Agents. Outline

CS 771 Artificial Intelligence. Propositional Logic

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

First Order Logic (FOL)

WUCT121. Discrete Mathematics. Logic. Tutorial Exercises

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

Propositional Logic: Syntax

Ling 130 Notes: Syntax and Semantics of Propositional Logic

First-Order Logic Chap8 1. Pros and Cons of Prop. Logic

LIN1032 Formal Foundations for Linguistics

Nathan Sturtevant FOL

J Propositional logic is declarative J Propositional logic is compositional: q meaning of B 1,1 P 1,2 is derived from meaning of B 1,1 and of P 1,2

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.

Propositional Logic Not Enough

CS206 Lecture 21. Modal Logic. Plan for Lecture 21. Possible World Semantics

Propositional logic (revision) & semantic entailment. p. 1/34

CS 730/830: Intro AI. 1 handout: slides. Wheeler Ruml (UNH) Lecture 11, CS / 15. Propositional Logic. First-Order Logic

Predicate Logic Thursday, January 17, 2013 Chittu Tripathy Lecture 04

AI Principles, Semester 2, Week 2, Lecture 5 Propositional Logic and Predicate Logic

Predicate in English. Predicates and Quantifiers. Predicate in Logic. Propositional Functions: Prelude. Propositional Function

Reading: AIMA Chapter 9 (Inference in FOL)

Comp487/587 - Boolean Formulas

Logic. (Propositional Logic)

Knowledge Based Systems: Logic and Deduction

Title: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5)

CSCI-495 Artificial Intelligence. Lecture 17

Logical Structures in Natural Language: First order Logic (FoL)

Propositional Languages

Negations of Quantifiers

Logical Structures in Natural Language: Propositional Logic II (Truth Tables and Reasoning

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

Artificial Intelligence Knowledge Representation I

Knowledge Representation. Propositional logic.

Nathan Sturtevant FOL

Why Knowledge Representation?

Mathematical Logic Part Three

Reasoning Under Uncertainty: Introduction to Probability

Mat 243 Exam 1 Review

Chapter 8 First Order Logic

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

Introduction to first-order logic:

It is not the case that ϕ. p = It is not the case that it is snowing = It is not. r = It is not the case that Mary will go to the party =

Lecture 4. Predicate logic

Artificial Intelligence. Propositional logic

Knowledge Representation. Propositional logic

CS 380: ARTIFICIAL INTELLIGENCE LOGICAL AGENTS. Santiago Ontañón

Propositional Logic: Semantics and an Example

First-Order Logic. Propositional logic. First Order logic. First Order Logic. Logics in General. Syntax of FOL. Examples of things we can say:

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

Logic and Modelling. Introduction to Predicate Logic. Jörg Endrullis. VU University Amsterdam

CS 2740 Knowledge Representation. Lecture 4. Propositional logic. CS 2740 Knowledge Representation. Administration

Lecture 7: Logical Agents and Propositional Logic

6.825 Techniques in Artificial Intelligence. Logic Miscellanea. Completeness and Incompleteness Equality Paramodulation

Logic. Stephen G. Ware CSCI 4525 / 5525

Propositional and First-Order Logic

Propositional Logic: Part II - Syntax & Proofs 0-0

VO Grundzüge der Artificial Intelligence SS Hans Tompits Institut für Informationssysteme Arbeitsbereich Wissensbasierte Systeme

CHAPTER 2 INTRODUCTION TO CLASSICAL PROPOSITIONAL LOGIC

3/29/2017. Logic. Propositions and logical operations. Main concepts: propositions truth values propositional variables logical operations

Chapter 2: Introduction to Propositional Logic

A Logic Primer. Stavros Tripakis University of California, Berkeley

ITS336 Lecture 6 First-Order Logic

Review: Potential stumbling blocks

Logic III. Introduction to Artificial Intelligence CSE 150

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

22c:145 Artificial Intelligence

Propositional Logic Logical Implication (4A) Young W. Lim 4/21/17

Transcription:

CS560 Knowledge Discovery and Management Yugi Lee STB #560D (816) 235-5932 leeyu@umkc.edu www.sce.umkc.edu/~leeyu CS560 - Lecture 3 1 Logic A logic allows the axiomatization of the domain information, and the drawing of conclusions from that information. Syntax defines the sentences in the language Semantics define the meaning of sentences; i.e., define truth of a sentence in a world Logical inference = reasoning CS560 - Lecture 3 2

Types of logic Logics are characterized by what they commit to as primitives Ontological commitment: what exists - facts? objects? time? beliefs? Epistemological commitment: what states of knowledge? CS560 - Lecture 3 3 Entailment: Logical Implication Knowledge base KB entails sentence α if and only if α is true in all worlds where KB is true E.g., the KB containing UMKC won and Kansas City won entails Either UMKC won or Kansas City won CS560 - Lecture 3 4

CS560 - Lecture 3 5 CS560 - Lecture 3 6

Models Logicians typically think in terms of models, which are formally structured worlds with respect to which truth can be evaluated We say m is a model of a sentence α if α is true in m M(α) is the set of all models of α Then KB ㅑ α if and only if M(KB) M(α) E.g. KB = UMKC won and Kansas City won α = Kansas City won or α = UMKC won or α = either Kansas City or UMKC won CS560 - Lecture 3 7 CS560 - Lecture 3 8

Propositional Logics: Basic Ideas Statements: The elementary building blocks of propositional logic are atomic statements that cannot be decomposed any further: propositions. E.g., The block is red It is raining and logical connectives and, or, not, by which we can build propositional formulas. CS560 - Lecture 3 9 Propositional Logics: Syntax CS560 - Lecture 3 10

Precedence CS560 - Lecture 3 11 Propositional Logics: Semantic Atomic statements can be true T or false F. The truth value of formulas is determined by the truth values of the atoms (truth value assignment or interpretation). Example: (a b) c If a and b are wrong and c is true, then the formula is not true. Then logical entailment could be defined as follows: φ is implied by Ω, if φ is true in all states of the world, in which Ω is true. CS560 - Lecture 3 12

CS560 - Lecture 3 13 Propositional inference CS560 - Lecture 3 14

Satisability and Validity An interpretation I is a model of φ: I ㅑ φ CS560 - Lecture 3 15 CS560 - Lecture 3 16

First-Order Logic Propositional logic only deals with facts, statements that may or may not be true of the world, e.g. It is raining., one cannot have variables that stand for books or tables. In first-order logic variables refer to things in the world and, furthermore, you can quantify over them to talk about all of them or some of them without having to name them explicitly. CS560 - Lecture 3 17 First-Order Logic Motivation Statements that cannot be made in propositional logic but can be made in FOL. When you paint a block with green paint, it becomes green. In propositional logic, one would need a statement about every single block, one cannot make the general statement about all blocks. When you sterilize a jar, all the bacteria are dead. In FOL, we can talk about all the bacteria without naming them explicitly. A person is allowed access to this Web site if they have been formally authorized or they are known to someone who has access. CS560 - Lecture 3 18

FOL syntax Term Constant symbols: Fred, Japan, Bacterium39 Variables: x, y, a Function symbol applied to one or more terms: F(x), F(F(x)), Mother-of(John) logic symbols For all There exists Implies Not Or And CS560 - Lecture 3 19 FOL syntax Sentence A predicate symbol applied to zero or more terms: on(a,b), sister(jane, Joan), sister(mother-of(john), Jane), its-raining() t1=t2 For v a variable and φ a sentence, then v.φ and v. φ are sentences. Closure under sentential operators: v ( ) CS560 - Lecture 3 20

FOL Interpretations Interpretation I U set of objects; domain of discourse; universe Maps constant symbols to elements of U Maps predicate symbols to relations on U (binary relation is a set of pairs) Maps function symbols to functions on U CS560 - Lecture 3 21 FOL Interpretations Basic FOL Semantics Denotation of terms (naming) I(Fred) if Fred is constant, then given I(x) undefined I(F(term)) I(F)(I(term)) CS560 - Lecture 3 22

Semantics of Quantifiers CS560 - Lecture 3 23 FOL Example Domain CS560 - Lecture 3 24

FOL Example Domain CS560 - Lecture 3 25 FOL Example CS560 - Lecture 3 26

Exercise Problems - FOL(1) CS560 - Lecture 3 27 Exercise Problems FOL (2) Cats are mammals Jane is a tall surveyor A nephew is a sibling's son A maternal grandmother Everybody loves somebody CS560 - Lecture 3 28

Exercise Problems FOL (3) Nobody loves Jane Everybody has a father Everybody has a father and a mother Whoever has a father, has a mother CS560 - Lecture 3 29