← All writing

Mathematical Analysis I (2)

Sets, Functions and Cardinality

Parts: 1 · 2 · 3

Set Theory

3.1 Fundamentals

3.1.1 (Informal) Set Definition

We define a set AA to be any unordered collection of objects, e.g., {3,8,5,2}\{3, 8, 5, 2\} is a set.

We first clarify one point: we consider sets themselves to be a type of object.

Axiom 3.1 (Sets are objects)

If AA is a set, then AA is also an object.

Axiom 3.2 (Equality of sets)

Two sets AA and BB are equal, A=BA = B, iff every element of AA is an element of BB and vice versa.

Axiom 3.3 (Empty set)

There exists a set ∅\empty, known as the empty set, which contains no elements, i.e., for every object xx we have x∉∅x \notin \empty.

The empty set is also denoted {}\{\}.

Lemma 3.1.5 Single choice

Let AA be a non-empty set. Then there exists an object xx such that x∈Ax \in A.

Axiom 3.4 (Singleton sets and pair sets)

If aa is an object, then there exists a set {a}\{a\} whose only element is aa, i.e., for every object yy, we have y∈{a}y \in \{a\} if and only if y=ay = a; we refer to {a}\{a\} as the singleton set whose element is aa. Furthermore, if aa and bb are objects, then there exists a set {a,b}\{a, b\} whose only elements are aa and bb; we refer to this set as the pair set formed by aa and bb.

Axiom 3.5 (Pairwise union)

Given any two sets A,BA, B, there exists a set A∪BA \cup B, called the union of AA and BB, which consists of all the elements which belong to AA or BB or both. In other words, for any object xx,

x∈A∪B⟺(x∈A or x∈B)x\in A\cup B \Longleftrightarrow (x\in A \ or \ x\in B)

Lemma 3.1.12

If aa and bb are objects, then {a,b}=\{a, b\}=. If A,B,CA, B,C are sets, then the union operation is commutative (i.e., A∪B=B∪AA \cup B = B \cup A) and associative (i.e., (A∪B)∪C=A∪(B∪C)(A \cup B) \cup C = A \cup (B \cup C)). Also, we have A∪A=A∪∅=∅∪A=A \cup A = A \cup\empty=\empty \cup A = A.

Proof:

If x∈{a,b}x \in \{a,b\}, then x=ax=a or x=bx = b by axiom 3.5 and axiom 3.4, x∈{a}∪{b}x \in \{a\}\cup\{b\}. Then if x∈{a}∪{b}x\in \{a\}\cup\{b\}, we can get x=ax = a or x=bx = b, so x∈{a,b}x \in \{a,b\}. If x∈A∪Bx\in A \cup B, we divide into two cases. If x∈Ax \in A, then by axiom 3.5 x∈B∪Ax \in B \cup A. Similarly, we can prove the other direction.

3.1.14 Subset

Let A,BA, B be sets. We say that AA is a subset of BB, denoted A⊆BA \subseteq B, iff every element of AA is also an element of BB, i.e.,

x∈A⟹x∈Bx\in A\Longrightarrow x\in B

We say that AA is a proper subset of BB, denoted A⊊BA \subsetneq B, if A⊆BA \subseteq B and A≠BA \ne B.

3.1.17 Sets are partially ordered by set inclusion

Let A,B,CA, B,C be sets. If A⊆BA \subseteq B and B⊆CB \subseteq C then A⊆CA \subseteq C. If A⊆BA \subseteq B and B⊆AB \subseteq A, then A=BA = B. Finally, if A⊊BA \subsetneq B and B⊊CB \subsetneq C then A⊊CA \subsetneq C.

Axiom 3.6 (Axiom of specification)

Let AA be a set, and for each x∈Ax \in A, let P(x)P(x) be a property pertaining to xx (i.e., for each x∈A,P(x)x \in A, P(x) is either a true statement or a false statement). Then there exists a set, called {x∈A:P(x) is true}\{x \in A : P(x) \text{ is true}\} (or simply x∈A:P(x){x \in A : P(x)} for short), whose elements are precisely the elements xx in AA for which P(x)P(x) is true. In other words, for any object yy,

y∈{x∈A:P(x) is true}⟺(y∈A and P(y) is true)y \in \{x \in A : P(x) \text{ is true}\}\Longleftrightarrow (y \in A \text{ and } P(y) \text{ is true})

This axiom is also known as the axiom of separation.

3.1.22 Intersections

The intersection S1∩S2S_1 \cap S_2 of two sets is defined to be the set

S1∩S2:={x∈S1:x∈S2}S_1 \cap S_2 := \{x\in S_1:x\in S_2\}

3.1.26 Difference sets

Given two sets AA and BB, we define the set A−BA − B or A\BA \backslash B to be the set AA with any elements of BB removed:

A\B:={x∈A:x∉B}A\backslash B:= \{x\in A : x\notin B\}

3.1.27 (Sets form a boolean algebra)

Let A,B,CA, B,C be sets, and let XX be a set containing A,B,CA, B,C as subsets.

(a) (Minimal element) A∪∅=AA\cup \empty = A and A∩∅=∅A\cap \empty = \empty

(b) (Maximal element) We have A∪X=XA \cup X = X and A∩X=AA \cap X = A.

(c) (Identity) We have A∩A=AA \cap A = A and A∪A=AA \cup A = A.

(d) (Commutativity) We have A∪B=B∪AA \cup B = B \cup A and A∩B=B∩AA \cap B = B \cap A.

(e) (Associativity) We have (A∪B)∪C=A∪(B∪C)(A \cup B) \cup C = A \cup (B \cup C) and (A∩B)∩C=A∩(B∩C)(A \cap B) \cap C = A \cap (B \cap C).

(f) (Distributivity) We have A∩(B∪C)=(A∩B)∪(A∩C)A \cap (B \cup C) = (A \cap B) \cup (A \cap C) and A∪(B∩C)=(A∪B)∩(A∪C)A \cup (B \cap C) = (A \cup B) \cap (A \cup C).

(g) (Partition) We have A∪(X\A)=XA \cup (X\backslash A) = X and A∩(X\A)=∅A \cap (X\backslash A) = \empty.

(h) (De Morgan laws) We have X\(A∪B)=(X\A)∩(X\B)X\backslash (A \cup B) = (X\backslash A) \cap (X\backslash B) and X\(A∩B)=(X\A)∪(X\B) X\backslash (A \cap B) = (X\backslash A) \cup (X\backslash B).

Proof:

(f) Suppose y∈A∩(B∪C)y \in A \cap (B\cup C). This implies y ∈Ay\ \in A and y∈By \in B or y∈Cy \in C. We divide into two case. If y∈Ay \in A and y∈By \in B, then y∈(A∩B)y \in (A \cap B). So y∈(A∩B)∪(A∩C)y \in (A \cap B) \cup (A \cap C). Similarly, if y∈Ay \in A and y∈Cy \in C, then y∈∈(A∩B)∪(A∩C)y \in \in (A \cap B) \cup (A \cap C). Overall, (A∪B)∪C⊆A∪(B∪C)(A \cup B) \cup C \subseteq A \cup (B \cup C).

Suppose x∈(A∩B)∪(A∩C)x \in (A \cap B) \cup (A \cap C). In the same way, if x∈A∩Bx \in A \cap B which means x∈Ax \in A and x∈Bx \in B. And thus x∈A∩(B∪C)x \in A \cap (B \cup C). And if x∈A∩Bx \in A \cap B, also we have x∈A∩(B∪C)x \in A \cap (B \cup C). Therefore (A∪B)∪C⊇A∪(B∪C)(A \cup B) \cup C \supseteq A \cup (B \cup C).

Finally by 3.1.17, we complete the proof.

(h) Suppose x∈X\(A∪B)x \in X \backslash(A\cup B) which means x∈Xx \in X and x∉Ax \notin A and x∉Bx\notin B. And y∈(X\A)∩(X\B)y \in (X\backslash A) \cap (X\backslash B) which means y∈X\Ay \in X \backslash A and y∈X\By \in X \backslash B. By the definition of difference sets, this means y∈Xy \in X and y∉Ay \notin A and y∉By \notin B. And this implies the equation is true.

Axiom 3.7 (Replacement)

Let AA be a set. For any object x∈Ax\in A, and any object yy, suppose we have a statement P(x,y)P(x,y) pertaining to xx and yy, such that for each x∈Ax ∈ A there is at most one y for which P(x,y)P(x, y) is true. Then there exists a set {y:P(x,y) is true for some x∈A}\{y : P(x, y)\text{ is true for some } x ∈ A\}, such that for any object zz,

z∈{y:P(x,y) is true for some x∈A}⟺P(x,y) is true for some x∈Az\in \{y :P(x, y) \text { is true for some } x \in A\}\Longleftrightarrow P(x,y) \text{ is true for some } x\in A

Axiom 3.8 (Infinity)

There exists a set NN, whose elements are called natural numbers, as well as an object 00 in NN, and an object n++n++ assigned to every natural number n∈Nn ∈ N, such that the Peano axioms (Axioms 2.1–2.5) hold.

3.2 Russell’s Paradox (Optional)

To be read.

3.3 Functions

3.3.1 Functions

Let X,YX, Y be sets, and let P(x,y)P(x, y) be a property pertaining to an object x∈Xx ∈ X and an object y∈Yy ∈ Y , such that for every x∈Xx ∈ X, there is exactly one y∈Yy ∈ Y for which P(x,y)P(x, y) is true (this is sometimes known as the vertical line test). Then we define the function f:X→Yf : X → Y defined by PP on the domain XX and codomain to be the object which, given any input x∈Xx ∈ X, assigns an output f(x)∈Yf (x) ∈ Y , defined to be the unique object f(x)∈Yf (x) ∈ Y for which P(x,f(x))P(x, f (x)) is true. Thus, for any x∈Xx ∈ X and y∈Yy ∈ Y ,

f(x)=y⟺P(x,y) is truef(x) = y \Longleftrightarrow P(x, y) \text{ is true}

Functions are also referred to as maps or transformations, depending on the context.

3.3.8 Equality of functions

Two functions f:X→Y,g:X′→Y′f : X → Y , g : X' → Y' are said to be equal if their domains and codomains agree (i.e., X=X′X = X' and Y=Y′Y = Y') and furthermore that f(x)=g(x)f (x) = g(x) for all x∈Xx ∈ X.

3.3.13 Composition

3.3.15 Composition is associative

3.3.17 One-to-one (injective) functions

3.3.20 Onto (surjective) functions

3.3.23 Bijective functions

Exercise 3.3.2

Let f:X→Yf : X → Y and g:Y→Zg : Y → Z be functions. Show that if ff and gg are both injective, then so is g∘fg \circ f ; similarly, show that if ff and gg are both surjective, then so is g∘fg \circ f .

3.4 Images and Inverse Images

3.4.1 Images of sets

If f:X→Yf : X → Y is a function from XX to YY , and SS is a subset of XX, we define f(S)f(S) to be the set

f(S):={f(x):x∈S}f(S):=\{f(x):x\in S\}

3.4.5 Inverse images

If UU is a subset of YY , we define the set f−1(U)f^{-1}(U) to be the set

f−1(U):={x∈X:f(x)∈U}f^{-1}(U):=\{x\in X :f(x) \in U\}

Axiom 3.11 Power set axiom

Let XX and YY be sets. Then there exists a set, denoted YXY^X, which consists of all the functions from XX to YY , thus

f∈YX⟺(f is a funciton with domain X and codomain Y)f \in Y^X\Longleftrightarrow (f \text{ is a funciton with domain }X \text{ and codomain }Y )

Lemma 3.4.10

Let XX be a set. Then the set

{Y:Y is a subset of X}\{Y:Y \text{ is a subset of }X\}

is a set.

Proof:

By Axiom 3.11, we can construct some functions f:X→{0,1}f: X \rarr \{0,1\}, Then the set {0,1}X={f:X→{0,1}}\{0,1\}^X =\{f:X \rarr \{0,1\}\}

And by using Replacement Axiom, we can construct P(f,y)P(f,y) is that P(f,y)P(f,y) is true iff yy is a set, and y={z:f(z)=1,}y = \{z:f(z)=1,\}. Done.

Axiom 3.12 Union

Let AA be a set, all of whose elements are themselves sets. Then there exists a set ⋃A\bigcup A whose elements are precisely those objects which are elements of the elements of AA, thus for all objects xx

x∈⋃A⟺(x∈S for some S∈A)x\in \bigcup A\Longleftrightarrow(x\in S \text{ for some }S\in A)

3.5 Cartesian Products

3.5.1 Ordered pair

3.5.4 Cartesian product

3.5.5 Finite choice

In other words, if each XiX_i is non-empty, then the set ∏1≤i≤nXi\prod_{1≤i≤n} X_i is also non-empty.

Use the induction on nn.

Remark 3.5.12

It is intuitively plausible that this lemma should be extended to allow for an infinite number of choices, but this cannot be done automatically; it requires an additional axiom, the axiom of choice. See Section 8.4.

3.6 Cardinality of Sets

3.6.1 Equal cardinality

We say that two sets XX and YY have equal cardinality iff there exists a bijection f:X→Yf : X → Y from XX to YY .

3.6.4

The cardinality is self-reflexive and transitive.

Definition 3.6.5

Let nn be a natural number. A set XX is said to have cardinality nn, iff it has equal cardinality with {i∈N:1≤i≤n}\{i ∈ N : 1 ≤ i ≤ n\}. We also say that XX has n elements iff it has cardinality nn.

3.6.8 Uniqueness of cardinality

Let XX be a set with some cardinality nn. Then XX cannot have any other cardinality, i.e., XX cannot have cardinality mm for any m≠nm \ne n.

Proof:

Use Lemma 3.6.9 and induct on nn.

Lemma 3.6.9

Suppose that n≥1n ≥ 1, and XX has cardinality nn. Then XX is non-empty, and if xx is any element of XX, then the set X−{x}X − \{x\} (i.e., XX with the element xx removed) has cardinality n−1n − 1.

Easy to prove.

3.6.10 Finite sets

A set is finite iff it has cardinality nn for some natural number nn; otherwise, the set is called infinite. If XX is a finite set, we use #(X)\#(X) to denote the cardinality of XX.

Theorem 3.6.12

The set of natural numbers N\N is infinite

3.6.14 Cardinal arithmetic


← Previous · Next →

← Back to ArchiveBack to top ↑

Comments

No approved comments yet.

Your display name and plain-text comment become public only after owner approval. No account or email is required.