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:A→B be a function.

Define C={x∈A:x∉g(x)} (barber set)

Proof.
Let A be a set. Let g:A→P(A) be a function. Define the barber set B={x∈A:x∉g(x)}. Let a∈A.

Case 1: Assume that a∈g(a). Then a∉B, hence g(a)≠B.

Case 2: Assume that a∉g(a). Then a∈B hence g(a)≠B.

So in every case g(a)≠B. Since a∈A was arbitrary. g:A→P(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,T∈P(A) and assume that f(S)=f(T).
Then χS=χt.
Let a∈A, 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:N→N such that f(n)=n+1. Let a1,a2∈N. 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:N→N such that

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

There are two cases:
Case 1: n≠1.
Let b∈N. Define a=b+1. We see that

g(a)=a−1=b+1−1=b

So for all a∈N there exists a b∈N 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,S2⊆A. This means that {f(s):s∈S1}={f(s):s∈S2}. 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 S⊆A such that g(S)=T. Since f is a bijection, for each t∈T, there exists a unique s∈A 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,x2∈R. 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 x1≠x2; 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:A→B. By definition of injection, for each a1,a2∈A, if f(a1)=f(a2), then a1=a2. We need to show that there exists a surjection g:B→A.

Define g:B→A as follows:
For each b∈B, if there exists a∈A such that f(a)=b, set g(b)=a. If no a∈A exists (i.e., b is not an image of any a under f), pick any a′∈A 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:B→A. By definition of surjection, for each a∈A, there exists at least one b∈B such that g(b)=a. We need to show that there exists an injection f:A→B.

Define f:A→B as follows:
For each a∈A, since g is surjective, there exists at least one b∈B 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 a1≠a2, 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:A→B implies the existence of a surjection g:B→A and vice versa. ◻