Proofs in Predicate Calculus

Slides:



Advertisements
Similar presentations
Rules of Inference Rosen 1.5.
Advertisements

The Foundations: Logic and Proofs
1 A formula in predicate logic An atom is a formula. If F is a formula then (~F) is a formula. If F and G are Formulae then (F /\ G), (F \/ G), (F → G),
CPSC 121: Models of Computation Unit 6 Rewriting Predicate Logic Statements Based on slides by Patrice Belleville and Steve Wolfman.
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.
Chapter 1: The Foundations: Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.
Methods of Proof for Quantifiers Chapter 12 Language, Proof and Logic.
F22H1 Logic and Proof Week 7 Clausal Form and Resolution.
Valid Arguments An argument is a sequence of propositions. All but the final proposition are called premises. The last statement is the conclusion. The.
Discrete Maths 4. Proofs Objectives
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Discussion #17 1/15 Discussion #17 Derivations. Discussion #17 2/15 Topics Derivations  proofs in predicate calculus Inference Rules with Quantifiers.
Discussion #16 1/12 Discussion #16 Validity & Equivalences.
Logic 3 Tautological Implications and Tautological Equivalences
The Semantic Web: Means Many Things to Many People.
Discussion #12 1/22 Discussion #12 Deduction, Proofs and Proof Techniques.
Logic and Proof. Argument An argument is a sequence of statements. All statements but the first one are called assumptions or hypothesis. The final statement.
First Order Logic (chapter 2 of the book) Lecture 3: Sep 14.
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.
Semantic Web Technologies. The Semantic Web: Means Many Things to Many People.
CSE115/ENGR160 Discrete Mathematics 01/20/11 Ming-Hsuan Yang UC Merced 1.
EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 11 Introduction to Predicate Logic Limitations of Propositional Logic Predicates, quantifiers and propositions.
First Order Logic. This Lecture Last time we talked about propositional logic, a logic on simple statements. This time we will talk about first order.
Section 1.3: Predicates and Quantifiers
CSE 311 Foundations of Computing I Lecture 6 Predicate Logic, Logical Inference Spring
Methods of Proof & Proof Strategies
Chapter 1: The Foundations: Logic and Proofs
Copyright © Curt Hill Rules of Inference What is a valid argument?
CSE 311: Foundations of Computing Fall 2013 Lecture 8: More Proofs.
 Predicate: A sentence that contains a finite number of variables and becomes a statement when values are substituted for the variables. ◦ Domain: the.
Review I Rosen , 3.1 Know your definitions!
Chap. 2 Fundamentals of Logic. Proposition Proposition (or statement): an declarative sentence that is either true or false, but not both. e.g. –Margret.
Chapter 2 The Logic of Quantified Statements. Section 2.4 Arguments with Quantified Statements.
Discrete Mathematics CS 2610 August 24, Agenda Last class Introduction to predicates and quantifiers This class Nested quantifiers Proofs.
Section 1.5. Section Summary Nested Quantifiers Order of Quantifiers Translating from Nested Quantifiers into English Translating Mathematical Statements.
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
2.3Logical Implication: Rules of Inference From the notion of a valid argument, we begin a formal study of what we shall mean by an argument and when such.
Arguments with Quantified Statements M Universal Instantiation If some property is true for everything in a domain, then it is true of any particular.
First Order Logic Lecture 2: Sep 9. This Lecture Last time we talked about propositional logic, a logic on simple statements. This time we will talk about.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
CSE 311 Foundations of Computing I Lecture 7 Logical Inference Autumn 2012 CSE
Hazırlayan DISCRETE COMPUTATIONAL STRUCTURES Propositional Logic PROF. DR. YUSUF OYSAL.
1 Introduction to Abstract Mathematics Chapter 2: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 2.3.
1 Introduction to Abstract Mathematics Proofs in Predicate Logic , , ~, ,  Instructor: Hayk Melikya Purpose of Section: The theorems.
CSS342: Quantifiers1 Professor: Munehiro Fukuda. CSS342: Quantifiers2 Review of Propositions Proposition: a statement that is either true or false, but.
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 1 The Foundations: Logic and Proofs Predicates and Quantifiers.
First Order Logic Lecture 3: Sep 13 (chapter 2 of the book)
What is Reasoning  Logical reasoning is the process of drawing conclusions from premises using rules of inference.  These inference rules are results.
Week 4 - Friday.  What did we talk about last time?  Floor and ceiling  Proof by contradiction.
1 Outline Quantifiers and predicates Translation of English sentences Predicate formulas with single variable Predicate formulas involving multiple variables.
Chapter Nine Predicate Logic Proofs. 1. Proving Validity The eighteen valid argument forms plus CP and IP that are the proof machinery of sentential logic.
1 Chapter 2.1 Chapter 2.2 Chapter 2.3 Chapter 2.4 All images are copyrighted to their respective copyright holders and reproduced here for academic purposes.
Mathematics for Comter I Lecture 3: Logic (2) Propositional Equivalences Predicates and Quantifiers.
Lecture 041 Predicate Calculus Learning outcomes Students are able to: 1. Evaluate predicate 2. Translate predicate into human language and vice versa.
1 Section 7.3 Formal Proofs in Predicate Calculus All proof rules for propositional calculus extend to predicate calculus. Example. … k.  x p(x) P k+1.
Propositional Logic. Assignment Write any five rules each from two games which you like by using propositional logic notations.
Chapter 1, Part III: Proofs With Question/Answer Animations Copyright © McGraw-Hill Education. All rights reserved. No reproduction or distribution without.
Sound Arguments and Derivations. Topics Sound Arguments Derivations Proofs –Inference rules –Deduction.
Uniqueness Quantifier ROI for Quantified Statement.
3. The Logic of Quantified Statements Summary
Rationale Behind the Precise Formulation of the Four Quantifier Rules
CS201: Data Structures and Discrete Mathematics I
Mathematical Structures for Computer Science Chapter 1
First Order Logic Rosen Lecture 3: Sept 11, 12.
Negations of quantifiers
Predicates and Quantifiers
CPSC 121: Models of Computation
CS201: Data Structures and Discrete Mathematics I
The Foundations: Logic and Proofs
Presentation transcript:

Proofs in Predicate Calculus

Topics Inference Rules with Quantifiers Unification OSM and Proofs Laws Universal/Existential Instantiation Universal/Existential Generalization Unification OSM and Proofs

Laws as Inference Rules Equivalence laws can be used as inference rules. Show: if xP(x)  Q then x(P(x)  Q)  R. 1. xP(x)  Q premise 2. xP(x)  Q implication law 3. xP(x)  Q de Morgan’s law 4. x(P(x)  Q) distributive law 5. x(P(x)  Q) implication law 6. x(P(x)  Q)  R law of addition, A |= A  B Note: the propositional laws of inference hold, as well (e.g. Step 6).

Universal Instantiation (UI) When A is true for every instantiation, it is certainly true for some particular instantiation. xA SxtA Example: fromx Mortal(x), we can derive Mortal(Smith).

UI Example Given the following two premises: 1. All intelligent students succeed 2. John is an intelligent student Prove that John succeeds. Proof: 1. x(Intelligent(x)  Succeed(x)) premise 2. Intelligent(John) premise 3. Intelligent(John)  Succeed(John) 1, UI 4. Succeed(John) 2&3, modus ponens

Existential Instantiation (EI) When A is true for one or more instantiations, we can let a variable, say b, designate any one of the true instantiations. xA SxbA Example: from x Mortal(x), we can derive Mortal(b), where b is a variable that stands for sombody who is mortal. Caution: Because we don’t know which one(s) in the domain make A hold, we must make sure b is a new variable  not one already in use. For example, if we have x Succeeds(x) and x Fails(x), then we cannot conclude Succeeds(b) and Fails(b)  the first b is OK, but not the second.

EI Example Given 1. Someone gets an A 2. Everyone who gets an A is happy Prove that someone is happy Translated to predicates: x getsA(x) x (getsA(x)  happy(x)) Prove: happy(x) Proof: x getsA(x) premise getsA(b) 1, EI x (getsA(x)  happy(x)) premise getsA(b)  happy(b) 3, UI happy(b) 2&4, modus ponens happy(x) 5, variant Note: we could have used x in place of b to begin with. The x’s would not get mixed up because one is free and the others are bound. (This can be confusing and is not recommended.)

Existential Generalization (EG) If we know A is true for some particular substitution t, we know there exists at least one substitution for which A is true. SxtA xA

EG Example Given 1. Someone gets an A 2. Everyone who gets an A is happy Prove that there exists someone who is happy Translated to predicates: x getsA(x) x (getsA(x)  happy(x)) Prove: x happy(x) Proof: x getsA(x) premise getsA(b) 1, EI x (getsA(x)  happy(x)) premise getsA(b)  happy(b) 3, UI happy(b) 2&4, modus ponens x happy(x) 5, EG

Universal Generalization (UG) xA If A holds with no restrictions on one of its variables x, it must hold for all substitutions for x. Example: from x(P(x)  Q(x)) and xP(x), we can conclude P(a)  Q(a) and P(a) by UI and then Q(a) by modus ponens; and thus by UG we can conclude xQ(x). Caution: Any variable that represents a fixed element of the domain cannot be generalized by UG. Thus, the variable to be generalized must not be one that is introduced by EI and must not be one that is fixed in a premise.

Universal Generalization (UG) (continued…) Consider the following proof for “if x(x>100  x>10) and y>100, then y>10” which is correct. 1. y>100 premise 2. x(x>100  x>10) premise 3. y>100  y>10 2, UI 4. y>10 1&3, modus ponens However, if we improperly use UG, we can conclude something that is clearly erroneous. 2. y(y>100) 1, UG (Wrong!) 3. … It is not true that all numbers are greater than 100. In the original statement of what is to be proved, y is fixed (although unknown) and represents a particular element of the domain (namely, in this case, some number greater than 100).

OSM and Proof Prove: If osmx23 is a LatinLover, then osmx23 is Italian i.e., LatinLover(osmx23)  Italian(osmx23) Proof: LatinLover(osmx23) premise x(Lazy(x)  Mafioso(x)  LatinLover(x)  Italian(x)) ontologically given Lazy(osmx23)  Mafioso(osmx23)  LatinLover(osmx23)  Italian(osmx23)) UI (2) LatinLover(osmx23)  Lazy(osmx23)  LatinLover(osmx23) addition (1) Italian(osmx23) modus ponens (3&4)

OSM and Proof Prove: If someone in the mafia has the name Bogart, then there is someone (at least Bogart), who is not a Latin lover. i.e., x(Mafioso(x)  Italian(x) has Name(Bogart))  y(LatinLover(y)) Proof: x(Mafioso(x)  Italian(x) has Name(Bogart)) premise Mafioso(a)  Italian(a) has Name(Bogart) EI (1) (here the variable a must be unique – can’t be Bogart) x(Mafioso(x)  Lazy(x)  LatinLover(x)) ontologically given Mafioso(a)  Lazy(a)  LatinLover(a) UI (3), (note that we can choose a) Mafioso(a) simplification (2) Lazy(a)  LatinLover(a) modus ponens (4&5) LatinLover(a) simplification (6) x (LatinLover(x)) EG (7)

Derivation Example If xyz(Q(x, y)  P(z)), wP(w) then xQ(x, 8). xyz(Q(x, y)  P(z)) premise Q(a, b)  P(c) 1, UI Sxa, Syb, Szc P(c)  Q(a, b) 2, contrapositive wP(w) premise P(c) 4, UI Swc Q(a, b) 3&5, modus ponens xyQ(x, y) 6, UG (Neither a nor b is free in a premise, nor were they introduced by EI.) xQ(x, 8) 7, UI Sy8

Derivation Example If xyz(Q(x, y)  P(z)), wP(w) then xQ(x, 8). xyz(Q(x, y)  P(z)) premise Q(x, y)  P(z) 1, UI Sxx, Syy, Szz P(z)  Q(x, y) 2, contrapositive wP(w) premise P(z) 4, UI Swz Q(x, y) 3&5, modus ponens xyQ(x, y) 6, UG (Neither x nor y is free in a premise, nor were they introduced by EI.) xQ(x, 8) 7, UI Sy8 Note: the names of the variables don’t matter, so long as we follow the rules properly.

Unification The previous proof was basically about getting rid of universal quantifiers and then reintroducing them and about getting the variable names to match for modus ponens and for the conclusion. Since, we “play this game” over and over, we could (and should) simplify by doing two things: 1. Drop initial ’s, so long as we remember which variables are actually bound to these universal quantifiers so that we use them properly and which variables (if any) are fixed in the premises. 2. Use unification. Two expressions unify if there are legal instantiations that make them the same.

Simplified Derivation Example If Q(x, y)  P(z), P(w) then Q(x, 8). Q(x, y)  P(z) premise P(z)  Q(x, y) 1, contrapositive P(w) premise P(z) 3, unification with 2 Q(x, y) 2&4, modus ponens Q(x, 8) 5, instantiation Informally, we can see that this works: If 2 & 3 are true for all substitutions, then we can always choose the w to be the same as z and be guaranteed that they will both be true (assuming the premises are true). Note that the UI and UG are “hidden” within the unification.

OSM and Proof Prove: Every Italian professor is a Latin lover, i.e., ItalianProf(x)  LatinLover(x) Proof (by contradiction): LatinLover(x) negation of conclusion ItalianProf(x) premise ItalianProf(x)  Italian(x) ontologically given Italian(x) modus ponens (2&3) Italian(x)  Lazy(x)  Mafioso(x)  LatinLover(x) ontologically given Lazy(x)  Mafioso(x)  LatinLover(x) modus ponens (4&5) Lazy(x)  Mafioso(x) resolution (1&6) ItalianProf(x)  Lazy(x) ontologically given Lazy(x) modus ponens (2&8) Mafioso(x) resolution (7&9) Mafioso(x)  ItalianProf(x) ontologically given ItalianProf(x) modus ponens (10&11) F contradiction (2&12)