Properties of Relations

Four Key Properties

Relations can have special properties that describe their behavior.

There are four you need to know:

  1. Reflexive - everything relates to itself
  2. Symmetric - relationships go both ways
  3. Antisymmetric - two-way relationships only for equals
  4. Transitive - relationships chain together

Reflexive

A relation is reflexive if every element is related to itself.

For all aa in AA: aRaa \mathrel{R} a.


Examples:

RelationReflexive?Why?
== (equals)Yes5=55 = 5
\leq (less than or equal)Yes555 \leq 5
\mid (evenly divides)Yes555 \mid 5
<< (less than)No5<55 < 5 is false
“is a parent of”NoNobody is their own parent

Symmetric

A relation is symmetric if aRba \mathrel{R} b implies bRab \mathrel{R} a.

If one direction holds, the other direction holds too.


Examples:

RelationSymmetric?Why?
== (equals)YesIf x=yx = y, then y=xy = x
“is friends with”YesIf Alice is friends with Bob, Bob is friends with Alice
“is a sibling of”YesWorks both ways
<< (less than)No3<53 < 5, but 5<35 < 3 is false
\mid (evenly divides)No262 \mid 6, but 626 \mid 2 is false

Antisymmetric

A relation is antisymmetric if aRba \mathrel{R} b and bRab \mathrel{R} a implies a=ba = b.

Two different elements can’t both be related to each other.


Examples:

RelationAntisymmetric?Why?
\leqYesIf xyx \leq y and yxy \leq x, then x=yx = y
\mid (evenly divides)YesIf aba \mid b and bab \mid a, then a=ba = b
\subseteq (subset)YesIf ABA \subseteq B and BAB \subseteq A, then A=BA = B
“is friends with”NoAlice and Bob can be mutual friends without being the same person

Note: Symmetric and antisymmetric are not opposites.

  • A relation can be both (like ==)
  • A relation can be neither (like “is a parent of a sibling of”)

Transitive

A relation is transitive if aRba \mathrel{R} b and bRcb \mathrel{R} c implies aRca \mathrel{R} c.

Relationships chain together.


Examples:

RelationTransitive?Why?
<<YesIf 2<52 < 5 and 5<95 < 9, then 2<92 < 9
==YesIf x=yx = y and y=zy = z, then x=zx = z
\mid (evenly divides)YesIf 262 \mid 6 and 6186 \mid 18, then 2182 \mid 18
“is an ancestor of”YesYour ancestor’s ancestor is your ancestor
“is a parent of”NoYour parent’s parent is not your parent
“is friends with”NoYour friend’s friend might not be your friend

Summary

PropertyMeaningTest
ReflexiveEverything relates to itselfCheck: aRaa \mathrel{R} a for all aa
SymmetricGoes both waysCheck: aRbbRaa \mathrel{R} b \Rightarrow b \mathrel{R} a
AntisymmetricMutual only if equalCheck: aRba \mathrel{R} b and bRaa=bb \mathrel{R} a \Rightarrow a = b
TransitiveChains togetherCheck: aRba \mathrel{R} b and bRcaRcb \mathrel{R} c \Rightarrow a \mathrel{R} c

Common Relations

RelationReflexiveSymmetricAntisymmetricTransitive
==YesYesYesYes
<<NoNoYesYes
\leqYesNoYesYes
\mid (evenly divides)YesNoYesYes
“is friends with”?YesNoNo

Notice the patterns? These combinations define special types of relations.