Naive set theory: Relations
Basic concepts
The Cartesian product of sets and is primarily introduced to define relations, of which functions are a special case.
Relation
Relation
A relation from a set to is a subset of . If is an element of the relation , we also denote this as . If we want to emphasize that two sets are involved in a relation, we use the term binary relation.
A relation on is a subset .
Examples
Let and . Then is a relation from to .
is a relation on .
is a relation on .
If is a set, then is a relation, namely the identity relation on , also called the identity or diagonal on
Domain and range of a binary relation
For a binary relation from a set to , we define the domain and the codomain or range asLet , and . Then is a relation from to and
Inverse relation
Inverse relation
For a binary relation from a set to , we define the inverse relation as the set of ordered pairs for which .
Example
If , then .
Composition of relations For a binary relation from a set to and a binary relation from to a set , we define the composition of and as the set of ordered pairs for which there exists a such that and .
Suppose is a relation from to , is a relation from to , and is a relation from to . Then:
- ;
- ;
- ;
- ;
- .