A relation is a set of ordered pairs. The domain of (), the range of (), and the field of () are defined as:
An -ary relation on is a set of -tuples with each components in . Keep in mind though, a unary (-ary) relation on is just a subset of and may not be a relation at all.
A set is single-valued iff for each in , there is only one such that . A set is single-rooted iff for each , there is only one such that .
Reflexivity
A relation is reflexive on iff for all . In relational algebra, we define to be reflexive on iff .
Irreflexivity
A relation is irreflexive on iff for all . That is, it is never the case that .
Symmetry
A relation is symmetric iff whenever , then . In relational algebra, we define to be symmetric iff .
Antisymmetry
A relation is antisymmetric iff whenever and , then .
Asymmetry
A relation is asymmetric iff whenever , then .
Transitivity
A relation is transitive iff whenever and , then . In relational algebra, we define to be transitive iff .
Connected
A binary relation on set is said to be connected if for any distinct, either or . The relation is strongly connected if for all, either or .
Trichotomy
A binary relation on is trichotomous if for all , exactly one of the following holds:
Inverses
Let be an arbitrary set. The inverse of is the set .
Compositions
Let and be arbitrary sets. The composition of and is the set
Composition of relations is associative.
Restrictions
Let and be arbitrary sets. The restriction of to is the set
Extensions
A relation is an extension of another, say , if:
;
.
Images
Let and be sets. Then the image of under is .
Inverse Images
Let and be sets. Then the inverse image of under is
Properties
The following hold for any sets , , , and :
The image of unions is the union of the images:
The image of intersections is a subset of the intersection of images:
for
Equality holds if is single-rooted.
The image of a difference includes the difference of the images: