Lecture 11: Countability Infjnity is weeeeeeird 1 / 20 What Is - - PowerPoint PPT Presentation

lecture 11 countability
SMART_READER_LITE
LIVE PREVIEW

Lecture 11: Countability Infjnity is weeeeeeird 1 / 20 What Is - - PowerPoint PPT Presentation

Lecture 11: Countability Infjnity is weeeeeeird 1 / 20 What Is Same Size? Consider two sets: Are these the same size? No! Second set has an extra element! What about: 1 2 3 4 0 1 2 3 4 has an extra element...but both are infjnite?


slide-1
SLIDE 1

Lecture 11: Countability

Infjnity is weeeeeeird

1 / 20

slide-2
SLIDE 2

What Is “Same Size”?

Consider two sets: {1, 2, 3, 4} {0, 1, 2, 3, 4} Are these the same size? No! Second set has an extra element! What about: 1 2 3 4 0 1 2 3 4 has an extra element...but both are infjnite? Is 1 ? ???? Need difgerent way to think about “size”

2 / 20

slide-3
SLIDE 3

What Is “Same Size”?

Consider two sets: {1, 2, 3, 4} {0, 1, 2, 3, 4} Are these the same size? No! Second set has an extra element! What about: 1 2 3 4 0 1 2 3 4 has an extra element...but both are infjnite? Is 1 ? ???? Need difgerent way to think about “size”

2 / 20

slide-4
SLIDE 4

What Is “Same Size”?

Consider two sets: {1, 2, 3, 4} {0, 1, 2, 3, 4} Are these the same size? No! Second set has an extra element! What about: 1 2 3 4 0 1 2 3 4 has an extra element...but both are infjnite? Is 1 ? ???? Need difgerent way to think about “size”

2 / 20

slide-5
SLIDE 5

What Is “Same Size”?

Consider two sets: {1, 2, 3, 4} {0, 1, 2, 3, 4} Are these the same size? No! Second set has an extra element! What about: Z+ = {1, 2, 3, 4, ...} N = {0, 1, 2, 3, 4, ...} has an extra element...but both are infjnite? Is 1 ? ???? Need difgerent way to think about “size”

2 / 20

slide-6
SLIDE 6

What Is “Same Size”?

Consider two sets: {1, 2, 3, 4} {0, 1, 2, 3, 4} Are these the same size? No! Second set has an extra element! What about: Z+ = {1, 2, 3, 4, ...} N = {0, 1, 2, 3, 4, ...} N has an extra element... but both are infjnite? Is 1 ? ???? Need difgerent way to think about “size”

2 / 20

slide-7
SLIDE 7

What Is “Same Size”?

Consider two sets: {1, 2, 3, 4} {0, 1, 2, 3, 4} Are these the same size? No! Second set has an extra element! What about: Z+ = {1, 2, 3, 4, ...} N = {0, 1, 2, 3, 4, ...} N has an extra element...but both are infjnite? Is 1 ? ???? Need difgerent way to think about “size”

2 / 20

slide-8
SLIDE 8

What Is “Same Size”?

Consider two sets: {1, 2, 3, 4} {0, 1, 2, 3, 4} Are these the same size? No! Second set has an extra element! What about: Z+ = {1, 2, 3, 4, ...} N = {0, 1, 2, 3, 4, ...} N has an extra element...but both are infjnite? Is ∞ + 1 = ∞? ???? Need difgerent way to think about “size”

2 / 20

slide-9
SLIDE 9

What Is “Same Size”?

Consider two sets: {1, 2, 3, 4} {0, 1, 2, 3, 4} Are these the same size? No! Second set has an extra element! What about: Z+ = {1, 2, 3, 4, ...} N = {0, 1, 2, 3, 4, ...} N has an extra element...but both are infjnite? Is ∞ + 1 = ∞? ???? Need difgerent way to think about “size”

2 / 20

slide-10
SLIDE 10

What Is “Same Size”?

Consider two sets: {1, 2, 3, 4} {0, 1, 2, 3, 4} Are these the same size? No! Second set has an extra element! What about: Z+ = {1, 2, 3, 4, ...} N = {0, 1, 2, 3, 4, ...} N has an extra element...but both are infjnite? Is ∞ + 1 = ∞? ???? Need difgerent way to think about “size”

2 / 20

slide-11
SLIDE 11

Finite Example

Are there same number of circles and squares? How do we know? I can’t count to 5... Idea: Draw lines between squares and circles Only possible if same number of squares and circles! How to generalize to infjnite sets?

3 / 20

slide-12
SLIDE 12

Finite Example

Are there same number of circles and squares? How do we know? I can’t count to 5... Idea: Draw lines between squares and circles Only possible if same number of squares and circles! How to generalize to infjnite sets?

3 / 20

slide-13
SLIDE 13

Finite Example

Are there same number of circles and squares? How do we know? I can’t count to 5... Idea: Draw lines between squares and circles Only possible if same number of squares and circles! How to generalize to infjnite sets?

3 / 20

slide-14
SLIDE 14

Finite Example

Are there same number of circles and squares? How do we know? I can’t count to 5... Idea: Draw lines between squares and circles Only possible if same number of squares and circles! How to generalize to infjnite sets?

3 / 20

slide-15
SLIDE 15

Finite Example

Are there same number of circles and squares? How do we know? I can’t count to 5... Idea: Draw lines between squares and circles Only possible if same number of squares and circles! How to generalize to infjnite sets?

3 / 20

slide-16
SLIDE 16

Finite Example

Are there same number of circles and squares? How do we know? I can’t count to 5... Idea: Draw lines between squares and circles Only possible if same number of squares and circles! How to generalize to infjnite sets?

3 / 20

slide-17
SLIDE 17

Bijections and Size

Idea: sets “same size” if ∃ bijection between them Does this make sense for fjnite sets? Suppose have bijection b 1 2 3 S How many elements in S? S b 1 b 2 b 3 , so 3 elements as well! Bijections capture the “same num of elts” idea But also makes sense for infjnite sets!

4 / 20

slide-18
SLIDE 18

Bijections and Size

Idea: sets “same size” if ∃ bijection between them Does this make sense for fjnite sets? Suppose have bijection b 1 2 3 S How many elements in S? S b 1 b 2 b 3 , so 3 elements as well! Bijections capture the “same num of elts” idea But also makes sense for infjnite sets!

4 / 20

slide-19
SLIDE 19

Bijections and Size

Idea: sets “same size” if ∃ bijection between them Does this make sense for fjnite sets? Suppose have bijection b : {1, 2, 3} → S How many elements in S? S b 1 b 2 b 3 , so 3 elements as well! Bijections capture the “same num of elts” idea But also makes sense for infjnite sets!

4 / 20

slide-20
SLIDE 20

Bijections and Size

Idea: sets “same size” if ∃ bijection between them Does this make sense for fjnite sets? Suppose have bijection b : {1, 2, 3} → S How many elements in S? S = {b(1), b(2), b(3)}, so 3 elements as well! Bijections capture the “same num of elts” idea But also makes sense for infjnite sets!

4 / 20

slide-21
SLIDE 21

Bijections and Size

Idea: sets “same size” if ∃ bijection between them Does this make sense for fjnite sets? Suppose have bijection b : {1, 2, 3} → S How many elements in S? S = {b(1), b(2), b(3)}, so 3 elements as well! Bijections capture the “same num of elts” idea But also makes sense for infjnite sets!

4 / 20

slide-22
SLIDE 22

Same Infjnities

Claim: |N| = |Z+|1 How can we prove this? Need a bijection! Claim: f x x 1 is bijection Why? Has inverse f 1 y y 1 But what about f x x? Not onto! Don’t need all functions bijective! Only need one. Adding one elt to infjnite set doesn’t seem to change size...what if we added more?

1Here |S| means the cardinality or “size” of S

5 / 20

slide-23
SLIDE 23

Same Infjnities

Claim: |N| = |Z+|1 How can we prove this? Need a bijection! Claim: f x x 1 is bijection Why? Has inverse f 1 y y 1 But what about f x x? Not onto! Don’t need all functions bijective! Only need one. Adding one elt to infjnite set doesn’t seem to change size...what if we added more?

1Here |S| means the cardinality or “size” of S

5 / 20

slide-24
SLIDE 24

Same Infjnities

Claim: |N| = |Z+|1 How can we prove this? Need a bijection! Claim: f x x 1 is bijection Why? Has inverse f 1 y y 1 But what about f x x? Not onto! Don’t need all functions bijective! Only need one. Adding one elt to infjnite set doesn’t seem to change size...what if we added more?

1Here |S| means the cardinality or “size” of S

5 / 20

slide-25
SLIDE 25

Same Infjnities

Claim: |N| = |Z+|1 How can we prove this? Need a bijection! Claim: f(x) = x + 1 is bijection N → Z+ Why? Has inverse f 1 y y 1 But what about f x x? Not onto! Don’t need all functions bijective! Only need one. Adding one elt to infjnite set doesn’t seem to change size...what if we added more?

1Here |S| means the cardinality or “size” of S

5 / 20

slide-26
SLIDE 26

Same Infjnities

Claim: |N| = |Z+|1 How can we prove this? Need a bijection! Claim: f(x) = x + 1 is bijection N → Z+ Why? Has inverse f 1 y y 1 But what about f x x? Not onto! Don’t need all functions bijective! Only need one. Adding one elt to infjnite set doesn’t seem to change size...what if we added more?

1Here |S| means the cardinality or “size” of S

5 / 20

slide-27
SLIDE 27

Same Infjnities

Claim: |N| = |Z+|1 How can we prove this? Need a bijection! Claim: f(x) = x + 1 is bijection N → Z+ Why? Has inverse f−1(y) = y − 1 But what about f x x? Not onto! Don’t need all functions bijective! Only need one. Adding one elt to infjnite set doesn’t seem to change size...what if we added more?

1Here |S| means the cardinality or “size” of S

5 / 20

slide-28
SLIDE 28

Same Infjnities

Claim: |N| = |Z+|1 How can we prove this? Need a bijection! Claim: f(x) = x + 1 is bijection N → Z+ Why? Has inverse f−1(y) = y − 1 But what about f(x) = x? Not onto! Don’t need all functions bijective! Only need one. Adding one elt to infjnite set doesn’t seem to change size...what if we added more?

1Here |S| means the cardinality or “size” of S

5 / 20

slide-29
SLIDE 29

Same Infjnities

Claim: |N| = |Z+|1 How can we prove this? Need a bijection! Claim: f(x) = x + 1 is bijection N → Z+ Why? Has inverse f−1(y) = y − 1 But what about f(x) = x? Not onto! Don’t need all functions bijective! Only need one. Adding one elt to infjnite set doesn’t seem to change size...what if we added more?

1Here |S| means the cardinality or “size” of S

5 / 20

slide-30
SLIDE 30

Same Infjnities

Claim: |N| = |Z+|1 How can we prove this? Need a bijection! Claim: f(x) = x + 1 is bijection N → Z+ Why? Has inverse f−1(y) = y − 1 But what about f(x) = x? Not onto! Don’t need all functions bijective! Only need one. Adding one elt to infjnite set doesn’t seem to change size... what if we added more?

1Here |S| means the cardinality or “size” of S

5 / 20

slide-31
SLIDE 31

Same Infjnities

Claim: |N| = |Z+|1 How can we prove this? Need a bijection! Claim: f(x) = x + 1 is bijection N → Z+ Why? Has inverse f−1(y) = y − 1 But what about f(x) = x? Not onto! Don’t need all functions bijective! Only need one. Adding one elt to infjnite set doesn’t seem to change size...what if we added more?

1Here |S| means the cardinality or “size” of S

5 / 20

slide-32
SLIDE 32

More Infjnities

Claim: |N| = |Z| How can we map from to ? 1 1 2 1 3 2 4 2 ... Take f x

x 1 2

x is odd

x 2

x is even Inverse is f 1 y 2y 1 y 2y y

6 / 20

slide-33
SLIDE 33

More Infjnities

Claim: |N| = |Z| How can we map from N to Z? 1 1 2 1 3 2 4 2 ... Take f x

x 1 2

x is odd

x 2

x is even Inverse is f 1 y 2y 1 y 2y y

6 / 20

slide-34
SLIDE 34

More Infjnities

Claim: |N| = |Z| How can we map from N to Z? 0 → 0 1 1 2 1 3 2 4 2 ... Take f x

x 1 2

x is odd

x 2

x is even Inverse is f 1 y 2y 1 y 2y y

6 / 20

slide-35
SLIDE 35

More Infjnities

Claim: |N| = |Z| How can we map from N to Z? 0 → 0 1 → 1 2 1 3 2 4 2 ... Take f x

x 1 2

x is odd

x 2

x is even Inverse is f 1 y 2y 1 y 2y y

6 / 20

slide-36
SLIDE 36

More Infjnities

Claim: |N| = |Z| How can we map from N to Z? 0 → 0 1 → 1 2 → −1 3 2 4 2 ... Take f x

x 1 2

x is odd

x 2

x is even Inverse is f 1 y 2y 1 y 2y y

6 / 20

slide-37
SLIDE 37

More Infjnities

Claim: |N| = |Z| How can we map from N to Z? 0 → 0 1 → 1 2 → −1 3 → 2 4 2 ... Take f x

x 1 2

x is odd

x 2

x is even Inverse is f 1 y 2y 1 y 2y y

6 / 20

slide-38
SLIDE 38

More Infjnities

Claim: |N| = |Z| How can we map from N to Z? 0 → 0 1 → 1 2 → −1 3 → 2 4 → −2 ... Take f x

x 1 2

x is odd

x 2

x is even Inverse is f 1 y 2y 1 y 2y y

6 / 20

slide-39
SLIDE 39

More Infjnities

Claim: |N| = |Z| How can we map from N to Z? 0 → 0 1 → 1 2 → −1 3 → 2 4 → −2 ... Take f x

x 1 2

x is odd

x 2

x is even Inverse is f 1 y 2y 1 y 2y y

6 / 20

slide-40
SLIDE 40

More Infjnities

Claim: |N| = |Z| How can we map from N to Z? 0 → 0 1 → 1 2 → −1 3 → 2 4 → −2 ... Take f(x) = {

x+1 2

x is odd −x

2

x is even Inverse is f−1(y) = { 2y − 1 y > 0 −2y y ≤ 0

6 / 20

slide-41
SLIDE 41

Bijection Alternatives

Explicitly stating a bijection can be a pain... What alternatives do we have? To prove S , can give enumeration of S: List “1st” elt of S, then “2nd”, then “3rd”, etc. Need to eventually hit every element Ex: For , can enumerate as 0 1 1 2 2 3 3 Careful — need fjnite position for any element! Ex: 0 1 2 1 2 3 not valid for

7 / 20

slide-42
SLIDE 42

Bijection Alternatives

Explicitly stating a bijection can be a pain... What alternatives do we have? To prove S , can give enumeration of S: List “1st” elt of S, then “2nd”, then “3rd”, etc. Need to eventually hit every element Ex: For , can enumerate as 0 1 1 2 2 3 3 Careful — need fjnite position for any element! Ex: 0 1 2 1 2 3 not valid for

7 / 20

slide-43
SLIDE 43

Bijection Alternatives

Explicitly stating a bijection can be a pain... What alternatives do we have? To prove |S| = |N|, can give enumeration of S: List “1st” elt of S, then “2nd”, then “3rd”, etc. Need to eventually hit every element Ex: For , can enumerate as 0 1 1 2 2 3 3 Careful — need fjnite position for any element! Ex: 0 1 2 1 2 3 not valid for

7 / 20

slide-44
SLIDE 44

Bijection Alternatives

Explicitly stating a bijection can be a pain... What alternatives do we have? To prove |S| = |N|, can give enumeration of S: List “1st” elt of S, then “2nd”, then “3rd”, etc. Need to eventually hit every element Ex: For Z, can enumerate as 0, 1, −1, 2, −2, 3, −3, ... Careful — need fjnite position for any element! Ex: 0 1 2 1 2 3 not valid for

7 / 20

slide-45
SLIDE 45

Bijection Alternatives

Explicitly stating a bijection can be a pain... What alternatives do we have? To prove |S| = |N|, can give enumeration of S: List “1st” elt of S, then “2nd”, then “3rd”, etc. Need to eventually hit every element Ex: For Z, can enumerate as 0, 1, −1, 2, −2, 3, −3, ... Careful — need fjnite position for any element! Ex: 0, 1, 2, ..., −1, −2, −3, ... not valid for Z

7 / 20

slide-46
SLIDE 46

Enumeration Example

Defjnition: {0, 1}∗ is set of fjnite bit strings Theorem: 0 1 Could give bijection, but lots of words Instead, enumerate: 0 1 00 01 10 11 000 001 010 Any string with fjnite length hit eventually!

8 / 20

slide-47
SLIDE 47

Enumeration Example

Defjnition: {0, 1}∗ is set of fjnite bit strings Theorem: |{0, 1}∗| = |N| Could give bijection, but lots of words Instead, enumerate: 0 1 00 01 10 11 000 001 010 Any string with fjnite length hit eventually!

8 / 20

slide-48
SLIDE 48

Enumeration Example

Defjnition: {0, 1}∗ is set of fjnite bit strings Theorem: |{0, 1}∗| = |N| Could give bijection, but lots of words Instead, enumerate: 0 1 00 01 10 11 000 001 010 Any string with fjnite length hit eventually!

8 / 20

slide-49
SLIDE 49

Enumeration Example

Defjnition: {0, 1}∗ is set of fjnite bit strings Theorem: |{0, 1}∗| = |N| Could give bijection, but lots of words Instead, enumerate: ϵ, 0, 1, 00, 01, 10, 11, 000, 001, 010, ... Any string with fjnite length hit eventually!

8 / 20

slide-50
SLIDE 50

Enumeration Example

Defjnition: {0, 1}∗ is set of fjnite bit strings Theorem: |{0, 1}∗| = |N| Could give bijection, but lots of words Instead, enumerate: ϵ, 0, 1, 00, 01, 10, 11, 000, 001, 010, ... Any string with fjnite length hit eventually!

8 / 20

slide-51
SLIDE 51

Have Some More Enumeration

Theorem: |Z × Z| = |N| Should be surprising — seems like many more pairs! Proof by picture:

9 / 20

slide-52
SLIDE 52

Have Some More Enumeration

Theorem: |Z × Z| = |N| Should be surprising — seems like many more pairs! Proof by picture:

9 / 20

slide-53
SLIDE 53

Have Some More Enumeration

Theorem: |Z × Z| = |N| Should be surprising — seems like many more pairs! Proof by picture:

9 / 20

slide-54
SLIDE 54

Have Some More Enumeration

Theorem: |Z × Z| = |N| Should be surprising — seems like many more pairs! Proof by picture:

9 / 20

slide-55
SLIDE 55

Have Some More Enumeration

Theorem: |Z × Z| = |N| Should be surprising — seems like many more pairs! Proof by picture:

9 / 20

slide-56
SLIDE 56

Have Some More Enumeration

Theorem: |Z × Z| = |N| Should be surprising — seems like many more pairs! Proof by picture:

9 / 20

slide-57
SLIDE 57

Have Some More Enumeration

Theorem: |Z × Z| = |N| Should be surprising — seems like many more pairs! Proof by picture:

9 / 20

slide-58
SLIDE 58

Have Some More Enumeration

Theorem: |Z × Z| = |N| Should be surprising — seems like many more pairs! Proof by picture:

9 / 20

slide-59
SLIDE 59

Have Some More Enumeration

Theorem: |Z × Z| = |N| Should be surprising — seems like many more pairs! Proof by picture:

9 / 20

slide-60
SLIDE 60

Have Some More Enumeration

Theorem: |Z × Z| = |N| Should be surprising — seems like many more pairs! Proof by picture:

9 / 20

slide-61
SLIDE 61

Have Some More Enumeration

Theorem: |Z × Z| = |N| Should be surprising — seems like many more pairs! Proof by picture:

9 / 20

slide-62
SLIDE 62

Have Some More Enumeration

Theorem: |Z × Z| = |N| Should be surprising — seems like many more pairs! Proof by picture:

9 / 20

slide-63
SLIDE 63

Have Some More Enumeration

Theorem: |Z × Z| = |N| Should be surprising — seems like many more pairs! Proof by picture:

9 / 20

slide-64
SLIDE 64

Have Some More Enumeration

Theorem: |Z × Z| = |N| Should be surprising — seems like many more pairs! Proof by picture:

9 / 20

slide-65
SLIDE 65

Have Some More Enumeration

Theorem: |Z × Z| = |N| Should be surprising — seems like many more pairs! Proof by picture:

9 / 20

slide-66
SLIDE 66

Have Some More Enumeration

Theorem: |Z × Z| = |N| Should be surprising — seems like many more pairs! Proof by picture:

9 / 20

slide-67
SLIDE 67

Have Some More Enumeration

Theorem: |Z × Z| = |N| Should be surprising — seems like many more pairs! Proof by picture:

9 / 20

slide-68
SLIDE 68

Have Some More Enumeration

Theorem: |Z × Z| = |N| Should be surprising — seems like many more pairs! Proof by picture: Gives an enumeration of Z × Z!

9 / 20

slide-69
SLIDE 69

Be Rational!

How does |Q| compare to |Z × Z|? Can create function f as follows: If q

a b in lowest terms, f q

a b f 2 2 1 , f 0 25 1 4 , f 0 66 2 3 , etc. Is f a bijection? No! Not onto (eg 1 0 , 1 1 , 2 4 , ...) But notice: is one-to-one Can we conclude anything from this?

10 / 20

slide-70
SLIDE 70

Be Rational!

How does |Q| compare to |Z × Z|? Can create function f : Q → Z × Z as follows: If q = a

b in lowest terms, f(q) = (a, b)

f 2 2 1 , f 0 25 1 4 , f 0 66 2 3 , etc. Is f a bijection? No! Not onto (eg 1 0 , 1 1 , 2 4 , ...) But notice: is one-to-one Can we conclude anything from this?

10 / 20

slide-71
SLIDE 71

Be Rational!

How does |Q| compare to |Z × Z|? Can create function f : Q → Z × Z as follows: If q = a

b in lowest terms, f(q) = (a, b)

f(2) = (2, 1), f(0.25) = (1, 4), f(0.66) = (2, 3), etc. Is f a bijection? No! Not onto (eg 1 0 , 1 1 , 2 4 , ...) But notice: is one-to-one Can we conclude anything from this?

10 / 20

slide-72
SLIDE 72

Be Rational!

How does |Q| compare to |Z × Z|? Can create function f : Q → Z × Z as follows: If q = a

b in lowest terms, f(q) = (a, b)

f(2) = (2, 1), f(0.25) = (1, 4), f(0.66) = (2, 3), etc. Is f a bijection? No! Not onto (eg 1 0 , 1 1 , 2 4 , ...) But notice: is one-to-one Can we conclude anything from this?

10 / 20

slide-73
SLIDE 73

Be Rational!

How does |Q| compare to |Z × Z|? Can create function f : Q → Z × Z as follows: If q = a

b in lowest terms, f(q) = (a, b)

f(2) = (2, 1), f(0.25) = (1, 4), f(0.66) = (2, 3), etc. Is f a bijection? No! Not onto (eg (1, 0), (−1, −1), (2, 4), ...) But notice: is one-to-one Can we conclude anything from this?

10 / 20

slide-74
SLIDE 74

Be Rational!

How does |Q| compare to |Z × Z|? Can create function f : Q → Z × Z as follows: If q = a

b in lowest terms, f(q) = (a, b)

f(2) = (2, 1), f(0.25) = (1, 4), f(0.66) = (2, 3), etc. Is f a bijection? No! Not onto (eg (1, 0), (−1, −1), (2, 4), ...) But notice: is one-to-one Can we conclude anything from this?

10 / 20

slide-75
SLIDE 75

What Is An Outjection?

Cantor-Schröder-Bernstein Theorem If ∃ injections f : A → B and g : B → A, ∃ bijection Proof in Bonus Lecture tomorrow! What does this mean to us? Can say A B if injection f A B If A B and B A , CSB says A B ! Note: Have inject A B ifg have surject B A So surjection B A means B A !

11 / 20

slide-76
SLIDE 76

What Is An Outjection?

Cantor-Schröder-Bernstein Theorem If ∃ injections f : A → B and g : B → A, ∃ bijection Proof in Bonus Lecture tomorrow! What does this mean to us? Can say A B if injection f A B If A B and B A , CSB says A B ! Note: Have inject A B ifg have surject B A So surjection B A means B A !

11 / 20

slide-77
SLIDE 77

What Is An Outjection?

Cantor-Schröder-Bernstein Theorem If ∃ injections f : A → B and g : B → A, ∃ bijection Proof in Bonus Lecture tomorrow! What does this mean to us? Can say A B if injection f A B If A B and B A , CSB says A B ! Note: Have inject A B ifg have surject B A So surjection B A means B A !

11 / 20

slide-78
SLIDE 78

What Is An Outjection?

Cantor-Schröder-Bernstein Theorem If ∃ injections f : A → B and g : B → A, ∃ bijection Proof in Bonus Lecture tomorrow! What does this mean to us? Can say |A| ≤ |B| if ∃ injection f : A → B If |A| ≤ |B| and |B| ≤ |A|, CSB says |A| = |B|! Note: Have inject A B ifg have surject B A So surjection B A means B A !

11 / 20

slide-79
SLIDE 79

What Is An Outjection?

Cantor-Schröder-Bernstein Theorem If ∃ injections f : A → B and g : B → A, ∃ bijection Proof in Bonus Lecture tomorrow! What does this mean to us? Can say |A| ≤ |B| if ∃ injection f : A → B If |A| ≤ |B| and |B| ≤ |A|, CSB says |A| = |B|! Note: Have inject A → B ifg have surject B → A So surjection B A means B A !

11 / 20

slide-80
SLIDE 80

What Is An Outjection?

Cantor-Schröder-Bernstein Theorem If ∃ injections f : A → B and g : B → A, ∃ bijection Proof in Bonus Lecture tomorrow! What does this mean to us? Can say |A| ≤ |B| if ∃ injection f : A → B If |A| ≤ |B| and |B| ≤ |A|, CSB says |A| = |B|! Note: Have inject A → B ifg have surject B → A So surjection B → A means |B| ≥ |A|!

11 / 20

slide-81
SLIDE 81

Back To Q

Previously: found injection Q → Z × Z Hence, Notice, have injection by “inclusion” So Thus !

12 / 20

slide-82
SLIDE 82

Back To Q

Previously: found injection Q → Z × Z Hence, |Q| ≤ |Z × Z| = |N| Notice, have injection by “inclusion” So Thus !

12 / 20

slide-83
SLIDE 83

Back To Q

Previously: found injection Q → Z × Z Hence, |Q| ≤ |Z × Z| = |N| Notice, have injection N → Q by “inclusion” So |N| ≤ |Q| Thus !

12 / 20

slide-84
SLIDE 84

Back To Q

Previously: found injection Q → Z × Z Hence, |Q| ≤ |Z × Z| = |N| Notice, have injection N → Q by “inclusion” So |N| ≤ |Q| Thus |Q| = |N|!

12 / 20

slide-85
SLIDE 85

Brake

Time for a 4-minute break! Today’s Discussion Question: https://tinyurl.com/70-discussion-q

13 / 20

slide-86
SLIDE 86

Brake

Time for a 4-minute break! Today’s Discussion Question: https://tinyurl.com/70-discussion-q

13 / 20

slide-87
SLIDE 87

Countability

Say a set S is countable if |S| ≤ |N| So far, all sets we’ve seen are countable! Natural question: are all sets countable? Turns out, no!

14 / 20

slide-88
SLIDE 88

Countability

Say a set S is countable if |S| ≤ |N| So far, all sets we’ve seen are countable! Natural question: are all sets countable? Turns out, no!

14 / 20

slide-89
SLIDE 89

Countability

Say a set S is countable if |S| ≤ |N| So far, all sets we’ve seen are countable! Natural question: are all sets countable? Turns out, no!

14 / 20

slide-90
SLIDE 90

Countability

Say a set S is countable if |S| ≤ |N| So far, all sets we’ve seen are countable! Natural question: are all sets countable? Turns out, no!

14 / 20

slide-91
SLIDE 91

Not With That Attitude You Cant-or

Def: Let {0, 1}∞ be set of infjnite length bit strings Theorem: 0 1 Proof: Suppose for contra

  • nto fn o

0 1 n

  • n

0 0 0 0 0 ... 1 1 0 1 0 1 ... 2 1 1 1 0 1 ... 3 0 1 0 0 0 ... . . . . . . Consider s 1101... s

  • n for all n!

15 / 20

slide-92
SLIDE 92

Not With That Attitude You Cant-or

Def: Let {0, 1}∞ be set of infjnite length bit strings Theorem: |{0, 1}∞| > |N| Proof: Suppose for contra

  • nto fn o

0 1 n

  • n

0 0 0 0 0 ... 1 1 0 1 0 1 ... 2 1 1 1 0 1 ... 3 0 1 0 0 0 ... . . . . . . Consider s 1101... s

  • n for all n!

15 / 20

slide-93
SLIDE 93

Not With That Attitude You Cant-or

Def: Let {0, 1}∞ be set of infjnite length bit strings Theorem: |{0, 1}∞| > |N| Proof: Suppose for contra ∃ onto fn o : N → {0, 1}∞ n

  • (n)

0 0 0 0 0 ... 1 1 0 1 0 1 ... 2 1 1 1 0 1 ... 3 0 1 0 0 0 ... . . . . . . Consider s 1101... s

  • n for all n!

15 / 20

slide-94
SLIDE 94

Not With That Attitude You Cant-or

Def: Let {0, 1}∞ be set of infjnite length bit strings Theorem: |{0, 1}∞| > |N| Proof: Suppose for contra ∃ onto fn o : N → {0, 1}∞ n

  • (n)

0 0 0 0 0 ... 1 1 0 1 0 1 ... 2 1 1 1 0 1 ... 3 0 1 0 0 0 ... . . . . . . Consider s = 1 101... s

  • n for all n!

15 / 20

slide-95
SLIDE 95

Not With That Attitude You Cant-or

Def: Let {0, 1}∞ be set of infjnite length bit strings Theorem: |{0, 1}∞| > |N| Proof: Suppose for contra ∃ onto fn o : N → {0, 1}∞ n

  • (n)

0 0 0 0 0 ... 1 1 0 1 0 1 ... 2 1 1 1 0 1 ... 3 0 1 0 0 0 ... . . . . . . Consider s = 11 01... s

  • n for all n!

15 / 20

slide-96
SLIDE 96

Not With That Attitude You Cant-or

Def: Let {0, 1}∞ be set of infjnite length bit strings Theorem: |{0, 1}∞| > |N| Proof: Suppose for contra ∃ onto fn o : N → {0, 1}∞ n

  • (n)

0 0 0 0 0 ... 1 1 0 1 0 1 ... 2 1 1 1 0 1 ... 3 0 1 0 0 0 ... . . . . . . Consider s = 110 1... s

  • n for all n!

15 / 20

slide-97
SLIDE 97

Not With That Attitude You Cant-or

Def: Let {0, 1}∞ be set of infjnite length bit strings Theorem: |{0, 1}∞| > |N| Proof: Suppose for contra ∃ onto fn o : N → {0, 1}∞ n

  • (n)

0 0 0 0 0 ... 1 1 0 1 0 1 ... 2 1 1 1 0 1 ... 3 0 1 0 0 0 ... . . . . . . Consider s = 1101 ... s

  • n for all n!

15 / 20

slide-98
SLIDE 98

Not With That Attitude You Cant-or

Def: Let {0, 1}∞ be set of infjnite length bit strings Theorem: |{0, 1}∞| > |N| Proof: Suppose for contra ∃ onto fn o : N → {0, 1}∞ n

  • (n)

0 0 0 0 0 ... 1 1 0 1 0 1 ... 2 1 1 1 0 1 ... 3 0 1 0 0 0 ... . . . . . . Consider s = 1101... s

  • n for all n!

15 / 20

slide-99
SLIDE 99

Not With That Attitude You Cant-or

Def: Let {0, 1}∞ be set of infjnite length bit strings Theorem: |{0, 1}∞| > |N| Proof: Suppose for contra ∃ onto fn o : N → {0, 1}∞ n

  • (n)

0 0 0 0 0 ... 1 1 0 1 0 1 ... 2 1 1 1 0 1 ... 3 0 1 0 0 0 ... . . . . . . Consider s = 1101... s ̸= o(n) for all n!

15 / 20

slide-100
SLIDE 100

Not With That Attitude You Cant-or

Def: Let {0, 1}∞ be set of infjnite length bit strings Theorem: |{0, 1}∞| > |N| Proof: Suppose for contra ∃ onto fn o : N → {0, 1}∞ n

  • (n)

0 0 0 0 0 ... 1 1 0 1 0 1 ... 2 1 1 1 0 1 ... 3 0 1 0 0 0 ... . . . . . . Consider s = 1101... s ̸= o(n) for all n! Method known as Cantor Diagonalization

15 / 20

slide-101
SLIDE 101

I Cant-or Think Of A Better Pun

Theorem: |R| > |N| Will in fact prove |[0, 1]| > |N| “Proof”: Suppose for contra

  • nto fn o

0 1 n

  • n

.0 9 9 9 9 ... 1 .1 9 2 9 3 ... 2 .0 0 9 0 0 ... 3 .2 3 5 9 6 ... . . . . . . Consider r 1000... r

  • n for all n!

So we’ve proved 0 1 ...or have we?

16 / 20

slide-102
SLIDE 102

I Cant-or Think Of A Better Pun

Theorem: |R| > |N| Will in fact prove |[0, 1]| > |N| “Proof”: Suppose for contra ∃ onto fn o : N → [0, 1] n

  • (n)

.0 9 9 9 9 ... 1 .1 9 2 9 3 ... 2 .0 0 9 0 0 ... 3 .2 3 5 9 6 ... . . . . . . Consider r 1000... r

  • n for all n!

So we’ve proved 0 1 ...or have we?

16 / 20

slide-103
SLIDE 103

I Cant-or Think Of A Better Pun

Theorem: |R| > |N| Will in fact prove |[0, 1]| > |N| “Proof”: Suppose for contra ∃ onto fn o : N → [0, 1] n

  • (n)

.0 9 9 9 9 ... 1 .1 9 2 9 3 ... 2 .0 0 9 0 0 ... 3 .2 3 5 9 6 ... . . . . . . Consider r = .1 000... r

  • n for all n!

So we’ve proved 0 1 ...or have we?

16 / 20

slide-104
SLIDE 104

I Cant-or Think Of A Better Pun

Theorem: |R| > |N| Will in fact prove |[0, 1]| > |N| “Proof”: Suppose for contra ∃ onto fn o : N → [0, 1] n

  • (n)

.0 9 9 9 9 ... 1 .1 9 2 9 3 ... 2 .0 0 9 0 0 ... 3 .2 3 5 9 6 ... . . . . . . Consider r = .10 00... r

  • n for all n!

So we’ve proved 0 1 ...or have we?

16 / 20

slide-105
SLIDE 105

I Cant-or Think Of A Better Pun

Theorem: |R| > |N| Will in fact prove |[0, 1]| > |N| “Proof”: Suppose for contra ∃ onto fn o : N → [0, 1] n

  • (n)

.0 9 9 9 9 ... 1 .1 9 2 9 3 ... 2 .0 0 9 0 0 ... 3 .2 3 5 9 6 ... . . . . . . Consider r = .100 0... r

  • n for all n!

So we’ve proved 0 1 ...or have we?

16 / 20

slide-106
SLIDE 106

I Cant-or Think Of A Better Pun

Theorem: |R| > |N| Will in fact prove |[0, 1]| > |N| “Proof”: Suppose for contra ∃ onto fn o : N → [0, 1] n

  • (n)

.0 9 9 9 9 ... 1 .1 9 2 9 3 ... 2 .0 0 9 0 0 ... 3 .2 3 5 9 6 ... . . . . . . Consider r = .1000 ... r

  • n for all n!

So we’ve proved 0 1 ...or have we?

16 / 20

slide-107
SLIDE 107

I Cant-or Think Of A Better Pun

Theorem: |R| > |N| Will in fact prove |[0, 1]| > |N| “Proof”: Suppose for contra ∃ onto fn o : N → [0, 1] n

  • (n)

.0 9 9 9 9 ... 1 .1 9 2 9 3 ... 2 .0 0 9 0 0 ... 3 .2 3 5 9 6 ... . . . . . . Consider r = .1000... r

  • n for all n!

So we’ve proved 0 1 ...or have we?

16 / 20

slide-108
SLIDE 108

I Cant-or Think Of A Better Pun

Theorem: |R| > |N| Will in fact prove |[0, 1]| > |N| “Proof”: Suppose for contra ∃ onto fn o : N → [0, 1] n

  • (n)

.0 9 9 9 9 ... 1 .1 9 2 9 3 ... 2 .0 0 9 0 0 ... 3 .2 3 5 9 6 ... . . . . . . Consider r = .1000... r ̸= o(n) for all n! So we’ve proved 0 1 ...or have we?

16 / 20

slide-109
SLIDE 109

I Cant-or Think Of A Better Pun

Theorem: |R| > |N| Will in fact prove |[0, 1]| > |N| “Proof”: Suppose for contra ∃ onto fn o : N → [0, 1] n

  • (n)

.0 9 9 9 9 ... 1 .1 9 2 9 3 ... 2 .0 0 9 0 0 ... 3 .2 3 5 9 6 ... . . . . . . Consider r = .1000... r ̸= o(n) for all n! So we’ve proved |[0, 1]| > |N| ...or have we?

16 / 20

slide-110
SLIDE 110

I Cant-or Think Of A Better Pun

Theorem: |R| > |N| Will in fact prove |[0, 1]| > |N| “Proof”: Suppose for contra ∃ onto fn o : N → [0, 1] n

  • (n)

.0 9 9 9 9 ... 1 .1 9 2 9 3 ... 2 .0 0 9 0 0 ... 3 .2 3 5 9 6 ... . . . . . . Consider r = .1000... r ̸= o(n) for all n! So we’ve proved |[0, 1]| > |N| ...or have we?

16 / 20

slide-111
SLIDE 111

Oops

Slight subtlety with R: Decimal expansion not always unique! Eg, 09999 10000 +1 to daig ensures difgerent decimal expansion Not necessarily difgerent number! In our picture, o 0 0 999 1000 r Easily recoverable: just do +2 instead of +1 Moral: be careful when claiming r

  • n !

17 / 20

slide-112
SLIDE 112

Oops

Slight subtlety with R: Decimal expansion not always unique! Eg, .09999... = .10000... +1 to daig ensures difgerent decimal expansion Not necessarily difgerent number! In our picture, o 0 0 999 1000 r Easily recoverable: just do +2 instead of +1 Moral: be careful when claiming r

  • n !

17 / 20

slide-113
SLIDE 113

Oops

Slight subtlety with R: Decimal expansion not always unique! Eg, .09999... = .10000... +1 to daig ensures difgerent decimal expansion Not necessarily difgerent number! In our picture, o 0 0 999 1000 r Easily recoverable: just do +2 instead of +1 Moral: be careful when claiming r

  • n !

17 / 20

slide-114
SLIDE 114

Oops

Slight subtlety with R: Decimal expansion not always unique! Eg, .09999... = .10000... +1 to daig ensures difgerent decimal expansion Not necessarily difgerent number! In our picture, o(0) = 0.999... = .1000... = r Easily recoverable: just do +2 instead of +1 Moral: be careful when claiming r

  • n !

17 / 20

slide-115
SLIDE 115

Oops

Slight subtlety with R: Decimal expansion not always unique! Eg, .09999... = .10000... +1 to daig ensures difgerent decimal expansion Not necessarily difgerent number! In our picture, o(0) = 0.999... = .1000... = r Easily recoverable: just do +2 instead of +1 Moral: be careful when claiming r

  • n !

17 / 20

slide-116
SLIDE 116

Oops

Slight subtlety with R: Decimal expansion not always unique! Eg, .09999... = .10000... +1 to daig ensures difgerent decimal expansion Not necessarily difgerent number! In our picture, o(0) = 0.999... = .1000... = r Easily recoverable: just do +2 instead of +1 Moral: be careful when claiming r ̸= o(n)!

17 / 20

slide-117
SLIDE 117

Not Recoverable

“Theorem”: |Q| > |N| “Proof”: Suppose for contra

  • nto fn o

0 1 n

  • n

.1 9 1 9 1 ... 1 .5 9 2 2 2 ... 2 .0 0 2 0 0 ... 3 .6 9 5 9 5 ... . . . . . . Consider q 3141... q

  • n for all n!

So we’ve proved 0 1 ...or have we?

18 / 20

slide-118
SLIDE 118

Not Recoverable

“Theorem”: |Q| > |N| “Proof”: Suppose for contra ∃ onto fn o : N → Q ∩ [0, 1] n

  • (n)

.1 9 1 9 1 ... 1 .5 9 2 2 2 ... 2 .0 0 2 0 0 ... 3 .6 9 5 9 5 ... . . . . . . Consider q 3141... q

  • n for all n!

So we’ve proved 0 1 ...or have we?

18 / 20

slide-119
SLIDE 119

Not Recoverable

“Theorem”: |Q| > |N| “Proof”: Suppose for contra ∃ onto fn o : N → Q ∩ [0, 1] n

  • (n)

.1 9 1 9 1 ... 1 .5 9 2 2 2 ... 2 .0 0 2 0 0 ... 3 .6 9 5 9 5 ... . . . . . . Consider q = .3 141... q

  • n for all n!

So we’ve proved 0 1 ...or have we?

18 / 20

slide-120
SLIDE 120

Not Recoverable

“Theorem”: |Q| > |N| “Proof”: Suppose for contra ∃ onto fn o : N → Q ∩ [0, 1] n

  • (n)

.1 9 1 9 1 ... 1 .5 9 2 2 2 ... 2 .0 0 2 0 0 ... 3 .6 9 5 9 5 ... . . . . . . Consider q = .31 41... q

  • n for all n!

So we’ve proved 0 1 ...or have we?

18 / 20

slide-121
SLIDE 121

Not Recoverable

“Theorem”: |Q| > |N| “Proof”: Suppose for contra ∃ onto fn o : N → Q ∩ [0, 1] n

  • (n)

.1 9 1 9 1 ... 1 .5 9 2 2 2 ... 2 .0 0 2 0 0 ... 3 .6 9 5 9 5 ... . . . . . . Consider q = .314 1... q

  • n for all n!

So we’ve proved 0 1 ...or have we?

18 / 20

slide-122
SLIDE 122

Not Recoverable

“Theorem”: |Q| > |N| “Proof”: Suppose for contra ∃ onto fn o : N → Q ∩ [0, 1] n

  • (n)

.1 9 1 9 1 ... 1 .5 9 2 2 2 ... 2 .0 0 2 0 0 ... 3 .6 9 5 9 5 ... . . . . . . Consider q = .3141 ... q

  • n for all n!

So we’ve proved 0 1 ...or have we?

18 / 20

slide-123
SLIDE 123

Not Recoverable

“Theorem”: |Q| > |N| “Proof”: Suppose for contra ∃ onto fn o : N → Q ∩ [0, 1] n

  • (n)

.1 9 1 9 1 ... 1 .5 9 2 2 2 ... 2 .0 0 2 0 0 ... 3 .6 9 5 9 5 ... . . . . . . Consider q = .3141... q

  • n for all n!

So we’ve proved 0 1 ...or have we?

18 / 20

slide-124
SLIDE 124

Not Recoverable

“Theorem”: |Q| > |N| “Proof”: Suppose for contra ∃ onto fn o : N → Q ∩ [0, 1] n

  • (n)

.1 9 1 9 1 ... 1 .5 9 2 2 2 ... 2 .0 0 2 0 0 ... 3 .6 9 5 9 5 ... . . . . . . Consider q = .3141... q ̸= o(n) for all n! So we’ve proved 0 1 ...or have we?

18 / 20

slide-125
SLIDE 125

Not Recoverable

“Theorem”: |Q| > |N| “Proof”: Suppose for contra ∃ onto fn o : N → Q ∩ [0, 1] n

  • (n)

.1 9 1 9 1 ... 1 .5 9 2 2 2 ... 2 .0 0 2 0 0 ... 3 .6 9 5 9 5 ... . . . . . . Consider q = .3141... q ̸= o(n) for all n! So we’ve proved |Q ∩ [0, 1]| > |N| ...or have we?

18 / 20

slide-126
SLIDE 126

Not Recoverable

“Theorem”: |Q| > |N| “Proof”: Suppose for contra ∃ onto fn o : N → Q ∩ [0, 1] n

  • (n)

.1 9 1 9 1 ... 1 .5 9 2 2 2 ... 2 .0 0 2 0 0 ... 3 .6 9 5 9 5 ... . . . . . . Consider q = .3141... q ̸= o(n) for all n! So we’ve proved |Q ∩ [0, 1]| > |N| ...or have we?

18 / 20

slide-127
SLIDE 127

Double Oops

How do we know that q is rational? We don’t! In picture, q

10

Doesn’t matter that q

  • n

Not trying to cover q! This proof not recoverable — Moral: make sure construct in required set!

19 / 20

slide-128
SLIDE 128

Double Oops

How do we know that q is rational? We don’t! In picture, q

10

Doesn’t matter that q

  • n

Not trying to cover q! This proof not recoverable — Moral: make sure construct in required set!

19 / 20

slide-129
SLIDE 129

Double Oops

How do we know that q is rational? We don’t! In picture, q = π

10 ̸∈ Q

Doesn’t matter that q

  • n

Not trying to cover q! This proof not recoverable — Moral: make sure construct in required set!

19 / 20

slide-130
SLIDE 130

Double Oops

How do we know that q is rational? We don’t! In picture, q = π

10 ̸∈ Q

Doesn’t matter that q ̸= o(n) Not trying to cover q! This proof not recoverable — Moral: make sure construct in required set!

19 / 20

slide-131
SLIDE 131

Double Oops

How do we know that q is rational? We don’t! In picture, q = π

10 ̸∈ Q

Doesn’t matter that q ̸= o(n) Not trying to cover q! This proof not recoverable — |Q| = |N| Moral: make sure construct in required set!

19 / 20

slide-132
SLIDE 132

Double Oops

How do we know that q is rational? We don’t! In picture, q = π

10 ̸∈ Q

Doesn’t matter that q ̸= o(n) Not trying to cover q! This proof not recoverable — |Q| = |N| Moral: make sure construct in required set!

19 / 20

slide-133
SLIDE 133

Fin

Next time: computability!

20 / 20