Proofs. Joe Patten August 10, 2018

Similar documents
CSC Discrete Math I, Spring Propositional Logic

2. The Logic of Compound Statements Summary. Aaron Tan August 2017

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

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

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.

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

1.1 Language and Logic

1. Mathematical Proofs

Section 1.2 Propositional Equivalences. A tautology is a proposition which is always true. A contradiction is a proposition which is always false.

2 Truth Tables, Equivalences and the Contrapositive

What is Logic? Introduction to Logic. Simple Statements. Which one is statement?

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Mat 243 Exam 1 Review

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

Discrete Mathematics & Mathematical Reasoning Predicates, Quantifiers and Proof Techniques

1.1 Language and Logic

Mathematical Reasoning (Part I) 1

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

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

Proof Terminology. Technique #1: Direct Proof. Learning objectives. Proof Techniques (Rosen, Sections ) Direct Proof:

Introducing Proof 1. hsn.uk.net. Contents

2.2: Logical Equivalence: The Laws of Logic

Propositional Logic, Predicates, and Equivalence

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

Compound Propositions

Meaning of Proof Methods of Proof

Logic. Def. A Proposition is a statement that is either true or false.

Propositional Logic Basics Propositional Equivalences Normal forms Boolean functions and digital circuits. Propositional Logic.

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

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

PROPOSITIONAL CALCULUS

Logic as a Tool Chapter 1: Understanding Propositional Logic 1.1 Propositions and logical connectives. Truth tables and tautologies

1.1 Statements and Compound Statements

1 The Foundation: Logic and Proofs

Introduction to proofs. Niloufar Shafiei

Sec$on Summary. Mathematical Proofs Forms of Theorems Trivial & Vacuous Proofs Direct Proofs Indirect Proofs

CSE 20 DISCRETE MATH. Winter

CSE 20 DISCRETE MATH WINTER

Section 1.1: Logical Form and Logical Equivalence

CSE 20 DISCRETE MATH SPRING

MA103 STATEMENTS, PROOF, LOGIC

CSE 20 DISCRETE MATH. Winter

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

Logic, Sets, and Proofs

MATH 2200 Final Review

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

AMTH140 Lecture 8. Symbolic Logic

Topics in Logic and Proofs

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

Proofs of Mathema-cal Statements. A proof is a valid argument that establishes the truth of a statement.

Equivalence and Implication

CSE 20 DISCRETE MATH. Fall

Basic Proof Examples

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.

1 The Foundation: Logic and Proofs

Introduction to Decision Sciences Lecture 2

Chapter 1 Elementary Logic

Deduction by Daniel Bonevac. Chapter 3 Truth Trees

We last time we began introducing equivalency laws.

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

ECOM Discrete Mathematics

Discrete Mathematical Structures. Chapter 1 The Foundation: Logic

Logic and Proofs. (A brief summary)

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

~ p is always false. Based on the basic truth table for disjunction, if q is true then p ~

Propositional Equivalence

Section 1.1 Propositional Logic. proposition : true = T (or 1) or false = F (or 0) (binary logic) the moon is made of green cheese

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

Equivalence of Propositions

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

Introduction to Metalogic

Math 10850, fall 2017, University of Notre Dame

(3,1) Methods of Proof

Packet #1: Logic & Proofs. Applied Discrete Mathematics

software design & management Gachon University Chulyun Kim

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

02 Propositional Logic

HW1 graded review form? HW2 released CSE 20 DISCRETE MATH. Fall

Learning Goals of CS245 Logic and Computation

Chapter 11: Automated Proof Systems

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

Math Assignment 2 Solutions - Spring Jaimos F Skriletz Provide definitions for the following:

The statement calculus and logic

LECTURE 1. Logic and Proofs

CHAPTER 10. Gentzen Style Proof Systems for Classical Logic

CISC-102 Fall 2018 Week 11

2-4: The Use of Quantifiers

Truth-Functional Logic

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

Definition 2. Conjunction of p and q

CSE 311: Foundations of Computing. Lecture 2: More Logic, Equivalence & Digital Circuits

Propositional Logic. Spring Propositional Logic Spring / 32

Note: The area of logic that deals with propositions is called the propositional calculus or propositional logic.

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

The Process of Mathematical Proof

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

Intro to Logic and Proofs

n logical not (negation) n logical or (disjunction) n logical and (conjunction) n logical exclusive or n logical implication (conditional)

A Statement; Logical Operations

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

Transcription:

Proofs Joe Patten August 10, 2018 1 Statements and Open Sentences 1.1 Statements A statement is a declarative sentence or assertion that is either true or false. They are often labelled with a capital letter (P, Q, R are most commonly used). Below are examples of statements: P 1 : The integer 6 is even. P 2 : A square has 5 sides. Notice that the first statement is true, whereas the second statement is false. 1.2 Open Sentences An open sentence is similar to a statement, except it contains one or more variables. examples of open sentences: Below are P 3 : The integer k is even. P 4 : A square has j sides. Notice that in the first open sentence, there exist some values of k where the statement holds true. In the second open sentence, the statement holds true only if j = 4. 1.3 Negation The negation of a statement (or proposition) P is denoted by P or P, and is pronounced not P. P is the opposite of P. The example below shows a statement P 5, and its negation P 5 : P 5 : The integer 7 is odd. P 5 : The integer 7 is even. Recall that a statement or open sentence can only take on one of two values: true or false. Thus, the negation of a statement or open sentence will take on the opposite truth value. This can be seen in the following truth table: P T F P F T Table 1: Truth table for P and P. 1

2 Logical Connectives 2.1 Disjunction The disjunction of the statements P and Q is denoted as P Q is defined as the statement P or Q. P Q is true if either P or Q is true, otherwise it is false. Notice that from the first example, P 1 P 2 is true since P 1 is true and P 2 is false. Below is a truth table for P Q. P Q P Q T T T T F T F T T F F F Table 2: Truth table for P Q. 2.2 Conjunction The conjunction of the statements P and Q is denoted as P Q is defined as the statement P and Q. P Q is true if either P and Q are both true, otherwise it is false. Notice that from the first example, P 1 P 2 is false since P 1 is true and P 2 is false. Below is a truth table for P Q. P Q P Q T T T T F F F T F F F F Table 3: Truth table for P Q. 2.3 Implication and Biconditional An implication is usually denoted as P Q, and means either If P, then Q or P implies Q. Below is a truth table for P Q. There are multiple ways of expressing P Q: P Q P Q T T T T F F F T T F F T Table 4: Truth table for P Q. P implies Q If P, then Q P only if Q P is sufficient for Q Q if P Q is necessary for P Q P is called the converse of P Q. If P Q is true, it s not necessarily the case that its converse, Q P, is true. A biconditional of P and Q is usually denoted by P Q, and means (P Q) (Q P ). There are multiple ways of expressing P Q: 2

P if and only if Q P iff Q P is equivalent to Q Below is a truth table for P Q: P Q P Q P Q P Q T T T T T T F F T F F T T F F F F T T T Table 5: Truth table for P Q. 2.4 Compound Statements The operators explained before (,,,,, and ) are referred to as logical connectors. The combination of at least one statement and at least one connector is called a compound statement. Notice that the following are compound statements: 2.5 Tautologies P P Q P Q (P Q) (Q P ) A compound statement is a tautology if all possible truth values are true. An example of a tautology is P ( P ). The following truth table shows that all the possible truth values are true: P P P ( P ) T F T F T T Table 6: Truth table for P ( P ). 2.6 Contradictions A compound statement is a contradiction if all possible truth values are false. An example of a contradiction is P ( P ). The following truth table shows that all the possible truth values are true: P P P ( P ) T F F F T F Table 7: Truth table for P ( P ). 2.7 Logical Equivalence Two compound statements R and S are logically equivalent if they have the same truth values in a truth table. If R and S are logically equivalent, then we write R S. For example, we see that P = Q and ( P ) Q are logically equivalent as all truth values for P = Q and ( P ) Q are the same: 3

P Q P Q P ( P ) Q T T T F T T F F F F F T T T T F F T T T Table 8: Truth table for P Q. 3 Proofs Before we discuss proofs, we need to introduce some terminology. An axiom is a true statement that is accepted without proof. A theorem is a true statement that can be proven. Oftentimes, the term theorem is only used when talking about statements that have some sort of significance or importance. A corollary is a result that can be derived or deduced from a previous result. A lemma is a result that is used to establish another result. 3.1 Direct Proof A direct proof, sometimes called a constructive proof, is a method of proof that is used to show P Q. In a direct proof, we assume P to be true, and through a number of statements make our way to a statement that shows that Q is true. In order to demonstrate how to go about doing a direct proof, I shall present a few properties about integers: 1. The negative or any integer is also an integer 2. The summation of any two integers results in an integer 3. The product of any two integers results in an integer 4. Any even number can be written in the form: 2k, where k Z 5. Any odd number can be written in the form: 2k + 1, where k Z Let n Z. If n is odd, then 5n + 9 is even. Result 1 Assume n is odd. Thus n can be written in the following form: 2k + 1 where k Z. This means that 5n + 9 = 5(2k + 1) + 9 = 10k + 14 = 2(5k + 7). Notice that since (5k + 7) Z, therefore 5n + 9 is even. Example 2 Let n Z. If n is even, then 3n 5 is odd. Result 2 Assume n is even. Thus n can be written in the following form: 2k where k Z. This means that 3n 5 = 3(2k) 5 = 6k 5 = 6k 5 = 6k 6 + 1 = 2( 3k 3) + 1. Notice that since ( 3k 3) Z, therefore 3n 5 is odd. 3.2 Proof by Contrapositive The contrapositive for an implication P Q is defined as ( Q) ( P ). Notice that ( Q) ( P ) is the logical equivalent of P Q. Proofs by contrapositive are very similar to direct proofs. The only difference is that we start with Q and and through a number of statements make our way to a statement that shows that P is true. Proofs by contrapositive are often used when it is easier to work with Q then it is to work with P. Let n Z. If 3n 9 is even, then n is odd 4

Result 1 Assume n is even. Thus n can be written in the following form: 2k where k Z This means that 3n 9 = 3(2k) 9 = 6k 9 = 2(3k 10) + 1 Since (3k 10) Z, it follows that 3n 9 is odd. Example 2 Let x Z. 9n 5 is even if and only if n is odd. Result 2 When a biconditional is involved, we need to prove both directions. In other words, we need to prove that (9x 5 is even) (n is odd), and (n is odd) (9x 5 is even). We will first show that (9x 5 is even) (n is odd). ) (9n 5 is even) (n is odd) Assume n is even. Thus n can be written in the following form: 2k where k Z This means that 9n 5 = 9(2k) 5 = 2(9k 3) + 1 Since 9k 3 Z, it follows that 9n 5 is odd. ) (n is odd) (9n 5 is even) Assume n is odd. Thus n can be written in the following form: 2m where m Z This means that 9n 5 = 9(2m + 1) 5 = 2(9m 2) Since 9m 2 Z, it follows that 9n 5 is even. 3.3 Cases Oftentimes, it is easier to break the domain of a premise into subsets. The prover then works through the proof for each subset or case. Notice that these subsets need to exhaust the domain, meaning every point or element in the domain needs to be covered by a case. The following are examples of cases that could be used for their domains. : x R: Case 1: x > 0 Case 2: x < 0 Case 3: x = 0 Example 2: n Z: Case 1: Case 2: n is odd n is even Example 3: Let m, n Z. If mn is odd, then m and n are odd. Result Assume m or n are even. Then, either m is even and n is odd, n is even and m is odd, or both m and n are even. Case 1: Assume m and n are even. Thus m = 2r and n = 2s where r, s Z. Therefore mn = 2r 2s = 4rs = 2(rs). Since rs Z, it follows that mn is even. 5

Case 2: Assume without loss of generality that m is even and n is odd. Thus m = 2t and n = 2u + 1 where t, u Z. Therefore mn = 2t (2u + 1) = 4tu + 2t = 2(2tu + t). Since 2tu + t Z, it follows that mn is even. Notice that in the previous example, we had three cases: either m is even and n is odd, n is even and m is odd, or both m and n are even. However, we only walked through 2 cases: both m and n are even, and m is even and n is odd. In case 2, we used the phrase without loss of generality, because both the cases of m is even and n is odd, and n is even and m is odd are similar, and so the proof of one case will be sufficient to cover the two cases. 3.4 Proof by Contradiction If we are trying to prove P Q, we assume both P and Q are true, and then we try to deduce a contradiction (R ( R) ). We usually start the proof by saying Assume to the contrary... or Assume by contradiction that... followed by P and Q. Let n Z. If n is even, then 5n + 3 is odd. Result 1 Assume to the contrary that there exists an even integer n such that 5n + 3 is even. Since n is even, we can write n = 2k where k Z. Thus, 5n + 3 = 5(2k) + 3 = 10k + 3 = 2(5k + 1) + 1. Since (5k + 1) Z, then 5n + 3 is odd, which is a contradiction. Example 2 Show that 100 cannot be written as a sum of one odd integer and two even integers. Result 2 Assume to the contrary that 100 can be written as a sum of one odd integer and two even integers. Thus, 100 = (2k + 1) + (2m) + (2j) where k, n, j Z. 100 = (2k + 1) + (2m) + (2j) = 2(k + m + j) + 1. Since k + m + j Z, we see that 100 is odd. This is a contradiction. 3.5 Counterexample We have used direct proof, proof by contrapositive, and proof by contradiction to show that P Q. However, it is not always the case that P Q. If we can find an x in the domain of the premise P such that Q is false, then it is not the case that P Q. Disprove the following statement: If x Z, then x2 + 2x x 2 3x = x + 2 x 3 Result To disprove the statement above, we only need to provide a counterexample in the domain of P, in this case, an x R where the expression does not hold. Consider x = 0. We see that x2 +2x x+2 x 2 3x is undefined at x = 0, however, x 3 = 2 3 when x = 0. Thus, x = 0 is a counterexample to the statement above. 3.6 Mathematical Induction Let P(n) be a statement, where n N. To prove by induction, we need to prove two things: 1. A base case (usual base case is n = 1) 2. The inductive step: k N, the implication: P (k) P (k + 1) is true. 6

Show that the sum of the first n positive integers is n(n + 1)/2. Or in other words: 1 + 2 + 3 + 4 +... + n = n(n + 1)/2 Result 1 Let P (n) : 1 + 2 + 3 + 4 +... + n = n(n + 1)/2 where n N 1. Base case: P (1) : 1 = 1(1 + 1)/2 = 1. Thus the base case is true. 2. Inductive step: Assume P (k) is true, thus: P (k) : 1 + 2 + 3 + 4 +... + k = k(k + 1)/2 Now we show that P (k + 1) is true, or that 1 + 2 + 3 + 4 +... + k + (k + 1) = (k + 1)(k + 2)/2 1 + 2 + 3 + 4 +... + k + (k + 1) = k(k + 1)/2 + (k + 1) = k(k + 1)/2 + 2(k + 1)/2 = (k + 2)(k + 1)/2 By induction, P (n) is true for every integer n. 7