ACT4E
Category Rel - Definition
Definition (Relation)
Let and be sets. A relation from to is a subset
Definition (Rel)
The category of sets and relations consists of:
- Objects: all sets;
- Morphisms: For sets and , the set is the set of all relations from to ;
- Identity morphisms: For a set , its identity morphism is the identity relation on , ;
- Composition: For relations , the composite is given by:
Equivalent definition in relational algebra
The composition of binary relations and is their inner join on constraint , then projected so that , .
Revised on January 25, 2021 04:57:42
by
David Tanzer?