1 Introduction to Abstract Mathematics Chapter 2: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 2.3.

Slides:



Advertisements
Similar presentations
Discrete Math Methods of proof 1.
Advertisements

Introduction to Proofs
PROOF BY CONTRADICTION
1 Section 1.5 Rules of Inference. 2 Definitions Theorem: a statement that can be shown to be true Proof: demonstration of truth of theorem –consists of.
CPSC 121: Models of Computation Unit 6 Rewriting Predicate Logic Statements Based on slides by Patrice Belleville and Steve Wolfman.
Chapter 1: The Foundations: Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.
1 Introduction to Abstract Mathematics Valid AND Invalid Arguments 2.3 Instructor: Hayk Melikya
Methods of Proof for Quantifiers Chapter 12 Language, Proof and Logic.
Elementary Number Theory and Methods of Proof
Induction and recursion
Discussion #17 1/15 Discussion #17 Derivations. Discussion #17 2/15 Topics Derivations  proofs in predicate calculus Inference Rules with Quantifiers.
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.
Discrete Mathematics Lecture 2 Alexander Bukharovich New York University.
So far we have learned about:
First Order Logic (chapter 2 of the book) Lecture 3: Sep 14.
Proofs, Recursion and Analysis of Algorithms Mathematical Structures for Computer Science Chapter 2.1 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProofs,
Fall 2002CMSC Discrete Structures1 Let’s proceed to… Mathematical Reasoning.
Harper Langston New York University Summer 2015
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.
Methods of Proof & Proof Strategies
Introduction to Proofs
 Predicate: A sentence that contains a finite number of variables and becomes a statement when values are substituted for the variables. ◦ Domain: the.
Week 3 - Monday.  What did we talk about last time?  Predicate logic  Multiple quantifiers  Negating multiple quantifiers  Arguments with quantified.
1 Chapter 7 Propositional and Predicate Logic. 2 Chapter 7 Contents (1) l What is Logic? l Logical Operators l Translating between English and Logic l.
Chapter 2 The Logic of Quantified Statements. Section 2.4 Arguments with Quantified Statements.
10/17/2015 Prepared by Dr.Saad Alabbad1 CS100 : Discrete Structures Proof Techniques(1) Dr.Saad Alabbad Department of Computer Science
1 Introduction to Abstract Mathematics Chapter 3: Elementary Number Theory and Methods of Proofs Instructor: Hayk Melikya Direct.
Chapter 1 Logic Section 1-1 Statements Open your book to page 1 and read the section titled “To the Student” Now turn to page 3 where we will read the.
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
1 Math/CSE 1019C: Discrete Mathematics for Computer Science Fall 2011 Suprakash Datta Office: CSEB 3043 Phone: ext
Proofs1 Advanced Discrete Mathematics Jim Skon. Proofs2  Definition: A theorem is a valid logical assertion which can be proved using other theorems.
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.
(CSC 102) Lecture 8 Discrete Structures. Previous Lectures Summary Predicates Set Notation Universal and Existential Statement Translating between formal.
1 Introduction to Abstract Mathematics Proofs in Predicate Logic , , ~, ,  Instructor: Hayk Melikya Purpose of Section: The theorems.
1 Introduction to Abstract Mathematics Predicate Logic Instructor: Hayk Melikya Purpose of Section: To introduce predicate logic (or.
First Order Logic Lecture 3: Sep 13 (chapter 2 of the book)
CS104:Discrete Structures Chapter 2: Proof Techniques.
Dilemma: Division Into Cases Dilemma: p  q p  r q  r  r Premises:x is positive or x is negative. If x is positive, then x 2 is positive. If x is negative,
Week 4 - Friday.  What did we talk about last time?  Floor and ceiling  Proof by contradiction.
Chapter 5. Section 5.1 Climbing an Infinite Ladder Suppose we have an infinite ladder: 1.We can reach the first rung of the ladder. 2.If we can reach.
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.
Section 1.7. Definitions A theorem is a statement that can be shown to be true using: definitions other theorems axioms (statements which are given as.
Lecture 041 Predicate Calculus Learning outcomes Students are able to: 1. Evaluate predicate 2. Translate predicate into human language and vice versa.
1 Introduction to Abstract Mathematics Chapter 3: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 3.1.
1 Introduction to Abstract Mathematics Proof Methods , , ~, ,  Instructor: Hayk Melikya Purpose of Section:Most theorems in mathematics.
Discrete Mathematical Structures: Theory and Applications 1 Logic: Learning Objectives  Learn about statements (propositions)  Learn how to use logical.
1 Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially.
Chapter 1, Part III: Proofs With Question/Answer Animations Copyright © McGraw-Hill Education. All rights reserved. No reproduction or distribution without.
Section 1.7. Section Summary Mathematical Proofs Forms of Theorems Direct Proofs Indirect Proofs Proof of the Contrapositive Proof by Contradiction.
Chapter 1 Logic and proofs
Harper Langston New York University Summer 2017
Arguments with Quantified Statements
3. The Logic of Quantified Statements Summary
Induction and recursion
Predicate Calculus Validity
Chapter 1: The Foundations: Logic and Proofs
Module #10: Proof Strategies
CS201: Data Structures and Discrete Mathematics I
The Foundations: Logic and Proofs
Copyright © Cengage Learning. All rights reserved.
First Order Logic Rosen Lecture 3: Sept 11, 12.
MA/CSSE 474 More Math Review Theory of Computation
Module #10: Proof Strategies
Discrete Mathematics Lecture 4 Logic of Quantified Statements
CS201: Data Structures and Discrete Mathematics I
Mathematical Reasoning
Mathematical Induction
Rules of inference Section 1.5 Monday, December 02, 2019
Presentation transcript:

1 Introduction to Abstract Mathematics Chapter 2: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 2.3 Arguments with Quantified Statements

2 Introduction to Abstract Mathematics Argument #1 Universal instantiation All men are mortal. Socrates is a man. Therefore, Socrates is mortal (  x  U)P(x) ├ P(a) Universal instantiation is the fundamental tool for deductive reasoning

3 Introduction to Abstract Mathematics Arguments with Quantified Statements Rule of universal instantiation: if some property is true of everything in the domain, then this property is true for any subset in the domain Universal Modus Ponens: u Premises: (  x, if P(x) then Q(x)); (major) – P(a) for some a (minor) u Conclusion: Q(a) Universal Modus Tollens: u Premises: (  x, if P(x) then Q(x)); ~Q(a) for some a u Conclusion: ~P(a) Converse and inverse errors Definition: An argument form is valid if no matter what particular predicates are substituted for predicate symbols in it promises, if resulting promise statements are true, then the conclusion is also true An argument is called valid iff its form is valid

4 Introduction to Abstract Mathematics Validity of Arguments using Diagrams Premises: All human beings are mortal; Zeus is not mortal. Conclusion: Zeus is not a human being Premises: All human beings are mortal; Felix is mortal. Conclusion: Felix is a human being Premises: No polynomial functions have horizontal asymptotes; This function has a horizontal asymptote. Conclusion: This function is not a polynomial

5 Introduction to Abstract Mathematics Diagrams for Validity (p. 104) Diagrams can sometimes be used to: –support a validity of an argument –or, show that an argument is invalid Diagrams are not a formal proof! mortal human SocratesSocrates pneumonia fever patientpatient

6 Introduction to Abstract Mathematics True no matter what the Domain is, or the predicates are.  z [Q(z)  P(z)] → [  x.Q(x)   y.P(y)] Predicate Calculus Validity True no matter what the truth values of A and B are Propositional validity Predicate calculus validity That is, logically correct, independent of the specific content.

7 Introduction to Abstract Mathematics Arguments with Quantified Statements Universal instantiation: Universal modus ponens: Universal modus tollens:

8 Introduction to Abstract Mathematics ├ (  x  U)P(x ) To prove a theorem of the form (  x  U)P(x) which states “for all elements x in a given universe U, the proposition P(x) is true” we select an arbitrary a  U from the universe, and then prove the assertion P(a). Let a be an arbitrary constant from the universe U. If P(a) contains no particular constant from U then P(a) ├ (  x  U)P(x) This is called Universal Generalization

9 Introduction to Abstract Mathematics Example 1 (Universal Direct Proof) Show that all integers divisible by 6 are even. Proof: In the language of predicate logic, we write (  x  Z) ( 6 divides x  x is even) where Z = {0,±1,± 2,...} is the universe of integers. Letting a be an integer, we assume a is divisible by 6, which means there exists an integer y which satisfies a = 6y. Rewriting this as a= 2(3y) we have a = 2k for some integer k = 3y, which proves that a is an even integer. ▌

10 Introduction to Abstract Mathematics Universal Instantiation (UI) (  x  U)P(x) ├ P(a) If a is an arbitrary constant from the universe U then (  x  U)P(x) ├ P(a) This is refered as Universal Instantiation rule. Existential Instantiation (EI) (  x  U)P(x) ├ P(a) where a is a paricular contant from univers Existantial Generalization(EG) P(a) ├ (  x  U)P(x) This rule says that if P(a) true for some constan from the universe U then (  x  U)P(x) is true

11 Introduction to Abstract Mathematics ├ (  x  U)P(x ) To prove a theorem of the form (  x  U)P(x) which states “there exists an element x in a given universe U that satisfies the proposition P(x) ” the strategy is to show one or more elements x  U satisfy the assertion P(x). Example 2 (Proof by Demonstration or construction) Show there exists an even prime integer. Proof: In language of predicate logic, we would write (  x  N)(x is even  x is prime) The proof is simple because 2 is both prime and even

12 Introduction to Abstract Mathematics Proof of (  x)P(x) by Contradiction: To prove the theorem (  x)P(x) which says “for all x, P(x) is true” by contradiction, assume the contrary; i.e. ~(  x)P(x) which is equivalent to (  x) ~P(x), which says “there exists an x such that P(x) is not true”. One then continues the Proof until arriving at a contradiction.

13 Introduction to Abstract Mathematics Example 4: (Proof by Contradiction ) Show if m, n are integers, then 5m+ 20n  1. Proof: In the language of predicate logic this theorem becomes (  m  Z)(  n  Z) (5m+ 20n  1). Assuming the contrary, we have (  m  Z)(  n  Z) (5m+ 20n = 1). But the equation 5m+ 20n = 1 cannot hold since 5 divides the left side of the equation and not the right. Hence, the denial is false so the theorem is true. ▌

14 Introduction to Abstract Mathematics Proof of (  x)P(x) by Contradiction : To prove “there exists an x such that P(x) is true” assume the theorem is not true: i.e. ~(  x) P(x)  (  x) ~P(x) which states“for all x the assertion P(x) is not true. You then continue the proof until you arrive at a contradiction of some kind.

15 Introduction to Abstract Mathematics Proving Unique Existential Theorems: To prove a theorem of the form (  !x  U )P(x) which states “there exists a unique element x such that P(x) is true” the strategy is to show first that some element x satisfies P(x), then show that if two elements y, z  U satisfy the assertion, then in fact they are the same; i.e. y = z. In predicate logic language, we must show (  x  U )P(x)  (  y  U )(  z  U )[P( y)  P(z)  y = x]

16 Introduction to Abstract Mathematics Important Relations in Predicate Logic a) (  x)(  y)P(x, y)  (  y)(  x)P(x, y) b) (  x)(  y)P(x, y)  (  y)(  x)P(x, y) c) (  x)[P(x)  Q(x)]  [ (  x)P(x)  (  x)Q(x) ] d) (  x)[P(x)  Q(x)]  [(  x)P(x)  (  x)Q(x)] e) [(  x)P(x)  (  x)Q(x)]  (  x)[P(x)  Q(x)] f) (  x)(  y)P(x, y)  (  y)(  x)P(x, y)

17 Introduction to Abstract Mathematics Proof: Give countermodel, where  z [Q(z)  P(z)] is true, but  x.Q(x)   y.P(y) is false. In this example, let domain be integers, Q(z) be true if z is an even number, i.e. Q(z)=even(z) P(z) be true if z is an odd number, i.e. P(z)=odd(z)  z [Q(z)  P(z)] → [  x.Q(x)   y.P(y)] Not Valid Find a domain, and a predicate. Validity  z [Q(z)  P(z)] → [  x.Q(x)   y.P(y)] Proof strategy: We assume  z [Q(z)  P(z)] and prove  x.Q(x)   y.P(y)

18 Introduction to Abstract Mathematics Proof: Assume  z [Q(z)  P(z)]. So Q(z)  P(z) holds for all z in the domain. Now let c be some domain element. So Q(c)  P(c) holds, and therefore Q(c) by itself holds. But c could have been any element of the domain. So we conclude  x.Q(x). We conclude  y.P(y) similarly. Therefore,  x.Q(x)   y.P(y) QED. (by UG)  z [Q(z)  P(z)] → [  x.Q(x)   y.P(y)] Validity

19 Introduction to Abstract Mathematics Proof and Logic We prove mathematical statement by using logic. not valid To prove something is true, we need to assume some axioms! This is invented by Euclid in 300 BC, who begins with 5 assumptions about geometry, and derive many theorems as logical consequences.

20 Introduction to Abstract Mathematics Validity of Arguments Hence validity of arguments is defined in the same way The difference is: –in predicate logic it is not always possible to go through all interpretations to prove that P logically implies Q Why? –The number of interpretations can be infinite Thus, proving arguments with inference rules becomes the method of choice We can also derive new inference rules for our toolbox

21 Introduction to Abstract Mathematics Thm: For any “reasonable” theory that proves basic arithemetic truth, an arithmetic statement that is true, but not provable in the theory, can be constructed. Gödel's Incompleteness Theorem for Arithmetic Power and Limits of Logic No hope to find a complete and consistent set of axioms! Thm : Given a set of axioms, there is no procedure that decide whether quantified assertions are valid. (unlike propositional formulas) That is, starting from a few propositional & simple predicate validities, every valid assertion can be proved using just universal generalization and modus ponens repeatedly! Good news: Gödel's Completeness Theorem

22 Introduction to Abstract Mathematics Practice problems 1. Study the Sections 3.3 and 3.4 from your textbook. 2. Be sure that you understand all the examples discussed in class and in textbook. 3. Do the following problems from the textbook: Exercise 3.3 # 1, 11, 16, 19, 21, 24, 30, 41, 55, 57. Exercise 3.4 # 1, 4, 11, 14, 22, 26, 32, 34.