• No results found

Recap: properties of functions on finite and infinite sets

N/A
N/A
Protected

Academic year: 2022

Share "Recap: properties of functions on finite and infinite sets"

Copied!
48
0
0

Loading.... (view fulltext now)

Full text

(1)

CS 207m: Discrete Structures (Minor)

Instructor : S. Akshay

Jan 17, 2018

Lecture 04 – Countable and uncountable sets

(2)

Chapter 2: Basic mathematical structures

Sets and Functions

I Finite and infinite sets, Russell’s paradox, axioms of ZFC.

I Functions, their properties, associativity, inverse.

I Types of functions: surjective, injective and bijective.

I Two sets have the same “size” or cardinality if there is a bijection between them.

Today’s class

I Countable and countably infinite sets.

I A new proof technique.

(3)

Chapter 2: Basic mathematical structures

Sets and Functions

I Finite and infinite sets, Russell’s paradox, axioms of ZFC.

I Functions, their properties, associativity, inverse.

I Types of functions: surjective, injective and bijective.

I Two sets have the same “size” or cardinality if there is a bijection between them.

Today’s class

I Countable and countably infinite sets.

I A new proof technique.

(4)

Recap: properties of functions on finite and infinite sets

Some important properties (H.W.: Prove them!)

I ∃ bij fromA toB and B toC, implies ∃bij from A toC.

I ∃ bij fromA toB, implies ∃bij from B toA.

I ∃ inj fromA toB, implies ∃surj from B toA(&

vice-versa)

I Schr¨oder-Bernstein Theorem: ∃ surjfrom A toB and∃ surj B toA, implies ∃bij from AtoB.

Theorem

LetA be a set andb6∈A. Then Ais infinite iff there is a bijection fromA toA∪ {b}.

Corollary

For any infinite setA, there is a surjection from A toN. Is there also a injection? Are all (infinite) sets bijective toN?

(5)

Recap: properties of functions on finite and infinite sets

Some important properties (H.W.: Prove them!)

I ∃ bij fromA toB and B toC, implies ∃bij from A toC.

I ∃ bij fromA toB, implies ∃bij from B toA.

I ∃ inj fromA toB, implies ∃surj from B toA(&

vice-versa)

I Schr¨oder-Bernstein Theorem: ∃ surjfrom A toB and∃ surj B toA, implies ∃bij from AtoB.

Theorem

LetA be a set andb6∈A. Then Ais infinite iff there is a bijection fromA toA∪ {b}.

Corollary

For any infinite setA, there is a surjection from A toN. Is there also a injection? Are all (infinite) sets bijective toN?

(6)

Recap: properties of functions on finite and infinite sets

Some important properties (H.W.: Prove them!)

I ∃ bij fromA toB and B toC, implies ∃bij from A toC.

I ∃ bij fromA toB, implies ∃bij from B toA.

I ∃ inj fromA toB, implies ∃surj from B toA(&

vice-versa)

I Schr¨oder-Bernstein Theorem: ∃ surjfrom A toB and∃ surj B toA, implies ∃bij from AtoB.

Theorem

LetA be a set andb6∈A. Then Ais infinite iff there is a bijection fromA toA∪ {b}.

Is there also a injection? Are all (infinite) sets bijective toN?

(7)

Recap: properties of functions on finite and infinite sets

Some important properties (H.W.: Prove them!)

I ∃ bij fromA toB and B toC, implies ∃bij from A toC.

I ∃ bij fromA toB, implies ∃bij from B toA.

I ∃ inj fromA toB, implies ∃surj from B toA(&

vice-versa)

I Schr¨oder-Bernstein Theorem: ∃ surjfrom A toB and∃ surj B toA, implies ∃bij from AtoB.

Theorem

LetA be a set andb6∈A. Then Ais infinite iff there is a bijection fromA toA∪ {b}.

Corollary

For any infinite setA, there is a surjection from A toN.

(8)

Comparing infinite sets using functions

Theorem

There is a bijection fromZ toN.

Proof: Hilbert’s hotel argument. But how do you formalize it?

f(x) =

−2x ifx≤0 2x−1 else

Some questions...

I Is there a bijection between N×N toN?

I Is there a bijection between N×N×N toN?

I Is there a bijection from QtoN?

I Is there a bijection from the set of all subsets ofN toN?

I Is there a bijection from RtoN?

(9)

Comparing infinite sets using functions

Theorem

There is a bijection fromZ toN.

Proof: Hilbert’s hotel argument. But how do you formalize it?

f(x) =

−2x ifx≤0 2x−1 else

Some questions...

I Is there a bijection between N×N toN?

I Is there a bijection between N×N×N toN?

I Is there a bijection from QtoN?

I Is there a bijection from the set of all subsets ofN toN?

I Is there a bijection from RtoN?

(10)

Comparing infinite sets using functions

Theorem

There is a bijection fromZ toN.

Proof: Hilbert’s hotel argument. But how do you formalize it?

f(x) =

−2x ifx≤0 2x−1 else

Some questions...

I Is there a bijection between N×N toN?

I Is there a bijection between N×N×NtoN?

I Is there a bijection from QtoN?

I Is there a bijection from the set of all subsets ofN toN?

(11)

Countable and countably infinite sets

Definition

I For a given set C, if there is a bijection from C toN, then C is calledcountably infinite.

I A set is countableif it is finite or countably infinite.

Examples: even numbers, number of horses,...

By previous corollary (∃ surj from any infinite set to N) Countably infinite sets are the “smallest” infinite sets.

What are the other properties of countable sets?

(12)

Countable and countably infinite sets

Definition

I For a given set C, if there is a bijection from C toN, then C is calledcountably infinite.

I A set is countableif it is finite or countably infinite.

Examples: even numbers, number of horses,...

By previous corollary (∃ surj from any infinite set to N) Countably infinite sets are the “smallest” infinite sets.

What are the other properties of countable sets?

(13)

Some questions...

Are the following sets countable?

That is, is there a bijection from these sets toN?

I the set of all integers Z

I N×N

I N×N×N

I the set of rationals Q

I the set of all (finite and infinite) subsets ofN

I the set of all real numbersR

To show these it suffices to show that

I there is aninjection from these sets to N

I or there is asurjectionfrom N(or any countable set) to these sets.

(14)

Some questions...

Are the following sets countable?

That is, is there a bijection from these sets toN?

I the set of all integers Z

I N×N

I N×N×N

I the set of rationals Q

I the set of all (finite and infinite) subsets ofN

I the set of all real numbersR To show these it suffices to show that

I there is aninjection from these sets to N

I or there is asurjectionfrom N(or any countable set) to these sets.

(15)

Some questions...

Are the following sets countable?

That is, is there a bijection from these sets toN?

I the set of all integers Z

I N×N

I N×N×N

I the set of rationals Q

I the set of all (finite and infinite) subsets ofN

I the set of all real numbersR To show these it suffices to show that

I there is aninjection from these sets to N

I or there is asurjectionfrom N(or any countable set) to these sets.

(16)

Union of countable sets is countable

LetA={a0, . . . ,} be a countably infinite set andB be a set.

Then,isA∪B countable, under the following conditions?

1. B ={b0}is a singleton 2. B ={b0, . . . , bn} is a finite set

3. B ={b0, . . .} is a countably infinite set

Can we say {a0, . . . , b0, . . .} is a countably infinite set?

I But then what is the positionof bi (i.e., natural number corresponding to it)?

I Rather, choose {a0, b0, a1, b1, . . .}, thenbi is at (2i+ 1)th position.

I Formally, define a bijection f : (A∪B)→N byf(ai) = 2i and f(bi) = 2i+ 1

I Are we done? What is missing?

(17)

Union of countable sets is countable

LetA={a0, . . . ,} be a countably infinite set andB be a set.

Then,isA∪B countable, under the following conditions?

1. B ={b0}is a singleton 2. B ={b0, . . . , bn} is a finite set

3. B ={b0, . . .} is a countably infinite set

Can we say {a0, . . . , b0, . . .} is a countably infinite set?

I But then what is the positionof bi (i.e., natural number corresponding to it)?

I Rather, choose {a0, b0, a1, b1, . . .}, thenbi is at (2i+ 1)th position.

I Formally, define a bijection f : (A∪B)→N byf(ai) = 2i and f(bi) = 2i+ 1

I Are we done? What is missing?

(18)

Union of countable sets is countable

LetA={a0, . . . ,} be a countably infinite set andB be a set.

Then,isA∪B countable, under the following conditions?

1. B ={b0}is a singleton 2. B ={b0, . . . , bn} is a finite set

3. B ={b0, . . .} is a countably infinite set

Can we say {a0, . . . , b0, . . .} is a countably infinite set?

I But then what is the positionof bi (i.e., natural number corresponding to it)?

I Rather, choose {a0, b0, a1, b1, . . .}, thenbi is at (2i+ 1)th position.

I Formally, define a bijection f : (A∪B)→N byf(ai) = 2i and f(bi) = 2i+ 1

I Are we done? What is missing?

(19)

Union of countable sets is countable

LetA={a0, . . . ,} be a countably infinite set andB be a set.

Then,isA∪B countable, under the following conditions?

1. B ={b0}is a singleton 2. B ={b0, . . . , bn} is a finite set

3. B ={b0, . . .} is a countably infinite set

Can we say {a0, . . . , b0, . . .} is a countably infinite set?

I But then what is the positionof bi (i.e., natural number corresponding to it)?

I Rather, choose {a0, b0, a1, b1, . . .}, thenbi is at (2i+ 1)th position.

I Formally, define a bijection f : (A∪B)→N byf(ai) = 2i and f(bi) = 2i+ 1

I Are we done? What is missing?

(20)

Union of countable sets is countable

LetA={a0, . . . ,} be a countably infinite set andB be a set.

Then,isA∪B countable, under the following conditions?

1. B ={b0}is a singleton 2. B ={b0, . . . , bn} is a finite set

3. B ={b0, . . .} is a countably infinite set

Can we say {a0, . . . , b0, . . .} is a countably infinite set?

I But then what is the positionof bi (i.e., natural number corresponding to it)?

I Rather, choose {a0, b0, a1, b1, . . .}, thenbi is at (2i+ 1)th position.

I Formally, define a bijection f : (A∪B)→N byf(ai) = 2i

I Are we done? What is missing?

(21)

Union of countable sets is countable

LetA={a0, . . . ,} be a countably infinite set andB be a set.

Then,isA∪B countable, under the following conditions?

1. B ={b0}is a singleton 2. B ={b0, . . . , bn} is a finite set

3. B ={b0, . . .} is a countably infinite set

Can we say {a0, . . . , b0, . . .} is a countably infinite set?

I But then what is the positionof bi (i.e., natural number corresponding to it)?

I Rather, choose {a0, b0, a1, b1, . . .}, thenbi is at (2i+ 1)th position.

I Formally, define a bijection f : (A∪B)→N byf(ai) = 2i and f(bi) = 2i+ 1

I Are we done? What is missing?

(22)

Products of countable sets are countable

Theorem: The cartesian product of two countably infinite sets is countably infinite

Proof: LetA, B be countably infinite. Find a way to “number”

the elements inA×B ={(a, b)|a∈A, b∈B}.

I That is, define a bijection from A×B toN.

f(ai, bj) =

i+j

X

k=1

k

+j+ 1

Corollaries

I N×N,N×N×N,N×Z×Nare countable.

I The set of (positive) rationals is countable.

Hint: Show thatf(a, b) =a/bis a surjection. How does the result follow?

(23)

Products of countable sets are countable

Theorem: The cartesian product of two countably infinite sets is countably infinite

Proof: LetA, B be countably infinite. Find a way to “number”

the elements inA×B ={(a, b)|a∈A, b∈B}.

I That is, define a bijection from A×B toN.

f(ai, bj) =

i+j

X

k=1

k

+j+ 1

Corollaries

I N×N,N×N×N,N×Z×Nare countable.

I The set of (positive) rationals is countable.

Hint: Show thatf(a, b) =a/bis a surjection. How does the result follow?

(24)

Products of countable sets are countable

Theorem: The cartesian product of two countably infinite sets is countably infinite

Proof: LetA, B be countably infinite. Find a way to “number”

the elements inA×B ={(a, b)|a∈A, b∈B}.

I That is, define a bijection from A×B toN.

f(ai, bj) =

i+j

X

k=1

k

+j+ 1

Corollaries

I N×N,N×N×N,N×Z×Nare countable.

I The set of (positive) rationals is countable.

Hint: Show thatf(a, b) =a/bis a surjection. How does the result follow?

(25)

Products of countable sets are countable

Theorem: The cartesian product of two countably infinite sets is countably infinite

Proof: LetA, B be countably infinite. Find a way to “number”

the elements inA×B ={(a, b)|a∈A, b∈B}.

I That is, define a bijection from A×B toN.

f(ai, bj) =

i+j

X

k=1

k

+j+ 1

Corollaries

I N×N,N×N×N,N×Z×Nare countable.

I The set of (positive) rationals is countable.

Hint: Show thatf(a, b) =a/bis a surjection. How does the result follow?

(26)

Products of countable sets are countable

Theorem: The cartesian product of two countably infinite sets is countably infinite

Proof: LetA, B be countably infinite. Find a way to “number”

the elements inA×B ={(a, b)|a∈A, b∈B}.

I That is, define a bijection from A×B toN.

f(ai, bj) =

i+j

X

k=1

k

+j+ 1

Corollaries

I N×N,N×N×N,N×Z×Nare countable.

I The set of (positive) rationals is countable.

(27)

Countable sets and functions

Are the following sets countable?

I the set of all integers Z

I N×N

I N×N×N

I the set of rationals Q

I the set of all (finite and infinite) subsets ofN

I the set of all real numbersR

(28)

Comparing N and set of all subsets of N

Theorem (Cantor, 1891)

There is no bijection betweenNand the set of all subsets ofN.

(29)

Comparing N and set of all subsets of N

Theorem (Cantor, 1891)

There is no bijection betweenNand the set of all subsets ofN.

I Proving existence just needs one to exhibit a function

I But how do we prove non-existence?

(30)

Comparing N and set of all subsets of N

Theorem (Cantor, 1891)

There is no bijection betweenNand the set of all subsets ofN.

I Proving existence just needs one to exhibit a function

I But how do we prove non-existence? Try contradiction.

(31)

Comparing N and set of all subsets of N

Theorem (Cantor, 1891)

There is no bijection betweenNand the set of all subsets ofN. Proof by contradiction: Suppose there is such a bijection, sayf. This would imply that eachi∈N maps to some setf(i)⊆N.

0 1 2 3 . . .

f(0) X × × × . . .

f(1) X × X X . . .

f(2) × × × × . . .

f(3) × X × X . . .

(32)

Comparing N and set of all subsets of N

Theorem (Cantor, 1891)

There is no bijection betweenNand the set of all subsets ofN. Proof by contradiction: Suppose there is such a bijection, sayf. This would imply that eachi∈N maps to some setf(i)⊆N.

0 1 2 3 . . .

f(0) X/× × × × . . . f(1) X ×/X X X . . . f(2) × × ×/X × . . . f(3) × X × X/× . . .

I Consider the setS ⊆Nobtained by switching the diagonal

(33)

Comparing N and set of all subsets of N

Theorem (Cantor, 1891)

There is no bijection betweenNand the set of all subsets ofN. Proof by contradiction: Suppose there is such a bijection, sayf. This would imply that eachi∈N maps to some setf(i)⊆N.

0 1 2 3 . . .

f(0) X/× × × × . . . f(1) X ×/X X X . . . f(2) × × ×/X × . . . f(3) × X × X/× . . .

I Consider the setS ⊆Nobtained by switching the diagonal elements, i.e., S={i∈N|i6∈f(i)}.

I Asf is bij,∃j∈N, f(j) =S.

(34)

Comparing N and set of all subsets of N

Theorem (Cantor, 1891)

There is no bijection betweenNand the set of all subsets ofN. Proof by contradiction: Suppose there is such a bijection, sayf. This would imply that eachi∈N maps to some setf(i)⊆N.

0 1 2 3 . . .

f(0) X/× × × × . . . f(1) X ×/X X X . . . f(2) × × ×/X × . . . f(3) × X × X/× . . .

I Consider the setS ⊆Nobtained by switching the diagonal

(35)

Comparing N and set of all subsets of N

Theorem (Cantor, 1891)

There is no bijection betweenNand the set of all subsets ofN.

Proof by contradiction: Suppose there is such a bijection, sayf. This would imply that eachi∈N maps to some setf(i)⊆N.

0 1 2 3 . . .

f(0) X/× × × × . . . f(1) X ×/X X X . . . f(2) × × ×/X × . . . f(3) × X × X/× . . .

I Consider the setS ⊆Nobtained by switching the diagonal elements, i.e., S={i∈N|i6∈f(i)}.

I Asf is bij,∃j∈N, f(j) =S.

I S andf(j) differ at position j, for anyj.

(36)

Cantor’s diagonalization

Does this proof look familiar??

(37)

Cantor’s diagonalization

Does this proof look familiar??

Figure:Cantor and Russell

(38)

Cantor’s diagonalization

Does this proof look familiar??

Figure:Cantor and Russell

I S ={i∈N|i6∈f(i)} is like the one from Russell’s paradox.

(39)

Cantor’s diagonalization

Does this proof look familiar??

Figure:Cantor and Russell

I S ={i∈N|i6∈f(i)} is like the one from Russell’s paradox.

I If ∃j∈Nsuch that f(j) =S, then we have a contradiction.

I IfjS, thenj 6∈f(j) =S.

(40)

Cantor’s diagonalization

Does this proof look familiar??

Figure:Cantor and Russell

In fact, using diagonalization Cantor showed that...

I There cannot be a bijection between any set and its power set (i.e., its set of subsets).(H.W)

(41)

Cantor’s diagonalization

Does this proof look familiar??

Figure:Cantor and Russell

In fact, using diagonalization Cantor showed that...

I There cannot be a bijection between any set and its power set (i.e., its set of subsets).(H.W)

I So there is an infinite hierarchy of “larger” infinities...

I There is no bijection fromR toN(H.W). Moreover, there

(42)

Cantor’s diagonalization

Does this proof look familiar??

Figure:Cantor and Russell

In fact, using diagonalization Cantor showed that...

I There cannot be a bijection between any set and its power set (i.e., its set of subsets).(H.W)

I So there is an infinite hierarchy of “larger” infinities...

(43)

One infinity is “strictly” bigger than another!

Theorem (Cantor, 1891)

There is no bijection betweenNand the set of all subsets ofN.

I But, there is a surjection from set of all subsets ofN toN.

I Thus, the “size” ofP(N) is strictly greater that N! Can there be some set whose “size” is in between the two? Cantor’s Continuum hypothesis

There is no set whose “cardinality” is strictly betweenNand P(N) (i.e., between naturals and reals).

Figure:1st of Hilbert’s 23 problems for the 20th century in 1900.

(44)

One infinity is “strictly” bigger than another!

Theorem (Cantor, 1891)

There is no bijection betweenNand the set of all subsets ofN.

I But, there is a surjection from set of all subsets ofN toN.

I Thus, the “size” ofP(N) is strictly greater that N!

Can there be some set whose “size” is in between the two? Cantor’s Continuum hypothesis

There is no set whose “cardinality” is strictly betweenNand P(N) (i.e., between naturals and reals).

Figure:1st of Hilbert’s 23 problems for the 20th century in 1900.

(45)

One infinity is “strictly” bigger than another!

Theorem (Cantor, 1891)

There is no bijection betweenNand the set of all subsets ofN.

I But, there is a surjection from set of all subsets ofN toN.

I Thus, the “size” ofP(N) is strictly greater that N!

Can there be some set whose “size” is in between the two?

Cantor’s Continuum hypothesis

There is no set whose “cardinality” is strictly betweenNand P(N) (i.e., between naturals and reals).

Figure:1st of Hilbert’s 23 problems for the 20th century in 1900.

(46)

One infinity is “strictly” bigger than another!

Theorem (Cantor, 1891)

There is no bijection betweenNand the set of all subsets ofN.

I But, there is a surjection from set of all subsets ofN toN.

I Thus, the “size” ofP(N) is strictly greater that N!

Can there be some set whose “size” is in between the two?

Cantor’s Continuum hypothesis

There is no set whose “cardinality” is strictly betweenNand P(N) (i.e., between naturals and reals).

(47)

What did the world think about these proofs

(in 1890s?)

(a)Kronecker (b)Poincare (c)Theologians

I Kronecker: Only constructive proofs are proofs! “Scientific Charlatan”, “Corruptor of youth”!

I Poincare: Set theory is a “disease” from which mathematics will be cured.

I Christian Theologians: God=Uniqueness of an absolute infinity. So, what is all this different infinities...?!

I Hilbert: No one can expel us from the paradise that Cantor has created for us.

(48)

What did the world think about these proofs

(in 1890s?)

(a)Kronecker (b)Poincare (c)Theologians

I Kronecker: Only constructive proofs are proofs! “Scientific Charlatan”, “Corruptor of youth”!

I Poincare: Set theory is a “disease” from which mathematics will be cured.

I Christian Theologians: God=Uniqueness of an absolute

References

Related documents

Neighborhood and open sets/balls ( ⇐ Local extremum) Bounded, Closed Sets (⇐ Extreme value theorem) Convex Sets (⇐ Convex functions of n variables).. Directional Derivatives

A random variable (r.v.) is said to be discrete if its set of possible values is either finite or countably infinite. Let X be the number of wattsap messages

Today we will see two theorems which prove two properties of infinite sets that they share with finite sets. Nutan (IITB) CS 207 Discrete Mathematics – 2012-2013 May 2011 5

equal to the power demanded by the load, and the frequency and terminal voltage were varied by the governor set points and the field current.. • When a generator operated in

Abstract—A two-timescale simulation-based actor-critic algorithm for solution of infinite horizon Markov decision processes with finite state and compact action spaces under

Kihara (1949) developed an alternative scheme to expand these infinite determinants into convergent infinite series. This procedure is mathematically less

In this section, various stages of cell division and cancer progression are represented using finite automata and Büchi automaton respectively.. Cell growth, replication,

Let us now summarise what we have covered in this unit. 3) Definition of various types of sets including empty set, singleton set, finite set, infinite set,