Presentation is loading. Please wait.

Presentation is loading. Please wait.

Sets and Logic…. Chapter 3

Similar presentations


Presentation on theme: "Sets and Logic…. Chapter 3"β€” Presentation transcript:

1 Sets and Logic…. Chapter 3
An experiment….. Sets and Logic…. Chapter 3

2 Logical Laws DeMorgan’s Laws Commutative, Associative, and Idempotent
Β¬ π‘ƒβˆ§π‘„ 𝑖𝑠 π‘’π‘žπ‘’π‘–π‘£π‘Žπ‘™π‘’π‘›π‘‘ π‘‘π‘œ Β¬π‘ƒβˆ¨Β¬π‘„ Β¬ π‘ƒβˆ¨π‘„ 𝑖𝑠 π‘’π‘žπ‘’π‘–π‘£π‘Žπ‘™π‘’π‘›π‘‘ π‘‘π‘œ Β¬π‘ƒβˆ§Β¬π‘„ Commutative, Associative, and Idempotent Distributive π‘ƒβˆ§ π‘„βˆ¨π‘… 𝑖𝑠 π‘’π‘žπ‘’π‘–π‘£π‘Žπ‘™π‘’π‘›π‘‘ π‘‘π‘œ (π‘ƒβˆ§π‘„)∨(π‘ƒβˆ§π‘…) π‘ƒβˆ¨ Qβˆ§π‘… 𝑖𝑠 π‘’π‘žπ‘’π‘–π‘£π‘Žπ‘™π‘’π‘›π‘‘ π‘‘π‘œ π‘ƒβˆ¨π‘„ ∧ π‘ƒβˆ¨π‘… Absorption: π‘ƒβˆ¨ π‘ƒβˆ§π‘… 𝑖𝑠 π‘’π‘žπ‘’π‘–π‘£π‘Žπ‘™π‘’π‘›π‘‘ π‘‘π‘œ 𝑃 π‘ƒβˆ§ π‘ƒβˆ¨π‘… 𝑖𝑠 π‘’π‘žπ‘’π‘–π‘£π‘Žπ‘™π‘’π‘›π‘‘ π‘‘π‘œ 𝑃

3 Equivalences 𝑃→𝑄 is equivalent to Β¬π‘ƒβˆ¨π‘„ 𝑃→𝑄 is equivalent to Β¬(π‘ƒβˆ§Β¬π‘„)

4 The Converse and Contrapositive
Consider 𝑃→𝑄 and 𝑄→𝑃 𝑄→𝑃 is called the converse of 𝑃→𝑄 ¬𝑄→¬𝑃 is the contrapositive of 𝑃→𝑄 The converse of 𝑃→𝑄 is not equivalent The contrapositive is…….. 𝑃→𝑄 𝑖𝑠 π‘’π‘žπ‘’π‘–π‘£π‘Žπ‘™π‘’π‘›π‘‘ π‘‘π‘œ ¬𝑄→¬𝑃

5 Chapter 2: Quantifiers Three ideas
For all or for every, we use the notation: βˆ€ There is one, or there exists: βˆƒ The universe……

6 Seven Operators Connectives Quantifiers
Β¬ ∧ ∨ β†’ ↔ Quantifiers βˆ€ π‘Žπ‘›π‘‘ βˆƒ This is really all we need to write any mathematical statement!

7 New Notation βˆ€π‘₯ π‘₯>2β†’ π‘₯ 2 >4 Is there and implied universe?

8 EquivaleNce Involving Quantifiers
Quantifier Negation Laws Β¬βˆƒπ‘₯𝑃 π‘₯ 𝑖𝑠 π‘’π‘žπ‘’π‘–π‘£π‘Žπ‘™π‘’π‘›π‘‘ π‘‘π‘œβˆ€π‘₯¬𝑃 π‘₯ Β¬βˆ€π‘₯𝑃 π‘₯ 𝑖𝑠 π‘’π‘žπ‘’π‘–π‘£π‘Žπ‘™π‘’π‘›π‘‘ π‘‘π‘œ βˆƒπ‘₯¬𝑃(π‘₯)

9 Chapter 3: Proofs We want to build a β€œcookbook” of strategies for proving different relations The goal is to be systematic, and flexible Different strategies work with different situations

10 3.1 Proof Strategies Givens and Goals
Often times theorems state their givens, i.e. defining the universe, etc. and finish with simple statements stated as 𝑃→𝑄. Givens: Goal: Prove 𝑃→𝑄

11 3.1 Proof Strategies Move P to the givens Givens Goal -------------- 𝑄
𝑄 P

12 Example Suppose a and b are real numbers. If 0<π‘Ž<𝑏 then π‘Ž 2 < 𝑏 2 . Givens: Goal: a and b are real numbers 𝑃→𝑄 a and b are real numbers 𝑄 P or 0<π‘Ž<𝑏

13 Form of Basic Proof 𝑃→𝑄 Givens Goal Final Form ------------- Q
Suppose P and other Givens Prove Q Thus 𝑃→𝑄

14 Alternate Strategy: Contrapositive
𝑃→𝑄 is equivalent to ¬𝑄→¬𝑃 Givens Goal Q P ¬𝑃 ¬𝑄

15 Contrapositive proof Assume givens and ¬𝑄 Prove ¬𝑃 Therefore 𝑃→𝑄

16 Example Suppose a, b, and c are real numbers and a>b. If π‘Žπ‘β‰€π‘π‘ then 𝑐≀0. Givens Goal a,b,c, are real numbers (π‘Žπ‘β‰€π‘π‘)β†’(𝑐≀0) a>b a,b,c, are real numbers π‘Žπ‘>𝑏𝑐 c>0

17 Proofs involving Negations and Conditionals
Proving something of the form ¬𝑃 Try to reexpress ¬𝑃 positively Example: Suppose π΄βˆ©πΆβŠ†π΅ and π‘ŽβˆˆπΆ. Prove that π‘Žβˆ‰π΄\B

18 Additional Possibility
Givens Goal ¬𝑃 Assume P and look for a contradiction Contradiction P

19 Example If π‘₯ 2 +𝑦=13, and 𝑦≠4 then π‘₯β‰ 3.
Prove it two ways… or set it up two ways

20 Plug and Chug… write the definitions out
Suppose A,B, and C are sets, 𝐴\BβŠ†πΆ, and x is anything at all. Prove that if π‘₯∈𝐴\C, then π‘₯∈𝐡. Try proceeding by contradiction

21 Silly Latin Modus ponens Modus tollens 𝑃→𝑄 and 𝑃 implies 𝑄

22 Example Suppose 𝑃→ 𝑄→𝑅 , then ¬𝑅→(𝑃→¬𝑄).

23 Example Suppose that π΄βŠ†π΅, π‘Žβˆˆπ΄, and π‘Žβˆ‰π΅\C. Then π‘ŽβˆˆπΆ.

24 Proofs involving quantifiers
βˆ€π‘₯𝑃 π‘₯ Instead let x be arbitrary Suppose A, B, and C are sets, and 𝐴\BβŠ†πΆ. Prove that 𝐴\CβŠ†π΅

25 Example Suppose A and B are sets. Prove that if 𝐴∩𝐡=𝐴, then π΄βŠ†π΅.

26 Existence Proofs βˆƒπ‘₯𝑃 π‘₯ You only have to find one x
Sometimes by example Often times done by contradiction

27 Existence Proof ( Simple )
Prove that for every real number x>0, there is a real number y such that 𝑦 π‘¦βˆ’1 =π‘₯.

28 Example from Analysis

29 Example Suppose that β„± π‘Žπ‘›π‘‘ β„‹ are families of sets and that β„±βˆ©β„‹β‰ βˆ…. Prove that βˆ©β„±βŠ†βˆͺβ„‹. Make sure to write the definitions first.

30 Example Suppose B is a set and β„± is a family of sets. Prove that if βˆͺβ„±βŠ†π΅ then β„±βŠ†β„˜ 𝐡 . Write out the definitions first

31 Example Theorem: For all integers a,b, and c, if a|b and b|c then a|c.

32 3.4: Proofs with ∧,∨, … ↔ To Prove a Goal of π‘ƒβˆ§π‘„ To Use a Given of π‘ƒβˆ§π‘„
Prove them separately To Use a Given of π‘ƒβˆ§π‘„ Treat them separately Example: Suppose π΄βŠ†π΅, and A and C are disjoint. Prove that π΄βŠ†π΅\C.

33 Biconditionals: ↔ To prove a goal of 𝑃↔𝑄
Prove 𝑃→𝑄 and 𝑄→𝑃 separately To use a given of the form 𝑃↔𝑄 Treat 𝑃→𝑄 and 𝑄→𝑃 separately Example: Suppose x is an integer. Prove that x is even if and only if π‘₯ 2 is an integer.

34 Example Suppose A, B, and C are sets. Prove that 𝐴∩ 𝐡\C =(𝐴∩𝐡)\C

35 Example For every integer n, 6|n iff 2|n and 3|n.

36 Proof with disjunctions, ∨
To prove (π‘ƒβˆ¨π‘„)→𝑅 Prove 𝑃→𝑅 And Prove 𝑄→𝑅

37 Examples Suppose A,B, and C are sets. Prove that if π΄βŠ†πΆ π‘Žπ‘›π‘‘ π΅βŠ†πΆ π‘‘β„Žπ‘’π‘› π΄β‹ƒπ΅βŠ†πΆ. 𝐴\(𝐡\C)βŠ†(𝐴\B)⋃𝐢

38 Example For every integer x, the remainder when π‘₯ 2 is divided by 4 is either 0 or 1. For every real number x, if π‘₯ 2 β‰₯π‘₯ then either π‘₯≀0 π‘œπ‘Ÿ π‘₯>1.

39 Example Suppose m and n are integers. If mn is even then either m is even or n is even.


Download ppt "Sets and Logic…. Chapter 3"

Similar presentations


Ads by Google