31 - Injections and cardinalities

!Screenshot 2023-11-27 at 10.05.21 AM.png
We can think of injections as giving only “half” of the information needed to construct a bijection, which is why we only get an inequality

If A is a set, then |A|<|P(A)|

Let A and B be sets.

Let g:AB be a function.

Define C={xA:xg(x)} (barber set)

Proof.
Let A be a set. Let g:AP(A) be a function. Define the barber set B={xA:xg(x)}. Let aA.

Case 1: Assume that ag(a). Then aB, hence g(a)B.

Case 2: Assume that ag(a). Then aB hence g(a)B.

So in every case g(a)B. Since aA was arbitrary. g:AP(A) is not surjective.

Define f:P(A)F(A) by the rule f(s)=χS.
We first show that f is injective.
Let S,TP(A) and assume that f(S)=f(T).
Then χS=χt.
Let aA, we h

Exam Question
If A is any set, then |P(A)|=|F(A)|.



HW 31

Ben Finch

E 31.1
a) False. Consider the power set of (0,1). By theorem 31.5, it has a larger cardinality than (0, 1) despite being uncountable. .
b) True. Since A is a subset of B, all elements in A must be in B. Thus it is impossible for A to have a greater cardinality than B.
c) True. By definition of a true subset, all elements in A must be in B, but A must not include all elements of B. So it is evident that |A| < |B|.
d) True. Since A is a countably infinite set, and A is a subset of B, B is not finite. Per theorem 28.14, since C is countably infinite, B must also be countably infinte.
e) False. Take {1} R. |{1}| = 1 < |R|.
f) False. Take A = {1}, B = {3, 4}. We see that |A| < |B| and A is finite, but B is not infinite.
g) False. Take A = {1}, B = {3, 4}. We see that |A| < |B| and A is countable, but B is also countable.
h) True. All countably infinite sets have the same cardinality. Also, a countably infinite set has the highest cardinality of any countable set. So if B has a greater cardinality than a countably infinite set, it is uncountable.
g) True. Per theorem 31.5, take B = P(A). We have |A|<|B|.

E 31.2
B={a,b,d}
The reason B is not in the image of g is because that is the definition of the barber set. It is specifically constructed so that it is not in the image of g.

E 31.3
Take power set of R. Per theorem 31.5, |P(R)|>|R|. Now take the power set of that set. Per the same theorem P(P(R))>P(R). .

E 31.4
a)
(injective)
Define a function f:NN such that f(n)=n+1. Let a1,a2N. Assume that f(a1)=f(a2). We see that

a1+1=a2+1a1=a2

So f is injective.

(not surjective)
f does not map any value to 1, since the lowest possible value for f(n)=2. So f is not surjective.

b)
(surjective)
Define a function g:NN such that

g(n)={1if n=1,n1if n>1.

There are two cases:
Case 1: n1.
Let bN. Define a=b+1. We see that

g(a)=a1=b+11=b

So for all aN there exists a bN such that a maps to it.

Case 2: n=1. In this case n is explicitly mapped to 1 which is in N.

Thus in all cases, g is surjective.

(not injective)
We see that g(1)=g(2)=1 so g is not injective.

E 31.5

(Injective)

Assume g(S1)=g(S2) for some S1,S2A. This means that {f(s):sS1}={f(s):sS2}. Since f is a bijection, it is injective, so each element in S1 must be mapped to a unique element in B, and similarly for S2. Therefore, S1=S2, so g is injective.

(Surjective)

Let T be any subset of B. We want to find a subset SA such that g(S)=T. Since f is a bijection, for each tT, there exists a unique sA such that f(s)=t. Let S be the set of all such s in A that correspond to elements of T under f. Then g(S)=T, proving that g is surjective.

Since g is both injective and surjective, g is bijective.

Thus, |P(A)|=|P(B)|.

E 31.6
(Injective)
Let x1,x2R. Assume f(x1)=f(x2). Since f(x1)=f(x2), every rational number less than or equal to x1 is also less than or equal to x2, and vice versa. Suppose by way of contradiction that x1x2; without loss of generality, assume x1<x2. From exercise 11.6, there exists a rational number r such that x1<r<x2. However, this rational number r would be in f(y) but not in f(x), contradicting the assumption that f(x)=f(y). Therefore, x must equal y, and f is injective.

By 31.1, we have |R||P(Q)|. Since, by 29.7, |Q|=|N| then |P(Q)|=|P(N)|. So we have |R||P(N)|.

E 31.7
Proof.
Assume there exists an injection f:AB. By definition of injection, for each a1,a2A, if f(a1)=f(a2), then a1=a2. We need to show that there exists a surjection g:BA.

Define g:BA as follows:
For each bB, if there exists aA such that f(a)=b, set g(b)=a. If no aA exists (i.e., b is not an image of any a under f), pick any aA and set g(b)=a.

Since A is nonempty, such an a always exists. So, every element of A is the image under g of at least one element of B, thus g is a surjection.

Assume there exists a surjection g:BA. By definition of surjection, for each aA, there exists at least one bB such that g(b)=a. We need to show that there exists an injection f:AB.

Define f:AB as follows:
For each aA, since g is surjective, there exists at least one bB such that g(b)=a. Choose some arbitrary b for each a and set f(a)=b.

This definition ensures that different elements of A are mapped to different elements of B. Thus, if a1a2, then the b chosen for a1 is different from the b chosen for a2 since g(b)=a1 and g(b)=a2 cannot hold simultaneously for the same b. Therefore, f is an injection.

Thus, we have shown that the existence of an injection f:AB implies the existence of a surjection g:BA and vice versa.