You are on page 1of 44

Informática Teórica

Andrés A. Aristizábal P.
aaaristizabal@icesi.edu.co

Departamento de Matemáticas y Estadística

2019-1

1 / 24
Agenda

1 Proofs
Aims
Discussion and exercises

2 Equivalence relations
Presentation of next topic

2 / 24
Proofs Aims

Agenda

1 Proofs
Aims
Discussion and exercises

2 Equivalence relations
Presentation of next topic

3 / 24
Proofs Aims

Aims

Know and understand the different kind of proof techniques.


Be able to use any proof method to verify a property or theorem.

4 / 24
Proofs Discussion and exercises

Agenda

1 Proofs
Aims
Discussion and exercises

2 Equivalence relations
Presentation of next topic

5 / 24
Proofs Discussion and exercises

Discussion of the previous reading material

Presentation of concept maps

6 / 24
Proofs Discussion and exercises

Exercises

Exercise
Show that the square of an even number is an even number using a
direct proof.

7 / 24
Proofs Discussion and exercises

Ejercicios

Exercise
Show that the square of an even number is an even number using a
proof by contradiction.

8 / 24
Proofs Discussion and exercises

Ejercicios

Exercise
Use a direct proof to show that every odd integer is the difference of
two squares.

9 / 24
Proofs Discussion and exercises

Exercises

Exercise
Prove that if n is an integer and 3n + 2 is even, then n is even using:
a) a proof by contraposition.
b) a proof by contradiction.

10 / 24
Proofs Discussion and exercises

Exercises

Exercise
Prove or disprove that the product of two irrational numbers is
irrational.

11 / 24
Proofs Discussion and exercises

Exercises

Exercise
Prove or disprove that the product of two rational numbers is rational.

12 / 24
Proofs Discussion and exercises

Exercises

Exercise
Prove or disprove that the product of a nonzero rational number and an
irrational number is irrational.

13 / 24
Proofs Discussion and exercises

Exercises

Exercise
Prove that if x is rational and x 6= 0, then 1/x is rational.

14 / 24
Proofs Discussion and exercises

Exercises

Exercise
Prove that if n is a positive integer, then n is even if and only if 7n + 4 is
even.

15 / 24
Proofs Discussion and exercises

Exercises

Exercise
Prove that m2 = n2 if and only if m = n or m = −n

16 / 24
Equivalence relations Presentation of next topic

Agenda

1 Proofs
Aims
Discussion and exercises

2 Equivalence relations
Presentation of next topic

17 / 24
Equivalence relations Presentation of next topic

Equivalence relations

Definition
A relation R on a set A is called an equivalence relation if it is reflexive,
symmetric, and transitive.

18 / 24
Equivalence relations Presentation of next topic

Equivalence relations

Definition
A relation R on a set A is called an equivalence relation if it is reflexive,
symmetric, and transitive.

In order to understand the previous notion let us verify if the following


examples are equivalence relations or not.

18 / 24
Equivalence relations Presentation of next topic

Equivalence relations

Definition
A relation R on a set A is called an equivalence relation if it is reflexive,
symmetric, and transitive.

In order to understand the previous notion let us verify if the following


examples are equivalence relations or not.
Example
Let R be the relation such that x R y if and only if x, y ∈ Z

18 / 24
Equivalence relations Presentation of next topic

Equivalence relations

Solution
Is R reflexive?

19 / 24
Equivalence relations Presentation of next topic

Equivalence relations

Solution
Is R reflexive? Since x ∈ Z then x R x and R is reflexive.

19 / 24
Equivalence relations Presentation of next topic

Equivalence relations

Solution
Is R reflexive? Since x ∈ Z then x R x and R is reflexive.
Is R symmetric?

19 / 24
Equivalence relations Presentation of next topic

Equivalence relations

Solution
Is R reflexive? Since x ∈ Z then x R x and R is reflexive.
Is R symmetric? We assume that x R y then x, y ∈ Z. Therefore y R x
and R is symmetric.

19 / 24
Equivalence relations Presentation of next topic

Equivalence relations

Solution
Is R reflexive? Since x ∈ Z then x R x and R is reflexive.
Is R symmetric? We assume that x R y then x, y ∈ Z. Therefore y R x
and R is symmetric.
Is R transitive?

19 / 24
Equivalence relations Presentation of next topic

Equivalence relations

Solution
Is R reflexive? Since x ∈ Z then x R x and R is reflexive.
Is R symmetric? We assume that x R y then x, y ∈ Z. Therefore y R x
and R is symmetric.
Is R transitive? We assume that x R y and y R w then x, y , w ∈ Z.
Hence x R w y R is transitive.

19 / 24
Equivalence relations Presentation of next topic

Example
Let R be an equivalence relation such that a R b if and only if a ≡ b (mod m)
on the set of integers.

20 / 24
Equivalence relations Presentation of next topic

Example
Let R be an equivalence relation such that a R b if and only if a ≡ b (mod m)
on the set of integers.

Example
Since a − a = 0 y 0 is divisible by m then a R a and R is reflexive.

20 / 24
Equivalence relations Presentation of next topic

Example
Let R be an equivalence relation such that a R b if and only if a ≡ b (mod m)
on the set of integers.

Example
Since a − a = 0 y 0 is divisible by m then a R a and R is reflexive.
We assume that a R b then a − b is divisible by m thus a − b = km where k is
an integer. It follows that b − a = (−k )m and since −k is an integer b − a is
divisible by m. Thus R is symmetric.

20 / 24
Equivalence relations Presentation of next topic

Example
Let R be an equivalence relation such that a R b if and only if a ≡ b (mod m)
on the set of integers.

Example
Since a − a = 0 y 0 is divisible by m then a R a and R is reflexive.
We assume that a R b then a − b is divisible by m thus a − b = km where k is
an integer. It follows that b − a = (−k )m and since −k is an integer b − a is
divisible by m. Thus R is symmetric.
We assume that a R b and b R c then m divides a − b and b − c. Therefore
there exists integers k , l such that a − b = km and b − c = lm. Adding the two
formulas we have a − b + b − c = km + lm = (k + l)m hence a − c is divisible
by m and R is transitive.

20 / 24
Equivalence relations Presentation of next topic

Equivalence classes

If two elements x, y are related by means of an equivalence relation,


we say that x and y are equivalent. Then, if two elements are
equivalent they belong to the same equivalence class.

21 / 24
Equivalence relations Presentation of next topic

Equivalence classes

If two elements x, y are related by means of an equivalence relation,


we say that x and y are equivalent. Then, if two elements are
equivalent they belong to the same equivalence class.
Definition
Let R be an equivalence relation on a set A. The set of all elements
that are related to an element a of A is called the equivalence class of
a. The equivalence class of a with respect to R is denoted by [a]R . That
is [a]R = {b | a R b}. When only one relation is under consideration, we
can delete the subscript R and write [a] for this equivalence class.

21 / 24
Equivalence relations Presentation of next topic

Equivalence classes

If two elements x, y are related by means of an equivalence relation,


we say that x and y are equivalent. Then, if two elements are
equivalent they belong to the same equivalence class.
Definition
Let R be an equivalence relation on a set A. The set of all elements
that are related to an element a of A is called the equivalence class of
a. The equivalence class of a with respect to R is denoted by [a]R . That
is [a]R = {b | a R b}. When only one relation is under consideration, we
can delete the subscript R and write [a] for this equivalence class.

If b ∈ [a]R , then b is called a representative of this equivalence class.

21 / 24
Equivalence relations Presentation of next topic

Example
Let R be the relation on the set integers such that a R b if and only if
a = b or a = −b. What are the equivalence classes of a ∈ Z. What
are the equivalence classes of 0 and 7?

22 / 24
Equivalence relations Presentation of next topic

Example
Let R be the relation on the set integers such that a R b if and only if
a = b or a = −b. What are the equivalence classes of a ∈ Z. What
are the equivalence classes of 0 and 7?

Solution
[a]R = {a, −a}

22 / 24
Equivalence relations Presentation of next topic

Example
Let R be the relation on the set integers such that a R b if and only if
a = b or a = −b. What are the equivalence classes of a ∈ Z. What
are the equivalence classes of 0 and 7?

Solution
[a]R = {a, −a}
[0]R = {0} y [7]R = {7, −7}

22 / 24
Equivalence relations Presentation of next topic

Example
Generally speaking, what is the class [x]R if R is the relation mod m?
How do we call these classes?

23 / 24
Equivalence relations Presentation of next topic

Example
Generally speaking, what is the class [x]R if R is the relation mod m?
How do we call these classes?

Solution
If we have x ≡ y mod m then x − y is divisible by m,

23 / 24
Equivalence relations Presentation of next topic

Example
Generally speaking, what is the class [x]R if R is the relation mod m?
How do we call these classes?

Solution
If we have x ≡ y mod m then x − y is divisible by m, which takes us to
the fact that x − y = km, where k is an integer,

23 / 24
Equivalence relations Presentation of next topic

Example
Generally speaking, what is the class [x]R if R is the relation mod m?
How do we call these classes?

Solution
If we have x ≡ y mod m then x − y is divisible by m, which takes us to
the fact that x − y = km, where k is an integer, therefore y = x − km.

23 / 24
Equivalence relations Presentation of next topic

Example
Generally speaking, what is the class [x]R if R is the relation mod m?
How do we call these classes?

Solution
If we have x ≡ y mod m then x − y is divisible by m, which takes us to
the fact that x − y = km, where k is an integer, therefore y = x − km.
Since k is any integer, then:

23 / 24
Equivalence relations Presentation of next topic

Example
Generally speaking, what is the class [x]R if R is the relation mod m?
How do we call these classes?

Solution
If we have x ≡ y mod m then x − y is divisible by m, which takes us to
the fact that x − y = km, where k is an integer, therefore y = x − km.
Since k is any integer, then:
[x]R = {..., x − 2m, x − m, x + m, x + 2m, ...}

23 / 24
Equivalence relations Presentation of next topic

Example
Generally speaking, what is the class [x]R if R is the relation mod m?
How do we call these classes?

Solution
If we have x ≡ y mod m then x − y is divisible by m, which takes us to
the fact that x − y = km, where k is an integer, therefore y = x − km.
Since k is any integer, then:
[x]R = {..., x − 2m, x − m, x + m, x + 2m, ...}
The equivalence classes of the relation congruence modulo m are
called the congruence classes modulo m.

23 / 24
Equivalence relations Presentation of next topic

Next class

Exercises and section


Reading material Section 7.5 (in Moodle)
Exercises: 29,30,32,35,41,43 32,33,36,38,40

24 / 24

You might also like