Artificial Intelligence Knowledge Representation I

Similar documents
Artificial Intelligence Knowledge Representation I

First Order Logic Implication (4A) Young W. Lim 4/6/17

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

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Learning Goals of CS245 Logic and Computation

Propositional Logic: Review

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

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

15414/614 Optional Lecture 1: Propositional Logic

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

First Order Logic: Syntax and Semantics

Advanced Topics in LP and FP

Propositional Logic Arguments (5A) Young W. Lim 10/11/16

Logic: Propositional Logic (Part I)

Deductive Systems. Lecture - 3

Introduction to Sets and Logic (MATH 1190)

Description Logics. Deduction in Propositional Logic. franconi. Enrico Franconi

Propositional Logic Arguments (5A) Young W. Lim 11/30/16

Propositional Logic Arguments (5A) Young W. Lim 11/8/16

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

Natural Deduction. Formal Methods in Verification of Computer Systems Jeremy Johnson

Propositional Logic: Logical Agents (Part I)

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

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

2. The Logic of Compound Statements Summary. Aaron Tan August 2017

PHIL12A Section answers, 28 Feb 2011

Propositional Logic Language

Chapter 4: Classical Propositional Semantics

Agents that reason logically

CMPSCI 601: Tarski s Truth Definition Lecture 15. where

7. Propositional Logic. Wolfram Burgard and Bernhard Nebel

Logic Background (1A) Young W. Lim 12/14/15

Natural Deduction for Propositional Logic

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

Foundations of Artificial Intelligence

Foundations of Artificial Intelligence

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

UNIT-I: Propositional Logic

MAI0203 Lecture 7: Inference and Predicate Calculus


INF5390 Kunstig intelligens. Logical Agents. Roar Fjellheim

Computation and Logic Definitions

Propositional and Predicate Logic

Math.3336: Discrete Mathematics. Propositional Equivalences

Artificial Intelligence. Propositional Logic. Copyright 2011 Dieter Fensel and Florian Fischer

Applied Logic. Lecture 1 - Propositional logic. Marcin Szczuka. Institute of Informatics, The University of Warsaw

Propositional and Predicate Logic

Logic & Logic Agents Chapter 7 (& background)

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

1. Propositional Calculus

Propositional Logic: Logical Agents (Part I)

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

INF3170 Logikk Spring Homework #8 For Friday, March 18

Introduction to Artificial Intelligence. Logical Agents

Computational Logic. Davide Martinenghi. Spring Free University of Bozen-Bolzano. Computational Logic Davide Martinenghi (1/30)

Logic: Propositional Logic Truth Tables

COMP219: Artificial Intelligence. Lecture 20: Propositional Reasoning

Completeness for FOL

1 Propositional Logic

Intelligent Systems. Propositional Logic. Dieter Fensel and Dumitru Roman. Copyright 2008 STI INNSBRUCK

Propositional Logic Arguments (5A) Young W. Lim 2/23/17

Logic and Inferences

Propositional Logic (2A) Young W. Lim 11/8/15

Marie Duží

Logic and Proofs. (A brief summary)

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

CSC Discrete Math I, Spring Propositional Logic

Logic & Logic Agents Chapter 7 (& Some background)

1.1 Language and Logic

Section 1.2: Propositional Logic

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

Semantics and Pragmatics of NLP

Propositional Reasoning

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

Mat 243 Exam 1 Review

Propositional Logic Review

Chapter Summary. Propositional Logic. Predicate Logic. Proofs. The Language of Propositions (1.1) Applications (1.2) Logical Equivalences (1.

Language of Propositional Logic

PL: Truth Trees. Handout Truth Trees: The Setup

Chapter 11: Automated Proof Systems

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

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

The Logic of Compound Statements cont.

First Order Logic (1A) Young W. Lim 11/18/13

Discrete Mathematical Structures. Chapter 1 The Foundation: Logic

EXERCISE 10 SOLUTIONS

First-Order Logic. 1 Syntax. Domain of Discourse. FO Vocabulary. Terms

02 Propositional Logic

Review. Propositional Logic. Propositions atomic and compound. Operators: negation, and, or, xor, implies, biconditional.

Logic. (Propositional Logic)

6c Lecture 14: May 14, 2014

PROPOSITIONAL CALCULUS

Propositional Logic. Logic. Propositional Logic Syntax. Propositional Logic

PUZZLE. You meet A, B, and C in the land of knights and knaves. A says Either B and I are both knights or we are both knaves.

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

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

Inference in Propositional Logic

CS 730/730W/830: Intro AI

Completeness for FOL

Transcription:

rtificial Intelligence Knowledge Representation I Lecture 6 Issues in Knowledge Representation 1. How to represent knowledge 2. How to manipulate/process knowledge (2) Can be rephrased as: how to make decisions based on some knowledge. 2

Why logic in knowledge representation? Logical notation can be used to express info/knowledge. Logical notation is useful in reasoning about knowledge. 3 Why logic in knowledge representation? 1. Logical notation for expressing info/knowledge ltavista search: Mary ND lamb the output is: {p WebPages contain(p,mary) & contain(p,lamb)} = {p WebPages contain(p,mary))} {p WebPages contain(p,lamp)} 4

Why logic in knowledge representation? 2. Logical notation is useful in reasoning (about knowledge. eg1. John is a human if John is a human then John is mortal therefore John is mortal. in logic: P P P Q P Q P P Q therefore Q Q Q. 5 Why logic in knowledge representation? 2. Logical notation is useful in reasoning (about knowledge) eg1. John is a human every human are mortals therefore John is mortal. In logic: human(john) h(human(h) mortal(h)) therefore: human(john) mortal(john) by elim. rule therefore: mortal(john) by elim. rule 6

Logical Symbols and Quantifiers Logical Symbols ~ NOT ND OR IMPLIES Quantifers FOR LL THERE EXISTS 7 Objective of this lecture Learn about logical symbols (and their formal meaning). Learn about the rules in using the symbols. Learn about expressing real life problems in terms of logical symbols. and probably more. 8

How to use logical notation for representing knowledge particular logic, called: Propositional Calculus. Studying a logic --- studying a language Defn: language of PC, call it L PC is defined by the following rules: 1. Variables p, q, r,p 2,q 2,r 2,... are in L PC. We call the above variables: undeterminate statements. 2. If a statement is in L PC and a statement B is in L PC, then the statement (&B) is in L PC.Similarly for the symbols:,. 3. If a statement is in L PC, then the statement ~ is in L PC. Note: L PC is a set. It is a set of statements which can be generated from the above rules. 9 Propositional Logic Propositions make declarations. Propositions can be denoted by atoms: symbols as, B, C, etc. Formulae can be built with atoms, parentheses, and logical operators. Interpretation of formulae - assignment of a truth value to every atom occurring in the formula. 10

11 Truth tables for the five operators 12

Formulae interpretation 13 Tautology and inconsistency formula is tautology if and only if it is true under all its interpretations. formula is inconsistency if and only if it is false under all its interpretations. formula is consistent if and only if it is not inconsistent - true under at least one interpretation. Tautology is known as a valid formula; inconsistency as unsatisfiable formula; consistency as satisfiable formula. 14

15 16

Rules of inference 17 Ways of reasoning in L PC 1. Natural deduction 2. Resolution deduction 3. Truth table (model theory) 18

Ways of reasoning in L PC (1) Natural Deduction Elimination Rules Introduction Rules B B B [] [B] : : B C C C : : : : C ~C B B. B : :. ~ Β B [] : B. B B B : : ~. 19 Ways of reasoning in L PC (2) Resolution deduction Idea: Similar to Natural Deduction Based on Proof by Contradiction ~ : :. 20

Rules in Resolution Deduction B B B ~ B ~( B) ~ Β ~( B) ~ Β Closed Branch / B / / ~B B ~ B ------------- ~ B B ------------- B ~( B) ~ Β ------------- ~ ~B ~( B) ~ Β Α Β 21 22

23 Example of resolution deduction 24

Ways of reasoning in L PC (3) Truth Tables sentence is valid means: 1 occurs in all the rows of s Truth Table equivalently means ll possible interpretation of the sentence gives out 1. Given an interpretation I and a sentence S, how do we interpret S with respect to I? ns: n interpretation: function from undeterminate variables to {0, 1} eg. { p 0, q 0, r 1} 25 Example - prove that ~( V B) eqv. (~ & ~B) 26

Relationships between (1) Natural Deduction, (2) Resolution Deduction, and (3) Truth Table (Model Theory) Methods They have the same power, ie. iff iff S provable in Natural Deduction S provable in Resolution Deduction S is valid Provable sound complete Valid 27 End of Lecture 6 Good Day.