Chapter 2 Sets and Maps
Chapter 2 Sets and Maps
2.1 Set
Definition 2.1. A set is a collection of objects. These objects are called the elements of the
set.
Definition 2.2. A set is said to be empty when it contains no elements and is denoted as ∅ or
{}.
Definition 2.3. We call the cardinal of a set E, the number of elements in E denoted by
card(E) or |E|.
Remark 2.1. The concept of cardinal does not apply to infinite sets, such as N, Z, Q and R.
3. If A = ∅, then card(A) = 0.
Definition 2.4. The power set of E, denoted as P(E)), is the set of all subsets that can formed
from E, and we have card(P(E)) = 2card(E) .
2.2. The Relationships between sets
Example 2.3. Let E = {1, 2}, the set P(E)) = {∅, {1}, {2}, E} and card(P(E)) = 22 = 4.
2.2.1 Inclusion
Let A and B be two subsets of a set E. We say that A is included in B (A is a subset of B),
and denote this as A ⊂ B, if all the elements of a set A are elements of set B.
A ⊂ B ⇐⇒ (∀x ∈ E, x ∈ A =⇒ x ∈ B) .
N ⊂ Z ⊂ Q ⊂ R.
1. A ̸⊂ B ⇐⇒ (∃x ∈ E : x ∈ A ∧ x ∈
/ B).
2. (A ⊂ B ∧ B ⊂ C) =⇒ (A ⊂ C).
2.2.2 Equality
Let’s consider two sets, A and B which are subsets of E. We say that A and B are equal,
denoted as (A = B) ⇐⇒ [(A ⊂ B) ∧ (B ⊂ A)], when (∀x ∈ A ⇐⇒ x ∈ B). Otherwise, we
state that they are distinct, also noted as A ̸= B.
2.2.3 Union
Definition 2.5. Let’s consider two sets, A and B which are subsets of E. The union of A and
B is the set of elements that are in A or B, and is denoted by :
2. Sets and Maps
A ∪ B = {x ∈ E : x ∈ A ∨ x ∈ B}.
(x ∈ A ∪ B) ⇐⇒ (x ∈ A ∨ x ∈ B).
A ∪ B = {1, 3, 5, x, y}.
Remark 2.3. (x ∈
/ A ∪ B) ⇐⇒ (x ∈
/ A∧x∈
/ B).
2.2.4 Intersection
Definition 2.6. Let’s consider two sets, A and B which are subsets of E. The intersection
of A and B is the set of elements that are both in A and in B, denoted by A ∩ B.
A ∩ B = {x ∈ E : x ∈ A ∧ x ∈ B}.
(x ∈ A ∩ B) ⇐⇒ (x ∈ A ∧ x ∈ B).
Remark 2.4. (x ∈
/ A ∩ B) ⇐⇒ (x ∈
/ A∨x∈
/ B)
A ∩ B = {1}.
1. A ⊂ A ∪ B, B ⊂ A ∪ B.
2. A ∩ B ⊂ A, A ∩ B ⊂ B.
3. A ⊂ B ⇒ A ∪ B = B.
4. A ⊂ B ⇒ A ∩ B = A.
5. A ∩ B ⊂ A ∪ B.
6. A ∩ A = A, A ∪ A = A.
2.2. The Relationships between sets
7. ∅ ⊂ A, ∅ ∩ A = ∅, ∅ ∪ A = A.
8. A ∩ B = B ∩ A (commutativity of intersection).
9. A ∪ B = B ∪ A. (commutativity of union).
2.2.5 Complement
Ac = {x ∈ E/x ∈
/ A}.
Remark 2.5. 1. x ∈ Ac ⇐⇒ x ∈
/ A.
2. A ∪ Ac = E.
3. A ∩ Ac = ∅.
Example 2.7. Let E = {1, 2, 3, 5} and A = {3, 5}, then Ac = {1, 2}, and card(Ac ) = card(E)−
card(A) = 2.
2. Sets and Maps
Definition 2.8. Let A and B be two sets in E. The set difference of A and B is the set of
elements in A that are not in B, denoted as A \ B or A − B and read as A minus B
A \ B = A ∩ B c = {x ∈ E : x ∈ A and x ∈
/ B}.
Proposition 2.1. 1. A \ B = ∅ ⇔ A ⊂ B.
Definition 2.9. Let E be a non-empty set and A, B ⊂ E, the symmetric difference between
two sets, A and B, is the set of elements that belong to A \ B or B \ A noted A△B
A△B = (A \ B) ∪ (B \ A)
= (A ∪ B) \ (B ∩ A)
= (A ∩ B c ) ∪ (Ac ∩ B)
x ∈ A△B ⇐⇒ {x ∈ (A \ B) ∨ x ∈ (B \ A)}.
2. A△B = ∅ ⇔ (A ∪ B) \ (A ∩ B) = ∅ ⇔ A = B.
1. (Ac )c = A.
4. (A ⊂ B) ⇐⇒ (B c ⊂ Ac ).
5. A \ A = ∅.
6. A \ ∅ = A.
2.2. The Relationships between sets
Definition 2.10. Let A, B be two sets. The cartesian product of A and B is the set of pairs
such that a ∈ A and b ∈ B. This set will be denoted by A × B
A × B = {(a, b) / a ∈ A et b ∈ B}.
2. [0, 1] × R = {(x, y) | 0 ⩽ x ⩽ 1, y ∈ R}
A1 × A2 × . . . × An = {(a1 , a2 , . . . , an ) / ai ∈ Ai , i = 1, 2, . . . , n}.
n
The set A1 × A1 × . . . × A1 is also denoted as Ai and (a1 , a2 , . . . , an ) is called n-tuple
Q
i=1
of A1 × A1 × . . . × A1 .
2. If A1 = A2 = . . . = An , we denote
A1 × A1 × . . . × A1 = A × A × . . . × A = An .
1. • A ⊂ E and B ⊂ E.
• A ̸⊂ B because (3 ∈ A) ∧ (3 ∈
/ B).
• B ̸⊂ A because (9 ∈ B) ∧ (9 ∈
/ A).
2. • A ∩ B = {1, 2}.
• A ∪ B = {1, 2, 3, 9}.
3. • A \ B = {3}.
• B \ A = {9}.
4. A △ B = {3, 9}.
5. A × B = {(1, 1), (1, 2), (1, 9), (2, 1), (2, 2), (2, 9), (3, 1), (3, 2), (3, 9)}.
2. Sets and Maps
Definition 2.11. The number of elements in a finite set is called the cardinal of A. This
number is denoted by Card(A) or |A|.
2. If A = ∅, then Card(A) = 0.
Remark 2.7. The concepts of cardinality does not apply to infinite sets, for example N, Z, Q
et R.
Example 2.11. 1.
f : R −→ R
x 7−→ f (x) = x
f is an application
2.
g : N −→ N
n 7−→ g(n) = n − 1.
g is not an application
2.4. Direct and reciprocal (inverse) images
Γf = {(x; y) ∈ E × F / y = f (x)}.
id : E −→ E
x 7−→ id(x) = x
f (A) = {f (x) / x ∈ A} ⊂ F.
f −1 (B) = {x ∈ E / f (x) ∈ B} ⊂ E.
f : N −→ N
n 7−→ f (x) = 2n + 1
2. Sets and Maps
f −1 (B) = {x ∈ E / f (x) ∈ B}
= {x ∈ E / f (x) = 5}
= {2}.
3. A1 ⊂ A2 =⇒ f (A1 ) ⊂ f (A2 ).
4. A1 ⊂ f −1 (f (A1 )).
3. B1 ⊂ B2 =⇒ f −1 (B1 ) ⊂ f −1 (B2 ).
2.5 Injection
Definition 2.15. Let f : E −→ F be an application. We say that f is injective if every element
of F has at most one pre-image, i.e.,
Or
2.6. Surjection
Example 2.13. 1.
f : N −→ N
n 7−→ 2n + 1
f is injective because:
2.
g : R −→ R
x 7−→ 5x + 3
g is injective because:
2.6 Surjection
Definition 2.16. Let f : E −→ F be an application. We say that f is surjective if every
element of F at least he has a pre-image, i.e.,
∀y ∈ F, ∃x ∈ E : f (x) = y.
Example 2.14. 1.
f : N −→ N
n 7−→ 2n + 1
f is not surjective, indeed if we assume that it is surjective , that is
∀y ∈ N, ∃n ∈ N : f (n) = y =⇒ 2n + 1 = y
=⇒ n = y−1
2
̸∈ N contradiction .
2. Sets and Maps
2.
g : R −→ R
n 7−→ 5x + 3
g is surjective because:
∀y ∈ R, ∃x ∈ R : g(x) = y =⇒ 5x + 3 = y
=⇒ x = y−3
5
∈ R.
2.7 Bijection
Definition 2.17. Let f : E −→ F be an application. We say that f is bijective if it is both
surjective and injective,
∀y ∈ F, ∃! x ∈ E : f (x) = y.
Example 2.15. 1.
f : N −→ N
n 7−→ 2n + 1
f is not bijective because it is not surjective.
2. g is bijective.
f g
E→
− F →
− G
One can deduce an application from E to G, denoted as g ◦ f and called the composition of f
and g, by
(g ◦ f )−1 = f −1 ◦ g −1 .
Proof. 1. Let’s assume that f and g are injective, and let’s show that g ◦ f is injective.
(g ◦ f )(x1 ) = (g ◦ f )(x2 ) =⇒ x1 = x2 ,
then g ◦ f is injective.
Remark 2.9. When an application f is bijective, it means that the inverse application f −1
exists, and f −1 is also bijective from F to E and (f −1 )−1 = f .