THE LOGIC OF QUANTIFIED STATEMENTS. Statements with Multiple Quantifiers. Statements with Multiple Quantifiers CHAPTER 3 SECTION 3.

Similar documents
THE LOGIC OF QUANTIFIED STATEMENTS

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

Chapter 2: The Logic of Quantified Statements

THE LOGIC OF QUANTIFIED STATEMENTS

Tutorial 2 Logic of Quantified Statements

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

Exercise Set 2.1. Notes: is equivalent to AND ; both statements must be true for the statement to be true.

spaghetti fish pie cake Ann X X Tom X X X Paul X X X

Section Summary. Section 1.5 9/9/2014

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

THE LOGIC OF QUANTIFIED STATEMENTS

Section 2.3: Statements Containing Multiple Quantifiers

Section 2.1: Introduction to the Logic of Quantified Statements

Mat 243 Exam 1 Review

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

CSI30. Chapter 1. The Foundations: Logic and Proofs Nested Quantifiers

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

Introduction to Sets and Logic (MATH 1190)

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

Direct Proof and Counterexample I:Introduction. Copyright Cengage Learning. All rights reserved.

Predicates, Quantifiers and Nested Quantifiers

Mathematical Logic Part Three

Propositional Logic Not Enough

1.7 Inequalities. Copyright Cengage Learning. All rights reserved.

THE LOGIC OF COMPOUND STATEMENTS

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

Math.3336: Discrete Mathematics. Nested Quantifiers

Mathematical Logic Part Three

Direct Proof and Counterexample I:Introduction

Mathematical Logic Part Three

THE LOGIC OF COMPOUND STATEMENTS

Quantifiers. P. Danziger

Mathematical Logic Part Three

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

Discrete Structures Lecture 5

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

Predicate Logic Thursday, January 17, 2013 Chittu Tripathy Lecture 04

22c:145 Artificial Intelligence

Section Summary. Predicates Variables Quantifiers. Negating Quantifiers. Translating English to Logic Logic Programming (optional)

Basic Logic and Proof Techniques

CS1021. Why logic? Logic about inference or argument. Start from assumptions or axioms. Make deductions according to rules of reasoning.

EECS 1028 M: Discrete Mathematics for Engineers

Negations of Quantifiers

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

Quantifiers and Statements

We have seen that the symbols,,, and can guide the logical

Introduction to Decision Sciences Lecture 2

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

3.3 Dividing Polynomials. Copyright Cengage Learning. All rights reserved.

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

4 Integration. Copyright Cengage Learning. All rights reserved.

Discrete Mathematics and Its Applications

1 Predicates and Quantifiers

2-4: The Use of Quantifiers

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

Thinking of Nested Quantification

SEQUENCES, MATHEMATICAL INDUCTION, AND RECURSION

Proofs. An (informal) proof is an essay that will persuade a logical reader that a mathematical theorem is true.

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 1

Rosen, Discrete Mathematics and Its Applications, 6th edition Extra Examples

Lecture 4. Predicate logic

Solving Equations by Adding and Subtracting

Review: Potential stumbling blocks

A statement is a sentence that is definitely either true or false but not both.

MAI0203 Lecture 7: Inference and Predicate Calculus

Quantifiers Here is a (true) statement about real numbers: Every real number is either rational or irrational.

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional

Mathematical Logic Part Two

Discrete Structures Lecture Predicates and Quantifiers

1.3 Predicates and Quantifiers


SPEAKING MATHEMATICALLY. Prepared by Engr. John Paul Timola

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

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

Intelligent Agents. First Order Logic. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University. last change: 19.

Predicate Calculus lecture 1

ITS336 Lecture 6 First-Order Logic

Predicate Calculus - Syntax

Overview. 1. Introduction to Propositional Logic. 2. Operations on Propositions. 3. Truth Tables. 4. Translating Sentences into Logical Expressions

Discrete Structures for Computer Science

Announcements. CS311H: Discrete Mathematics. Introduction to First-Order Logic. A Motivating Example. Why First-Order Logic?

! Predicates! Variables! Quantifiers. ! Universal Quantifier! Existential Quantifier. ! Negating Quantifiers. ! De Morgan s Laws for Quantifiers

Introduction to Predicate Logic Part 1. Professor Anita Wasilewska Lecture Notes (1)

A Guide to Proof-Writing

Propositional and Predicate Logic

Discrete Mathematical Structures. Chapter 1 The Foundation: Logic

Elementary Linear Algebra, Second Edition, by Spence, Insel, and Friedberg. ISBN Pearson Education, Inc., Upper Saddle River, NJ.

2/18/14. What is logic? Proposi0onal Logic. Logic? Propositional Logic, Truth Tables, and Predicate Logic (Rosen, Sections 1.1, 1.2, 1.

Topic #3 Predicate Logic. Predicate Logic

Propositional Logic Logical Implication (4A) Young W. Lim 4/21/17

Propositional and Predicate Logic

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

A Little Deductive Logic

Announcements CompSci 102 Discrete Math for Computer Science

Foundation of proofs. Jim Hefferon.

Computer Science 280 Spring 2002 Homework 2 Solutions by Omar Nayeem

Predicates and Quantifiers. CS 231 Dianna Xu

1.1 Language and Logic

Learning Goals of CS245 Logic and Computation

Transcription:

CHAPTER 3 THE LOGIC OF QUANTIFIED STATEMENTS SECTION 3.3 Statements with Multiple Quantifiers Copyright Cengage Learning. All rights reserved. Copyright Cengage Learning. All rights reserved. When a statement contains more than one quantifier, we imagine the actions suggested by the quantifiers as being performed in the order in which the quantifiers occur. For instance, consider a statement of the form x in set D, y in set E such that x and y satisfy property P(x, y). To show that such a statement is true, you must be able to meet the following challenge: Imagine that someone is allowed to choose any element whatsoever from the set D, and imagine that the person gives you that element. Call it x. The challenge for you is to find an element y in E so that the person s x and your y, taken together, satisfy property P(x, y). 3 4

Now consider a statement containing both and, where the comes before the : an x in D such that y in E, x and y satisfy property P(x, y). To show that a statement of this form is true: You must find one single element (call it x) ind with the following property: After you have found your x, someone is allowed to choose any element whatsoever from E. The person challenges you by giving you that element. Call it y. Your job is to show that your x together with the person s Here is a summary of the convention for interpreting statements with two different quantifiers: Interpreting Statements with Two Different Quantifiers If you want to establish the truth of a statement of the form x in D, y in E such that P(x, y) your challenge is to allow someone else to pick whatever element x in D they wish and then you must find an element y in E that works for that particular x. y satisfy property P(x, y). 5 6 If you want to establish the truth of a statement of the form x in D such that y in E, P(x, y) your job is to find one particular x in D that will work no matter what y in E anyone might choose to challenge you with. Example 3 Interpreting Multiply-Quantified Statements A college cafeteria line has four stations: salads, main courses, desserts, and beverages. The salad station offers a choice of green salad or fruit salad; the main course station offers spaghetti or fish; the dessert station offers pie or cake; and the beverage station offers milk, soda, or coffee. Three students, Uta, Tim, and Yuen, go through the line and make the following choices: 7 Uta: green salad, spaghetti, pie, milk Tim: fruit salad, fish, pie, cake, milk, coffee Yuen: spaghetti, fish, pie, soda 8

Example 3 Interpreting Multiply-Quantified Statements These choices are illustrated in Figure 3.3.2. cont d Example 3 Interpreting Multiply-Quantified Statements Write each of following statements informally and find its truth value. cont d a. an item I such that students S, S chose I. b. a student S such that items I, S chose I. c. a student S such that stations Z, an item I in Z such that S chose I. Figure 3.3.2 d. students S and stations Z, an item I in Z such that S chose I. 9 10 Example 3 Solution a. There is an item that was chosen by every student. This is true; every student chose pie. b. There is a student who chose every available item. This is false; no student chose all nine items. c. There is a student who chose at least one item from every station. This is true; both Uta and Tim chose at least one item from every station. Translating from Informal to Formal Language d. Every student chose at least one item from every station. This is false; Yuen did not choose a salad. 11 12

Translating from Informal to Formal Language Most problems are stated in informal language, but solving them often requires translating them into more formal terms. Example 4 Translating Multiply-Quantified Statements from Informal to Formal Language The reciprocal of a real number a is a real number b such that ab = 1. The following two statements are true. Rewrite them formally using quantifiers and variables: a. Every nonzero real number has a reciprocal. b. There is a real number with no reciprocal. The number 0 has no reciprocal. Solution: a. nonzero real numbers u, a real number v such that uv = 1. 13 b. a real number c such that real numbers d, cd 1. 14 Negations of Multiply-Quantified Statements You can use the same rules to negate multiply-quantified statements that you used to negate simpler quantified statements. Negations of Multiply-Quantified Statements We have known that and ( x in D, P(x)) x in D such that P(x). ( x in D such that P(x)) x in D, P(x). 15 16

Negations of Multiply-Quantified Statements We apply these laws to find ( x in D, y in E such that P(x, y)) by moving in stages from left to right along the sentence. First version of negation: x in D such that ( y in E such that P(x, y)). Final version of negation: x in D such that y in E, P(x, y). Negations of Multiply-Quantified Statements Similarly, to find we have ( x in D such that y in E, P(x, y)), First version of negation: x in D, ( y in E, P(x, y)). Final version of negation: x in D, y in E such that P(x, y). 17 18 Negations of Multiply-Quantified Statements These facts can be summarized as follows: Order of Quantifiers 19 20

Order of Quantifiers Consider the following two statements: people x, a person y such that x loves y. a person y such that people x, x loves y. Note that except for the order of the quantifiers, these statements are identical. However, the first means that given any person, it is possible to find someone whom that person loves, whereas the second means that there is one amazing individual who is loved by all people. Order of Quantifiers The two sentences illustrate an extremely important property about multiply-quantified statements: Interestingly, however, if one quantifier immediately follows another quantifier of the same type, then the order of the quantifiers does not affect the meaning. 21 22 Formal Logical Notation In some areas of computer science, logical statements are expressed in purely symbolic notation. Formal Logical Notation The notation involves using predicates to describe all properties of variables and omitting the words such that in existential statements. The formalism also depends on the following facts: 23 x in D, P(x) can be written as x(x in D P(x)), and x in D such that P(x) can be written as x(x in D P(x)). We illustrate the use of these facts in Example 10. 24

Formal Logical Notation The disadvantage of the fully formal notation is that because it is complex and somewhat remote from intuitive understanding, when we use it, we may make errors that go unrecognized. The advantage, however, is that operations, such as taking negations, can be made completely mechanical and programmed on a computer. Also, when we become comfortable with formal manipulations, we can use them to check our intuition, and then we can use our intuition to check our formal manipulations. 25 Formal Logical Notation Formal logical notation is used in branches of computer science such as artificial intelligence, program verification, and automata theory and formal languages. Taken together, the symbols for quantifiers, variables, predicates, and logical connectives make up what is known as the language of first-order logic. Even though this language is simpler in many respects than the language we use every day, learning it requires the same kind of practice needed to acquire any foreign language. 26