2.1. ▹ How many different bijections are there between a set S with n elements and itself? §II2.1
Solution
n! of course :3 As there are n choices as to where to send the first element, n−1 choices for the second element, etc. □
2.2. ▹ Prove statement (2) in Proposition 2.1. You may assume that given a family of disjoint nonempty subsets of a set, there is a way to choose one element in each member of the family. [§2.5,V.3.3]
Solution
Assume A=∅ and let f:A→B be a function. Statement (2) in Proposition 2.1 asks us to prove that f has a right-inverse if and only if it is surjective.
(⟹) Assume that f has a right inverse. This means that we have some g:B→A such that f∘g=idB. Let b∈B. To show that f is surjective it is sufficient to find a∈A such that f(a)=b. By our assumption f(g(b))=(f∘g)(b)=idB(b)=b. Hence, g(b)∈A is our desired a.
(⟸) Assume that f is surjective. We need to construct some g:B→A such that f∘g=idB. For each b∈B, since f is surjective there exists a∈A such that f(a)=b. So we define g(b)=a with the axiom of choice, clearly f∘g=idB as desired. □
2.4. ▹ Prove that 'isomorphism' is an equivalence relation (on any set of sets). [§4.1]
Solution
Let S be a set of sets and A,B,C∈S. Define ∼ as X∼Y⟺∃f:X→Y, f bijective. We now check that the properties of an equivalence relation apply.
- reflexivity: A∼A
This is clear by considering idA, which is obviously a bijection.
- symmetry: A∼B⟹B∼A
Since we have A∼B we get f:A→B, f a bijection. Since f is a bijection it has an inverse, call it g:B→A, which is also a bijection, yielding B∼A.
- transitivity: (A∼B and B∼C)⟹A∼C
By the hypothesis we have bijections f:A→B and g:B→C, their composition g∘f:A→C is also a bijection so A∼C. □
2.5. ▹ Formulate a notion of epimorphism, in the style of the notion of monomorphism seen in §2.6, and prove a result analogous to Proposition 2.3, for epimorphisms and surjections. [§2.6,§4.2]
Solution
Define a function f:A→B to be a epimorphism (or epic) if for all sets Z and all functions α′,α′′:B→Z we have α′∘f=α′′∘f⟹α′=α′′. We propose that f is surjective if and only if it is epic.
(⟹) We are given that f is surjective. By Problem 2.2 we get a right inverse g:B→A, i.e. f∘g=idB. Let α′,α′′:B→Z satisfy
α′∘f=α′′∘f.
Compose on the right by g, and use associativity of composition:
α′∘(f∘g)=(α′∘f)∘g=(α′′∘f)∘g=α′′∘(f∘g);
since g is a right-inverse of f, this says
α′∘idB=α′′∘idB,
and therefore
α′=α′′,
as needed to conclude that f is an epimorphism.
(⟸) We are given that f is an epimorphism. Let Z={0,1}. We define α′:B→Z piecewise:
α′(b)={10if b∈Im(f)otherwise
Next, we define α′′:B→Z more simply, taking α′′(b)=1 for all b∈B. It is obvious that
α′∘f=α′′∘f
as both functions map every element of B to 1. By the definition of an epimorphism we conclude that
α′=α′′.
Now let b∈B. If b∈/Im(f) then α′(b)=0, but this is a contradiction as α′′=α′ and α′′(b)=1 by its definition. So we must have b∈Im(f) for each b∈B. We conclude that f is surjective. □
2.9. ▹ Show that if A′≅A′′ and B′≅B′′, and further A′∩B′=∅ and A′′∩B′′=∅, then A′∪B′≅A′′∪B′′. Conclude that the operation A⨿B (as described in §1.4) is well-defined up to isomorphism (cf. §2.9). [§2.9,5.7]
Solution
We are given bijections f:A′→A′′ and g:B′→B′′. Define h:A′∪B′→A′′∪B′′ piecewise:
h(x)={f(x)g(x)if x∈A′if x∈B′
Since A′∩B′=∅ it is evident that h is well-defined, so it is sufficient to prove that it is a bijection.
First let's show injectivity. Let h(x′)=h(x′′). Since A′′∩B′′=∅ we have either h(x′)=h(x′′)∈A′′ or h(x′)=h(x′′)∈B′′, but not both. We start by assuming the former, that is h(x′)=h(x′′)∈A′′. If we were to have x∈{x′,x′′} such that x∈B′ then h(x)∈B′′, contradicting A′′∩B′′=∅. We conclude that x′,x′′∈A′. Thus, h(x′)=h(x′′)=f(x′)=f(x′′). Since f is a bijection it is injective, so we conclude that x′=x′′. The other case, that is h(x′)=h(x′′)∈B′′, is handled by extremely similar reasoning.
Next we show surjectivity, which is even easier. Let y∈A′′∪B′′. If y∈A′′ then we get x∈A′ such that f(x)=y by f's surjectivity. If y∈B′′ then we get x∈B′ such that g(x)=y by g's surjectivity. Either way h(x)=y, so we conclude that h is surjective.
Since h is well-defined, and both injective and surjective and hence a bijection, we can conclude that A′∪B′≅A′′∪B′′ and that A⨿B is well-defined up to isomorphism. □
2.10. ▹ Show that if A and B are finite sets, then ∣BA∣=∣B∣∣A∣. [§2.1,2.11,§II.4.1]
Solution
Recall that BA is defined as the set of all functions f:A→B. For each a∈A it could be sent to any of the b∈B by f, hence there are ∣B∣ possibilities. So you multiply ∣B∣ by itself ∣A∣ times (once for each a∈A) to get ∣B∣∣A∣. □
2.11 ▹ In view of Exercise 2.10, it is not unreasonable to use 2A to denote the set of functions from an arbitrary set A to a set with 2 elements (say {0,1}). Prove that there is a bijection between 2A and the power set of A (c.f. §1.2). [§1.2,III.2.3]
Solution
Define f:2A→P(A) as a∈f(g) if g(a)=1 for g:A→{0,1} (this is the same as g∈2A) and a∈A. We need to show that f is a bijection. First we show injectivity. Take g′,g′′:A→{0,1} such that f(g′)=f(g′′). Let a∈A. We have two possibilities: a∈f(g′)=f(g′′), or a∈/f(g′)=f(g′′). First examine that case of the former, that is a∈f(g′)=f(g′′). By the definition of f we have g′(a)=g′′(a)=1. Next examine that latter case, that is a∈/f(g′)=f(g′′). By the definition of f we have g′(a)=g′′(a)=0. We conclude that f(g′)=f(g′′)⟹g′=g′′, so f is injective.
Next we show surjectivity. Let B∈P(A), so B⊆A. Define g:A→{0,1} piecewise
g(a)={10if a∈Botherwise
It is evident by our construction of f that f(g)=B. In detail, if a∈f(g) then a∈B by definition of g, and if a∈B then g(a)=1 by the definition of g and then by the definition of f we have a∈f(g). □