Relation

From Maths
Jump to: navigation, search

Definition

A binary relation R (or just a relation R[Note 1]) between two sets is a subset of the Cartesian product of two sets[1][2], that is:

  • RX×Y

We say that R is a relation in X[1] if:

  • RX×X (note that R is sometimes[1] called a graph)
    • For example < is a relation in the set of Z (the integers)


If (x,y)R then we:

  • Say: x is in relation R with y
  • Write: xRy for short.

Operations

Here R is a relation between X and Y, that is RX×Y, and SY×Z

Name Notation Definition
NO IDEA PXR[1] PXR={xX| y: xRy} - a function is (among other things) a case where PXf=X
Inverse relation R1[1] R1:={(y,x)Y×X| xRy}
Composing relations RS[1] RS:={(x,z)X×Z| yY[xRyySz]}

Simple examples of relations

  1. The empty relation[1], X×X is of course a relation
  2. The total relation[1], R=X×X that relates everything to everything
  3. The identity relation[1], idX:=id:={(x,y)X×X|x=y}={(x,x)X×X|xX}
    • This is also known as[1] the diagonal of the square X×X

Types of relation

Here RX×X

Name Set relation Statement Notes
Reflexive[1] idXR xX[xRx] Every element is related to itself (example, equality)
Symmetric[1] RR1 xXyX[xRyyRx] (example, equality)
Transitive[1] RRR x,y,zX[(xRyyRz)xRz] (example, equality, <)
Antisymmetric[3]
(AKA Identitive[1])
RR1idX xXyX[(xRyyRx)x=y]

TODO: What about a relation like 1r2 1r1 2r1 and 2r2


Connected[1] RR1=X×X

TODO: Work out what this means


Asymmetric[1] R(R1) xXyX[xRy(y,x)R] Like < (see: Contrapositive)
Right-unique[1] R1RidX x,y,zX[(xRyxRz)y=z] This is the definition of a function
Left-unique[1] RR1idX x,y,zX[(xRyzRy)x=z]
Mutually unique[1] Both right and left unique

TODO: Investigate


Examples of binary relations

Notes

  1. Jump up A binary relation should be assumed if just relation is specified

References

  1. Jump up to: 1.00 1.01 1.02 1.03 1.04 1.05 1.06 1.07 1.08 1.09 1.10 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.18 Analysis - Part 1: Elements - Krzysztof Maurin
  2. Jump up Types and Programming Languages - Benjamin C. Peirce
  3. Jump up Real and Abstract Analysis - Edwin Hewitt and Karl Stromberg