Category of relations explained

In mathematics, the category Rel has the class of sets as objects and binary relations as morphisms.

A morphism (or arrow) R : AB in this category is a relation between the sets A and B, so .

The composition of two relations R: AB and S: BC is given by

(a, c) ∈ S o R ⇔ for some bB, (a, b) ∈ R and (b, c) ∈ S.[1]

Rel has also been called the "category of correspondences of sets".[2]

Properties

The category Rel has the category of sets Set as a (wide) subcategory, where the arrow in Set corresponds to the relation defined by .[3] [4]

A morphism in Rel is a relation, and the corresponding morphism in the opposite category to Rel has arrows reversed, so it is the converse relation. Thus Rel contains its opposite and is self-dual.[5]

The involution represented by taking the converse relation provides the dagger to make Rel a dagger category.

The category has two functors into itself given by the hom functor: A binary relation RA × B and its transpose RTB × A may be composed either as R RT or as RT R. The first composition results in a homogeneous relation on A and the second is on B. Since the images of these hom functors are in Rel itself, in this case hom is an internal hom functor. With its internal hom functor, Rel is a closed category, and furthermore a dagger compact category.

The category Rel can be obtained from the category Set as the Kleisli category for the monad whose functor corresponds to power set, interpreted as a covariant functor.

Perhaps a bit surprising at first sight is the fact that product in Rel is given by the disjoint union[5] (rather than the cartesian product as it is in Set), and so is the coproduct.

Rel is monoidal closed, if one defines both the monoidal product AB and the internal hom AB by the cartesian product of sets. It is also a monoidal category if one defines the monoidal product by the disjoint union of sets.[6]

The category Rel was the prototype for the algebraic structure called an allegory by Peter J. Freyd and Andre Scedrov in 1990.[7] Starting with a regular category and a functor F: AB, they note properties of the induced functor Rel(A,B) → Rel(FA, FB). For instance, it preserves composition, conversion, and intersection. Such properties are then used to provide axioms for an allegory.

Relations as objects

David Rydeheard and Rod Burstall consider Rel to have objects that are homogeneous relations. For example, A is a set and RA × A is a binary relation on A. The morphisms of this category are functions between sets that preserve a relation: Say SB × B is a second relation and f: AB is a function such that

xRy\impliesf(x)Sf(y),

then f is a morphism.[8]

The same idea is advanced by Adamek, Herrlich and Strecker, where they designate the objects (A, R) and (B, S), set and relation.[9]

References

Notes and References

  1. Book: Saunders Mac Lane

    . Saunders Mac Lane. Mac Lane. S. . Categories for the Working Mathematician. 1988. Springer. 0-387-90035-7. 26. 1st.

  2. Book: Pareigis, Bodo. Categories and Functors. 1970 . 6. 978-0-12-545150-5. Academic Press. Pure and Applied Mathematics. 39.
  3. This category is called SetRel by Rydeheard and Burstall.
  4. Book: Bergman, George . §7.2 RelSet . An Invitation to General Algebra and Universal Constructions . Henry Helson . 1998 . 0-9655211-4-1 .
  5. Book: Barr . Michael . Category Theory for Computing Science . Wells . Charles . 1990 . Prentice Hall . 978-0131204867 . 181 . Michael Barr (mathematician) . Charles Wells (mathematician).
  6. 1908.02633 . Fong . Brendan . David I Spivak . Supplying bells and whistles in symmetric monoidal categories . 2019 . math.CT .
  7. Book: Peter J. . Freyd . Peter J. Freyd . Andre . Scedrov . Categories, Allegories . North Holland . 1990 . 0-444-70368-3 . 79, 196 .
  8. Book: David . Rydeheard . Rod . Burstall . Rod Burstall . Computational Category Theory . Prentice-Hall . 1988 . 978-0131627369 . 41 .
  9. Book: Juri . Adamek . Horst . Herrlich . George E. . Strecker . §3.3, example 2(d) . Abstract and Concrete Categories . . 2004 . 1990 . 22 . https://web.archive.org/web/20220811222404/http://katmat.math.uni-bremen.de/acc/acc.pdf . 2022-08-11 .