Читать книгу Set Theory And Foundations Of Mathematics: An Introduction To Mathematical Logic - Volume I: Set Theory - Douglas Cenzer - Страница 12

2.3. Functions

Оглавление

Functions are of fundamental importance in mathematics. The integers come equipped with binary addition and multiplication functions. In algebra and trigonometry, we learn about the exponential function and the sine, cosine, and tangent functions on real numbers. Just as relations may be viewed as sets, functions may be viewed as relations and hence also as sets.

Definition 2.3.1. A relation F on A × B is a function if, for every x ∈ Dmn(F), there is a unique y ∈ Rng(F) such that xFy. We write y = F(x) for xFy. If Dmn(F) = A and Rng(F) ⊆ B, we say that F maps A into B, written F : AB. F is one-toone, or injective, if F−1 is also function. F maps A onto B, or is surjective, if Rng(F) = B. F is bijective, or is a set isomorphism from A to B, if F is injective and surjective.

Definition 2.3.2. For any sets A and B, BA is the set of functions mapping A into B.

A function F is said to be binary, or in general n-ary, if Dmn(F) ⊆ A×A (in general An) for some set A. Most commonly studied functions are either 1-ary (unary) or binary.

In the calculus, we studied how to determine whether functions were one-to-one and how to find their domain and range. For example, the function f(x) = x3 is both injective and surjective. The exponential function f(x) = ex is injective but not surjective. The function f(x) = x3x is surjective, but it is not injective, since f(0) = f(1) = 0.

In any group G, the function mapping x to its inverse x−1 is a set isomorphism.

Equality of functions may be characterized as follows.

Proposition 2.3.3. Let F and G be two functions mapping set A to set B. Then F = G if and only if F(x) = G(x) for all xA.

Proof. Suppose first that F = G and let xA. Since F and G are functions, there are unique elements b and c of B such that F(x) = a and G(x) = c. Then (x, a) ∈ F and (x, c) ∈ G. Since F = G, it follows that both (x, a) and (x, c) are in F. Since F is a function, it follows that b = c, so that F(x) = G(x).

Suppose next that F(x) = G(x) for all xA. Then, for any aA and bB, we have (a, b) ∈ F if and only if F(a) = b, if and only if G(a) = b, if and only if (a, b) ∈ G. Thus F = G.


All the results about relations also apply to functions, but there are some additional nice properties of functions. Note that, for a function F : AB and CB, the inverse image of C under F, F−1[C], is defined by taking the inverse of F as a relation, that is,


Proposition 2.3.4. For any function F : CD and any subsets A, B of D,

(1) F−1[AB] = F−1[A] ∩ F−1[B];

(2) F−1[A \ B] = F−1[A] \ F−1[B].

Proof. Let xC. Then xF−1[AB] if and only if F(x) ∈ AB, if and only if F(x) ∈ AF(x) ∈ B, if and only if xF−1[A] ∧ xF−1[B], if and only if xF−1[A] ∩ F−1[B].

Part (2) is left to the reader.


It is not hard to see that FG is a function if F and G are functions (see the exercises). Here are some interesting results about the composition of functions.

Proposition 2.3.5. Let F : AB be a function.

(1) F : AB is one-to-one if and only if, for all C and all G : CA and H : CA, FG = FH implies G = H.

(2) F : AB is onto if and only if, for all C and all G : BC and H : BC, GF = HF implies G = H.

Proof. (1) Let F : AB. Suppose that F is one-to-one and let G : CA and H : CA. Suppose also that FG = FH. Then, for any xC, F(G(x)) = F(H(x)). Since F is one-to-one, this implies that G(x) = H(x). Thus G = H.

Next suppose that F : AB is not one-to-one and choose a1a2A and bB such that F(a1) = F(a2) = b. Let C = {c} and define G(c) = a1 and H(c) = a2, so that FG(c) = b = FH(c) and hence FG = FH. However, GH.

Part (2) is left as an exercise.


Next we consider indexed families of sets. This will be an important topic later in connection with the Axiom of Choice. An indexed family {Ai : iI} of sets may be viewed as a function from I to ⋃i∈I Ai.

Definition 2.3.6. Suppose = {Ai : iI} is an indexed family of sets.

(1) The union of this family is ⋃i∈I Ai := {u : (∃iI) uAi}.

(2) The intersection of this family is ⋂i∈I Ai := {u : (∀iI) uAi}.

(3) The Cartesian product of this family is ∏i∈I Ai = {f : I → ⋃i∈I Ai : (∀i)[f(i) ∈ Ai]}.

(4) For each iI, the ith projection function, pi : ∏i∈I AiAi, is defined by pi(f) = f(i) for all f ∈ ∏i∈I Ai.

Example 2.3.7.

(1) Let I be the set of prime numbers and let Ap = {n ∈ : p | n}. Then ⋃p∈I Ap = {n ∈ : n ≠ 1} and ⋂p∈I Ap = {0}.

(2) Let I = + = {1, 2, . . . } and let An = (−1/n, 1/n). Then ⋃n∈I An = (−1, 1) and ⋂n∈I An = {0}.

(3) Let I = and let Ai = for all i ∈ . Then ∏i∈ Ai is the set of infinite sequences of real numbers, which plays a very important role in the study of calculus.

(4) The Cantor space is defined to be ∏i∈{0, 1}, the set of infinite sequences of 0’s and 1’s. This is one of the fundamental spaces of topology.

Now we can examine unions and intersections of infinitely many sets. The following is a generalization of the associative laws.

Proposition 2.3.8. Let (Ai)i∈I and (Bi)i∈I be indexed families of sets.

(1) ⋃i∈I(AiBi) = (⋃i∈I Ai) ∪ (⋃i∈I Bi).

(2) ⋂i∈I(AiBi) = (⋂i∈I Ai) ∩ (⋂i∈I Bi).

Proof. (1) (⊆): Suppose that x ∈ ⋃i∈I(AiBi). Then (∃i) xAiBi. Choose some k such that xAkBk. Now either xAk or xBk. Without loss of generality suppose that xAk. Then (∃i) xAi, and therefore x ∈ ⋃i Ai. It follows that x ∈ (⋃i∈I Ai) ∪ (⋃i∈I Bi).

Note: When we say here “without loss of generality”, we mean that a similar argument will work in the other case that xBk.

(⊇): Suppose now that x ∈ (⋃i∈I Ai)∪(⋃i∈I Bi). Then either x ∈ (⋃i∈I Ai) or x ∈ (⋃i∈I Bi). Without loss of generality suppose that x ∈ (⋃i∈I Bi). Then (∃i) xBi. Choose some k such that xBk. Then xAkBk. Hence (∃i) xAiBi. It follows that x ∈ ⋃i∈I(AiBi).

Part (2) is left to the exercises.


Here are some versions of the distributive law.

Proposition 2.3.9. Let (Ai)i∈I and (Bi)i∈I be indexed families of sets.

(1) A ∩ ⋃i∈I Bi = ⋃i∈I(ABi).

(2) A ∪ ⋂i∈I Bi = ⋂i∈I(ABi).

Proof. (1) (⊆): Let xA ∩ ⋃i∈I Bi. Then xA and x ∈ ⋃i∈I Bi. Now (∃i) xBi, so we can choose j such that xBj. It follows that xAxBj, so that xABj. Thus (∃i) xABi. Hence x ∈ ⋃i∈I ABi.

(⊇): Let x ∈ ⋃i∈I ABi. Then (∃i) x ∈ ⋃i∈I ABi, so we can choose j such that xABj. Then xAxBj. Now (∃i) xBi, so that x ∈ ⋃i∈I Bi. Thus xAx ∈ ⋃i∈I Bi, so that xA ∩ ⋃i∈I Bi.

Part (2) is left to the exercises.


Proposition 2.3.10. Let (Ai)i∈I and (Bi)i∈I be indexed families of sets.

(1) ⋃i∈I(AiBi) ⊆ (⋃i∈I Ai ∩ ⋃i∈I Bi).

(2) (⋂i∈I Ai ∪ ⋂i∈I Bi) ⊆ ⋂i∈I(AiBi).

Proof. Part (1) is left to the exercises. Here is a proof of part (2). Let x ∈ ⋂i∈I Ai ∪ ⋂i∈I Bi. Then either x ∈ ⋂i∈I Ai or x ∈ ⋂i∈I Bi. Without loss of generality, suppose that x ∈ ⋂i∈I Ai. This means that (∀iI) xAi. Now let iI be arbitrary. Then xAi, so that xAixBi and hence xAiBi. Since i was arbitrary, it follows that (∀iI) xAixBi. Thus x ∈ ⋂i∈I(AiBi).


Here is an example to show that equality does not always hold for the second inclusion. Let I = , let Ai be the interval (−∞, i), and let Bi = [i, ∞). Then ⋂i∈I Ai = = ⋂i Bi, so that ⋂i∈I Ai ∪ ⋂i∈I Bi = . But AiBi = (−∞, ∞) for every i, so that ⋂i∈I(AiBi) = (−∞, ∞).

Finally, here is a version of DeMorgan’s laws for indexed families.

Proposition 2.3.11. Let (Ai)i∈I be an indexed family of sets.

(1) (⋃i∈I Ai) = ⋂i∈I .

(2) (⋂i∈I Ai) = ⋃i∈I .

Proof. (1) x ∈ (⋃i∈I Ai) if and only if x ∉ ⋃i∈I Ai, which holds if and only if ¬(∃i) xAi. It follows from predicate logic that this is true if and only if (∀i) ¬xAi, which holds if and only if (∀i) x ∈ , which is true if and only if x ∈ ⋂i∈I .

Part (2) is left to the exercises.


One can also define a doubly indexed family {Bi,j : iI, jJ}. For example, let Ai,j be the open interval (ij, i + j) of reals for i ∈ and j ∈ . Then we have


whereas


On the other hand, we do have the following proposition.

Proposition 2.3.12. For any doubly indexed family {Ai,j : iI, jJ}, ⋃j∈Ji∈I Ai,j ⊆ ⋂i∈Ij∈J Ai,j.

Proof. Suppose x ∈ ⋃j∈Ji∈I Ai,j and let iI be arbitrary. Then (∃jJ) x ∈ ⋂i∈I Ai,j. Fix kJ such that x ∈ ⋂i∈I Ai,k. This means that (∀iI) xAi,k. Now let iI be arbitrary. Then we have immediately xAi,k. Hence (∃j) xAi,j, so that x ∈ ⋃j∈J Ai,j. Since i was arbitrary, it follows that (∀iI) x ∈ ⋃j∈J Ai,j. This means that x ∈ ⋂i∈Ij∈J Ai,j, as desired.


Exercises for Section 2.3

Exercise 2.3.1. Show that, for any function F : CD and any subsets A, B of D, F−1[A \ B] = F−1[A] \ F−1[B].

Exercise 2.3.2. Show that, for any two functions F : BC and G : AB, FG is a function.

Exercise 2.3.3. Show that, for any functions F and G, Dmn(FG) = G−1[Dmn(F)] ⊆ Dmn(G).

Exercise 2.3.4. Show that, for any two functions F and G, Rng(FG) = F[Rng(G)] ⊆ Rng(F).

Exercise 2.3.5. Show that, for any function F : AB, F is surjective if and only if, for all C and all G : BC and H : BC, GF = HF implies G = H.

Exercise 2.3.6. For a function F : AB, show that

(1) F is surjective if and only if there exists G : BA such that FG = IB;

(2) F is injective if and only if there exists G : BA such that GF = IA;

(3) F is bijective if and only if there exists G : BA such that FG = IB and GF = IA.

Exercise 2.3.7. Let A, B, and C be sets.

(a) Show that (AB)C = ACBC.

(b) Show that ACBC ⊆ (AB)C.

(c) Show that equality does not always hold in (b).

Exercise 2.3.8. Let AB.

(a) Show that ACBC.

(b) Define a map from CB onto CA.

Exercise 2.3.9. Let An = {k/n : k ∈ } = {0, 1/n, −1/n, 2/n, . . . } for each n+. Determine the resulting sets ⋃n∈I An and ⋂n∈I An.

Exercise 2.3.10. Show that, for any indexed families {Ai : iI} and {Bi : iI}, ⋂i∈I(AiBi) = (⋂i∈I Ai ∩ ⋂i∈I Bi).

Exercise 2.3.11. Show that, for any set A and any indexed family {Bi : iI}, A ∪ ⋂i∈I Bi = ⋂i∈I(ABi).

Exercise 2.3.12.

(a) Show that, for any indexed families {Ai : iI} and {Bi : iI}, ⋃i∈I(AiBi) ⊆ (⋃i∈I Ai ∩ ⋃i∈I Bi).

(b) Give an example to show that equality does not always hold in part (a).

Exercise 2.3.13. Let {Ai : iI} and Bj : jJ} be indexed families of sets and suppose that AiBj for all iI and all jJ. Show that ⋃i∈I Ai ⊂ ⋂j∈J Bj.

Exercise 2.3.14. Show that, for any indexed family {Ai : iI} of sets, (⋂i∈I Ai) = ⋃i∈I .

Exercise 2.3.15. Let {Ai : iI} be an indexed family of sets.

(a) Show that F[⋃i∈I Ai] = ⋃i∈I F[Ai].

(b) Show that F[⋂i∈I Ai] ⊂ ⋂i∈I F[Ai].

(c) Show that equality does not always hold in (b).

Exercise 2.3.16. Let {Bi : iI} be an indexed family of sets.

(a) Show that F−1[⋃i∈I Bi] = ⋃i∈I F−1[Bi].

(b) Show that F−1[⋂i∈I Bi] = ⋂i∈I F−1[Bi].

Exercise 2.3.17. Suppose = {Ai : iI} is an indexed family, and Ai ≠ for all iI. Show that the Rng(pi) = Ai, where pi is the ith projection function on ∏i∈I Ai.

Exercise 2.3.18. Let I = {0, 1}. Define a bijection between ∏i∈I Ai and A0 × A1. More generally, define a bijection between and A1 × A2 × · · · × An.

Set Theory And Foundations Of Mathematics: An Introduction To Mathematical Logic - Volume I: Set Theory

Подняться наверх