CSE 20 DISCRETE MATH. Fall

Similar documents
CSE 20 DISCRETE MATH. Winter

CSE 20 DISCRETE MATH SPRING

CSE 20 DISCRETE MATH WINTER

CSE 20 DISCRETE MATH. Winter

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

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

Readings: Conjecture. Theorem. Rosen Section 1.5

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

CSE 20 DISCRETE MATH. Fall

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.

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

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

Proofs. Example of an axiom in this system: Given two distinct points, there is exactly one line that contains them.

Review. Propositions, propositional operators, truth tables. Logical Equivalences. Tautologies & contradictions

Your quiz in recitation on Tuesday will cover 3.1: Arguments and inference. Your also have an online quiz, covering 3.1, due by 11:59 p.m., Tuesday.

Intro to Logic and Proofs

software design & management Gachon University Chulyun Kim

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

Discrete Mathematics Logics and Proofs. Liangfeng Zhang School of Information Science and Technology ShanghaiTech University

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

1 The Foundation: Logic and Proofs

DISCRETE MATH: FINAL REVIEW

Lecture 2: Proof Techniques Lecturer: Lale Özkahya

Mat 243 Exam 1 Review

1 The Foundation: Logic and Proofs

Argument. whenever all the assumptions are true, then the conclusion is true. If today is Wednesday, then yesterday is Tuesday. Today is Wednesday.

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

Predicate Logic. Andreas Klappenecker

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

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

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

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

Proofs. Joe Patten August 10, 2018

Discrete Mathematics

MAT 243 Test 1 SOLUTIONS, FORM A

Manual of Logical Style

EECS 1028 M: Discrete Mathematics for Engineers

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

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

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

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

Rules of Inference. Arguments and Validity

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

CSCE 222 Discrete Structures for Computing. Review for Exam 1. Dr. Hyunyoung Lee !!!

A. Propositional Logic

Sample Problems for all sections of CMSC250, Midterm 1 Fall 2014

Supplementary Logic Notes CSE 321 Winter 2009

Logic and Proof. Aiichiro Nakano

Methods of Proof. 1.6 Rules of Inference. Argument and inference 12/8/2015. CSE2023 Discrete Computational Structures

Inference and Proofs (1.6 & 1.7)

Propositional Logic. Spring Propositional Logic Spring / 32

UNIVERSITY OF CALICUT SCHOOL OF DISTANCE EDUCATION B Sc (MATHEMATICS) I Semester Core Course. FOUNDATIONS OF MATHEMATICS (MODULE I & ii) QUESTION BANK

1.1 Statements and Compound Statements

Propositional Logic. Argument Forms. Ioan Despi. University of New England. July 19, 2013

Mathematical Reasoning Rules of Inference & Mathematical Induction. 1. Assign propositional variables to the component propositional argument.

Outline. Rules of Inferences Discrete Mathematics I MATH/COSC 1056E. Example: Existence of Superman. Outline

WUCT121. Discrete Mathematics. Logic. Tutorial Exercises

Math 3336: Discrete Mathematics Practice Problems for Exam I

PROPOSITIONAL CALCULUS

Boolean Algebra and Proof. Notes. Proving Propositions. Propositional Equivalences. Notes. Notes. Notes. Notes. March 5, 2012

1. Propositions: Contrapositives and Converses

Today s Lecture 2/25/10. Truth Tables Continued Introduction to Proofs (the implicational rules of inference)

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

Rules Build Arguments Rules Building Arguments

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.

Complete Induction and the Well- Ordering Principle

Section 3.1: Direct Proof and Counterexample 1

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

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

CPSC 121: Models of Computation

Proof by Contradiction

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

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

MATH 215 Final. M4. For all a, b in Z, a b = b a.

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

CPSC 121: Models of Computation. Module 6: Rewriting predicate logic statements

ECOM Discrete Mathematics

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

A Guide to Proof-Writing

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

Chapter 3. The Logic of Quantified Statements

1. Mathematical Proofs

n Empty Set:, or { }, subset of all sets n Cardinality: V = {a, e, i, o, u}, so V = 5 n Subset: A B, all elements in A are in B

1. Consider the conditional E = p q r. Use de Morgan s laws to write simplified versions of the following : The negation of E : 5 points

We want to show P (n) is true for all integers

MATH CSE20 Homework 5 Due Monday November 4

Why Learning Logic? Logic. Propositional Logic. Compound Propositions

Logical Form 5 Famous Valid Forms. Today s Lecture 1/26/10

Lecture 7 Feb 4, 14. Sections 1.7 and 1.8 Some problems from Sec 1.8

Logic, Sets, and Proofs

The Logic of Compound Statements cont.

The Foundations: Logic and Proofs. Chapter 1, Part III: Proofs

Announcements. Exam 1 Review

DISCRETE MATHEMATICS BA202

The proposition p is called the hypothesis or antecedent. The proposition q is called the conclusion or consequence.

Full file at

CS100: DISCRETE STRUCTURES. Lecture 5: Logic (Ch1)

Meaning of Proof Methods of Proof

Manual of Logical Style (fresh version 2018)

Section 1.1 Propositions

Transcription:

CSE 20 DISCRETE MATH Fall 2017 http://cseweb.ucsd.edu/classes/fa17/cse20-ab/

Today's learning goals Distinguish between a theorem, an axiom, lemma, a corollary, and a conjecture. Recognize direct proofs Recognize proofs by contraposition Recognize proofs by contradiction Recognize fallacious proofs Evaluate which proof technique(s) is appropriate for a given proposition Direct proof Proofs by contraposition Proofs by contradiction Proof by cases Constructive existence proofs Correctly prove statements using appropriate style conventions, guiding text, notation, and terminology Textbook references: Sections 1.7-1.8 (with reference to 1.6)

Review: quantified statements Rosen p. 64 #1 In which domain is this statement not true? A. All real numbers in the closed interval [0,1]. B. The set of integers {1,2,3}. C. All real numbers. D. All positive real numbers. E. All positive integers.

For the sake of argument Rosen p. 81 "A proof is a valid argument that establishes the truth of a statement"

For the sake of argument Rosen p. 69 "A proof is a valid argument that establishes the truth of a statement" Valid: truth of the conclusion (final statement) is guaranteed by the truth of the premises (preceding statements) Argument: sequence of statements ending with a conclusion

For the sake of argument Rosen p. 81 Axioms: statements assumed to be true Rules of inference +definitions Theorem Proposition Fact Result Lemma Corollary

What rules of inference are allowed? Rosen 1.6 Argument form is valid if no matter which propositions are substituted in, the conclusion is true if all the premises are true

Fancy names Rosen 1.6 Modus ponens Modus tollens Hypothetical syllogism Universal instantiation Universal generalization Existential instantiation Existential generalization

Translating to proof strategy Rosen p. 82 Modus ponens Direct proof To prove that "If P, then Q" - Assume P is true. - Use rules of inference, axioms, definitions to - conclude Q is true.

Translating to proof strategy Rosen p. 83 Modus tollens Proof by contraposition To prove that "If P, then Q" - Assume Q is false. - Use rules of inference, axioms, definitions to - conclude P is also false. Both modus ponens and modus tollens apply when proving a conditional statement

Main connective Are these statements true? I. II. A. Both are true. B. Both are false. C. I is true and II is false. D. II is true and I is false. E. I don't know how to evaluate the truth value of these sentences.

Universal conditionals can be translated to

Universal conditionals Rosen p. 88 To prove this statement is false : To prove this statement is true :

Universal conditionals Rosen p. 88, 82 To prove this statement is false : Find a counterexample. To prove this statement is true : Select a general element of the domain, use rules of inference (e.g direct proof, proof by contrapositive, etc.) to prove that the conditional statement is true of this element, c conclude that it holds of all members of the domain.

Universal conditionals Claim: is false. Proof:

Universal conditionals Claim: is false. Proof: Since this is a universal conditional statement, to prove that it is false, it's enough to find one counterexample. That is, we need a specific value of n which is a positive integer and for which n 2 +1<2 n. Consider.

Universal conditionals Claim: is false. Proof: Since this is a universal conditional statement, it's enough to find one counterexample. That is, we need a specific value of n which is a positive integer and for which n 2 +1<2 n. Consider n = 5. Then, for this example, the LHS of the inequality evaluates to 5 2 +1 = 26 and the RHS evaluates to 2 5 =32. Therefore, LHS < RHS, contradicting the statement. Thus, there is (at least) one counterexample to the universal statement and hence the universal statement is false.

Universal conditionals Claim: is true. Proof: WTS Let n be a positive integer (a general element of the domain). For a direct proof, assume A. n 1 B. n 2 + 1 2 n C. n 4 D. n 2 + 1 < 2 n E. None of the above

Universal conditionals Claim: is true. Proof: WTS Let n be a positive integer (a general element of the domain). For a direct proof, assume that 1 n 4. Goal : WTS that n 2 + 1 2 n How can we use the hypothesis?

Universal conditionals Claim: is true. Proof: WTS Let n be a positive integer (a general element of the domain). For a direct proof, assume that 1 n 4. Goal : WTS that n 2 + 1 2 n Since we assume that n is an integer between 1 and 4, there are only four possible cases. We check that the conclusion is true in each one.

Universal conditionals Claim: is true. Proof: WTS Let n be a positive integer (a general element of the domain). For a direct proof, assume that 1 <= n <= 4. Goal : WTS that n 2 + 1 >= 2 n Case 1: Assume n=1. Then LHS is 1 2 +1 = 2; RHS is 2 1 =2 so LHS >=RHS. J Case 2: Assume n=2. Then LHS is 2 2 +1 = 5; RHS is 2 2 =4 so LHS >=RHS. J Case 3: Assume n=3. Then LHS is 3 2 +1 = 10; RHS is 2 3 =8 so LHS >=RHS. J Case 4: Assume n=4. Then LHS is 4 2 +1 = 17; RHS is 2 4 =16 so LHS >=RHS. J

Universal conditionals Claim: Exhaustive proof (cf. page 93) is true. Proof: WTS Let n be a positive integer (a general element of the domain). For a direct proof, assume that 1 <= n <= 4. Goal : WTS that n 2 + 1 >= 2 n Case 1: Assume n=1. Then LHS is 1 2 +1 = 2; RHS is 2 1 =2 so LHS >=RHS. J Case 2: Assume n=2. Then LHS is 2 2 +1 = 5; RHS is 2 2 =4 so LHS >=RHS. J Case 3: Assume n=3. Then LHS is 3 2 +1 = 10; RHS is 2 3 =8 so LHS >=RHS. J Case 4: Assume n=4. Then LHS is 4 2 +1 = 17; RHS is 2 4 =16 so LHS >=RHS. J

Reminder: perfect squares Rosen p. 83 An integer a is a perfect square iff there is some integer b such that a = b 2 Which of the following is not a perfect square? A. 0 B. 1 C. 2 D. 4 E. More than one of the above

Reminder: perfect squares Rosen p. 83 Theorem: For integer k>1, then 2 k -1 is not a perfect square. Proof: Let k be an integer. What would we assume in a direct proof? A. k > 1 B. k <= 1 C. 2 k -1 is not a perfect square D. 2 k -1 is a perfect square E. More than one of the above

Reminder: perfect squares Rosen p. 83 Theorem: For integer k>1, then 2 k -1 is not a perfect square. Proof: Let k be an integer. What would we assume in a proof by contraposition? A. k > 1 B. k <= 1 C. 2 k -1 is not a perfect square D. 2 k -1 is a perfect square E. More than one of the above

Reminder: perfect squares Rosen p. 83 Theorem: For integer k>1, then 2 k -1 is not a perfect square. Proof:???

Tangent, for a moment

Reminder: evens and odds An integer a is even iff there is some integer b such that a = 2b Which of the following is equivalent to definition of a being even? A. a/2 B. a div 2 is an integer. C. a mod 2 is zero. D. 2a is an integer. E. More than one of the above.

Reminder: divisibility Rosen p. 238-239 For integers a, b with a nonzero means, a.k.a. "a divides b" "b is an integer multiple of a"

Reminder: evens and odds An integer a is even if there is some integer b such that a = 2b. Why equivalent? An integer a is odd iff it's not even or equivalently there is some integer b such that a = 2b + 1.

Flexing proof muscles Theorem: If n is even, then so is n 2. Proof:

Flexing proof muscles Theorem: If n is odd, then so is n 2. Proof:

Flexing proof muscles Theorem: If n 2 is even, then so is n. Proof:

Flexing proof muscles Theorem: If n 2 is odd, then so is n. Proof:

Back to: perfect squares Rosen p. 83 Theorem: For integers k>1, then 2 k -1 is not a perfect square. Proof:???

Back to: perfect squares Rosen p. 83 Theorem: For integers k>1, then 2 k -1 is not a perfect square. Proof: Try proof by contraposition again Let k be an integer. Assume: 2 k -1 is a perfect square Note: k must be nonnegative because perfect squares are integers. WTS: k <=1. Note: using above, what we want to show is that k=0 or 1.

Back to: perfect squares Rosen p. 83 Theorem: For integers k>1, then 2 k -1 is not a perfect square. Proof: Try proof by contraposition again Let k be an integer. Assume: 2 k -1 is a perfect square Note: k must be nonnegative because perfect squares are integers. By definition of perfect square, there is c such that 2 k -1 = c 2. Either k=0 (i.e. c=0) or 2 k -1 is a positive integer. Is this integer even or odd?

Overall strategy Do you believe the statement? Try some small examples. Determine logical structure + main connective. Determine relevant definitions. Map out possible proof strategies. For each strategy: what can we assume, what is the goal? Start with simplest, move to more complicated if/when get stuck.