Skip to content
The Lumenary

Each worksheet prints cleanly on A4 or Letter. Answer keys are on a separate page.

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 nn” is an equivalence relation on Z\Z with exactly nn classes
  1. 1.

    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].

  2. 2.

    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.

    • A.Reflexive
    • B.Symmetric
    • C.Transitive
  3. 3.

    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?

    • A.0≈20 \approx 2 and 2≈42 \approx 4, but 0≉40 \not\approx 4
    • B.3≉33 \not\approx 3
    • C.1≈31 \approx 3 but 3≉13 \not\approx 1
    • D.0≈10 \approx 1 and 1≈21 \approx 2, and 0≈20 \approx 2
  4. 4.

    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?

  5. 5.

    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?

  6. 6.

    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?

    • A.Step (1): there might be no bb with a∼ba \sim b
    • B.Step (2) uses symmetry the wrong way round
    • C.Step (3): transitivity needs three different elements
    • D.Nothing — the proof is correct
  7. 7.

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

    • A.{{1,2},{3,4},{5,6}}\{\{1, 2\}, \{3, 4\}, \{5, 6\}\}
    • B.{{1,2,3},{3,4,5,6}}\{\{1, 2, 3\}, \{3, 4, 5, 6\}\}
    • C.{{1,2},{4,5,6}}\{\{1, 2\}, \{4, 5, 6\}\}
    • D.{{1,2,3,4,5,6},∅}\{\{1, 2, 3, 4, 5, 6\}, \varnothing\}
  8. 8.

    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.)

  9. 9.

    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?

    • 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
  10. 10.

    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?

    Computational — Practice

Code: Apache-2.0 · Content: CC BY-SA 4.0