Relations as Sets
A binary relation on a set is a subset of . If is a binary relation on and , we write for .
The relation is indeed a rule that defines the set of pairs. The most basic relation is identity relation where elements relate themselves when , denoted as .
Let , when we define a relation "items that are normally worn together" the result would be
This may remind you of relational databases. Each row consist of pairs in such as and elements are the columns. If we were to define three columns, we would need to define relation of relations .
Special Properties of Relations
Some kinds of relations turn out to be so common that they have been given special names. To get at exactly how these relations are similar, and how they differ, we categorize them according to some special properties that relation can have. It turns out that some of these special properties are especially important: orders and equivalence relations.
A relation is reflexive iff, for every , .
A relation is transitive iff, whenever and , then also .
A relation is symmetric iff, whenever , then also .
The anti-symmetric relation is the opposite of symmetric relation, where the reverse is never true except when . However, the relation may not be reflexive.