The Lumenary · Grades 6–8
Relations, equivalence relations and partitions
Name: ______________________
Date: ______________________
You will learn to
- Represent a relation on a finite set as a set of ordered pairs, a table and an arrow diagram
- Test a relation for reflexivity, symmetry and transitivity, giving a counterexample whenever a property fails
- Find the equivalence classes of an equivalence relation, and the equivalence relation that a partition defines
- Prove that two equivalence classes are either equal or disjoint, and that the classes form a partition
- Show that “same remainder on division by ” is an equivalence relation on with exactly classes
- 1.
On the set , let mean that and have the same remainder on division by . List the elements of the class .
- 2.
Which properties does the relation (“ is less than or equal to ”) on have? Choose all that apply.
- A.Reflexive
- B.Symmetric
- C.Transitive
- 3.
On , let mean that and differ by at most . This relation is not an equivalence relation. Which of these is a genuine counterexample?
- A. and , but
- B.
- C. but
- D. and , and
- 4.
On the whole numbers , let mean “ and have the same last digit”. How many equivalence classes are there?
- 5.
The partition of defines the relation “lies in the same block as”. How many ordered pairs does this relation contain?
- 6.
Here is a “proof” that every symmetric, transitive relation is reflexive.
Let be any element. (1) Choose with . (2) By symmetry, . (3) By transitivity, from and we get .
What is wrong?
- A.Step (1): there might be no with
- B.Step (2) uses symmetry the wrong way round
- C.Step (3): transitivity needs three different elements
- D.Nothing — the proof is correct
- 7.
Which of these is a partition of ?
- A.
- B.
- C.
- D.
- 8.
How many different equivalence relations are there on the set ? (Use Theorem 3: count the partitions instead.)
- 9.
In the Lean section,
cls R a xmeans “ belongs to the class of ”. Which statement says that any two classes are equal or disjoint?- A.
cls R a = cls R b ∨ ∀ x, ¬ (cls R a x ∧ cls R b x) - B.
cls R a = cls R b ∧ ∀ x, ¬ (cls R a x ∧ cls R b x) - C.
∀ x, cls R a x → cls R b x - D.
cls R a ≠ cls R b → ∃ x, cls R a x ∧ cls R b x
- A.
- 10.
Write
is_equivalence(elements, related), whereelementsis a list andrelated(a, b)returnsTrueorFalse. It should returnTrueexactly when the relation is reflexive, symmetric and transitive onelements. Python'sall(...)is handy:all(related(a, a) for a in elements)tests reflexivity. What should your function return for an empty list, and why?Computational — Practice