2 - Sets, Functions, Cardinality

A collection of object is called a set. We will denote sets by capital letters A,B

When an object a is in set A, we write aA, otherwise, we write aA. let A,B he sets. If every aA is also in B, we say that A is a subset of B, and write AB. Vacuously, the empty set ϕ is a subset of any set.
If AB and AB,Aϕ, then A is a proper subset of B, written AB.

If P(x) is a predicate, then there is a set S that collects all objects x for which P(x) is true. We write S={x:P(x)}.

The set of elements that belong to both A and B, is called the intersection of A and B, dented AB.

the set of elements that belong to A or B, is called the union of A and B, denoted AB.

Properties of union and intersection

(i) identities:- AA=A, AA=A.
(ii) interaction with the empty set

Aϕ=ϕ, Aϕ=A

(iii) Symmetry:- AB=BA, AB=BA.
(iv) Associativity:- A(BC)=(AB)C, A(BC)=(AB)C .

(y) Distribution:- A(BC)=(AB)(AC)

(Vi) Existence of Arbitrary unions and intersections. let J be an index set (Probably infinite at any Cardinal), then αJAα and αJAα exist.

Difference of sets

if A and B an sets, AB is the set that contains all objects in A, which are not in B, written AB={xAxB}.

Properties of difference

(i)) AB=ϕ, then AB=A,BA=B. if A=B=A, then AB=ϕ.
(ii) AB=ϕ if and andy if AB.
(ii) AC=AB if and and if AC=AB.
(iv) AA=ϕ,Aϕ=A.

 De-morgan laws: A(BC)=(AB)(AC).A(BC)=(AB)(AC).
Contesian Products

let S1,S2Sn he sets, Xi=1nSi is the set of ordered n-tuples (x1,xn) with xiSi.

A property of cartesian products

Let A,CS, and B,DT. Then,$$(A \times B) \cap(C \times D)=(A \cap C) \times(B \cap D)$$

proof:

Let (x,y)(A×B)(C×D). Then, (x,y)(A×B). hence xA and yB. Similarly, (x,y)(C×D) hence xC and yD. Therefore, xAC and yBD.


Functions

Functions, Image, Pre-image

f:XY is a function if for each xX, we associate exactly one fxY.

Let AX, then the image of A under f is fA={yY:y=fx, xA}.
Let BY, then the pre-image of B under f is f1B={xX:fx=y, yB}.
f is injective if the pre-image of any singleton yY has at most one element.
f is surjective if fX=Y. f is bijective if it is both injective and surjective, in which case, f1 exists, and is a bijection from Y to X.

Interaction of images and pre-images of functions with set operators

For the following discussion, let f:XY, A,BX, C,DY.

  1. f(AB)=f(A)f(B), f1(CD)=f1(C)f1(D)
  2. f(AB)=f(A)f(B) only if f is injective.
  3. f(AB)=f(A)f(B) only if f is injective.
  4. f1(CD)=f1(C)f1(D), f1(CD)=f1(C)f1(D).

proof: Left for the reader.


Cardinality

Set isomorphisms

A set A is isomorphic to set B, denoted AB, if there exists a bijection f:AB, in which case we say that A and B have the same cardinality, sometimes written |A|=|B|. The described relation is an equivalence, meaning that sets can be partitioned into classes, all of whose cardinality is the same.

Finite sets, countable sets, uncountable sets

let Jn={1,2,n}, where nN. A set X is finite if XJn, for some nN
A set X is countable, if XN, otherwise it is uncountable

A set, and its power set

let X be any set, then X2X where 2X is the power set of X

proof: Suppose there exists a bijection f: X \rightarrow 2{#X}. collect all xX such that x is mapped to a subset of X that doesn't contain x. A={xX:xf(x)}, A could be empty too. Then, notice that A is a subset of X, and since f is surjective, we have aX for which f(a)=A. if aA, then af(a)=A, a contradiction. if aA, then af(a), hence aA, also a contradiction.


The reals are uncountable

There exists no bijection f:NR.

proof: Suppose There exists a bijection f:NR, write the real numbers, as infinite decimal digits, for example 4.999999=5.000000 pick the one with infinite zeros. write f(i)=xi1,xi2,..... then make K=x¯11,x¯22, Here, x¯iixii. Then KR, but Kf(N) . Contradicting the Surjectivity of the map f.


Every Infinite subset of a countable set is countable

Let A be a countable set, E an infinite subset of A. Then, E is countable.

proof: Use the bijection from NA, to index A as a1,a2,. Now, consider the following algorithm, find eE with the smallest index in A, that is e=aj for the smallest j. set e=e1, delete e from E, and repeat this process (use a proof by induction), to show that E is indexable.


The union of countable sets, is countable

let

proof: