|
|
|
|
|
Before describing what a relation is generally, let us define a more specific kind of a relation: a binary relation. Basically, a binary relation involves objects coming from two collections , where the objects are paired up so that each pair consists of an object from , and an object from .
More formally, a binary relation is a subset of the Cartesian product of two sets and . One may write
to indicate that the ordered pair is an element of . A subset of is simply called a binary relation on . If is a binary relation on , then we write
to mean
and
.
Given a binary relation
, the domain
of is the set of elements in forming parts of the pairs in . In other words,
 for some 
and the range
of is the set of parts of pairs of coming from :
 for some 
An example of a binary relation is the less-than relation on the integers, i.e.,
.
, but
.
Remarks.
- In set theory, a binary relation is simply a set of ordered pairs (of sets). Notice that, unlike the previous definition, sets
and are not specified in advance. The domain and range of a binary relation are defined in the same way as before. It is also possible to recover the previous definition in this setting: a binary relation from to is a binary relation whose domain is a subset of and whose range is a subset of .
- It may be possible to define a relation over a class. For example, if
is the class of all sets, then can be thought of as a binary relation on
.
- In term rewriting theory, a binary relation on a set is sometimes called a reduction, and is written
. This is to signify that means that the element is being “reduced” to via .
From the definition of a binary relation, we can easily generalize it to that of an arbitrary relation. Since a binary relation involves two sets, an arbitrary relation involves an arbitrary collection of sets. More specifically, a relation is a subset of some Cartesian product of a collection of sets. In symbol, this is
where each is a set, indexed by some set .
From this more general definition, we see that a binary relation is just a relation where has two elements. In addition, an -ary relation is a relation where the cardinality of is ( finite). In symbol, we have
It is not hard to see that any -ary relation where can be viewed as a binary relation in different ways, for
where ranges from through .
A common name for a -ary relation is a ternary relation. It is also possible to have a -ary relation, or commonly known as a unary relation, which is nothing but a subset of some set.
Remarks.
- Following from the first remark from the previous section, relations of higher arity can be inductively defined: for
, an -ary relation is a binary relation whose domain is an -ary relation. In this setting, a “unary relation” and relations whose arity is of “arbitrary” cardinality are not defined.
- A relation can also be viewed as a function (which itself is a relation). Let
. As a subset of , can be identified with the characteristic function
where
iff and
otherwise. Therefore, an -ary relation is equivalent to an -ary characteristic function. From this, one may say that a 0-ary, or a nullary relation is a unary characteristic function. In other words, a nullary relation is just a an element in
(or truth/falsity).
|
"relation" is owned by CWoo. [ full author list (3) | owner history (2) ]
|
|
(view preamble)
See Also: poset, partial order, total order, ordering relation, function, well-founded relation, property, grounded relation
| Also defines: |
unary relation, binary relation, ternary relation, -ary relation, domain, range, nullary relation |
| Keywords: |
cartesian ordered pair |
|
|
Cross-references: unary, equivalent, iff, characteristic function, function, arity, section, finite, cardinality, indexed by, reduction, theory, term, class, set theory, integers, ordered pair, subset, collections, objects
There are 202 references to this entry.
This is version 23 of relation, born on 2001-10-06, modified 2008-05-08.
Object id is 122, canonical name is Relation.
Accessed 30989 times total.
Classification:
| AMS MSC: | 03E20 (Mathematical logic and foundations :: Set theory :: Other classical set theory ) | | | 08A02 (General algebraic systems :: Algebraic structures :: Relational systems, laws of composition) |
|
|
|
|
|
|
Pending Errata and Addenda
|
|
|
|
|
|
|
|
|
|
|