7 Equivalence Relations and Partitions

7.1 Introducing Relations

7.1.1 A More General “Function”

Example 7.1.1.

For each function given below, either confirm that the rule satisfies the definition of a function, or give an example of where the rule fails the definition of a function. You may want to fill in the function diagrams to help with your explanation.

  1. (a)

    f:ℤ→ℤ/5⁢ℤ, f⁢(x)=[x]5

    . ℤℤ/5⁢ℤ

     
  2. (b)

    g:ℤ/5⁢ℤ→ℤ, g⁢([x]5)=x

    . ℤ/5⁢ℤℤ

We review a definition we gave back a few sections ago:

Definition 7.1.2.

Let A and B be sets. A relation R from A to B is a subset of A×B.

We did not discuss this very much when initially defining it; it was mere scaffolding, not an object of study in itself. This is for good reason: relations are harder to visualize from their definition.

The best visualization that can be offered comes in the form of an example: a relation from ℝ to ℝ is a generalization of a function in that it does not have to pass the vertical line test. The function x=y2 is a perfect example:

x−2−112−2−112

However, relations are meant to be much, much more general than this. Part (b) of our first example in this section gives another example of what a relation can be: any one input can yield infinitely many outputs.

Here is a third example: let

R={(x,y)∈ℝ×ℝ∣x<y}.

Then (2,3)∈R while (3,−3)∉R. We will sometimes use the notation “2⁢R⁢ 3” and “3⁢R̸−3” to describe these statements. This relation R has a better name: “<”, which is the one typically used. So we would write 2<3 and 3≮−3.

x−2−112−2−112

7.1.2 Proving with Relations

Example 7.1.3.

Let ℤ∗:=ℤ∖{0}. Define the relation ∼ (LaTeX \sim) on ℤ×ℤ∗ by, for all a,c∈ℤ and all b,d∈ℤ∗,

(a,b)∼(c,d)iffa⁢d=b⁢c.

Give a few pairs of points in ℤ×ℤ∗ that are related. Do you notice any patterns? Make a conjecture of what our relation signifies.

Blank space for you to write your work.

Now that we have shown how general a relation is, let us show the function as a special type of relation.

Definition 7.1.4.

Let R be a relation from a set X to a set Y; i.e., R⊆X×Y. The domain of R is the set

dom⁡R:={a∈X∣(∃b∈Y)⁢a⁢R⁢b}.

A relation R from a set X to a set Y is a function if for all a∈dom⁡R there exists a unique b∈Y such that a⁢R⁢b. I.e.,

(∀a∈dom⁡R)⁢(∃!⁡b∈Y)⁢a⁢R⁢b.

This definition is vague enough to never see much use. We only include it as a formality. However, you might notice several connections between this definition and the definition of a function given in Section 5.1.