5.2 Workshop 2 (Reading)
5.2.1 Preparatory Exercises (1 hour)
Task 5.10.
Find an example and a non-example for each of the following definitions.
Definition (Injective, injection).
A function is said to be injective (or an injection) if implies for every .
Definition (Surjective, surjection).
A function is said to be surjective (or a surjection) if, given any , there is some such that .
Definition (Bijective, bijection).
A function is said to be bijective if it is both injective and surjective.
Task 5.11.
Consider the function such that
where is some real number.
Is injective? Is surjective?
Task 5.12.
Read the proofs of Claim A and Claim B (below).
-
1.
Highlight the key parts of the proofs. Are there any parts which you do not understand or are not convinced by?
-
2.
Compare the two proofs. What are the key differences between them?
-
3.
Consider in Claim A. Is bijective? Can you change the domain so that is no longer injective? Where does the proof break down?
-
4.
Consider in Claim B. Is bijective? Can you change the codomain so that is no longer surjective? Where does the proof break down?
Note: We define .
Claim A: The function defined by is injective.
Proof.
Let be such that . Then , and so
If then and , so . Otherwise, , so . Thus is injective.
Claim B: The function defined by is surjective.
Proof.
Let . We need to show there is some such that . Observe that . By the quadratic formula, that means
and since , the square root is defined and this gives our value for . Thus, since we can find such an for every , this implies that is surjective.
5.2.2 B3 Reading Workshop Supplementary Material
For Task B3.2.1:
Theorem.
Let and be functions.
-
1.
If and are injective, so is .
-
2.
If and are surjective, so is .
-
3.
If and are bijective, so is .
Proof.
-
1.
Suppose and are injective. To show that is injective, we need to show that if (with ), then .
So, suppose satisfies . Then . Since is , this means . Since is this implies , as desired.
This completes the proof that is injective.
-
2.
Now suppose and are surjective. To show that is surjective, we need to show that for all , there is some such that .
Let . Since is , there is some such that . Since is , there is some such that . Then
as desired.
This finishes the proof that is surjective.
-
3.
If and are bijective, then they are both injective and surjective, so by the previous two parts, is also both injective and surjective, hence is bijective.
For Task B3.2.2:
Theorem.
Let and be finite sets and let be a function.
-
a)
If is injective, then .
-
b)
If is surjective, then .
-
c)
If is bijective, then .
5.1.
Since is finite, we can list its elements as where .
5.2.
If is injective, then the elements are distinct.
5.3.
Therefore there are exactly elements in the set .
5.4.
Since is finite, we can list its elements as where .
5.5.
Since this is a subset of , the set must have at least as many elements as , so .
5.6.
If is surjective, then for each , we can choose distinct such that .
5.7.
Since this is a subset of , the set must have at least as many elements as , so .
5.8.
This follows by combining results (a) and (b).
5.9.
Therefore there are exactly elements in the set .
For Task B3.2.3:
Definition (Countable and uncountable sets).
A set is said to be countable if it is finite or if there is a bijection from to .
An infinite countable set is said to be countably infinite.
A set that is not countable is said to be uncountable.
Claim.
Consider the function which is defined by:
The function is bijective.
Proof.
For to be bijective, it needs to be both injective and surjective.
To show that is injective, we need to show that if for , then .
So, suppose such that . Then, is either even or odd. If is even, then . Rearranging, we get as desired.
Alternatively, if is odd, then . Again, rearranging gives .
This completes the proof that is injective.
To show that is surjective, we need to show that for all , there is some such that .
Let . If is non-negative, then we can take . Note that is an odd natural number so as desired.
On the other hand, if is negative, then we can set . Then is an even positive number and hence a natural number. We have .
Therefore is surjective.
As is both surjective and injective, it is bijective.
Corollary.
The set is countable.
For Task B3.2.4:
Theorem.
Let be any infinite set. The following are equivalent:
-
(i)
is countably infinite;
-
(ii)
there is a surjection from to ;
-
(iii)
there is an injection from to .
Proof.
-
•
(i) (ii): If is countably infinite then, by definition, there is a bijection from to . Thus there is a surjection from to .
-
•
(ii) (iii): Suppose is surjective. Then, for any , the set is nonempty and so has a unique smallest element, call it . Then defined by is injective.
-
•
(iii) (i): Suppose is injective. Then, since is an infinite set and no pair of elements in are mapped (under ) to the same natural number, is an infinite subset of and is therefore countable.
5.2.3 Workshop Tasks
Task 5.13 (5 mins).
(Warm Up)
-
1.
In your Preparatory Exercises, you were asked to consider the function such that
where is some real number.
-
(a)
Did you think the function is injective or surjective (or both)? Share your thoughts with your group.
-
(b)
Sketch the graph of . Can you think of a visual way to indicate when a function is injective, surjective or bijective?
-
(a)
-
2.
What key steps for proving injectivity and surjectivity did you highlight in the proofs of Claim A and Claim B in the Preparatory Exercises? Share them with your group.
-
3.
EXTENSION: Try to draft a proof of the claims you made for the function .
Task 5.14 (10 mins).
If we have a bijective function , we can define a new function such that and we call the inverse of . This means that and are identity functions.
-
1.
If is NOT bijective, is such that a valid function?
-
2.
What is wrong with the following argument?
“Suppose is a function with and . Since and are identity functions and by definition of the inverse function , it follows that and by definition of the identity function. Hence, for all functions , we have and .”
-
3.
EXTENSION: Prove that and are identity functions.
Task 5.15 (10 mins).
(B3.2.1) In your supplementary material for this task, you’ve been given a sparse proof structure for the following theorem:
Theorem.
Let and be functions.
-
1.
If and are injective, so is .
-
2.
If and are surjective, so is .
-
3.
If and are bijective, so is .
-
1.
Complete the proof by filling in the gaps.
-
2.
EXTENSION: If is injective, is or injective? If is surjective, is or surjective?
Theorem.
Let and be functions.
-
1.
If and are injective, so is .
-
2.
If and are surjective, so is .
-
3.
If and are bijective, so is .
Proof.
-
1.
Suppose and are injective. To show that is injective, we need to show that if (with ), then .
So, suppose satisfies . Then . Since is , this means . Since is this implies , as desired.
This completes the proof that is injective.
-
2.
Now suppose and are surjective. To show that is surjective, we need to show that for all , there is some such that .
Let . Since is , there is some such that . Since is , there is some such that . Then
as desired.
This finishes the proof that is surjective.
-
3.
If and are bijective, then they are both injective and surjective, so by the previous two parts, is also both injective and surjective, hence is bijective.
Task 5.16 (15 mins).
(B3.2.2) In your supplementary material for this task you’ve been given a theorem and its proof which has been split into blocks.
-
1.
Represent this theorem pictorially.
-
2.
Rearrange the blocks into a coherent proof of the theorem. Are there any steps you are not convinced by? Discuss these with your group.
-
3.
Compare each line of the proof of part (a) with the line in the proof of part (b) in the same position. In what ways are they similar? In what ways are they different and why?
-
4.
How do we know there exist distinct in block 5.15?
-
5.
If is the image of , is it possible for ?
-
6.
EXTENSION: Find counterexamples that show the converse of the statements in this theorem are not true in general.
Theorem.
Let and be finite sets and let be a function.
-
a)
If is injective, then .
-
b)
If is surjective, then .
-
c)
If is bijective, then .
5.10.
Since is finite, we can list its elements as where .
5.11.
If is injective, then the elements are distinct.
5.12.
Therefore there are exactly elements in the set .
5.13.
Since is finite, we can list its elements as where .
5.14.
Since this is a subset of , the set must have at least as many elements as , so .
5.15.
If is surjective, then for each , we can choose distinct such that .
5.16.
Since this is a subset of , the set must have at least as many elements as , so .
5.17.
This follows by combining results (a) and (b).
5.18.
Therefore there are exactly elements in the set .
Definition (Countable and uncountable sets).
A set is said to be countable if it is finite or if there is a bijection from to .
An infinite countable set is said to be countably infinite.
A set that is not countable is said to be uncountable.
Task 5.17 (15 mins).
(B3.2.3) In your supplementary notes, you’ve been given a claim, its proof and a corollary.
-
1.
Read the claim, proof and corollary. Identify the key steps of showing a function is bijective in the given proof.
-
2.
In the argument that is surjective, why do we consider the cases where is negative and non-negative instead of positive and negative?
-
3.
Write out the values of , , , , and try to spot a pattern.
-
4.
Write a proof for the corollary.
-
5.
Think of an infinite subset of . Find a bijective function from to . What conclusions can you make from this?
-
6.
EXTENSION: Find other definitions or theorems which we can use to immediately conclude corollaries after another result.
Claim.
Consider the function which is defined by:
The function is bijective.
Proof.
For to be bijective, it needs to be both injective and surjective.
To show that is injective, we need to show that if for , then .
So, suppose such that . Then, is either even or odd. If is even, then . Rearranging, we get as desired.
Alternatively, if is odd, then . Again, rearranging gives .
This completes the proof that is injective.
To show that is surjective, we need to show that for all , there is some such that .
Let . If is non-negative, then we can take . Note that is an odd natural number so as desired.
On the other hand, if is negative, then we can set . Then is an even positive number and hence a natural number. We have .
Therefore is surjective.
As is both surjective and injective, it is bijective.
Corollary.
The set is countable.
Task 5.18 (10 mins).
(B3.2.4) In your supplementary material, you were given a theorem and proof for this task.
-
1.
Read the given theorem and proof. Are there any steps that you’re not convinced by? Discuss them with your group.
-
2.
The proof never directly shows (ii) (i). Why can we still conclude that (i) and (ii) are equivalent?
-
3.
EXTENSION: Try proving the statements in this theorem in the other direction i.e. prove that (iii) (ii), (ii) (i) and (i) (iii).
Theorem.
Let be any infinite set. The following are equivalent:
-
(i)
is countably infinite;
-
(ii)
there is a surjection from to ;
-
(iii)
there is an injection from to .
Proof.
-
(i) (ii)
If is countably infinite then, by definition, there is a bijection .
-
(ii) (iii)
Suppose is surjective. Then, for any , the set is nonempty and so has a unique smallest element, call it . Then defined by is injective.
-
(iii) (i)
Suppose is injective. Then, since is an infinite set and no pair of elements in are mapped (under ) to the same natural number, is an infinite subset of and is therefore countable.