mindstair

Home / Courses / Intro to Proofs / Unit 7

Intro to Proofs Unit 7: Relations and Equivalence Relations

Relations describe how elements of a set are connected. Equivalence relations sort a set into classes of 'alike' elements, and congruence modulo n is the key example.

Covers: Relations as sets of ordered pairs, Reflexive, symmetric, transitive and antisymmetric, Equivalence relations, Equivalence classes, Partitions, Congruence modulo n, Partial orders

Study guide

A relation R on a set A is any subset of A × A; we write a R b when (a, b) ∈ R. Four properties matter most. R is reflexive if a R a for every a ∈ A. R is symmetric if a R b implies b R a. R is transitive if a R b and b R c imply a R c. R is antisymmetric if a R b and b R a imply a = b. Reflexivity is a 'for all' statement, while the others are conditionals, so the empty relation is symmetric, transitive and antisymmetric but not reflexive on a nonempty set. Always check each property directly from its definition.

An equivalence relation is reflexive, symmetric and transitive. It behaves like a generalized equality: 'has the same remainder', 'has the same birth year', 'has the same square'. The equivalence class of a is [a] = {x ∈ A : x ~ a}. Two classes are either identical or disjoint, and every element is in its own class, so the classes form a partition of A: nonempty, pairwise disjoint blocks whose union is A. Conversely, every partition defines an equivalence relation (same block). So counting equivalence relations on a finite set is the same as counting its partitions.

Congruence modulo n is the central example: a ≡ b (mod n) when n | (a − b). It is reflexive (n | 0), symmetric (if a − b = nk then b − a = n(−k)), and transitive (add the differences). Its classes are the residue classes [0], [1], ..., [n − 1]. Congruences can be added and multiplied: if a ≡ a′ and b ≡ b′, then a + b ≡ a′ + b′ and ab ≡ a′b′ (mod n). Many relations reduce to congruences after a little algebra, such as 4 | (3a + b), which is the same as a ≡ b (mod 4).

To prove a relation is an equivalence relation, prove the three properties separately for arbitrary elements. To show it is not, give a specific counterexample to one property, such as 0 R 1 and 1 R 2 but not 0 R 2 for |a − b| ≤ 1. A partial order is reflexive, antisymmetric and transitive instead; examples are ≤ on ℝ, ⊆ on sets, and divisibility on the positive integers. Note that symmetric and antisymmetric are not opposites: a relation of only pairs (a, a) is both, and some relations are neither.

Key ideas

Formulas and rules

Reflexive: ∀a (a R a)
Symmetric: a R b ⇒ b R a; Transitive: a R b ∧ b R c ⇒ a R c
Antisymmetric: a R b ∧ b R a ⇒ a = b
a ≡ b (mod n) ⇔ n | (a − b)
[a] = {x : x ~ a}; [a] = [b] ⇔ a ~ b
a ≡ a′, b ≡ b′ (mod n) ⇒ a + b ≡ a′ + b′ and ab ≡ a′b′

Common mistakes

Before the test, make sure you can

Words to know

Relation
A subset R of A × A; a R b means (a, b) ∈ R.
Reflexive
a R a for every a in the set.
Symmetric
Whenever a R b, also b R a.
Transitive
Whenever a R b and b R c, also a R c.
Antisymmetric
If a R b and b R a, then a = b.
Equivalence relation
A relation that is reflexive, symmetric and transitive.
Equivalence class
[a] = the set of all elements equivalent to a.
Partition
A set of nonempty, pairwise disjoint subsets whose union is the whole set.
Congruence mod n
a ≡ b (mod n) means n divides a − b.
Residue class
An equivalence class under congruence mod n, such as [2] = {..., −1, 2, 5, ...} mod 3.
Partial order
A relation that is reflexive, antisymmetric and transitive.
Representative
Any element chosen to name its equivalence class.
Quotient set
A/~, the set of all equivalence classes.
Bell number
The number of partitions (equivalently, equivalence relations) of an n-element set: 1, 2, 5, 15, 52, ....

Sample practice questions

30 more questions like these, from level 1 to 5, are in the practice set.

Question 1 (level 1)

A relation R on a set A is:

  1. A partition of the set A
  2. A function from A to A
  3. A subset of A × A
  4. An element of A × A
Show the answer and steps

Answer: C) A subset of A × A

  1. A relation pairs elements of A: we write a R b when (a, b) ∈ R.
  2. So R is a set of ordered pairs from A × A, that is, R ⊆ A × A.
  3. Functions and partitions are special structures, but a general relation need not be either.
Question 2 (level 1)

A relation R on A is reflexive when:

  1. (a, a) ∈ R for some a ∈ A
  2. (a, a) ∈ R for every a ∈ A
  3. (a, b) ∈ R implies (b, a) ∈ R
  4. (a, a) ∉ R for every a ∈ A
Show the answer and steps

Answer: B) (a, a) ∈ R for every a ∈ A

  1. Reflexive means every element is related to itself.
  2. One self-loop is not enough; all elements of A need one.
  3. The implication (a, b) → (b, a) is symmetry, a different property.
Question 3 (level 3)

On ℤ, define a R b when |a − b| ≤ 1. Which describes R?

  1. Reflexive and transitive, but not symmetric
  2. An equivalence relation
  3. Reflexive and symmetric, but not transitive
  4. Symmetric and transitive, but not reflexive
Show the answer and steps

Answer: C) Reflexive and symmetric, but not transitive

  1. |a − a| = 0 ≤ 1 gives reflexive, and |a − b| = |b − a| gives symmetric.
  2. But 0 R 1 and 1 R 2 while |0 − 2| = 2 > 1, so R is not transitive.
  3. Being 'close' does not chain, which is why R is not an equivalence relation.