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:

x21122112

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 “2R 3” and “33” to describe these statements. This relation R has a better name: “<”, which is the one typically used. So we would write 2<3 and 33.

x21122112

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)iffad=bc.

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., RX×Y. The domain of R is the set

domR:={aX(bY)aRb}.

A relation R from a set X to a set Y is a function if for all adomR there exists a unique bY such that aRb. I.e.,

(adomR)(!bY)aRb.

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.