Lecture Slides 01
Lecture Slides 01
Lecture Slides 01
Sets
Mathematical induction
Function/mapping
Sets
Historical definition of sets by Georg Cantor 1895
A=B
Example
{1, 3} ⊂ {1, 2, 3, 4}.
The power set
Definition (power set of a set)
Let X be any set. The set of all subsets of X is called the
power set of X and is denoted by P (X ).
That is we define
P (X ) = {A : A ⊂ X } .
Example
Remark
If M is a set the number of elements of this set is denoted by
|M|.
For example:
I |{1, 3}| = 2,
I |{1, 2, 5}| = 3.
Theorem
Let M be a finite set.
Number of elements of the power set |P (M)| = 2|M| .
0! = 1, (n + 1)! = n! (n + 1) .
1
X n+1
X n
X
ak = a1 , ak := an+1 + ak ,
k=1 k=1 k=1
Y1 n+1
Y n
Y
ak = a1 , ak := an+1 · ak .
k=1 k=1 k=1
Theorem
N ∈M ⇒N +1∈M
A × B = {(a, b) : a ∈ A, b ∈ B}
Example
Cartesian product of A = {1, 3}, B = {1, 2, 5},
(1, 1) , (1, 2) , (1, 5) ,
A×B = .
(3, 1) , (3, 2) , (3, 5)
A ∪ B = {x ∈ H : x ∈ A or x ∈ B}.
A ∩ B = {x ∈ H : x ∈ A and x ∈ B}.
A \ B = {x ∈ H : x ∈ A and x∈
/ B}.
Remark
A \ B = A \ (A ∩ B) .
Example
I open intervals:
I closed intervals:
[a, b] = {x ∈ R : a ≤ x ≤ b} ,
I half-open intervals:
(a, b] = {x ∈ R : a < x ≤ b} or
[a, b) = {x ∈ R : a ≤ x < b}.
Commutativity, associativity, & distributivity
The union and intersection are commutative operations (i. e.
ordering does not matter)
A ∪ B = B ∪ A and A ∩ B = B ∩ A
(A ∪ B) ∪ C = A ∪ (B ∪ C) and (A ∩ B) ∩ C = A ∩ (B ∩ C).
A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C)
A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C) .
Sets
Analogue to addition and multiplication of real numbers:
I a+b =b+a and a · b = b · a,
I (a + b) + c = a + (b + c) and (a · b) · c = a · (b · c),
I a · (b + c) = (a · b) + (a · c).
C \ (A ∪ B) = (C \ A) ∩ (C \ B) .
C \ (A ∩ B) = (C \ A) ∪ (C \ B) .
Important sets
Example
f1 : R → R, f1 : x 7→ x 2 , 7 x 2.
f2 : N → R, f2 : x →
Is there any difference between f1 and f2 ? Yes:
I the functions f1 and f2 are different (although they
“do” the same with natural numbers),
I f2 can handle only natural numbers!
Examples of functions
Definition (identity)
Let X be a set. The function
X →X
id X :
x 7→ x
Remark
Note that there can be elements in the co-domain Y such
that there is no x in the domain X with f (x) = y!
Example
f : R → R, f : x 7→ x 2 . Let now A = N.
Determine f (A) = f (N) = x 2 : x ∈ N .
Pre-image
Let f :X →Y be a function.
I f is called injective if no two elements of X are
mapped to the same element of Y i. e. for all
x1 , x2 ∈ X with x1 6= x2 it holds that
f (x1 ) 6= f (x2 ) .
Gf = {(x, f (x)) : x ∈ A} .
Example
f : R → R, x 7→ f (x) = x 2 ,
n o
Gf = x, x 2 : x ∈ R .
Remark
Gf ⊂ A × B. Actually B can be shrunk to the range of f .