For a special way of "joining" sets to produce coordinate expressions like (a,b,c,d,e) click here
The idea of a relation can be extended to objects. The following is an example. Seven boats are tied up at a dock where there are seven poles. The adjacent figure shows how they are tied to the poles. One pole has nothing tied to it. Two boats are not tied to any poles (anchors are used instead). Two boats are so big that they must be tied to two poles. The poles and boats receive labels as shown, to form sets:
The statement that two objects are related is a logical statement. It may be true or false. P5 ~ B4 is true. But P2 ~ B6 is false. Every relation has a truth set. The open statement x ~ y produces the following 7x7 truth table:
(*) B1 B2 B3 B4 B5 B6 B7 P1 F F F F F F F P2 F T F F F F F P3 F F T F F F F P4 F F F T F F F P5 F F F T F F F P6 F F F F F T T P7 F F F F F F TThe truth set
The reverse of a relation x ~ y is the relation y ~ x. In the previous example boats and poles would be interchanged and the relation would be
[1.1] (Symmetric relations) A relation is symmetrical if every relation and its reverse have the same truth value.
Notation: Relation ~ between sets U and V is symmetrical if and only if for all x in U and for all y in V, x ~ y iff y ~ x.
[2.1] (Equivalence relations) A relation ~ on a universe U is an equivalence relation if and only if it has the following three properties:
(a) the relation is reflexive (every object in U is equivalent to itself): for all x in U, x ~ x;
(b) the relation is symmetrical: for all x,y in U, if x ~ y then y ~ x;
(c) the relation is transitive: for all x,y,z in U, if x ~ y and y ~ z then x ~ z.
Symmetry is best noticed if the relation is expressed as coordinates of ordered pairs: if (x,y) then (y,x). In analytic geometry the points (x,y) and (y,x) are symmetric about the line y=x.
Example [2.1a]
Example
Twelve colored balls are displayed as shown in the adjacent figure. It is easily shown that the relation
It is possible to collect balls of the same color into three subsets:
More examples of equivalent relations on different universes can be given. Every time a partition of the universe is produced. A special notation is developed for the subsets of the partitions produced by equivalent relations:
for any object b in universe U, [b] = subset of all objects in U to which b is (truly) related.
Notation: x is in [b] if and only if b ~ x
[b] is called the equivalence class containing x. The subsets R,G,B,W are equivalence classed induced by the relation ~.
In the previous example where the universe is J20,
If there is already a partition of a universe into subsets then an equivalence relation can be derived from it. In the adjacent figure the universe U is the interior of the rectangle. The curves show how that interior is divided up into pieces (subsets), forming a partition of U. The induced relation ~ is defined as follows
[2.2] (Partition inducing a relation) Any partition of a universe induces an equivalence relation on the universe.
Notation: for all x,y in U, x ~ y x and y belong to the same subset of the partition
The examples [2.1a] and [2.1b] indicate the truth of the following:
[2.3] (A relation induces a partition) An equivalence relation on a universe induces a partition of that universe: the equivalence class of each object in the universe produces a subset of the partition.
Notation: The family of all equivalence classes [x] of all the objects x form a partition of the universe.
Given: an equivalence relation ~ on a universe U. Then
(a) all the equivalence classes cover U. Since ~ is reflexive, then x ~ x and this implies x is iin [x] by definition of equivalence class. Therefore, every object in U is in some equivalence class.
(b) The equivalence classes are disjoint. This is equivalent to saying that for any two objects b,c [b] = [c] or that the intersection [b] /\ [c] is empty. The equality is trivial if b = c. Suppose b and c are different.
Consider the intersection [b] /\ [c]. If it is empty then the argument is finished. Suppose the intersection is not empty.
Let d be some object in the intersection. Then d is is [b] and d is in [c].
By definition of d being in an equivalence classes [b] and [c], b ~ d and c ~ d. By symmetry this means that b ~ d d ~ c. From the transitive law, b ~ c. This means that [b] = [c].
To show this, let w be any object in [b]. Then b ~ w. By symmetry w ~ b. But b ~ c so by transitivity w ~ c and then c ~ w. So w is in [c]. This makes [b] a subset of [c].
A similar argument of t in [c] => t in [b] shows that [c] is a subset of [b].
Therefore [b] and [c] are subsets of each other. This means that [b] = [c].
Therefore, [2.2] and [2.3] together imply that establishing an equivalence relation on a universe is equivalent to establishing a partition of that same universe.