Binary Relations

A set R is a binary relation if for any z∈R, then there exists x and y such that z=(x,y). It is usually said that x is in relation R with y iff xRy, which is the same as (x,y)∈R.

The domain of R is the set of all x such that there’s a y that xRy, domR={x∣∃y[xRy]}

The range of R is the set of all y such that there’s an x that xRy, ranR={y∣∃x[xRy]}

The field of R is just domR∪ranR=fieldR

If fieldR⊆X, then R is a relation in X, or that is a relation between elements of X. R is a relation in X iff R⊆X×X.

The image of A under R, is the set of all y from the ranR related to some element in A, denoted as R[A],

R[A]={y∈ranR∣∃x∈A[xRy]}

The inverse image of B under R is the set of all x∈domR, related to some element in B, denoted as R−1[B],

R−1[B]={x∈domR∣∃y∈B[xRy]}

Let R be a binary relation, the inverse of R is the set

R−1={(x,y)∣∃x,y[yRx]}

The inverse image of B under R is equal to the image B under R−1.

Let R and S be binary relations. The composition of R and S is the relation

S∘R={(x,z)∣∃y[xRy∧ySz]

Cofinal and Coinitial Subsets