CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.

Slides:



Advertisements
Similar presentations
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
Advertisements

CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
Discrete Math Methods of proof 1.
Introduction to Proofs
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
PROOF BY CONTRADICTION
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
Equivalence Relations
Chapter 3 Direct Proof and Proof by Contrapositive
Prof. Shachar Lovett Clicker frequency: CA CSE 20 Discrete math Prof. Shachar Lovett
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
Introduction to Theorem Proving
The Conditional & Biconditional MATH 102 Contemporary Math S. Rook.
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
Logic: Connectives AND OR NOT P Q (P ^ Q) T F P Q (P v Q) T F P ~P T F
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
Conditional Statements
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
Mathematical Induction Assume that we are given an infinite supply of stamps of two different denominations, 3 cents and and 5 cents. Prove using mathematical.
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
What it is? Why is it a legitimate proof method? How to use it?
Section 1.5 Implications. Implication Statements If Cara has a piano lesson, then it is Friday. If it is raining, then I need to remember my umbrella.
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA.
Introduction to Proofs
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
Proofs 1/25/12.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
Chapter 5 – Logic CSNB 143 Discrete Mathematical Structures.
Math 240: Transition to Advanced Math Deductive reasoning: logic is used to draw conclusions based on statements accepted as true. Thus conclusions are.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
Chapter Four Proofs. 1. Argument Forms An argument form is a group of sentence forms such that all of its substitution instances are arguments.
Conditional Statements
Chapter 3: Introduction to Logic. Logic Main goal: use logic to analyze arguments (claims) to see if they are valid or invalid. This is useful for math.
P. 270 #47-49.
Today’s Topics Introduction to Proofs Rules of Inference Rules of Equivalence.
Chapter 7 Logic, Sets, and Counting Section 1 Logic.
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications Kenneth H. Rosen (5 th Edition) Chapter 3 The Foundations: Logic and Proof,
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
CSNB143 – Discrete Structure Topic 4 – Logic. Learning Outcomes Students should be able to define statement. Students should be able to identify connectives.
Conditional Statements Lecture 2 Section 1.2 Fri, Jan 20, 2006.
Section 1.7. Definitions A theorem is a statement that can be shown to be true using: definitions other theorems axioms (statements which are given as.
1 Introduction to Abstract Mathematics Proof Methods , , ~, ,  Instructor: Hayk Melikya Purpose of Section:Most theorems in mathematics.
Conditional statement or implication IF p then q is denoted p ⇒ q p is the antecedent or hypothesis q is the consequent or conclusion ⇒ means IF…THEN.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
Mathematical Induction What it is? Why is it a legitimate proof method? How to use it?
Chapter 1 Logic and proofs
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett
MATH 15A – Discrete Mathematics
Indirect Argument: Contradiction and Contraposition
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett
CS 220: Discrete Structures and their Applications
Foundations of Discrete Mathematics
Presentation transcript:

CSE 20 DISCRETE MATH Prof. Shachar Lovett Clicker frequency: CA

Todays topics Proof by contraposition Proof by cases Section 3.5 in Jenkyns, Stephenson

Proof by contraposition To prove a statement of the form You can equivalently prove its contra-positive form Remember: (p→q)  (  q→  p)

Truth table for implication pqp → q TTT TFF FTT FFT Rule this row out!

Contrapositive proof of p→q Procedure: 1. Derive contrpositive form: (  q→  p) 2. Assume q is false (take it as “given”) 3. Show that  p logically follows

Example Thm.: “Let x,y be numbers such that x  0. Then either x+y  0 or x-y  0.” Proof: Given (contrapositive form): Let WTS (contrapositive form): … Conclusion: … ???

Example Thm.: “Let x,y be numbers such that x  0. Then either x+y  0 or x-y  0.” Proof: Given (contrapositive form): Let … A. x+y  0 or x-y  0 B. x+y=0 or x-y=0 C. x+y=0 and x-y=0 D. y  0 E. None/more/other

Example Thm.: “Let x,y be numbers such that x  0. Then either x+y  0 or x-y  0.” Proof: Given (contrapositive form): Let x+y=0 and x-y=0 WTS (contrapositive form): A. x  0 B. x=0 C. x+y  0 or x-y  0 D. x+y=0 or x-y=0 E. None/more/other

Example Thm.: “Let x,y be numbers such that x  0. Then either x+y  0 or x-y  0.” Proof: Given (contrapositive form): Let x+y=0 and x-y=0 WTS (contrapositive form): x=0 Conclusion: … Try it yourself first

When should you use contra-positive proofs? You want to prove Which is equivalent to So, it shouldn’t matter which one to prove In practice, one form is usually easier to prove - depending which assumption gives more information (either P(x) or  Q(x))

Breaking a proof into cases Sometimes it is useful to break a proof into a few cases, and then prove each one individually We will see an example demonstrating this principle 11

Breaking a proof into cases 6 people at a party Any two people either know each other, or not (it is symmetric: if A knows B then B knows A) Theorem: among any 6 people, either there are 3 who all know each other (3 friends), or there are 3 who all don’t know each other (3 strangers) 12

Breaking a proof into cases Theorem: Every 6 people includes 3 friends or 3 strangers Proof: The proof is by case analysis. Let x denote one of the 6 people. There are two cases: Case 1: x knows at least 3 of the other 5 people Case 2: x knows at most 2 of the other 5 people Notice it says “there are two cases” You’d better be right there are no more cases! Cases must completely cover possibilities Tip: you don’t need to worry about trying to make the cases “equal size” or scope Sometimes 99% of the possibilities are in one case, and 1% are in the other Whatever makes it easier to do each proof

Breaking a proof into cases Theorem: Every 6 people includes 3 friends or 3 strangers Case 1: suppose x knows at least 3 other people. Case 1.1: No pair among these 3 people know each other. Case 1.2: Some pair among these people know each other. Notice it says: “This case splits into two subcases” Again, you’d better be right there are no more than these two! Subcases must completely cover the possibilities within the case

Breaking a proof into cases Theorem: Every 6 people includes 3 friends or 3 strangers Case 1: suppose x knows at least 3 other people Case 1.1: No pair among these people know each other. Case 1.2: Some pair among these people know each other. Proof for case 1.1: Let y,z,w be 3 friends of x. By assumption, none of them knows each other. So {y,z,w} is a set of 3 strangers.

Breaking a proof into cases Theorem: Every 6 people includes 3 friends or 3 strangers Case 1: suppose x knows at least 3 other people Case 1.1: No pair among these people know each other. Case 1.2: Some pair among these people know each other. Proof for case 1.2: Let y,z be 2 friends of x who know each other. So {x,y,z} is a set of 3 friends.

Breaking a proof into cases Theorem: Every 6 people includes 3 friends or 3 strangers Case 2: suppose x knows at most 2 of the other 5 people So, there are at least 3 people x doesn’t know Cases 2.1: All pairs among these people know each other. Case 2.2: Some pair among these people don’t know each other. Then this pair, together with x, form a group of 3 strangers. So the theorem holds in this subcase.

Breaking a proof into cases Theorem: … Proof: There are two cases to consider Case 1: there are two cases to consider Case 1.1: Verify theorem directly Case 1.2: Verify theorem directly Case 2: there are two cases to consider Case 2.1: Verify theorem directly Case 2.2: Verify theorem directly 18

Next class Indirect proof techniques Read section 3.5 in Jenkyns, Stephenson