A relation describes as a connection between the elements of a Set, and that may or may not hold between two elements of that set.

For example, in the set of natural numbers, the relation “is less than” does not hold between 5 and 4, but it does between 4 and 5.

Formal Definition

Given a set , a relation over is a set of Ordered Pairs of elements from , then:

The statement reads ” is -related to ”, and is written in the infix notation as . The order of elements is important, because if , then can be true or false independently of .

  • Finitary Relation (a relation on the Cartesian Product of a number of sets)
  • Binary Relation (a widely studied finitary relation in which the number of sets is 2)