EXERCISE 1 (EQUIVALENCE RELATIONS)
Purpose: to understand the concept of an equivalence relation.
- -) Which of the following relations are equivalence relations
(i.e., reflexive, symmetric, and transitive) and which are not (and why not):
- a) The "less-than-or-equal-to" relation: '<='
- b) The almost-total-relation-on-integers, relating all numbers (except 42, but relating 42 with 42):
'{ (n,m) | n,m in ( Z \ {42} ) } union { (42,42) }'
- c) The "is-congruent-modulo-three" relation: '{ (n,m) | (n % 3) == (m % 3) }'
- d) The "has-talked-with" relation: '{ (p,q) | p and q have talked together }'
- e) The "is-in-the-same-exercise-class-as" relation: '{ (p,q) | p and q are in same exercise class }'
|  |