CSCE 222 Lecture 15

From Notes
Jump to navigation Jump to search

« previous | Monday, February 28, 2011 | next »


Review: Relations

Reflexive
Δ={(a,a)|aA}R
Symmetric
R=R1={(b,a)|(a,b)R}
Transitive
(aRbbRc)aRc
Equivalence
reflexive, symmetric, and transitive


Equivalence Classes

Written as [x]R.

[a]R={bA|aRb}

Example

R={(a,b)|abmodm} is an equivalence relation on the set of all integers:

in other words, the difference between a and b should be a multiple of m.

  1. reflexive aa=mc=0
  2. symmetric ab=mcabmodmba=m(c)bamodm
  3. transitive abmodmbc0modmac=m(c+d)

For example, the congruence modulo 2 on the set of all integers:

[0]R={2m|m}

Theorem

Let R be an equivalence relation on a set A:

  1. aRb
  2. [a]R=[b]R
  3. [a]R[b]R

are equivalent properties


Proof

(1) → (2)

Suppose that aRb holds if c[a]R, then aRb. Since aRbbRa, we have bRa and aRc by the transitive property, so c[b]R. Therefore, we have shown that [a]R[b]R. By same token, [b]R[a]R, so [a]R=[b]R

(2) → (3)

Since [a]R contains a, we have [a]R; so [a]R[a]R=[a]R[b]R.

(3) → (1)

Since [a]R[b]R, there exists an element c[a]R[b]R, so aRc and bRc holds. By symmetry, cRb holds. By transitivity, we can conclude from aRc and cRb that aRb holds.



Each element aA is contained in an equivalence class of R, namely [a]:

aR[a]R=A

Two equivalence classes are disjointed ([a]R[b]R=) if [a]R[b]R. Thus the equivalence classes of R partition A.

Theorem

Let R be an equivalence relation on A. Then the equivalence class of R partitions A. Conversely, given a partition {Ai|iI} on a set A, then there exists an equivalence relation R on A that has Ai, iI, as equivalence classes.