Day 5. Friday May 25, 2012

Similar documents
Day 6. Tuesday May 29, We continue our look at basic proofs. We will do a few examples of different methods of proving.

Some Review Problems for Exam 1: Solutions

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

Math 10850, fall 2017, University of Notre Dame

3 The language of proof

Introducing Proof 1. hsn.uk.net. Contents

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.

MATH 135 Fall 2006 Proofs, Part IV

Discrete Mathematics & Mathematical Reasoning Predicates, Quantifiers and Proof Techniques

1. Propositions: Contrapositives and Converses

MATH 271 Summer 2016 Practice problem solutions Week 1

LECTURE 1. Logic and Proofs

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

2-4: The Use of Quantifiers

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

Quantifiers. P. Danziger

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

Basic Logic and Proof Techniques

Predicates, Quantifiers and Nested Quantifiers

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

Chapter 1 Elementary Logic

Section 3.1: Direct Proof and Counterexample 1

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional

Manual of Logical Style

Proof Techniques (Review of Math 271)

MATH10040: Chapter 0 Mathematics, Logic and Reasoning

Mat 243 Exam 1 Review

Theorem. For every positive integer n, the sum of the positive integers from 1 to n is n(n+1)

Mathematical Logic Part One

Section Summary. Section 1.5 9/9/2014

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

Propositional Logic Not Enough

Introduction to Basic Proof Techniques Mathew A. Johnson

Section 2.3: Statements Containing Multiple Quantifiers

Predicate Calculus lecture 1

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

Writing proofs for MATH 61CM, 61DM Week 1: basic logic, proof by contradiction, proof by induction

Math Lecture 3 Notes

1 Propositional Logic

A Guide to Proof-Writing

Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics Lecture notes in progress (27 March 2010)

Math 300: Foundations of Higher Mathematics Northwestern University, Lecture Notes

CS 2800: Logic and Computation Fall 2010 (Lecture 13)

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

HOW TO CREATE A PROOF. Writing proofs is typically not a straightforward, algorithmic process such as calculating

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

First order Logic ( Predicate Logic) and Methods of Proof

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

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

Essentials of Intermediate Algebra

Math 38: Graph Theory Spring 2004 Dartmouth College. On Writing Proofs. 1 Introduction. 2 Finding A Solution

Mathematical Writing and Methods of Proof

Notes on Propositional and First-Order Logic (CPSC 229 Class Notes, January )

Math 4606, Summer 2004: Inductive sets, N, the Peano Axioms, Recursive Sequences Page 1 of 10

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

Math 300 Introduction to Mathematical Reasoning Autumn 2017 Proof Templates 1

means is a subset of. So we say A B for sets A and B if x A we have x B holds. BY CONTRAST, a S means that a is a member of S.

TR : Possible World Semantics for First Order LP

First-Order Logic. 1 Syntax. Domain of Discourse. FO Vocabulary. Terms

Connectives Name Symbol OR Disjunction And Conjunction If then Implication/ conditional If and only if Bi-implication / biconditional

Proof by Contradiction

Chapter 2. Mathematical Reasoning. 2.1 Mathematical Models

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

Quantifiers For and There exists D

Writing Mathematical Proofs

Supplementary Logic Notes CSE 321 Winter 2009

Logic and Proofs. (A brief summary)

Logic and Proofs. (A brief summary)

FILE NAME: PYTHAGOREAN_TRIPLES_012-( WED).DOCX AUTHOR: DOUG JONES

G52DOA - Derivation of Algorithms Predicate Logic

Section Summary. Proof by Cases Existence Proofs

Mathematical Reasoning & Proofs

a. See the textbook for examples of proving logical equivalence using truth tables. b. There is a real number x for which f (x) < 0. (x 1) 2 > 0.

Logic and Proofs 1. 1 Overview. 2 Sentential Connectives. John Nachbar Washington University December 26, 2014

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

Proof by contrapositive, contradiction

1.2 The Role of Variables

More examples of mathematical. Lecture 4 ICOM 4075

Mathematical Reasoning. The Foundation of Algorithmics

CHAPTER 2. FIRST ORDER LOGIC

9/5/17. Fermat s last theorem. CS 220: Discrete Structures and their Applications. Proofs sections in zybooks. Proofs.

List of errors in and suggested modifications for First-Order Modal Logic Melvin Fitting and Richard L. Mendelsohn August 11, 2013

1.1 Statements and Compound Statements

EECS 1028 M: Discrete Mathematics for Engineers

AN INTRODUCTION TO MATHEMATICAL PROOFS NOTES FOR MATH Jimmy T. Arnold

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

CHAPTER 4 SOME METHODS OF PROOF

Predicate Logic. Predicates. Math 173 February 9, 2010

Section 4.2: Mathematical Induction 1

Definitions Chapter 1 Proof Technique (Pg.1): Proof (Pg.2): Statement (Pg.2): Conditional Statement/Implication (Pg3.): Hypothesis(Pg.

Logic, Sets, and Proofs

1 Predicates and Quantifiers

Foundations of Discrete Mathematics

e π i 1 = 0 Proofs and Mathematical Induction Carlos Moreno uwaterloo.ca EIT-4103 e x2 log k a+b a + b

Propositional and Predicate Logic

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

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Foundations of Advanced Mathematics, version 0.8. Jonathan J. White

MATH 22 INFERENCE & QUANTIFICATION. Lecture F: 9/18/2003

Proofs. Chapter 2 P P Q Q

Transcription:

Day 5 Friday May 5, 01 1 Quantifiers So far, we have done math with the expectation that atoms are always either true or false. In reality though, we would like to talk about atoms like x > Whose truth depends on the value of x. Then we can make entire statements that depend on variables. Such statements are called formulas, or properties; that is, a formula is a statement whose truth may depend on the values of certain variables. We often write formulas as if they were a function; so we might write ϕ(x) := x > There I m saying the formula ϕ(x) stands for the formula x >. Then ϕ() is an atom we are already used to, that is > and is false. But ϕ(3) is true. There are two questions that we like to ask about formulas: 1. Are they true no matter what x is?. Are they true for any value of x? The first question is asking a universal question, that is whether a formula is true for every value of x. The second question is asking an existential question, that is whether a formula is ever true. The act of transforming the formula ϕ(x) to one of the above is called quantification. That is, we are interested in how often the formula is true: always, sometimes, or never? 1.1 Domain of Discourse When we ask these questions, you might ask what does it mean to be true for every value of x. For instance, consider the formula: x 0 Is this true for every value of x? Not really, since there are complex numbers with the property that x < 0. So, we need to be careful. The objects that we are considering when quantify a formula is called the domain of discourse. Every quantified statement has some domain of discourse, whether it s explicit or implicit. Remark 1. It is conventional if the domain of discourse is not given or understood from context then we just assume it is the real numbers. 1. Notation If ϕ(x) is a formula with variable x, and we wish to quantify it in the universal way (that is: we want to say that ϕ(x) holds for every x) then we write x.ϕ(x) We read the symbol as for all So the above statement is read For all x, ϕ(x) holds or some variation. 1

If we want to quantify it with the variable x in the existential way (that is: we want to say ϕ(x) holds for some x) then we write We read the symbol as there exists So the above statement is read There exists an x such that ϕ(x) holds. 1..1 Specifying The Domain of Discourse We would like to be able to express the domain of discourse in the quantifier to eliminate any confusion or ambiguities. Recall we had the following symbols for our different number systems. Reals Rationals Integers Naturals R Q Z N If we wanted to specify the domain of discourse was S for S one of the systems above, we would write For instance, if one wanted to quantify over the real numbers, you would write 1.. Free versus Bound Variables x R.ϕ(x) In ϕ(x) we are specifying a variable x that we could quantify using a quantifier if we wish. We could also plug in values in for x to make statements. For example, ϕ(x) := x > We can plug in for x and get a statement like ϕ() which is >. We say such a variable is free. If we bound x, to form the statement x.ϕ(x), which has no free variable in it. Remark. This is similar to something you might have seen before in concepts. You may have a function f(x) = x and you might take the definite integral of f(x) from 0 to 1: 1 0 f(x) dx Notice this value is not a function, but a number. Just as ϕ(x) is a formula with a free variable x, when we quantify out the x we are left with a statement x.ϕ(x) Definition 1 (Bound Variables). If we have a quantified statement like x.ϕ(x), we say that the variable x is bound. This is because it is tethered to the quantifier, and only makes sense in it s scope. Remark 3. Bound variables only live in the scope of their quantifier!! Outside of that, they have no means. Example 1. Consider (x > 0) ( x R.x > 0) Here, there is a free variable, x. And x is also a bound variable in the scope of the universal quantifier. But, they are different x s!! The x inside of the universal quantifier is completely different than the free one outside. Fact 1 (Principle of Alpha Conversion). If x.ϕ(x) is some statement, then we can change the bound variable to whatever we want, as long as that variable doesn t occur in ϕ(x) elsewhere. That is to say, if y doesn t occur anywhere in ϕ(x) then instead of writing x.ϕ(x) we might as well write y. ϕ(y) Why? Well, consider the following psedocode

for (i=0; i<10; i++) { } Notice that i is a bound variable; it only exists in the scope of the for all statement! Therefore, the last print i statement does not make sense as that is a different i in the for loop! Furthermore, this is made more clear by using the principle of alpha conversion on that code. for (j=0; j<10; j++) { print j; } Remark 4. I am so so so so picky about variables. Please be careful. 1.3 Some examples Let s write some example of some universal statements, and try to decide whether they are true or false. Example. n N.(n + 1) > 0 This is true! It s saying the successor of any natural number is larger than 0 Example 3. x R.x < 0 This is false! There is no real number that you can square to get a negative number! 1.4 Proofs Involving Quantifiers 1.4.1 Proving Universal Quantifiers How do we prove a statement about universal quantifiers directly? That is, how would we prove x.ϕ(x) The idea is this: to prove ϕ(x) is true for every x we take x to be an arbitrary element in our domain of discourse. But what do we mean by arbitrary? We mean that we do not assume any special properties of x except that it is in the domain of discourse! So we have the following proof skeleton Proof. Let x be an arbitrary element in S.... Here is the meat of the proof where you prove ϕ(x)... Thus, we have ϕ(x); as x was taken arbitrary we then have ϕ(x) for any x. 1.4. Proving Existential Quantifiers Remember what is intended to mean: it should mean that there is an x such that ϕ(x) holds. So how should we prove something like that? The idea is this: to prove ϕ(x) is true, we need to give an x in the domain of discourse for which ϕ(x) holds. So we have the following proof skeleton Proof. Define x to be Blah. Blah is something specific in the domain of discourse... This is where you prove that ϕ(x) holds... Therefore we have ϕ(x). Therefore, there exists some x such that ϕ(x). 3

1.4.3 Using a Universal Quantifier We might also be in the situation where a universal quantifier is in our context. How do we use that x.ϕ(x) is true? We allow ourselves to add ϕ(y) in our context for any y in the domain of discourse that we wish! 1.4.4 Using an Existential Quantifier We might also be in the situation where we have an existential quantifier in our context! How do we use that? We allow ourselves to take an y in the domain of discourse that is otherwise arbitrary, except that ϕ(y) is true. We call this y a witness to the existential. 1.5 Some Proof Examples Example 4. Let ϕ(x) be a formula depending only on x. Then ( x N.ϕ(x)) ( x N.ϕ(x)) Proof. We are proving an implication, so we assume x.ϕ(x) and prove. As we have x.ϕ(x) we know, in particular, that ϕ(1) holds as 1 is a natural number. Therefore, we know. Example 5. Let ϕ(x) be a formula depending on x and ψ(x, y) depend on x and y. Let the domain of discourse be N Then ( x.ϕ(x) y.ψ(x, y)) ( x. y. ϕ(x) ψ(x, y)) Proof. There are two directions. ( ) We assume x.ϕ(x) y.ψ(x, y). We want to prove x. y.ϕ(x) ψ(x, y). Well, we take an arbitrary z in the domain of discourse, and we hope to prove y.ϕ(z) ψ(z, y). As we have x.ϕ(x) y.ψ(x, y), we can plug in z for x. So we have ϕ(z) y.ψ(z, y). Thus we do cases. Case 1: Suppose ϕ(z). Then let y := 0. Then we have ϕ(z), so we have ϕ(z) ψ(z, 0). Thus we have y.ϕ(z) ψ(z, y). Case : Suppose y.ψ(z, y). Let w witness this, ie. ψ(z, w). In particular, ϕ(z) ψ(z, w), so y.ϕ(z) ψ(z, y) ( ) We assume ( x. y. ϕ(x) ψ(x, y)) and want to prove ( x.ϕ(x) y.ψ(x, y)). Take z to be arbitrary. Then we want ϕ(z) ( y.ψ(z, y)). Well, from x. y. ϕ(x) ψ(x, y) we have y. ϕ(z) ψ(z, y). Take a witness w; Then we have ϕ(z) ψ(z, w). Do cases. Case 1: ϕ(z) Then we have ϕ(z) y.ψ(z, y). Case : ψ(z, w). Then we have y.ψ(z, y). So we have ϕ(z) y.ψ(z, y) 1.6 Negating Quantifiers We saw yesterday that it is important to be able to negate statements to do proofs by contradiction, contraposition, or cases on whether a statement is true or false. Therefore, we need to know how to negate statements of the form x S. ϕ(x) Let s first consider the universal statement. is true means ϕ(y) is true for any value of the domain of discourse. Said another way: If y is in the domain of discourse then ϕ(y). So, the negation should be to find a y in the domain of discourse such that ϕ(y) fails; ie. ϕ(y). () x S. ϕ(x) Similarly, x S. ϕ(x) is true means that we can find something in our domain of discourse that works. For it to be false, there must be something in the domain of discourse that doesn t work. ( x S. ϕ(x)) x S. ϕ(x) 4

Basic Proofs Now, we have done some logic, we have a good idea how to proof very abstract stuff. Better, however, is proving concrete things. Fortunately, none of the skills above will go to waste! Example 6. We have already seen some basic proofs a few days ago when we talked about inequality. How would you phrase the following in quantifiers? AGM inequality x R. y R.(x 0 y 0) ( x+y xy ) Monotonicity of Square Roots x R. y R.(y 0 x 0) ((x > y) ( x > y)) Let us do another proof of the monotonicity of square roots. Proof. Let x and y be arbitrary real numbers, and assume that y 0 and x 0. Then I want to show that x > y x > y We prove the contrapositive. That is, we assume that x y x y Well, assume x y. We square both sides, and get x y, which is what we wanted! Example 7. x R.x < x Proof. Take x = 1. Then x = 1 4 < 1 = x. x R. y R.x 3 = y Proof. Let x be an arbitrary real number. Want to show that y R.x 3 = y. Let y = x 3. x R. y R.x = y 3 Proof. Let x be an arbitrary real number. Want to show that y R.x = y 3. Well, let y = 3 (x). Then y 3 = x n N. m R.(n = m) n = (m + 1) Proof. Let n be an arbitrary natural number. We do cases on whether n is even or odd. If n is even, it is divisible by. Therefore, we can let m be the quotient when you divide by, so then n = m. Otherwise, n is odd. But, n 1 is even, so then we can find an m such that m = n 1. But then n = m + 1. q 1 Q. q Q. q Q.q 1 < q < q Proof. This is false. Let q 1 = q = 0. Then we want to show q Q. (q 1 < q < q ) This is obvious; there is nothing between 0 and 0. q 1 Q. q Q. q Q.(q 1 q ) (q 1 < q < q ) Proof. Let q 1 and q be arbitrary rational numbers. Then let q := q1+q. We can prove that that is between the two. Try to work this out on your own. 5