Skip to content
The Lumenary

Practice · Grades 6–8

Relations, equivalence relations and partitions

Relations, equivalence relations and partitions

Warm-upHuman

On the set {0,1,2,…,11}\{0, 1, 2, \dots, 11\}, let a∼ba \sim b mean that aa and bb have the same remainder on division by 44. List the elements of the class [6][6].

Write elements separated by commas. Order and repeats don’t matter — just like in a set!

Relations, equivalence relations and partitions

Warm-upHuman

Which properties does the relation a≤ba \le b (“aa is less than or equal to bb”) on Z\Z have? Choose all that apply.

Choose all that apply

Relations, equivalence relations and partitions

CoreHuman

On Z\Z, let a≈ba \approx b mean that aa and bb differ by at most 22. This relation is not an equivalence relation. Which of these is a genuine counterexample?

Choose one

Relations, equivalence relations and partitions

Warm-upHuman

On the whole numbers 0,1,2,3,…0, 1, 2, 3, \dots, let a∼ba \sim b mean “aa and bb have the same last digit”. How many equivalence classes are there?

Relations, equivalence relations and partitions

CoreHuman

The partition {{a,b,c},{d},{e,f}}\{\{a, b, c\}, \{d\}, \{e, f\}\} of {a,b,c,d,e,f}\{a, b, c, d, e, f\} defines the relation “lies in the same block as”. How many ordered pairs does this relation contain?

Relations, equivalence relations and partitions

CoreHuman

Here is a “proof” that every symmetric, transitive relation is reflexive.

Let aa be any element. (1) Choose bb with a∼ba \sim b. (2) By symmetry, b∼ab \sim a. (3) By transitivity, from a∼ba \sim b and b∼ab \sim a we get a∼aa \sim a.

What is wrong?

Choose one

Relations, equivalence relations and partitions

CoreHuman

Which of these is a partition of {1,2,3,4,5,6}\{1, 2, 3, 4, 5, 6\}?

Choose one

Relations, equivalence relations and partitions

StretchHuman

How many different equivalence relations are there on the set {1,2,3,4}\{1, 2, 3, 4\}? (Use Theorem 3: count the partitions instead.)

Relations, equivalence relations and partitions

CoreFormal

In the Lean section, cls R a x means “xx belongs to the class of aa”. Which statement says that any two classes are equal or disjoint?

Choose one

Relations, equivalence relations and partitions

StretchComputational

Write is_equivalence(elements, related), where elements is a list and related(a, b) returns True or False. It should return True exactly when the relation is reflexive, symmetric and transitive on elements. Python's all(...) is handy: all(related(a, a) for a in elements) tests reflexivity. What should your function return for an empty list, and why?

Runs entirely in your browser, in an isolated worker. Nothing is sent to a server.