Chapter 3. The Logic of Quantified Statements

Similar documents
DISCRETE MATH: LECTURE Chapter 3.3 Statements with Multiple Quantifiers If you want to establish the truth of a statement of the form

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

THE LOGIC OF QUANTIFIED STATEMENTS

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

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

Chapter 2: The Logic of Quantified Statements

Predicate Logic. Andreas Klappenecker

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

THE LOGIC OF QUANTIFIED STATEMENTS

Discrete Structures for Computer Science

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

Review. Propositions, propositional operators, truth tables. Logical Equivalences. Tautologies & contradictions

Quantifiers. P. Danziger

Inference and Proofs (1.6 & 1.7)

CMPSCI 250: Introduction to Computation. Lecture 11: Proof Techniques David Mix Barrington 5 March 2013

Chapter 1 Elementary Logic

Section 3.1: Direct Proof and Counterexample 1

1 Predicates and Quantifiers

Proofs. Example of an axiom in this system: Given two distinct points, there is exactly one line that contains them.

DISCRETE MATH: FINAL REVIEW

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

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

A. Propositional Logic

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

Logic, Sets, and Proofs

3/29/2017. Logic. Propositions and logical operations. Main concepts: propositions truth values propositional variables logical operations

CSE 20 DISCRETE MATH. Winter

Propositional Logic Not Enough

[Ch 3, 4] Logic and Proofs (2) 1. Valid and Invalid Arguments ( 2.3, 3.4) 400 lecture note #2. 1) Basics

CSCE 222 Discrete Structures for Computing. Predicate Logic. Dr. Hyunyoung Lee. !!!!! Based on slides by Andreas Klappenecker

2-4: The Use of Quantifiers

CSE 20 DISCRETE MATH. Fall

1.1 Language and Logic

MAT 243 Test 1 SOLUTIONS, FORM A

WUCT121. Discrete Mathematics. Logic. Tutorial Exercises

THE LOGIC OF COMPOUND STATEMENTS

Chapter 1: The Logic of Compound Statements. January 7, 2008

1. Consider the conditional E = p q r. Use de Morgan s laws to write simplified versions of the following : The negation of E : 5 points

MACM 101 Discrete Mathematics I. Exercises on Predicates and Quantifiers. Due: Tuesday, October 13th (at the beginning of the class)

Section 2.1: Introduction to the Logic of Quantified Statements

Tutorial 2 Logic of Quantified Statements

Discrete Mathematics Logics and Proofs. Liangfeng Zhang School of Information Science and Technology ShanghaiTech University

1.1 Language and Logic

Test 1 Solutions(COT3100) (1) Prove that the following Absorption Law is correct. I.e, prove this is a tautology:

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

1 The Foundation: Logic and Proofs

Math.3336: Discrete Mathematics. Nested Quantifiers/Rules of Inference

Logic and Propositional Calculus

First order Logic ( Predicate Logic) and Methods of Proof

2. Use quantifiers to express the associative law for multiplication of real numbers.

Math 3336: Discrete Mathematics Practice Problems for Exam I

Logic and Proofs. (A brief summary)

Section A (not in the text) Which of the following are statements? Explain. 3. The President of the United States in 2089 will be a woman.

Section 1.1 Propositions

CSCI-2200 FOUNDATIONS OF COMPUTER SCIENCE

University of Ottawa CSI 2101 Midterm Test Instructor: Lucia Moura. March 1, :00 pm Duration: 1:15 hs

1 The Foundation: Logic and Proofs

Predicate Logic & Quantification

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

Chapter 4, Logic using Propositional Calculus Handout

MTH 299 In Class and Recitation Problems SUMMER 2016

Supplementary Logic Notes CSE 321 Winter 2009

Intro to Logic and Proofs

Section 1.3. Let I be a set. When I is used in the following context,

Predicate Logic. Example. Statements in Predicate Logic. Some statements cannot be expressed in propositional logic, such as: Predicate Logic

Packet #2: Set Theory & Predicate Calculus. Applied Discrete Mathematics

Logic and Proof. Aiichiro Nakano

Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics. Introductory Notes in Discrete Mathematics Solution Guide

KS MATEMATIKA DISKRIT (DISCRETE MATHEMATICS ) RULES OF INFERENCE. Discrete Math Team

4 Quantifiers and Quantified Arguments 4.1 Quantifiers

Discrete Mathematical Structures: Theory and Applications

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

CS0441 Discrete Structures Recitation 3. Xiang Xiao

Lecture 5 : Proofs DRAFT

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

Mathematical Reasoning (Part I) 1

Readings: Conjecture. Theorem. Rosen Section 1.5

2. Find all combinations of truth values for p, q and r for which the statement p (q (p r)) is true.

Mat 243 Exam 1 Review

Outline. Rules of Inferences Discrete Mathematics I MATH/COSC 1056E. Example: Existence of Superman. Outline

HANDOUT AND SET THEORY. Ariyadi Wijaya

Handout on Logic, Axiomatic Methods, and Proofs MATH Spring David C. Royster UNC Charlotte

Sample Problems for all sections of CMSC250, Midterm 1 Fall 2014

1.1 Statements and Compound Statements

Section 2.3: Statements Containing Multiple Quantifiers

Formal (Natural) Deduction for Predicate Calculus

Rules Build Arguments Rules Building Arguments

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

1) Let h = John is healthy, w = John is wealthy and s = John is wise Write the following statement is symbolic form

Review for Midterm 1. Andreas Klappenecker

CS 2336 Discrete Mathematics

Exercise Set 1 Solutions Math 2020 Due: January 30, Find the truth tables of each of the following compound statements.

CITS2211 Discrete Structures Proofs

CPSC 121: Models of Computation

Proposition logic and argument. CISC2100, Spring 2017 X.Zhang

Where are my glasses?

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

Logic and Proofs. (A brief summary)

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

CSE Discrete Structures

Transcription:

Chapter 3. The Logic of Quantified Statements

3.1. Predicates and Quantified Statements I

Predicate in grammar Predicate refers to the part of a sentence that gives information about the subject. Example: James is a student at Bedford College. Subject: James Predicate: a student at Bedford College.

Remark 3x + 5 = 1: equation x > 5 : inequality We cannot say whether the above equation and inequality are true or false before any number which can replace the x is given. However, when we replace x by any number, then the above equation or inequality become a statement.

Predicate in logic A predicate is sentence that contains a finite number of variables and becomes a statement when specific values are substituted for the variables. The domain of a predicate variable is the set of all values that may be substituted in place of the variable.

Example P(x) is the predicate x 2 > x with domain the set R of all real numbers. Remark: (meaning of predicate) P(x): x 2 > x is NOT a statement. That is just an inequality. However, when we replace x by any real number. It becomes a statement because we know whether that is true or false.

Example Let P(x) be the predicate x 2 > x with domain the set R of all real numbers. Write P 2, P 1, and P 1, and indicate which of 2 2 these statements are true and which are false.

Truth Set If P(x) is a predicate and x has domain D, the truth set of P(x) is the set of all elements of D that make P(x) true when they are substituted for x. Notation: (Truth Set) {x D P x }

Example Let Q(n) be the predicate `n is a factor of 8. Find the truth set of Q(n) if 1. The domain of n is the set of all positive integers. 2. The domain of n is the set of all integers.

Key words so far. Predicate: P(x) Domain Truth Set

Quantifier Quantifiers are words that refer to quantities such as some or all and tell for how many elements a given predicate is true. Universal Quantifier: for all ( Notation: ) Existential Quantifier: there exists ( Notation: )

Universal Quantifier for all for every for any for arbitrary for each given any

Example (Universal Quantifier) All human beings are mortal. Symbolize the sentence: Human beings x, x is mortal. x H, x is mortal, where H denote the set of all human beings.

Universal Statement, Truth, counterexample Let Q(x) be a predicate and D the domain of x. A universal statement is a statement of the form x D, Q(x) It is defined to be true if, and only if, Q(x) is true for every x in D. It is defined to be false if, and only if, Q(x) is false for at least one x in D. A value for x for which Q(x) is false is called a counterexample to the universal statement.

Example (Truth and Falsity of Universal Statements) 1. Let D = 1,2, 3, 4, 5, and consider the statement x D, x 2 x. Show that this statement is true. 2. Consider the statement x R, x 2 x. Find a counterexample to show that this statement is false.

Existential Quantifier There exists There is a We can find a There is at least one For some For at least one

Existential Statement, True, False Let Q(x) be a predicate and D the domain of x. An existential statement is a statement of the form x D such that Q(x). It is defined to be true if, and only if, Q(x) is true for at least one x in D. It is false if, and only if, Q(x) is false for all x in D.

Example

Universal Conditional Statement Example

Example Rewrite each of the following statements in the form, if, then. a. If a real number is an integer, then it is a rational number. b. All bytes have eight bits. c. No fire trucks are green.

Example Rewrite each of the following statements in the form, if, then. a. If a real number is an integer, then it is a rational number. b. All bytes have eight bits. c. No fire trucks are green. a. real number x, if x is an integer, then x is a rational number. b. x, if x is byte, then x has eight bits. c. x, if x is a fire truck, then x is not green.

Relationship between predicates Let P(x) and Q(x) be predicates which have the common domain D.

Example Let Q(n) be `n is a factor of 8, R(n) be `n is a factor of 4, S(n) be `n < 5 and n 3, and suppose the domain of n is Z +, the set of positive integers. Use the and symbols to indicate true relationship among Q(n), R(n), and S(n).

Example Let Q(n) be `n is a factor of 8, R(n) be `n is a factor of 4, S(n) be `n < 5 and n 3, and suppose the domain of n is Z +, the set of positive integers. Use the and symbols to indicate true relationship among Q(n), R(n), and S(n). Truth set of Q(n)={1, 2, 4, 8} Truth set of R(n)={1,2,4} Truth set of S(n) = {1,2,4}

3.2. Predicates and Quantified Statements II

Logical equivalence for quantified statements The statements are logically equivalent if the statements always have identical truth values 1. no matter what predicates are substituted for the predicate symbols and 2. no matter what sets are used for the domains of the predicate variables.

The meaning of `negate in dictionary 1. to cancel or destroy the effect of something. 2. to deny the existence of something.

Example Statement: `All mathematicians wear glasses What is the negation of the statement? Answer: 1. Some mathematicians don t wear glasses. 2. There is at least one mathematician who doesn t wear glasses.

Negation of a Universal Statement The negation of a universal statement (`all are ) is logically equivalent to an existential statement (`some are not or `there is at least one that is not ) Symbolically, ~ x D, Q x x D such that ~Q(x)

Example Write formal negation for the statement primes p, p is odd. Answer: a prime p such that p is not odd.

Example Statement: Some snowflakes are the same. What is negation for the statement? Answer: No snowflakes are the same. All snowflakes are different.

Negation of an Existential Statement The negation of an existential statement ( some are ) is logically equivalent to a universal statement ( none are or all are not ). Symbolically, ~ x D such that Q x x D, ~Q(x)

Example Write formal negations for the statement a triangle T such that the sum of the angles of T equals 200 degree. Answer: triangles T, the sum of the angles of T does not equal 200 degree.

Example Statement: No politicians are honest. 1. Write the statement formally. 2. Write the formal negation. 3. Write the informal negation. Answer: 1. Hint: Combine the universal quantifier with the predicate. politicians x, x is not honest. 2. a politician x such that x is honest. 3. Some politicians are honest.

Example Write informal negations for the following statements: All computer programs are finite. Answer: There is a computer program that is not finite. Some computer programs are infinite.

Example Write informal negations for the following statements: Some computer hackers are over 40. Answer: All computer hackers are 40 or under. No computer hackers are over 40.

Negation of Universal Conditional Statements ~ x, P x Q x x such that ~(P x Q x ) x such that (P x ~Q x )

Example Write a formal negation for statement people p, if p is blond then p has blue eyes. Answer: Hint: Use x such that P Q. a person p such that p is blond and p does not have blue eyes.

Example Write the informal negation for statement: If a computer program has more than 100, 000 lines, then it contains a bug. Answer: Hint: Interpret the given statement as for all computer program, if it has more than. There is at lease one computer program that has more than 100,000 lines and does not contain a bug.

Variants of Universal Conditional Statements Consider a statement of the form: x D, if P x, then Q x. 1. Contrapositive statement: x D, if ~Q x, then ~P x. 2. Converse: x D, if Q x, then P x. 3. Inverse: x D, if~p x, then~q x.

Example Write a formal statement for the following statement: If a real number is greater than 2, then its square is greater than 4. Answer: x R, if x > 2, then x 2 > 4.

Example Write a formal and an informal contrapositive for the following statement: x R, if x > 2, then x 2 > 4. Answer: x R, if x 2 4, then x 2. If the square of a real number is less than or equal to 4, then the number is less than or equal to 2.

Example Write a formal and an informal converse for the following statement: x R, if x > 2, then x 2 > 4. Answer: x R, if x 2 > 4, then x > 2. If the square of a real number is grater than 4, then the number is greater than 2.

Example Write a formal and an informal inverse for the following statement: x R, if x > 2, then x 2 > 4. Answer: x R, if x 2, then x 2 4. If a real number is less than or equal to 2, then the square of the umber is less than or equal to 4.

Remark 1. Universal conditional statement is logically equivalent to its contrapositive: x D, if P x, then Q x. x D, if ~Q x, then ~P x. 2. Universal statement is NOT logically equivalent to its convers or inverse.

Necessary and Sufficient Conditions x, if s(x), then n(x). s(x) is a sufficient condition for n(x). n(x) is a necessary condition for s(x).

Only if x, r x only if s x. means x, if r(x), then s(x).

Example Rewrite the following statement as quantified conditional statement. Do not use the word necessary or sufficient. Squareness is a sufficient condition for rectangularity. Answer: If a figure is a square, then it is a rectangle. x, if x is a square, then x is a rectangle.

Example Rewrite the following statement as quantified conditional statement. Do not use the word necessary or sufficient. Being at least 35 years old is a necessary condition for being President of the United States. Answer: people x, if x is President of the United States, then x is at least 35 years old.

Example Rewrite the following as a universal conditional statement: A product of two numbers is 0 only if one of the numbers is 0. Answer: If a product of two numbers is 0, then one of the numbers is 0.

Remark( Contrapositive ) 1. people x, if x is President of the United States, then x is at least 35 years old. people x, if x is younger than 35 years old, then x cannot be President of the United States. 2. If a product of two numbers is 0, then one of the numbers is 0. If neither of two numbers is 0, then the product of the numbers is not 0.

3.4. Arguments with Quantified Statements

Watch YouTube clips Modus Ponens Modus Tollens

Rule of inference Universal modus ponens ( direct form of logical argument ) Contrapositive type of logical argument Universal modus tollens ( logical argument using contrapositive )

The rule of instantiation If some property is true of everything in a set, then it is true of any particular thing in the set.

Example Rule of instantiation If some property is true of everything in a set, then it is true of any particular thing in the set. Example All human are mortal. : True to all human. Thus, everybody in this class is mortal ( because everybody in this class is human.)

The rule of instantiation If some property is true of everything in a set, then it is true of any particular thing in the set. The valid form of argument: Rule of instantiation + modus ponens This type of argument is called a Universal Modus Ponens.

Example Naïve Argument All human are mortal. : True to all human. Thus, everybody in this class is mortal ( because everybody in this class is human.) Rule of instantiation + modus ponens All human are mortal. Everybody in this class is human. Therefore, everybody in this class is mortal.

Mathematical Reasoning Induction Small facts to Bigger Conclusion ( Particular to General) Example: 1 = 1 = 1 2 2 1 + 2 = 3 = 2 3 2 1 + 2 + 3 = 6 = 3 4 and 2 conclude 1 + 2 + 3 + n = n (n + 1) 2 Deduction General info applied to Particular case to get conclusion( General to Particular) Example: If a student registered in MATH 321 class, then the student must take two mid-term exams. Jenna registered in MATH 321. Therefore, she must take two mid-term exams.

Universal Modus Ponens Modus Ponens is a logic we use when we do deductive reasoning: General rule is applied to particular case(s). Formal Version x, if P(x), then Q(x). P(a) for a particular a. Q(a). Informal Version If x makes P(x) true, then x makes Q(x) true. a makes P(x) true. a makes Q(x) true.

Example Rewrite the following argument using quantifiers, variables, and predicate symbols. Is this argument valid? Why? If an integer is even, then its square is even. K is a particular integer that is even. k 2 is even.

Example Rewrite the following argument using quantifiers, variables, and predicate symbols. If an integer is even, then its square is even. k is a particular integer that is even. k 2 is even. Symbolize: E(x): x is an even integer. S(x): x 2 is even. k: particular integer x, if E(x), then S(x). E(k) for a particular k. S(k)

Example Is this argument valid? Why? This argument is valid because it uses the universal modus ponens. If an integer is even, then its square is even. K is a particular integer that is even. k 2 is even.

Example Write the conclusion that can be inferred using universal modus ponens: If T is any right triangle with hypotenuse c and legs a and b, then c 2 = a 2 + b 2. The triangle shown at the right is a right triangle with both legs equal to 1 and hypotenuse c.

Example( Answer) Universal modus ponens If T is any right triangle with hypotenuse c and legs a and b, then c 2 = a 2 + b 2. The triangle shown at the right is a right triangle with both legs equal to 1 and hypotenuse c. Explanation General Rule The triangle shown at the right is a particular case of right triangle. c 2 = 1 2 + 1 2 = 2. Thus, the general rule is applied to the given particular case.

Universal Modus Tollens Validity form of Argument: Universal instantiation + modus tollens

Universal Modus Tollens Formal Version x, if P(x), then Q(x). ~Q a, for a particular a. ~P(a) Informal Version If x makes P(x) true, then x makes Q(x) true. a does not make Q(x) true. a does not make P(x) true.

Example Rewrite the following argument using quantifiers, variables, and predicate symbols. Write the major premise in conditional form. Is this argument valid? Why? All human beings are mortal. Zeus is not mortal. Zeus is not human.

Example Problem Rewrite the following argument using quantifiers, variables, and predicate symbols. All human beings are mortal. Zeus is not mortal. Zeus is not human. Answer H(x): x is human. M(x): x is mortal. Z: Zeus. x, if H x, then M x. ~M Z ~H(Z)

Example Problem 1. Write the major premise in conditional form. 2. Is this argument valid? Why? All human beings are mortal. Zeus is not mortal. Zeus is not human. Answer 1. x, if x is human, then x is mortal. 1. This argument has the form of universal modus tollens. Thus it is valid.

Example Write the conclusion that can be inferred using universal modus tollens. All professors are absent-minded. Tom Hutchins is not absent-minded. Answer: Tom Hutchins is not a professor.

Argument form is Valid An argument form is valid if No matter what particular predicates are substituted for the predicate symbols in its premises, if the resulting premise statements are all true, then the conclusion is also true. An Argument is called valid if, and only if its form is valid.

Using Diagrams to Test Validity

Example All integers are rational numbers. Rational Numbers

Example Problem Use diagrams to show the validity of the following syllogism. All human beings are mortal. Zeus is not mortal. Zeus is not a human being. Analyze the syllogism Major premise: All human beings are mortal. Minor premise: Zeus is not mortal. Conclusion: Zeus is not a human being.

Example Problem Use diagrams to show the validity of the following syllogism. Diagram of Major premise All human beings are mortal. Zeus is not mortal. Zeus is not a human being.

Example Problem Use diagrams to show the validity of the following syllogism. Diagram of minor premise All human beings are mortal. Zeus is not mortal. Zeus is not a human being.

Example Problem Use diagrams to show the validity of the following syllogism. Conclusion All human beings are mortal. Zeus is not mortal. Zeus is not a human being.

Example( An Argument with No ) Use diagrams to test the following argument for validity: No polynomial functions have horizontal asymptotes. This function has a horizontal asymptote. This function is not a polynomial function.

Example( An Argument with No ) Polynomial functions Functions with horizontal asymptotes this function

Key Words Predicate Domain Codomain Truth Set Universal quantifier Existential quantifier Counterexample If and only if Only if Necessary, sufficient condition Modus ponens Modus tollens Universal modus ponens Universal modus tollens Rule of instantiation Induction, deduction Argument form is valid Argument is valid Using diagrams to test validity Diagram of major premise Diagram of minor premise

Negation ( Summarize the formal negation to each type of statement) Universal statement Existential statement Universal conditional statement Universal existential statement

Variation of Universal conditional statement What are contrapositive, converse and inverse of universal conditional statement?