Logic programming ( Handbook of Logic in Artificial Intelligence, Vol) by D. M. Gabbay, C. Hogger, J.A. Robinson .

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

Introduction to Logic Sections 1.1, 1.2, 1.3 of Rosen Spring 2012 CSCE 235 Introduction to Discrete Structures URL: cse.unl.edu/~choueiry/S All questions:
Rules of Inferences Section 1.5. Definitions Argument: is a sequence of propositions (premises) that end with a proposition called conclusion. Valid Argument:
1 Logic Logic in general is a subfield of philosophy and its development is credited to ancient Greeks. Symbolic or mathematical logic is used in AI. In.
CS128 – Discrete Mathematics for Computer Science
Logic programming ( Handbook of Logic in Artificial Intelligence, Vol) by D. M. Gabbay, C. Hogger, J.A. Robinson. 1.
Syllabus Every Week: 2 Hourly Exams +Final - as noted on Syllabus
Propositional Logic. Negation Given a proposition p, negation of p is the ‘not’ of p.
Introduction to Logic Sections 1.1 and 1.2 of Rosen Spring 2010
Introduction to Logic Sections 1.1 and 1.2 of Rosen Fall 2010 CSCE 235 Introduction to Discrete Structures URL: cse.unl.edu/~cse235 Questions:
CSE115/ENGR160 Discrete Mathematics 01/17/12 Ming-Hsuan Yang UC Merced 1.
Adapted from Discrete Math
1.5 Rules of Inference.
Discrete Mathematics Goals of a Discrete Mathematics Learn how to think mathematically 1. Mathematical Reasoning Foundation for discussions of methods.
CSCI 115 Chapter 2 Logic. CSCI 115 §2.1 Propositions and Logical Operations.
Discrete Mathematics and Its Applications
COS 150 Discrete Structures Assoc. Prof. Svetla Boytcheva Fall semester 2014.
Chapter 1: The Foundations: Logic and Proofs
LOGIC Lesson 2.1. What is an on-the-spot Quiz  This quiz is defined by me.  While I’m having my lectures, you have to be alert.  Because there are.
Propositional Logic. Propositions Any statement that is either True (T) or False (F) is a proposition Propositional variables: a variable that can assume.
Thinking Mathematically
CS.462 Artificial Intelligence SOMCHAI THANGSATHITYANGKUL Lecture 05 : Knowledge Base & First Order Logic.
Section 1.1 Propositions and Logical Operations. Introduction Remember that discrete is –the study of decision making in non-continuous systems. That.
Mathematics for Comter I Lecture 2: Logic (1) Basic definitions Logical operators Translating English sentences.
Symbolic Logic ⊃ ≡ · v ~ ∴. What is a logical argument? Logic is the science of reasoning, proof, thinking, or inference. Logic allows us to analyze a.
CS104 The Foundations: Logic and Proof 1. 2 What is Discrete Structure?  Discrete Objects  Separated from each other (Opposite of continuous)  e.g.,
Chapter 1 Propositional Logic
Presented by: Tutorial Services The Math Center
Chapter 7. Propositional and Predicate Logic
2. The Logic of Compound Statements Summary
AND.
DISCRETE MATHEMATICS CHAPTER I.
CSNB 143 Discrete Mathematical Structures
Knowledge Representation and Reasoning
Discrete Mathematics Logic.
CSCE 235 Introduction to Discrete Structures
Truth Tables and Equivalent Statements
Niu Kun Discrete Mathematics Chapter 1 The Foundations: Logic and Proof, Sets, and Functions Niu Kun 离散数学.
Logic.
Introduction to Prolog
Principles of Computing – UFCFA3-30-1
Logic – Bell Ringer.
Chapter 8 Logic Topics
2 Chapter Introduction to Logic and Sets
Information Technology Department
Chapter 1 The Foundations: Logic and Proof, Sets, and Functions
CS201: Data Structures and Discrete Mathematics I
Mathematical Reasoning
3.5 Symbolic Arguments.
CS 220: Discrete Structures and their Applications
Applied Discrete Mathematics Week 1: Logic
TRUTH TABLES continued.
(1.4) An Introduction to Logic
Back to “Serious” Topics…
1 Chapter An Introduction to Problem Solving
Discrete Mathematics and Its Applications Kenneth H
Computer Security: Art and Science, 2nd Edition
Negations of quantifiers
Discrete Mathematics Lecture 2: Propositional Logic
Discrete Mathematics Logic.
1 Chapter An Introduction to Problem Solving
MAT 3100 Introduction to Proof
Chapter 7. Propositional and Predicate Logic
Discrete Mathematics Lecture 2: Propositional Logic
Foundations of Discrete Mathematics
ece 720 intelligent web: ontology and beyond
Mathematical Reasoning
Logical and Rule-Based Reasoning Part I
CS201: Data Structures and Discrete Mathematics I
Conjunctive addition states that if we know that each of two statements is true, we can join them with the conjunction connective and the resulting conjunction.
Presentation transcript:

Logic programming ( Handbook of Logic in Artificial Intelligence, Vol) by D. M. Gabbay, C. Hogger, J.A. Robinson .

PROLOG Program

Logic Logic Propositional Logic (PL) is the study of the logic relationships between objects and forms the basis of all mathematical reasoning and all automated reasoning Propositional Logic (PL) In Propositional Logic, the objects are called propositions Definition: A proposition is a statement that is either true or false, but not both We usually denote a proposition by a letter: p, q, r, s, …

Propositions: Examples The following are propositions Today is Monday M The grass is wet W It is raining R The following are not propositions C++ is the best language What is your name? Do your homework

Are these propositions? 2+2=5 Every integer is divisible by 12 Microsoft is an excellent company

Logical connectives Connectives are used to create a compound proposition from two or more propositions Negation (e.g., a or !a or ā) And or logical conjunction (denoted ) OR or logical disjunction (denoted ) XOR or exclusive or (denoted ) Implicaion (denoted  or ) Biconditional (denoted  or ) We define the meaning (semantics) of the logical connectives using truth tables

Logical Arguments Consider the following statements. if you study then you succeed you study you succeed These three statements create a logical argument. Lines 1 and 2 are premises and line 3 is the conclusion. This logical argument is sound. Premises can be true or false. If the premises are true, the conclusion must be true. If one (or more than one) of the premises is false, the argument is still sound, but we don’t know whether the conclusion is true or false.

Rule of inference

Modus Ponens if you study then you succeed you study you succeed (a rule of inference – one of the most important rules) if you study then you succeed you study you succeed Premises Conclusion Aristotle called this modus ponens: if P then Q P Q

Important! We are dealing with the validity of an argument, NOT with the validity of the result! In logic, it doesn’t matter if a logical statement makes sense or not. What does matter is that if the premises are correct, then so is the result.

Modus Ponens Examples if P then Q P Q P: I study hard Q: I get an A P: cows give milk Q: doors open Makes sense Doesn’t make sense

Predicates and Arguments if ‘Jill’ thinks then ‘Jill’ exists ‘Jill’ thinks ‘Jill’ exists if P(‘Jill’) then Q(‘Jill’) P(‘Jill’) Q(‘Jill’) if thinks(‘Jill’) then exists(‘Jill’) thinks(‘Jill’) exists(‘Jill’) if thinks(X) then exists(X) thinks(X) exists(X)

Predicates in arguments (continued…) thinks(X)  exists(X) thinks(X) exists(X) thinks(X) -: exists(X) if thinks(X) then exists(X) thinks(X) exists(X)