sets_functions_and_relations
sets_functions_and_relations
H.C
10 novembre 2024
Axiom 1.1 (Axiom of extension)Let A and B be sets. Then, A = B if and only if for all
x, (x ∈ A if and only if x ∈ B).
Thus, two sets A and B are equal if they have same members. Two equal sets are treated as same.
1
Lecture Notes Algèbre 1
1.1 Inclusion
Definition 1.1.1 Let A and B be sets. We say that A is a subset of B (A is contained in B
or B contains A) if every member of A is a member of B. The statement Ais a subset of B is
the same as the statement : For all x(if x ∈ A, then x ∈ B). The notation A ⊆ B stands for the
statement A is a subset of B. Thus, A = B if and only if A ⊆ B and B ⊆ A. The negation of
A ⊆ B is denoted by A * B it stands for the statement : There exists x/ x ∈ A and x ∈ / B.
1. Every set is a subset of itself, because : For all x(if x ∈ A, then x ∈ A) is a tautology
(always a true statement).
2. By convention, for any set E we have ∅ ⊂ E.
Cardinality of ∅ = |∅| = 0.
3. If A ⊆ B and A 6= B, then we say that A is a proper subset of B. The notation A ⊂ B
stands for the statement A is a proper subset of B.
P(E) = {X, X ⊆ E)
1.3 Partition
We call partition of a set any family F ⊂ E such that :
1. The elements of F are disjoint two by two (see example 1.4.1).
2. F is an overlay of E.
Page 2
Lecture Notes Algèbre 1
{A
E = {x ∈ E| x ∈
/ A} .
We also note E \ A and just {A if there is no ambiguity (and sometimes also Ac orA).
A − B = {x ∈ A/ x ∈
/ B} .
Clearly, A − B is a subset of A.
Page 3
Lecture Notes Algèbre 1
1.7 Union
For A, B ⊂ E. The set A ∪ B = {x ∈ E/ x ∈ A or x ∈ B} is called the union of A and
B. Thus, x ∈ A ∪ B if and only if x ∈ A or x ∈ B.
The "or" is not exclusive : x can belong to A and B at the same time.
A \ B = [−3, 0[ ∪ ]1, 3] .
B \ A = ∅.
3. We call symmetric difference of A and B, and we denote by A∆B the set defined by :
A∆B = (A ∪ B) \ (A ∩ B) = (A \ B) ∪ (B \ A).
We clearly see that the symmetric difference of the sets is not commutative.
Page 4
Lecture Notes Algèbre 1
E × F = {(x, y)/ x ∈ E ∧ y ∈ F }
2 Function
Definition 2.0.1 A function f : E → F between sets E, F assigns to each x ∈ E a unique
element f (x) ∈ F . Functions are also called maps, mappings, or transformations.
A map or function of E in F associates with every element of E a unique element of F
denoted f (x).
If f is a map from E to F , and (x, y) an element of E × F verifying the relation f , we write
f : E→ F
x 7→ y
Example 2.0.1 The identity function idE : E → E on a set E is the function idE : x 7→ x
that maps every element to itself.
Let E = R+ and F = R.
We consider the relation f1 given by :
(x, y) ∈ E × F vérifiesf1 ⇔ y 2 = x
√ √
For given x there exists y1 = x and y2 = − x, then f is not an application.
1. The element f (x) ∈ F is called the image of element x ∈ E through application f .
2. E on which f is defined is called the domain of f and the set F in which it takes its
values is called the range. f is an application defined on E with values in F.
3. The graphic of the application (function) f : E → F denoted by Gf :
Gf = {(x, f (x)) ∈ (E × F ) /x ∈ E} .
4. The equality of applications. Two applications f, g : E → F are called equal if and
only if they have the same domain, the same codomain, the equality f = g is equivalent
to say : for all x ∈ E, f (x) = g(x). We then note f = g.
A function is onto if its range is all of F ; that is, if for every y ∈ F there exists x ∈ E such
that y = f (x).
A function is one-to-one if it maps distinct elements of E to distinct elements of F ; that is,
if x1 , x2 ∈ E and x1 6= x2 implies that f (x1 ) 6= f (x2 ).
An onto function is also called a surjection, a one-to-one function an injection, and a one-
to-one, onto function a bijection.
Page 5
Lecture Notes Algèbre 1
f : R → R+ g : R− → R
, .
x 7→ x2 x 7→ x2
1. Let x1 , x2 ∈ R such that f (x1 ) = f (x2 ), then x21 = x22 and so |x1 | = |x2 |.
For x1 = −2 6= x2 = 2, we have f (−2) = f (2) = 4, then f is not an injection.
√
2. For all y ∈ R+ , ∃x ∈ R, x = y, such that y = f (x) = x2 .
Thus, the map f is a surjection.
3. Let x1 , x2 ∈ R− such that g(x1 ) = g(x2 ), then x21 = x22 and therefore |x1 | = |x2 |, i.e.
−x1 = −x2 and therefore x1 = x2 . Thus g is an injection.
4. For y = −1, the equation −1 = g(x) = x2 has no solution. Thus, the map g is not a
surjection.
2.0.1 Bijection
Definition 2.0.3 f is bijective if it is injective and surjective. This is equivalent to :
For all y ∈ F there exists a unique x ∈ E such that y = f (x). In other words :
∀y ∈ F, ∃!x ∈ E/ y = f (x)
The existence of x comes from surjectivity and the uniqueness of injectivity. In other words,
every element of F has a unique antecedent by f .
The order of application of the functions in a composition is crucial and is read from right to
left.
The composition g ◦ f can only be defined if the domain of g includes the range of f , and the
existence of g ◦ f does not imply that f ◦ g even makes sense.
Example 2.0.3 Let X be the set of students in a class and f : X → N the function that maps
a student to her age. Let g : N → N be the function that adds up the digits in a number e.g.,
g(1729) = 19. If x ∈ X is 23 years old, then (g ◦ f )(x) = 5, but (f ◦ g)(x) makes no sense,
since students in the class are not natural numbers. Even if both g ◦ f and f ◦ g are defined,
they are, in general, different functions.
Let f be a map from E to F . Then f is bijective if and only if there exists a unique map g
from F to E such that g ◦ f = IE and f ◦ g = IF . Further, then g = f −1 . The application g is
called the reciprocal bijection of f
Page 6
Lecture Notes Algèbre 1
Example 2.0.4 f : R → ]0, +∞[ defined by f (x) = exp(x) is bijective, its reciprocal bijection
is g : ]0, +∞[ → R defined by g(y) = ln(y). We have exp (ln(y)) = y, for all y ∈ ]0, +∞[ and
ln (exp(x)) = x, for all x ∈ R.
f (A) = {f (x)/ x ∈ A} .
Page 7
Lecture Notes Algèbre 1
Lemme 2.1.1 Let f be a map from E to F . Let A1 and A2 be subsets of E, Let B1 and B2 be
subsets of F . Then
A1 ⊂ A2 ⇒ f (A1 ) ⊂ f (A2 ) ,
B1 ⊂ B2 ⇒ f −1 (B1 ) ⊂ f −1 (B2 ) .
f : R∗ → R
1
x 7−→ 2+ x2
.
1. Consider A = [−1, 0[, then the image of A under the map f is :
1
f (A) = 2 + 2 / x ∈ [−1, 0[ = [3, +∞[ .
x
1
Indeed, for −1 ≤ x < 0 we have 2 + x2
≥ 3.
2. Consider B = [3, +∞[, then the inverse image of B under f is :
−1 ∗ 1
f (B) = x ∈ R / 2 + 2 ∈ [3, +∞[ = [−1, 0[ ∪ ]0, 1] .
x
1 1
Indeed, for 2 + x2
≥ 3 we have ≥ 1 which leads to x2 ≤ 1 and so x ∈ [−1, 0[ ∪ ]0, 1] .
x2
Example 2.1.3 We consider the map f : R → R given by :
f (x) = x2 ,
Let A = [−1, 4] .
1. The image of A under f :
Page 8
Lecture Notes Algèbre 1
3 Binary relations
Definition 3.0.1 A binary relation R on sets E and F is a definite relation between elements
of E and elements of F . We write xRy if x ∈ E and y ∈ F are related. If E = F , then we
call R a relation on E.
Example 3.0.1 Suppose that S is a set of students enrolled in a university and B is a set of
books in a library. We might define a relation R on S and B by :
s ∈ S has read b ∈ B. In that case, sRb if and only if s has read b. Another, probably inequivalent
relation is : s ∈ S has checked b ∈ B out of the library.
For sets, it doesn’t matter how a relation is defined, only what elements are related.
Let us give some examples to illustrate this definition.
Example 3.0.3 Let P (E) be the set of all parts of a set E. We define the relation R in P (E)
by :
∀A, B ∈ P (E), ARB ⇔ A ⊂ B,
∀A ∈ P (E), ∅ ⊂ A, then ∀A ∈ P (E), ∅RA.
Page 9
Lecture Notes Algèbre 1
Definition 3.0.2 The graph GrR of a relation R on E and F is the subset of E × F defined
by :
GrR = {(x, y) ∈ E × F/ xRy}
This graph contains all of the information about which elements are related.
xRy ⇔ x2 + y 2 < 1
Example 3.2.1 In the plane P, the relation "...is parallel..." is an equivalence relation.
x = Rx = {y ∈ E/ xRy}
is called the equivalence class of x modulo R (or in relation to R), and the set
E/R = {x/ x ∈ E} is called a factor set (or quotient set) of E through R.
The properties of the equivalence classes. Let R be an equivalence relation on set E and
x, y ∈ E. Then, the following affirmations have effect :
1. x ∈ Rx ,
2. Rx = Ry ⇔ xRy ⇔ y ∈ Rx
3. Rx 6= Ry ⇔ Rx ∩ Rx = ∅,
4. tx∈E Rx = E.
Partitions on a set. Let E be a non-empty set. A family of subsets {Ei / i ∈ I} of E is
called a partition on E (or of E), if the following conditions are met :
1. i ∈ I ⇒ Ei 6= ∅,
Page 10
Lecture Notes Algèbre 1
2. Ei 6= Ej ⇒ Ei ∩ Ej = ∅,
3. ti∈I Ei = E.
Théorème 3.2.1 For any equivalence relation R on set E, the factor set E/R = {Rx / x ∈ E}
is a partition of E.
Example 3.2.2 We define on set E = Z the binary relation R according to the equivalence
where n ∈ N∗ , n fixed.
1. Prove that R is an equivalence relation on Z.
2. Determine the structure of the classes of equivalence.
3. Form the factor set Z/R.
Application : n = 3.
We have :
1. Reflexivity : ∀a ∈ Z, ∃k = 0 ∈ Z : a = b + kn = a + 0n, so aRa.
2. Symmetry : ∀a, b ∈ Z, aRb ⇔ ∃k ∈ Z : a = b + kn so ∃(−k) ∈ Z :
b = a + (−k)n and so bRa.
3. Transitivity : ∀a, b, c ∈ Z, (aRb ⇔ ∃k1 ∈ Z : a = b + k1 n) ∧ (bRc ⇔ ∃k2 ∈ Z : b=
c + k2 n) ⇒ a = b + k1 n = (c + k2 n) + k1 n = c + (k2 + k1 )n = c + k3 n so aRc.
From 1 - 3 it follows that R is an equivalence relation on Z.
Let’s determine the class of equivalence of an element x ∈ E :
The class of equivalence of x ∈ Z will be denoted Rx or x and given by
x = {y ∈ Z/ yRx}
x = {y ∈ Z/ y = x + kn, k ∈ Z}
x = {x + kn ∈ Z/, k ∈ Z}
In the case n = 3, let us give the classes of equivalence of x = 0, x = 1and x = 2 , their
respective classes of equivalence are 0, 1and 2 and are given by :
0 = {3k/ k ∈ Z},
1 = {3k + 1/ k ∈ Z},
2 = {3k + 2/ k ∈ Z}.
Definition 3.2.2 The relation R defined above is called a congruency relation modulo n
on Z, and class a = Ra is called a remainder class modulo n and its elements are called
the representatives of the class.
The usual notation :
aRb ⇔ a ≡ b(mode n)
(a is congruent with b modulo n),and
E/R = Z/nZ.
Then
E/R = Z/nZ = 0, 1, · · · , n − 1 .
Page 11
Lecture Notes Algèbre 1
With this notation, the conditions that "≤" is an order relation on the set E are written :
1. reflexivity x ∈ E, x ≤ x;
2. asymmetry (x ≤ y ∧ y ≤ x) ⇒ x = y;
3. transitivity (x ≤ y ∧ y ≤ z) ⇒ x ≤ z.
The pair (E, R), where E is a set and R an order relation, is called an ordered set.
Definition 3.3.2 Let (E, R) be an ordered set. The relationship R is called a total order
relation if any two elements of E are comparable i.e. For all x, y ∈ E we have either xRy, or
yRx :
∀x, y ∈ E, (xRy ∨ yRx)
We also say that E is totally ordered by the relation R. Otherwise, the order is said to be
partial.
It is easy to show that R is an order relation. the order is not total order.
Indeed, for (x, y) = (1, 2) and (x0 , y 0 ) = (3, 1), we have 1 ≤ 3 and 2 1 therefore
(1, 2) is not related to (3, 1), similarly we find (3, 1) is not related to (1, 2).
Page 12