hw1 Solutions
hw1 Solutions
Exercises: (§2, 3, 6, 7)
1. Let f : A → B be a function.
4. We say two sets A and B have the same cardinality if there is a bijection of A with B. In this exercise,
you will prove the Schröder–Bernstein Theorem: if there exist injections f : A → B and g : B → A,
then A and B have the same cardinality.
(a) Suppose C ⊂ A and that there is an injection f : A → C. Define A1 := A, C1 := C, and for n > 1
recursively define An := f (An−1 ) and Cn := f (Cn−1 ). Show that
A1 ⊃ C1 ⊃ A2 ⊃ C2 ⊃ A3 ⊃ · · ·
Solutions:
1. (a) Let a ∈ A0 . Then f (a) ∈ f (A0 ) and therefore a ∈ f −1 (f (A0 )). Since a ∈ A0 was arbitrary,
we have A0 ⊂ f −1 (f (A0 )). Next, let b ∈ f (f −1 (B0 )). Then there exists a ∈ f −1 (B0 ) such that
f (a) = b. But a ∈ f −1 (B0 ) implies b = f (a) ∈ B0 . Since b ∈ f (f −1 (B0 )) was arbitrary, we have
f (f −1 (B0 )) ⊂ B0 .
(b) (=⇒) : Suppose f is injective and let A0 ⊂ A. By the previous part, it suffices to show
f −1 (f (A0 )) ⊂ A0 . If a ∈ f −1 (f (A0 )), then f (x) ∈ f (A0 ) and so there is some a1 ∈ A0 with
f (a) = f (a1 ). Since f is injective, we must have a = a1 ∈ A0 . Thus f −1 (f (A0 )) ⊂ A0 .
(⇐=) : We will proceed by contrapositive. Suppose f is not injective. Then there exists a1 , a2 ∈ A
with a1 6= a2 and f (a1 ) = f (a2 ). Consider A0 := {a1 }. Then f ({a1 }) = {f (a1 )} and so
a1 , a2 ∈ f −1 (f ({a1 })). Consequently, {a1 } does not equal f −1 (f ({a1 })) (it is a strict subset).
(c) (=⇒) : Suppose f is surjective and let B0 ⊂ B. By part (a) it suffices to show B0 ⊂ f (f −1 (B0 )).
Let b ∈ B0 . Since f is surjective, we can find some a ∈ A with f (a) = b. Consequently,
a ∈ f −1 (B0 ) and b = f (a) ∈ f (f −1 (B0 )). Thus B0 ⊂ f (f −1 (B0 )).
(⇐=) : We will again proceed by contrapositive. Suppose f is not surjective. Then there exists
b ∈ B so that f (a) 6= b for all a ∈ A. Consider B0 := {b}. Since nothing in A is mapped to b by
f , we have f −1 ({b}) = ∅. Thus f (f −1 ({b})) = ∅ =6 {b}.
2. (a) If aDb, then this means (a, b) ∈ D = C ∩ (A0 × A0 ). In particular, (a, b) ∈ C so that aCb, and
(a, b) ∈ A0 × A0 so that a, b ∈ A0 . Conversely, if a, b ∈ A0 and aCb, then the former implies
(a, b) ∈ A0 × A0 and the latter implies (a, b) ∈ C. Thus (a, b) is in their intersection, which is D,
and consequently aDb.
(b) Let C be an equivalence relation on A and let D be its restriction to a subset A0 ⊂ A. So C
satisfies reflexivity, symmetry, and transitivity and we must show D inherits these properties. For
a ∈ A0 , we have aCa by reflexivity and consequently aDa by part (a). Thus D is reflexive. For
a, b ∈ A0 , if aDb, then aCb by part (a). By symmetry of C we have bCa and since we still have
a, b ∈ A0 , we obtain bDa by part (a). Thus D is symmetric. Finally, for a, b, c ∈ A0 , if aDb and
bDc, then we have aCb and bCc, and so aCc by transitivity of C. Using part (a) again we obtain
aDc whence D is transitive.
(c) Let C be an order relation on A and let D be its restriction to a subset A0 ⊂ A. So C satisfies
comparability, non-reflexivity, and transitivity and we must show D inherits these properties. Let
a, b ∈ A0 with a 6= b. Then aCb by comparability, and consequently aDb by part (a); that is, D
has comparability. Let a ∈ A0 . If aDa, then aCa by part (a), which contradicts non-reflexivity
of C. Thus aDa holds for no a ∈ A0 , which means D has non-reflexivity. Finally, the proof of
transitivity follows by exactly the same argument as in part (b).
(d) Let C be a partial order relation on A and let D be its restriction to a subset A0 ⊂ A. So C
satisfies reflexivity, antisymmetry, and transitivity and we must show D inherits these properties.
Reflexivity and transitivity follows by the same arguments as in part (b), so it suffices show D is
antisymmetric. If a, b ∈ A0 satisfy aDb and bDa, then we have aCb and bCa by part (a). Since
C is antisymmetric, we must have a = b. Thus D is antisymmetric.
3. (a) (=⇒) : Suppose A × B is finite. Then by Corollary 6.7, there is an injective function f : A × B →
{1, 2, . . . , n} for some n ∈ N. Let a0 ∈ A and b0 ∈ B (which exist since A and B are assumed to
be non-empty), and note that the maps
ιA : A 3 a 7→ (a, b0 ) ∈ A × B
ιB : B 3 b 7→ (a0 , b) ∈ A × B
4. (a) We will establish this series of containments by proving “An ⊃ Cn ⊃ An+1 ” via induction on n.
For n = 1, we have A1 = A, C1 = C, and A2 = f (A). So the inclusion A1 ⊃ C1 follows from the
fact that C is a subset of A, and the inclusion C1 ⊃ A2 follows from the fact that the C is the range
of f . Now assume An−1 ⊃ Cn−1 ⊃ An . Then appllying f yields f (An−1 ) ⊃ f (Cn−1 ) ⊃ f (An ),
but this is precisely the series of inclusions An ⊃ Cn ⊃ An+1 . Thus the full series of inclusions
holds by induction.
Now, we must show f (An \Cn ) = An+1 \Cn+1 for each n ∈ N. Fix n ∈ N and let a ∈ An \Cn . Then
f (a) ∈ An+1 by definition of An+1 . We also cannot have f (a) ∈ Cn+1 because Cn+1 = f (Cn )
would imply that f (a) = f (c) for some c ∈ Cn and hence a = c ∈ Cn since f is injective, a
contradiction. Thus f (a) ∈ An+1 \ Cn+1 , and so f (An \ Cn ) ⊂ An+1 \ Cn+1 . Conversely, let
b ∈ An+1 \ Cn+1 . Then An+1 = f (An ) implies there is some a ∈ An with f (a) = b. We must also
have a 6∈ Cn because otherwise b = f (a) ∈ Cn+1 , a contradiction. Thus An+1 \ Cn+1 ⊂ f (An \ Cn )
and so the sets are equal.
(b) We first show h is injective. Suppose h(x) = h(y). If x ∈ An \ Cn for some n ∈ N, then
h(y) = h(x) = f (x) ∈ An+1 \ Cn+1 by part (a). We cannot have h(y) = y because this would
require (by definition of h) that y 6∈ An \ Cn for any n, and yet y = h(y) = f (x) ∈ An+1 \ Cn+1 .
Thus we must have h(y) = f (y), and so f (y) = f (x). Since f is injective, this implies x = y. If
x 6∈ An \ Cn for all n ∈ N, then h(x) = x by definition of h. By the same reasoning as above, we
cannot have y ∈ Am \ Cm for any m, and so we have y = h(y) = h(x) = x. Thus h is injective.
Next we show h is surjective. Let y ∈ C. If y 6∈ An \ Cn for any n ∈ N, then h(y) = y and so y is
in the image of h. If y ∈ An \ Cn for some n, then we must have n > 1 since y ∈ C = C1 . Thus,
by part (a), An \ Cn = f (An−1 \ Cn−1 ). So there is some x ∈ An−1 \ Cn1 with f (x) = y. Since
x ∈ An−1 \ Cn−1 , we have h(x) = f (x) = y. Thus h is surjective.
(c) Suppose f : A → B and g : B → A are injections. Consider C := g(B) ⊂ A and note that
g ◦ f : A → C is an injection. So by part (b), there is a bijection h : A → C. Since g is an
injection, by changing the range of g we get that g : B → g(B) = C is a bijection. Hence
g −1 ◦ h : A → B is a bijection and so A and B have the same cardinality.
5. (a) Given f ∈ {0, 1}N , define a subset a subset of the natural numbers by Af := {n ∈ N | f (n) = 1}.
We claim that f 7→ Af is a bijection {0, 1}N → P(N). If Af = Af 0 , then for each n ∈ N we have