28 - Definitions regarding cardinality

Definition: Sets A and B have the same cardinality if there exists a bijection from A to B.
!Screenshot 2023-11-15 at 10.06.53 AM.png

A and B have different cardinality because no bijection exists from A to B.
!Screenshot 2023-11-17 at 10.42.50 AM.png

In class practice

A = N, B=NEVEN
Bijective
|N| = |Neven|

A=(0,1),B=(4,17) open intervals
f:AB
f(x)=13x+4 is a bijection |(0,1)|=|(4,17)|

Theorem |N|=|Z|
Let f:NZ be the function

f(n)={n2 if n is evenn12 if n is odd

By the pasting together theorem (and other previous work), f is a bijection

Proof.
Let f be the function

1 2 3 4 5 6 7 ...
0 1 -1 2 -2 3 -3 ...

Since this is a non repeating list that covers all of Z it defines a bijection NZ.

Principle: To construct a bijection from NA, it suffices to enumerate the elements in A in a list with no repeats. The pattern must be obvious.

Theorem. Let be the relation on sets given by AB if |A|=|B|. Then is an equivalence relation.

Proof.
(Reflexive)
Let A be a set. Then idA:AA is a bijection, so |A|=|A| so AA

(Symmetric)
Let A, B be sets. Assume that AB. Then |A|=|B|, so there exists a bijection f:AB. Then f1:BA is a bijection so |B|=|A|.

(Transitive)
Let A,B,C be sets. Assume that AB and BC. Then there exists bijections f:AB and g:BC. Then gf:AC is a bijection, so |A|=|C| i.e. AC.

The cardinality of A is a name we give to the equivalence class of A under .

|N|=|Neven|=|Z|=0 "aleph-nought". Things in this equivalence class are called countably infinite. It is the smallest infinite cardinality.
: the first letter of the Hebrew alphabet.

Theorem: If A is an infinite subset of a countably infinite set, then |A|=0
Proof. Without loss of generality, we may assume that AN. Let a1 be the least element of A. Let a2 be the least element of A{a1}. Repeat. Let an be the least element of A{a1,...,an1}. So a1,a2,a3... is an infinite, non-repeating list that covers all of A. So |A|=|N|.



HW 28

Ben Finch

E 28.1
a) False. {1, 2} and {a, b, c} do not have the same cardinality.
b) True. Per the definition of a function, each aA must be the component of exactly one element in f:AB. So |A|=|f|.
c) False. {1} N but it is not countably infinite.
d) False. Some infinite sets are not countable, so they could have a cardinality of 1 or higher.
e) False. Let A = {1, 2, 3}. Let B = {4, 5}. Let f:AB= {(1, 4), (2, 5), (3, 4)}. We see that f is surjective but 23.

E 28.2
Proof.
We first aim to prove that that the set of those natural numbers with exactly one digit equal to 7 is infinite. Suppose by way of contradiction that there this set is finite. Suppose that a is the greatest element of this set. Now replace any digits of a equal to 7 with 9. Then multiply by this number ten and add seven. Call this number b. We see that b>a but b is still in the set of natural numbers with exactly one digit equal to seven. So the set of natural numbers with exactly one digit equal to 7 is infinite. Per theorem 28.14, this set is also countably infinite, since it is a subset of the natural numbers, which is countably infinite.

E 28.3
Let S={xZ:x=a2+b2 for some a,bZ}. Then SZ since adding any two squares of integers will always be an integer. Per theorem 28.4, the cardinalities of N and Z are the same. Per theorem 28.14, any subset of a countably infinite set is countably infinite. Therefore, since SZ, |S|=|N|

E 28.4
We see that for every x in (0,), there is a y in (0,1). Since x is positive, x+1 is also positive, and thus xx+1 is positive. Also, xx+1 is less than 1 because the numerator x is always less than the denominator x+1. Therefore, y exists in (0,1) for each x in (0,).

We now prove that h is a bijection.

(Injective)
Let a1,a2(0,). Assume that h(a1)=h(a2). We find

a1a1+1=a2a2+1a1(a2+1)=a2(a1+1)a1a2+a1=a2a1+a2a1=a2

(Surjective)
Let b(0,1). Define a=bb1.
We find

f(a)=aa+1=bb1bb1+1=bb11b1=b1=b

So h is surjective.

So h is a bijection.

Since h is a bijection, it follows that (0,) and (0,1) have the same cardinality.

E 28.5
Let

j(x)=xx1

We see that for every x in (,0), there is a y in (1,0). Since x is negative, -x is positive, x1 is negative, and thus xx+1 is negative. Also, xx1 is greater than -1 but less than 0 because the numerator x is always greater than the denominator x (where x is negative). Therefore, y exists in (1,0) for each x in (,0).

(Injective)
Let a1,a2(0,). Assume that j(a1)=j(a2). We find

a1a11=a2a21a1(a21)=a2(a11)a1a2a1=a2a1a2a1=a2a1=a2

So j is injective.

(Surjective)

y=xx1y(x1)=xyxy=xyx+x=yx(y+1)=yx=yy+1

Let b(1,0). Define a=bb+1. We find

j(a)=aa1=(bb+1)bb+11=(bb+1)b(b+1)b+1=bb+11b+1=b1=b

So j is surjective.

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

E 28.6
Define f:R(1,1)

f(x)={xx+1 if x(0,)xx1 if x(,0)0 if x{0}

We know that the first two parts of f(x) are bijective from the previous two exercises. If x=0 then f is bijective since (0,f(0))=(0,0) and the identity function is a bijection. By the pasting together theorem, since each part of f(x) is bijective, f(x) is bijective.

Let l:(1,1)(0,1). Let l(x)=12(x+1)=12x+12.
We see that for every x(1,1), there exists a y in (0,1).

(Injective)
Let a1,a2(1,1). Assume that f(a1)=f(a2). We find

12a1+12=12a2+1212a1=12a2a1=a2

So l is injective.
(Surjective)

Let b(0,1). Define a=2b1. We find

f(a)=12a+12=12(2b1)+12=b12+12=b

So l is surjective.

Since l is surjective and injecting, l is bijective.

We now form a composition of f and l. Then fl:R(0,1) is a bijection since both f and l are bijections, per theorem 26.12. Since there exists a bijection from R to (0,1), |R|=|(0,1)|.

E 28.7
Let B be a countable set. Let AB. Then |A||B|. Also, in order for B to be countable, |B|0. Since |A||B|, then |A|0. So A is countable.

E 28.8

()
Assume some set A is countable. By definition, a set is countable if it is finite or if it has the same cardinality as the set of natural numbers N. If A is finite, we can define an injective function from A to N by assigning each element in A to a unique natural number. If A is infinite and countable, it can be listed in a sequence a1,a2,a3,. We can then define f such that f(ai)=i, which is injective since each element in A is mapped to a unique natural number.

()
Let A be a set. Assume there exists an injective function f:AN. An injective function f from A to N ensures that each element of A is mapped to a distinct natural number. This mapping creates a sequence of elements in A based on their corresponding natural numbers in N. This sequence will list a subset of N, showing that A is countable (Theorem 28.14). If A is finite, it is obviously countable. If A is infinite, since it can be put into a one-to-one correspondence with a subset of N, it is countable.

Thus, we conclude that a set A is countable if and only if there exists an injective function f:AN.