Lecture 3. Logic Predicates and Quantified Statements Statements with Multiple Quantifiers. Introduction to Proofs. Reading (Epp s textbook)

Similar documents
Predicate Calculus lecture 1

3. The Logic of Quantified Statements Summary. Aaron Tan August 2017

Discrete Structures Lecture Predicates and Quantifiers

Discrete Structures Lecture 5

Discrete Mathematics Recitation Course 張玟翔

Recall that the expression x > 3 is not a proposition. Why?

Chapter 2: The Logic of Quantified Statements. January 22, 2010

Logic and Proofs. (A brief summary)

COMP 182 Algorithmic Thinking. Proofs. Luay Nakhleh Computer Science Rice University

Lecture 2. Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits. Reading (Epp s textbook)

Mat 243 Exam 1 Review

Discrete Mathematics & Mathematical Reasoning Predicates, Quantifiers and Proof Techniques

Proofs. Methods of Proof Divisibility Floor and Ceiling Contradiction & Contrapositive Euclidean Algorithm. Reading (Epp s textbook)

Predicate Logic. CSE 191, Class Note 02: Predicate Logic Computer Sci & Eng Dept SUNY Buffalo

2-4: The Use of Quantifiers

Some Review Problems for Exam 1: Solutions

Propositional Logic Not Enough

Steinhardt School of Culture, Education, and Human Development Department of Teaching and Learning. Mathematical Proof and Proving (MPP)

THE LOGIC OF QUANTIFIED STATEMENTS. Predicates and Quantified Statements I. Predicates and Quantified Statements I CHAPTER 3 SECTION 3.

EECS 1028 M: Discrete Mathematics for Engineers

Quantifiers. P. Danziger

Discrete Mathematical Structures: Theory and Applications

Introduction to Sets and Logic (MATH 1190)

1.1 Language and Logic

First order Logic ( Predicate Logic) and Methods of Proof

ICS141: Discrete Mathematics for Computer Science I

1.1 Language and Logic

Section Summary. Section 1.5 9/9/2014

cse 311: foundations of computing Fall 2015 Lecture 6: Predicate Logic, Logical Inference

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional

Discrete Structures for Computer Science

3.6. Disproving Quantified Statements Disproving Existential Statements

THE LOGIC OF QUANTIFIED STATEMENTS

Proof by Contradiction

Group 5. Jeremy Gutierrez. Jesus Ochoa Perez. Alvaro Gonzalez. MATH 170: Discrete Mathematics. Dr. Lipika Deka. March 14, 2014.

Conjunction: p q is true if both p, q are true, and false if at least one of p, q is false. The truth table for conjunction is as follows.

Logic Overview, I. and T T T T F F F T F F F F

The following techniques for methods of proofs are discussed in our text: - Vacuous proof - Trivial proof

More examples of mathematical. Lecture 4 ICOM 4075

Strategies for Proofs

Section 2.1: Introduction to the Logic of Quantified Statements

Section 3.1: Direct Proof and Counterexample 1

MCS-236: Graph Theory Handout #A4 San Skulrattanakulchai Gustavus Adolphus College Sep 15, Methods of Proof

Lecture Predicates and Quantifiers 1.5 Nested Quantifiers

Logic and Proof. Aiichiro Nakano

Logic. Definition [1] A logic is a formal language that comes with rules for deducing the truth of one proposition from the truth of another.

Chapter 1 Elementary Logic

Quantifiers. Alice E. Fischer. CSCI 1166 Discrete Mathematics for Computing February, 2018

Your quiz in recitation on Tuesday will cover 3.1: Arguments and inference. Your also have an online quiz, covering 3.1, due by 11:59 p.m., Tuesday.

Discrete Mathematics and Its Applications

Predicate in English. Predicates and Quantifiers. Predicate in Logic. Propositional Functions: Prelude. Propositional Function

PREDICATE LOGIC. Schaum's outline chapter 4 Rosen chapter 1. September 11, ioc.pdf

Predicate logic. G. Carl Evans. Summer University of Illinois. Propositional Logic Review Predicate logic Predicate Logic Examples

Predicate Logic. Andreas Klappenecker

Direct Proof and Proof by Contrapositive

Section 1.7 Proof Methods and Strategy. Existence Proofs. xp(x). Constructive existence proof:

Proofs. Joe Patten August 10, 2018

WUCT121. Discrete Mathematics. Logic. Tutorial Exercises

For all For every For each For any There exists at least one There exists There is Some

Introduction to Decision Sciences Lecture 2

Chapter 3. The Logic of Quantified Statements

Proofs. Introduction II. Notes. Notes. Notes. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Fall 2007

MAT 243 Test 1 SOLUTIONS, FORM A

CSC 125 :: Final Exam May 3 & 5, 2010

5. Use a truth table to determine whether the two statements are equivalent. Let t be a tautology and c be a contradiction.

Predicates and Quantifiers. CS 231 Dianna Xu

MATH 215 Discrete Mathematics Worksheets. Which of these are propositions? What are the truth values of those that are propositions?

1 Predicates and Quantifiers

Review. Propositional Logic. Propositions atomic and compound. Operators: negation, and, or, xor, implies, biconditional.

CSE 20 Discrete Math. Algebraic Rules for Propositional Formulas. Summer, July 11 (Day 2) Number Systems/Computer Arithmetic Predicate Logic

Mathematics 220 Midterm Practice problems from old exams Page 1 of 8

1. Propositions: Contrapositives and Converses

Today. Proof using contrapositive. Compound Propositions. Manipulating Propositions. Tautology

Propositional Logic, Predicates, and Equivalence

Chapter 1, Logic and Proofs (3) 1.6. Rules of Inference

The Process of Mathematical Proof

Proofs: A General How To II. Rules of Inference. Rules of Inference Modus Ponens. Rules of Inference Addition. Rules of Inference Conjunction

Quantifiers and Statements

1.3 Predicates and Quantifiers

Tools for reasoning: Logic. Ch. 1: Introduction to Propositional Logic Truth values, truth tables Boolean logic: Implications:

ECOM Discrete Mathematics

Homework 3: Solutions

Negation introduction

Section Summary. Predicate logic Quantifiers. Negating Quantifiers. Translating English to Logic. Universal Quantifier Existential Quantifier

2/2/2018. CS 103 Discrete Structures. Chapter 1. Propositional Logic. Chapter 1.1. Propositional Logic

Mathematical Reasoning (Part I) 1

CSCE 222 Discrete Structures for Computing. Review for Exam 1. Dr. Hyunyoung Lee !!!

Educjatipnal. L a d ie s * COBNWALILI.S H IG H SCHOOL. I F O R G IR L S A n B k i n d e r g a r t e n.

Chapter 2 Section 2.1: Proofs Proof Techniques. CS 130 Discrete Structures

Logic and Proofs. (A brief summary)

Section 2.3: Statements Containing Multiple Quantifiers

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 1

CSE 20 DISCRETE MATH. Fall

Section 1.1 Propositions

Show Your Work! Point values are in square brackets. There are 35 points possible. Tables of tautologies and contradictions are on the last page.

Math.3336: Discrete Mathematics. Nested Quantifiers

Chapter 2: The Logic of Quantified Statements

THE LOGIC OF QUANTIFIED STATEMENTS

Before you get started, make sure you ve read Chapter 1, which sets the tone for the work we will begin doing here.

Meaning of Proof Methods of Proof

Transcription:

Lecture 3 Logic Predicates and Quantified Statements Statements with Multiple Quantifiers Reading (Epp s textbook) 3.1-3.3 Introduction to Proofs Reading (Epp s textbook) 4.1-4.2 1

Propositional Functions A predicate is a sentence that contains a finite number of variables and becomes a statement when specific values are substituted for the variables. e.g.: x -3 > 5. Let us call this propositional function P(x), where P is the predicate (x-3 >5) and x is the variable. What is the truth value of P(2)? false What is the truth value of P(8)? false What is the truth value of P(9)? true 2

Propositional Functions Let us consider the propositional function Q(x, y, z) defined as: x + y = z. Here, Q is the predicate and x, y, and z are the variables. What is the truth value of Q(2, 3, 5)? true What is the truth value of Q(0, 1, 2)? false What is the truth value of Q(9, -9, 0)? true 3

Truth Set If P(x) is a propositional function and x has domain D The truth set of P(x) is denoted xx DD PP xx } Note: xx iiii ttttt ttttttttt ssssss oooo PP xx, PP(xx) should be true. 4

Universal Quantification Let P(x) be a propositional function. Universally quantified sentence: For all x in the universe of discourse P(x) is true. Using the universal quantifier : xx DD, PP xx Note: xx DD, PP(xx) is either true or false, so it is a statement (proposition), not a propositional function. A value for xx for which PP(xx) is false is called a counterexample to the universal statement. Statement: All birds can fly. Disproved by counterexample: Penguin. 5

Universal Quantification Example: S(x): x is a UMBC student. G(x): x is a genius. What does xx, (SS(xx) GG(xx)) mean? If x is a UMBC student, then x is a genius. or All UMBC students are geniuses. 6

Existential Quantification Existentially quantified sentence: There exists an x in the universe of discourse for which P(x) is true. Using the existential quantifier : xx DD sssssss ttttttt PP xx There is an x such that P(x). There is at least one x such that P(x). Note: xx DD sssssss ttttttt PP xx is either true or false, so it is a statement (proposition), but no propositional function. 7

Existential Quantification Example: P(x): x is a UMBC professor. G(x): x is a genius. What does x such that (P(x) G(x)) mean? There is an x such that x is a UMBC professor and x is a genius. or At least one UMBC professor is a genius. 8

Negation Negation of a Universal Statement ( xx DD, PP xx ) is logically equivalent to xx DD sssssss ttttttt PP(xx). Negation of an Existential Statement ( xx DD sssssss ttttttt PP xx )is logically equivalent to xx DD, PP(xx). 9

Negation of a Universal Cond. Statement ( xx, iiii PP xx ttttttt QQ xx ) is logically equivalent to xx sssssss ttttttt PP xx aaaaaa QQ(xx). Proof xx, iiii PP xx ttttttt QQ xx xx sssssss ttttttt, (PP xx QQ xx ). But ~ PP xx QQ xx P(x) ~QQ(xx) 10

Negation of a Multiply-Quantified Statements ~( xx iiii DD, yy iiii EE sssssss ttttttt PP xx, yy ) is logically equivalent to xx iiii DD sssssss ttttttt yy iiii EE, ~PP xx, yy. And ~( xx iiii DD sssssss ttttttt yy iiii EE, PP xx, yy ) is logically equivalent to xx iiii DD, yy iiii EE sssssss ttttttt ~PP xx, yy. 11

Methods of Proof: Some Definitions For all objects A, B, and C, (1) A = A, (2) if A = B then B = A, and (3) if A = B and B = C, then A = C. The set of all integers is closed under addition, subtraction, and multiplication. If n is an integer, then n is even an integer k such that n = 2k. n is odd an integer k such that n = 2k + 1. n is prime positive integers r and s, if n = rs then either r = 1 and s = n or r = n and s = 1. n is composite positive integers r and s such that n = rs and 1 < r < n and 1 < s < n. 12

Proving Existential Statements A statement in the form: xx DD sssssss ttttttt PP xx is true if, and only if, PP(xx) is true for at least one xx in D. Example Prove the following: an even integer n that can be written in two ways as a sum of two prime numbers. Solution: Let n = 10. Then 10 = 5 + 5 = 3 + 7 and 3, 5, and 7 are all prime numbers. This method is called constructive proof of existence! 13

Proving Universal Statements To prove a statement of the form x in D, if P(x) then Q(x) I. When D is finite or when only a finite number of elements satisfy P(x), such a statement can be proved by the method of exhaustion. II. Method of Generalizing from the Generic Particular: suppose x is a particular but arbitrarily chosen element of the set, and show that x satisfies the property. When the method of generalizing from the generic particular is applied to a property of the form If P(x) then Q(x), the result is the method of direct proof. 14

Disproving a Statement To disprove a universal statement of the form: x in D, if P(x) then Q(x). we should show that the negation of the statement is true x in D such that P(x) and not Q(x). Such an xx is called a counterexample. To disprove an existential statement of the form: x in D such that P(x). we should show that the negation of the statement is true x in D, P(x). Use the Method of Generalizing from the Generic Particular. 15

Disproving a Statement: Example Disprove the universal statement: a,b R, if aa 2 = bb 2 then a = b. Solution: We should show that the negation of the statement is true. aa, bb RR such that aa 2 = bb 2 and not a = b. Counterexample: Let aa = 1 aaaaaa bb = 1. 16

Disproving a Statement: Example Disprove the existential statement: x in ZZ + such that xx 2 + 3xx + 2 is prime. Solution: We should show that the negation of the statement is true x ZZ +, xx 2 + 3xx + 2 is not prime (composite). Method of Generalizing from the Generic Particular: Suppose xx is any (particular but arbitrarily chosen) positive integer. Then xx 2 + 3xx + 2 = xx + 1 xx + 2. Both xx + 1 aaaaaa (xx + 2) are integers and are > 1 (since xx 1). Thus xx 2 + 3xx + 2 is a product of two integers each greater than 1, and so xx 2 + 3xx + 2 is not prime. 17

Method of Direct Proof A statement in the form x in D, p q can be proved by showing that if p is true, then q is also true. Example: Give a direct proof of the theorem n in Z, if n is odd, then n 2 is odd. Idea: Assume that the hypothesis of this implication is true (n is odd). Then use rules of inference and known theorems to show that q must also be true (n 2 is odd). 18

Direct Proof Example n is odd. Then n = 2k + 1, where k is an integer. Consequently, n 2 = (2k + 1) 2. = 4k 2 + 4k + 1 = 2(2k 2 + 2k) + 1 Since n 2 can be written in this form, it is odd. 19

Indirect Proof A statement in the form x in D, p q is equivalent to its contrapositive q p. Therefore, we can prove p q by showing that whenever q is false, then p is also false. Example: Give an indirect proof of the theorem n in Z, if 3n + 2 is odd, then n is odd. Idea: Assume that the conclusion of this statement is false (n is even). Then use rules of inference and known theorems to show that p must also be false (3n + 2 is even). 20

Indirect Proof Example n is even. Then n = 2k, where k is an integer. It follows that 3n + 2 = 3(2k) + 2 = 6k + 2 = 2(3k + 1) Therefore, 3n + 2 is even. We have shown that the contrapositive of the statement is true, so the implication itself is also true (If 2n + 3 is odd, then n is odd). 21

Rational Numbers A real number r is rational integers aa aaaaaa bb such that rr = aa aaaaaa bb 0. bb Every integer is a rational number. The sum of any two rational numbers is rational. The double of a rational is rational. 22