Dis01b Sol
Dis01b Sol
Dis01b Sol
1 Set Operations
Note 0
Solution:
(a)
P(A) = {{}, {1}, {2}, {3}, {4}, {1, 2}, {1, 3}, {1, 4}, {2, 3}, {2, 4}, {3, 4},
{1, 2, 3}, {1, 2, 4}, {1, 3, 4}, {2, 3, 4}, {1, 2, 3, 4}}
(b) P(B) = {T | T ⊆ B}
(c) {} or ∅
(d) Z
(e) Q
(f) The set of irrational numbers
(g) ∅
Solution:
In order to prove equality A = B, we need to prove that A is a subset of B, A ⊆ B and that B is a
subset of A, B ⊆ A. To prove that LHS is a subset of RHS we need to prove that if an element is a
member of LHS then it is also an element of the RHS.
(a) Suppose x is such that f (x) ∈ A ∩ B. Then f (x) lies in both A and B, so x lies in both f −1 (A)
and f −1 (B), so x ∈ f −1 (A) ∩ f −1 (B). So f −1 (A ∩ B) ⊆ f −1 (A) ∩ f −1 (B).
Now, suppose that x ∈ f −1 (A) ∩ f −1 (B). Then, x is in both f −1 (A) and f −1 (B), so f (x) ∈ A
and f (x) ∈ B, so f (x) ∈ A ∩ B, so x ∈ f −1 (A ∩ B). So f −1 (A) ∩ f −1 (B) ⊆ f −1 (A ∩ B).
Solution:
(a) Suppose g : B → A is the inverse of f . First, we show f is injective. Suppose f (x) = f (y) for
some x, y ∈ A. Then, g( f (x)) = g( f (y)). Since g is the inverse of f , g ◦ f = idA , so we get
x = y. Thus, f is injective. Next, we show f is surjective. Consider any b ∈ B. Then, g(b) ∈ A
is such that f (g(b)) = b because f ◦ g = idB . So, f is surjective. Thus, f is a bijection.
(b) Since f is surjective, every element b ∈ B is mapped to by something (in other words, the
preimage f −1 ({b}) is nonempty). Since f is injective, every element b ∈ B is mapped to by at
most one thing (in other words, the preimage f −1 ({b}) has cardinality at most 1). Combining
these facts, for each b ∈ B, f −1 ({b}) = {a} for some a ∈ A. Define g : B → A so that g(b) is
the unique element in f −1 ({b}) for each b ∈ B. We claim g is the inverse of f .