CS.462 Artificial Intelligence SOMCHAI THANGSATHITYANGKUL Lecture 05 : Knowledge Base & First Order Logic.

Slides:



Advertisements
Similar presentations
Some Prolog Prolog is a logic programming language
Advertisements

UIUC CS 497: Section EA Lecture #2 Reasoning in Artificial Intelligence Professor: Eyal Amir Spring Semester 2004.
Intelligent Systems (AI-2) Computer Science cpsc422, Lecture 20
Logic Use mathematical deduction to derive new knowledge.
Resolution Theorem Proving
Logic.
Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus.
Logic in general Logics are formal languages for representing information such that conclusions can be drawn Syntax defines the sentences in the language.
Knoweldge Representation & Reasoning
Inference in First-Order Logic
Introduction to Logic for Artificial Intelligence Lecture 1 Erik Sandewall 2010.
Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus.
I NTRO TO L OGIC Dr Shlomo Hershkop March
CSCI 115 Chapter 2 Logic. CSCI 115 §2.1 Propositions and Logical Operations.
Propositional Resolution Computational LogicLecture 4 Michael Genesereth Spring 2005.
Introduction to Geometric Proof Logical Reasoning and Conditional Statements.
Knowledge Representation Use of logic. Artificial agents need Knowledge and reasoning power Can combine GK with current percepts Build up KB incrementally.
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.
An Introduction to Artificial Intelligence – CE Chapter 7- Logical Agents Ramin Halavati
S P Vimal, Department of CSIS, BITS, Pilani
Propositional Calculus – Methods of Proof Predicate Calculus Math Foundations of Computer Science.
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM]
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
LECTURE LECTURE Propositional Logic Syntax 1 Source: MIT OpenCourseWare.
9/30/98 Prof. Richard Fikes Inference In First Order Logic Computer Science Department Stanford University CS222 Fall 1998.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
1 Logical Inference Algorithms CS 171/271 (Chapter 7, continued) Some text and images in these slides were drawn from Russel & Norvig’s published material.
CS6133 Software Specification and Verification
Of 38 lecture 13: propositional logic – part II. of 38 propositional logic Gentzen system PROP_G design to be simple syntax and vocabulary the same as.
© Copyright 2008 STI INNSBRUCK Intelligent Systems Propositional Logic.
Dr. Shazzad Hosain Department of EECS North South Universtiy Lecture 04 – Part B Propositional Logic.
1 Propositional Logic Limits The expressive power of propositional logic is limited. The assumption is that everything can be expressed by simple facts.
ARTIFICIAL INTELLIGENCE Lecture 2 Propositional Calculus.
Logical Agents Chapter 7. Outline Knowledge-based agents Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem.
Proof Methods for Propositional Logic CIS 391 – Intro to Artificial Intelligence.
The Logic of Conditionals Chapter 8 Language, Proof and Logic.
1 Propositional Proofs 1. Problem 2 Deduction In deduction, the conclusion is true whenever the premises are true.  Premise: p Conclusion: (p ∨ q) 
March 3, 2016Introduction to Artificial Intelligence Lecture 12: Knowledge Representation & Reasoning I 1 Back to “Serious” Topics… Knowledge Representation.
Sound Arguments and Derivations. Topics Sound Arguments Derivations Proofs –Inference rules –Deduction.
CS.462 Artificial Intelligence SOMCHAI THANGSATHITYANGKUL Lecture 04 : Logic.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
ECE457 Applied Artificial Intelligence Fall 2007 Lecture #6
EA C461 Artificial Intelligence
Making Inferences with Propositions (Rules of Inference)
Chapter 7. Propositional and Predicate Logic
2. The Logic of Compound Statements Summary
Lecture Notes 8 CS1502.
Knowledge Representation and Reasoning
Formal Logic CSC 333.
Resolution in the Propositional Calculus
Introduction to Knowledge-bases
Introduction to Logic for Artificial Intelligence Lecture 1
Logical Inference: Through Proof to Truth
Logic Use mathematical deduction to derive new knowledge.
CSE 4705 Artificial Intelligence
CS 270 Math Foundations of CS
Artificial Intelligence
Biointelligence Lab School of Computer Sci. & Eng.
Artificial Intelligence: Agents and Propositional Logic.
CS 220: Discrete Structures and their Applications
CS 416 Artificial Intelligence
Back to “Serious” Topics…
Biointelligence Lab School of Computer Sci. & Eng.
Logical Entailment Computational Logic Lecture 3
MAT 3100 Introduction to Proof
Chapter 7. Propositional and Predicate Logic
Propositional Calculus
Propositional Logic CMSC 471 Chapter , 7.7 and Chuck Dyer
Presentation transcript:

CS.462 Artificial Intelligence SOMCHAI THANGSATHITYANGKUL Lecture 05 : Knowledge Base & First Order Logic

2 Knowledge base A knowledge base KB is a set of sentences. Example KB: JerryGivingLecture  (TodayIsTuesday  TodayIsThursday)  JerryGivingLecture It is equivalent to a single long sentence: the conjunction of all sentences (JerryGivingLecture  (TodayIsTuesday  TodayIsThursday))   JerryGivingLecture

3 Entailment Entailment is the relation of a sentence logically follows from other sentences.  |=   |=  if and only if, in every interpretation in which  is true,  is also true Deduction theorem:  |=  if and only if    is valid (always true)

4 Natural Deduction Proof is a sequence of sentences First ones are premises (KB) Then, you can write down on line j the result of applying an inference rule to previous lines When  is on a line, you know KB  If inference rules are sound, then KB                          Modu s ponen s And- introduct ion And- eliminat ion Modu s tolens

5 Natural deduction example StepFormulaDerivation 1 P  Q Given 2 PRPR 3 (Q  R)  S Given Prove S

6 Natural deduction example KB: 1. JerryGivingLecture  (TodayIsTuesday  TodayIsThursday) 2.  JerryGivingLecture Prove:  TodayIsTuesday

7 StepFormulaDerivation 1 JerryGivingLecture  (TodayIsTuesday  TodayIsThursday) Given 2  JerryGivingLecture Given 3 JerryGivingLecture  (TodayIsTuesday  TodayIsThursday) Biconditional elimination to 1. 4 (TodayIsTuesday  TodayIsThursday)  JerryGivingLecture Biconditional elimination to 1. 5  JerryGivingLecture   (TodayIsTuesday  TodayIsThursday) Contrapositive to 4.

8 Propositional Resolution

9 Propositional Resolution Example

10 Resolution tree KB : (A  C  D)  (A  D  E)  (A   C) Prove : (D  E) Negated conclusion :  (D  E) Convert KB in the CNF, So we have KB: 1.(  A  C  D) 2.(A  D  E) 3.(  A   C) 4.  D 5.  E

11 Resolution tree

12 Try this (P → Q) → Q, (P → P) → R, (R → S) → ¬(S → Q) Prove R

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36