Logical Entailment Computational Logic Lecture 3

Slides:



Advertisements
Similar presentations
Completeness and Expressiveness
Advertisements

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.
Inference and Reasoning. Basic Idea Given a set of statements, does a new statement logically follow from this. For example If an animal has wings and.
Deduction In addition to being able to represent facts, or real- world statements, as formulas, we want to be able to manipulate facts, e.g., derive new.
INTRODUCTION TO MODAL AND EPISTEMIC LOGIC for beginners
Logic Concepts Lecture Module 11.
Propositional Logic. Grammatical Complexity A natural language is complex. E.g. –The dog chased the cat. –The dog that ate the rat chased the cat. –The.
TR1413: Discrete Mathematics For Computer Science Lecture 3: Formal approach to propositional logic.
Chapter 3 Propositional Logic
Proof by Deduction. Deductions and Formal Proofs A deduction is a sequence of logic statements, each of which is known or assumed to be true A formal.
Logical and Rule-Based Reasoning Part I. Logical Models and Reasoning Big Question: Do people think logically?
Discrete Mathematics and its Applications
Propositional Resolution Computational LogicLecture 4 Michael Genesereth Spring 2005.
1 Knowledge Based Systems (CM0377) Lecture 4 (Last modified 5th February 2001)
Pattern-directed inference systems
Of 33 lecture 12: propositional logic – part I. of 33 propositions and connectives … two-valued logic – every sentence is either true or false some sentences.
Propositional Logic Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma Guadalajara
0 What logic is or should be Propositions Boolean operations The language of classical propositional logic Interpretation and truth Validity (tautologicity)
Chapter Four Proofs. 1. Argument Forms An argument form is a group of sentence forms such that all of its substitution instances are arguments.
CS6133 Software Specification and Verification
CS.462 Artificial Intelligence SOMCHAI THANGSATHITYANGKUL Lecture 05 : Knowledge Base & First Order Logic.
CS104:Discrete Structures Chapter 2: Proof Techniques.
ARTIFICIAL INTELLIGENCE Lecture 2 Propositional Calculus.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
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.
Logical Agents. Inference : Example 1 How many variables? 3 variables A,B,C How many models? 2 3 = 8 models.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
Chapter 7. Propositional and Predicate Logic
2. The Logic of Compound Statements Summary
Knowledge Representation and Reasoning
The Propositional Calculus
Proposition & Predicates
Propositional Logic.
Logics for Data and Knowledge Representation
CS201: Data Structures and Discrete Mathematics I
7.1 Rules of Implication I Natural Deduction is a method for deriving the conclusion of valid arguments expressed in the symbolism of propositional logic.
Propositional Resolution
CSE 311 Foundations of Computing I
CS201: Data Structures and Discrete Mathematics I
CS 270 Math Foundations of CS
Applied Discrete Mathematics Week 1: Logic
Propositional Logic.
First Order Logic Rosen Lecture 3: Sept 11, 12.
Relational Proofs Computational Logic Lecture 8
Back to “Serious” Topics…
MA/CSSE 474 More Math Review Theory of Computation
Computer Security: Art and Science, 2nd Edition
Metatheorems Computational Logic Lecture 8
Relational Proofs Computational Logic Lecture 7
Classical propositional logic (quick review)
Propositional Logic Computational Logic Lecture 2
Chapter 7. Propositional and Predicate Logic
CSNB234 ARTIFICIAL INTELLIGENCE
This Lecture Substitution model
Foundations of Discrete Mathematics
Propositional Logic CMSC 471 Chapter , 7.7 and Chuck Dyer
CS201: Data Structures and Discrete Mathematics I
ece 720 intelligent web: ontology and beyond
Relational Proofs Computational Logic Lecture 7
Logical and Rule-Based Reasoning Part I
Properties of Relational Logic
Properties of Relational Logic
CS201: Data Structures and Discrete Mathematics I
Relational Proofs Computational Logic Lecture 7
Chapter 8 Natural Deduction
Herbrand Semantics Computational Logic Lecture 15
Propositional Logic Computational Logic Lecture 2
Representations & Reasoning Systems (RRS) (2.2)
Herbrand Logic Semantics
Presentation transcript:

Logical Entailment Computational Logic Lecture 3 Michael Genesereth Autumn 2010

Logical Reasoning Logical Reasoning relates premises and conclusion does not say whether conclusion is true in general says conclusion true whenever premises are true Leibnitz: The intellect is freed of all conception of the objects involved, and yet the computation yields the correct result. Russell: Math may be defined as the subject in which we never know what we are talking about nor whether what we are saying is true.

Logical Entailment A set of premises  logically entails a conclusion  (written as  |= ) if and only if every interpretation that satisfies the premises also satisfies the conclusion. {p} |= (p  q) {p} |# (p  q) {p, q} |= (p  q)

Logical Entailment  Logical Equivalence {p} |= (p  q) {p  q)} |# p Analogy in arithmetic: inequalities rather than equations

Truth Table Method We can check for logical entailment by comparing tables of all possible interpretations. In the first table, eliminate all rows that do not satisfy premises. In the second table, eliminate all rows that do not satisfy the conclusion. If the remaining rows in the first table are a subset of the remaining rows in the second table, then the premises logically entail the conclusion.

Example Does p logically entail (p  q)?

Example Does p logically entail (p  q)? Does {p,q} logically entail (p  q)?

Example If Mary loves Pat, then Mary loves Quincy. If it is Monday, then Mary loves Pat or Quincy. If it is Monday, does Mary love Quincy? m p q T  F m p q T  F

Logical Entailment and Satisfiability Theorem:  |=  if and only if   {} is unsatisfiable. Suppose that |= . If an interpretation satisfies , then it must also satisfy . But then it cannot satisfy . Therefore,   {} is unsatisfiable. Suppose that   {} is unsatisfiable. Then every interpretation that satisfies  must fail to satisfy , i.e. it must satisfy . Therefore,  |= . Upshot: We can determine logical entailment by determining unsatisfiability.

Example Problem: {(pq), (m  pq)} |= (mq)? Or: Is {(pq), (m  pq),(mq)} unsatisfiable? m p q T F

Problem There can be many, many interpretations for a Propositional Language. Remember that, for a language with n constants, there are 2n possible interpretations. Sometimes there are many constants among premises that are irrelevant to the conclusion. Much wasted work. Answer: Proofs

Patterns A pattern is a parameterized expression, i.e. an expression satisfying the grammatical rules of our language except for the use of meta-variables (Greek letters) in place of various subparts of the expression. Sample Pattern:   (  ) Instance: p  (q  p) (p  r)  ((pq)  (p  r))

Rules of Inference A rule of inference is a rule of reasoning consisting of one set of sentence patterns, called premises, and a second set of sentence patterns, called conclusions.

Rule Instances An instance of a rule of inference is a rule in which all meta-variables have been consistently replaced by expressions in such a way that all premises and conclusions are syntactically legal sentences.

Sound Rules of Inference A rule of inference is sound if and only if the premises in any instance of the rule logically entail the conclusions. Modus Ponens (MP) Modus Tolens (MT) Equivalence Elimination (EE) Double Negation (DN)

Proof (Version 1) A proof of a conclusion from a set of premises is a sequence of sentences terminating in the conclusion in which each item is either: 1. a premise 2. the result of applying a rule of inference to earlier items in sequence.

Example When it is raining, the ground is wet. When the ground is wet, it is slippery. It is raining. Prove that it is slippery.

Error Note: Rules of inference apply only to top-level sentences in a proof. Sometimes works but sometimes fails. No! No!

Example Heads you win. Tails I lose. Suppose the coin comes up tails. Show that you win.

Axiom Schemata Fact: If a sentence is valid, then it is true under all interpretations. Consequently, there should be a proof without making any assumptions at all. Fact: (p  (q  p)) is a valid sentence. Problem: Prove (p  (q  p)). Solution: We need some rules of inference without premises to get started. An axiom schema is sentence pattern construed as a rule of inference without premises.

Rules and Schemata Axiom Schemata as Rules of Inference   (  ) Rules of Inference as Axiom Schemata (  )  (  ) Note: Of course, we must keep a least one rule of inference to use the schemata. By convention, we retain Modus Ponens.

(  (  ))  ((  )  (  )) Valid Axiom Schemata A valid axiom schema is a sentence pattern denoting an infinite set of sentences, all of which are valid. Implication Introduction (II):  (  ) ImplicationDistribution (ID): (  (  ))  ((  )  (  ))

Proof (Official Version) A proof of a conclusion from a set of premises is a sequence of sentences terminating in the conclusion in which each item is either: 1. a premise 2. An instance of an axiom schema 3. the result of applying a rule of inference to earlier items in sequence.

Sample Proof Whenever p is true, q is true. Whenever q is true, r is true. Prove that, whenever p is true, r is true.

Mendelson Axiomatization II:   (  ) ID: (  (  ))  ((  )  (  )) CR: (  )  ((  )  ) Note: Mendelson’s system assumes there are only two operators, viz.  and . Fortunately, all sentences in Propositional Logic can be reduced to equivalent sentences with these operators by applying the following rules. (  )  ((  )  (  )) (  )  (  ) (  )  (  ) (  )  (  )

Kleene Axiomatization II:   (  ) ID: (  (  ))  ((  )  (  )) AI:   (  (  )) AE1: (  )   AE2: (  )   OI1:   (  ) OI2:   (  ) OE: (  )  ((  )  (    )) CM: (  )  ((  )  ) DN: (  ) Note: Kleene’s system assumes there are only four operators, viz. , ,, and .

Standard Axiom Schemata II:   (  ) ID: (  (  ))  ((  )  (  )) CR: (  )  ((  )  ) EQ: (  )  (  ) (  )  (  ) (  )  ((  )  (  )) OQ: (  )  (  ) (  )  (  ) (  )  (  )

Meredith Axiomatization ((((  )  (  ))  )  )  ((  )  (  ))

Provability A conclusion is said to be provable from a set of premises (written  |- ) if and only if there is a finite proof of the conclusion from the premises using only Modus Ponens and a complete logical axiomatization (e.g. Mendelson, Kleene, Standard, Meredith).

Soundness and Completeness Soundness: Our proof system is sound, i.e. if the conclusion is provable from the premises, then the premises propositionally entail the conclusion. ( |- )  ( |= ) Completeness: Our proof system is complete, i.e. if the premises propositionally entail the conclusion, then the conclusion is provable from the premises. ( |= )  ( |- )

Truth Tables and Proofs The truth table method and the proof method succeed in exactly the same cases. On large problems, the proof method often takes fewer steps than the truth table method. However, in the worst case, the proof method may take just as many or more steps to find an answer as the truth table method. Usually, proofs are much smaller than the corresponding truth tables. So writing an argument to convince others does not take as much space.

Logical Reasoning In deduction, the conclusion is true whenever the premises are true. Premise: p Conclusion: (p  q) Non-Conclusion: (p  q) Premises: p, q Conclusion: (p  q)