Math 0413 Supplement Logic and Proof

Similar documents
Handout #1: Mathematical Reasoning

Basic Proof Techniques

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 2

The last three chapters introduced three major proof techniques: direct,

WRITING PROOFS. Christopher Heil Georgia Institute of Technology

Elementary Number Theory and Methods of Proof. CSE 215, Foundations of Computer Science Stony Brook University

Full and Complete Binary Trees

Math Circle Beginners Group October 18, 2015

3. Mathematical Induction

Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products

Solutions for Practice problems on proofs

Math 3000 Section 003 Intro to Abstract Math Homework 2

6.2 Permutations continued

8 Divisibility and prime numbers

DISCRETE MATH: LECTURE 3

Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics

The Fundamental Theorem of Arithmetic

CHAPTER 3. Methods of Proofs. 1. Logical Arguments and Formal Proofs

Mathematical Induction

CHAPTER 2. Logic. 1. Logic Definitions. Notation: Variables are used to represent propositions. The most common variables used are p, q, and r.

Cartesian Products and Relations

CS 103X: Discrete Structures Homework Assignment 3 Solutions

Solutions to Homework 6 Mathematics 503 Foundations of Mathematics Spring 2014

p: I am elected q: I will lower the taxes

Mathematical Induction. Lecture 10-11

5.1 Radical Notation and Rational Exponents

Continued Fractions and the Euclidean Algorithm

Predicate Logic. Example: All men are mortal. Socrates is a man. Socrates is mortal.

26 Integers: Multiplication, Division, and Order

An Innocent Investigation

If n is odd, then 3n + 7 is even.

Mathematics for Computer Science/Software Engineering. Notes for the course MSM1F3 Dr. R. A. Wilson

Propositional Logic. A proposition is a declarative sentence (a sentence that declares a fact) that is either true or false, but not both.

1 if 1 x 0 1 if 0 x 1

Zeros of a Polynomial Function

MATHEMATICAL INDUCTION. Mathematical Induction. This is a powerful method to prove properties of positive integers.

Mathematical Induction. Mary Barnes Sue Gordon

mod 10 = mod 10 = 49 mod 10 = 9.

Math 55: Discrete Mathematics

PYTHAGOREAN TRIPLES KEITH CONRAD

Activity 1: Using base ten blocks to model operations on decimals

MATH10040 Chapter 2: Prime and relatively prime numbers

Incenter Circumcenter

Math 4310 Handout - Quotient Vector Spaces

def: An axiom is a statement that is assumed to be true, or in the case of a mathematical system, is used to specify the system.

INTRODUCTORY SET THEORY

Introduction to Automata Theory. Reading: Chapter 1

Arkansas Tech University MATH 4033: Elementary Modern Algebra Dr. Marcel B. Finan

Vocabulary. Term Page Definition Clarifying Example. biconditional statement. conclusion. conditional statement. conjecture.

INCIDENCE-BETWEENNESS GEOMETRY

Real Roots of Univariate Polynomials with Real Coefficients

SECTION 10-2 Mathematical Induction

The Prime Numbers. Definition. A prime number is a positive integer with exactly two positive divisors.

WHAT ARE MATHEMATICAL PROOFS AND WHY THEY ARE IMPORTANT?

Lecture Notes on Polynomials

Lecture Notes in Discrete Mathematics. Marcel B. Finan Arkansas Tech University c All Rights Reserved

k, then n = p2α 1 1 pα k

Computing exponents modulo a number: Repeated squaring

Logic is a systematic way of thinking that allows us to deduce new information

CHAPTER 2: METHODS OF PROOF

Sample Induction Proofs

Mathematical Induction

LAKE ELSINORE UNIFIED SCHOOL DISTRICT

Notes on Determinant

Likewise, we have contradictions: formulas that can only be false, e.g. (p p).

Math Workshop October 2010 Fractions and Repeating Decimals

THE DIMENSION OF A VECTOR SPACE

Simplification of Radical Expressions

FIRST YEAR CALCULUS. Chapter 7 CONTINUITY. It is a parabola, and we can draw this parabola without lifting our pencil from the paper.

A Second Course in Mathematics Concepts for Elementary Teachers: Theory, Problems, and Solutions

Math 223 Abstract Algebra Lecture Notes

Irrational Numbers. A. Rational Numbers 1. Before we discuss irrational numbers, it would probably be a good idea to define rational numbers.

Lecture 16 : Relations and Functions DRAFT

n k=1 k=0 1/k! = e. Example 6.4. The series 1/k 2 converges in R. Indeed, if s n = n then k=1 1/k, then s 2n s n = 1 n

I. GROUPS: BASIC DEFINITIONS AND EXAMPLES

Integer roots of quadratic and cubic polynomials with integer coefficients

Lectures notes on orthogonal matrices (with exercises) Linear Algebra II - Spring 2004 by D. Klain

CONTENTS 1. Peter Kahn. Spring 2007

Math 319 Problem Set #3 Solution 21 February 2002

CHAPTER 5. Number Theory. 1. Integers and Division. Discussion

CONTINUED FRACTIONS AND PELL S EQUATION. Contents 1. Continued Fractions 1 2. Solution to Pell s Equation 9 References 12

This chapter is all about cardinality of sets. At first this looks like a

Regular Languages and Finite Automata

88 CHAPTER 2. VECTOR FUNCTIONS. . First, we need to compute T (s). a By definition, r (s) T (s) = 1 a sin s a. sin s a, cos s a

Applications of Fermat s Little Theorem and Congruences

of Nebraska - Lincoln

Chapter 17. Orthogonal Matrices and Symmetries of Space

MATH 22. THE FUNDAMENTAL THEOREM of ARITHMETIC. Lecture R: 10/30/2003

Introduction. Appendix D Mathematical Induction D1

Predicate Logic. For example, consider the following argument:

The Method of Partial Fractions Math 121 Calculus II Spring 2015

Warm up. Connect these nine dots with only four straight lines without lifting your pencil from the paper.

3. Logical Reasoning in Mathematics

Lesson 9: Radicals and Conjugates

Factoring Polynomials

Basic Concepts of Point Set Topology Notes for OU course Math 4853 Spring 2011

Prime Factorization 0.1. Overcoming Math Anxiety

alternate interior angles

Lesson 9: Radicals and Conjugates

Matrix Algebra. Some Basic Matrix Laws. Before reading the text or the following notes glance at the following list of basic matrix algebra laws.

Transcription:

Math 0413 Supplement Logic and Proof January 17, 2008 1 Propositions A proposition is a statement that can be true or false. Here are some examples of propositions: 1 = 1 1 = 0 Every dog is an animal. Every animal is a dog. There is a real number r such that r 2 = 2. There is a rational number r such that r 2 = 2. Every proposition has a value of either True of False, abbreviated T or F. The term statement is often used as a synonym for proposition. We will use these words interchangeably. 1.1 New Propositions from Old If you start with one or more propositions, you can build new propositions from them by combining them with logical operations. Logical Negation. The simplest logical operator is the not operator. If P is a proposition, then the proposition not P, abbreviated P, has the opposite truth value to P. This is spelled out in a truth table which gives the value of P for every possible value of P. The truth table for P is shown in Figure 1. For example, if P is the proposition 1 = 0, then P is the proposition 1 0. Logical And. If P and Q are propositions, the proposition P and Q is denoted symbolically by P Q. It s true when P and Q are both true, and false otherwise. This is summarized in Figure 2. 1

P T F P F T Figure 1: Truth table for P P Q P Q T T T T F F F T F F F F Figure 2: Truth table for P Q Logical Or. The proposition P or Q is denoted symbolically by P Q. It is true if one or both of P, Q is true. It is false if both P and Q are false. This is summarized in Figure 3. Conditional Statements. The proposition If P then Q is a conditional statement. It asserts that Q is true whenever P is true. It is denoted symbolically by P Q. Its truth value is false when P is true and Q is false. Otherwise, the P Q is true. This is summarized in Figure 4. The proposition P is called the hypothesis of the conditional statement P Q. The proposition Q is the conclusion. Converse. The converse of the if-then proposition P Q is the if-then proposition Q P. It s important to note that an if-then proposition is not logically equivalent to its converse. Let s illustrate with a simple example. Consider the conditional statement If n is prime, then n is an integer. Its converse is If n is an integer, then n is prime. P Q P Q T T T T F T F T T F F F Figure 3: Truth table for P Q 2

P Q P Q T T T T F F F T T F F T Figure 4: Truth table for P Q P Q Q P Q P T T F F T T F T F F F T F T T F F T T T Figure 5: Truth table for Q P The first proposition is true, since every prime number is an integer. The second is false, since there are integers that are not prime. Contrapositive. The contrapositive of the proposition P Q is the proposition Q P. For example, the contrapositive of is If x is prime then x is an integer If x is not an integer then x is not prime. If you read these two statements carefully, you will see that they say exactly the same thing, but in different ways. You will also note that both statements are true. In general, the truth value of Q P depends on the truth values of P and Q. You can work out the dependence with a truth table, as shown in Figure 5. You can see from Figure 5 that for every combination of truth values for P and Q, the truth value of Q P is the same as that of P Q. In this case, we say that the two statements are logically equivalent. Thus, any if-then statement is logically equivalent to its contrapositive. Biconditionals. The proposition P if and only if Q is denoted symbolically P Q. It is true when P and Q have the same truth values and false otherwise, as shown in Figure 6. 3

P Q P Q T T T T F F F T F F F T Figure 6: Truth table for P Q 2 Quantifiers 2.1 Existential Quantifiers Consider the statement There is a rational number r such that r 2 = 2. This statement, which, by the way, is false, asserts the existence of a member of some set, in this case the set of rational numbers, having a certain property. The first part of this statement can be expressed symbolically as r Q. The symbol is an existential quantifier. It may be read as there exists. The whole statement becomes ( r Q r 2 = 2. The general form of an existential proposition is ( x A P(x which asserts that there is a member x of the set A such that the property P holds for x. 2.2 Universal Quantifiers Consider the statement For every real number x we have cos 2 x + sin 2 x = 1. The first part of this statement can be expressed symbolically as x R. Here the symbol is a universal quantifier. It is read for all or for every. The entire statement can be expressed symbolically as ( x R cos 2 x + sin 2 x = 1. 2.3 Nested Quantifiers You will often have to deal with statements that involve two or more quantifiers. Here is a typical example with two quantifiers. For every ε > 0 there is a natural number n such that sin n < ε. 4

Proposition P P P Q P Q P Q ( x P(x ( x P(x Negation P P ( P ( Q ( P ( Q P ( Q ( x P(x ( x P(x Figure 7: Negation rules In symbols, ( ε (0, ( n N sin n < ε. Here s one with three quantifiers: For every ε > 0 there is a natural number K such that for every n K we have n sin(1/n 1 < ε. In symbols, ( ε (0, ( K N ( n N [K, n sin(1/n 1 < ε. (1 3 Negating a Proposition You will often find yourself having to negate a complex proposition. For example, the negation of the proposition (1 is ( ε (0, ( K N ( n N [K, n sin(1/n 1 ε. Some rules to help you with this task are given in Figure 7. 4 Proofs A proof of a proposition establishes that the proposition is true by a sequence of logical steps. The purpose of this section is to familiarize you with several proof strategies that you will use frequently. 4.1 Proving conditional statements Recall that a conditional statement has the form If P then Q. The statement P is the hypothesis, and Q is the conclusion. A direct proof proceeds by assuming that the hypothesis is true, and arguing that the conclusion must be true. Here is an example. 5

Theorem 4.1. If a and b are even integers then a + b is even. Proof. Assume that a and b are even integers. Then there are integers k and l such that a = 2k and b = 2l. Therefore a + b = 2k + 2l = 2(k + l. Since a + b is a multiple of 2, it is even. Another way to prove a conditional statement is by contraposition. This means that instead of proving the statement directly, you prove its contrapositive. Since any conditional statement is logically equivalent to its contrapositive, this will establish the original statement. A proof by contraposition begins by assuming that the conclusion fails. From there, you argue that the hypothesis must fail as well. Here s an example. Theorem 4.2. If n is an integer such that 3n + 5 is odd, then n is even. Proof. Assume that n is not even. Then n is odd. This means that there is an integer k such that n = 2k + 1. Then 3n + 5 = 3(2k + 1 + 5 = 6k + 8 = 2(3k + 4 and so 3n + 5 is even, contrary to hypothesis. 4.2 Proving Biconditionals Recall that a biconditional statement has the form P if and only if Q. The biconditional is logically equivalent to (P Q (Q P. Proof of a biconditional usually proceeds by proving the two conditional statements separately. Here is an example Theorem 4.3. An integer n is even if and only if its square is even. Proof. We first prove the only if part: If n is even, then n 2 is even. Since n is even, we can write n = 2k for some integer k. Therefore n 2 = (2k 2 = 4k 2 = 2(2k 2. Since n 2 is a multiple of 2, it is even. We next prove the if part: If n 2 is even, then n is even. We prove this part by contraposition. Suppose that n is not even. Then n is odd, so n = 2k + 1 for some integer k. Therefore n 2 = (2k + 1 2 = 4k 2 + 4k + 1 = 2(2k 2 + 2k + 1. Thus, n 2 has the form 2l + 1 with l = 2k 2 + 2k, so n 2 is odd, contrary to hypothesis. 6

4.3 Proof by Contradiction To prove a theorem by contradiction, you assume statement is false, and derive from that another statement which is demonstrably false. Here is an example Theorem 4.4. There is no rational square root of 2. Proof. By way of contradiction, suppose there is a rational number r such that r 2 = 2. Since r is rational, it can be expressed as a quotient r = m n where m and n are integers with no common factors. In particular, m and n are not both even. Since r 2 = 2, we have m 2 = 2n 2. (2 Therefore m 2 is even. But, since the square of any odd number is odd, it follows that m is even. Therefore m = 2k for some integer k. Inserting this into (2 gives Dividing through by 2 gives 4k 2 = 2n 2. 2k 2 = n 2, and so n 2 is even. Since the square of any odd number is odd, it follows that n is even. We have now shown that m and n are both even, contradicting the fact that m and n have no common factors. Thus, the assumption that 2 has a rational square root leads to a contradiction. It follows that 2 has no rational square root. 5 Exercises 1. Use truth tables to show that the conditional statement P Q is logically equivalent to the statement ( P Q. 2. Use truth tables to show that the statement (P Q is logically equivalent to ( P ( Q. 3. Use truth tables to show that the statement (P Q is logically equivalent to ( P ( Q. 4. Show that (P Q is logically equivalent to P ( Q. 5. Negate the statement For every x R, x 2 > 0. 6. Negate the statement There is a prime number p satisfying p > 10 1000. 7

7. Negate the statement For every a, b R with a < b there is an r Q with a < r < b. 8. Negate the statement For every ε > 0 there is an n N such that sin n < ε. 9. Negate the statement For every x R there is an n N such that x < n. 10. Negate the statement There is an a R such that for every ε > 0 there is a K N such that for every n N with n K we have (1+1/n n a < ε. 8