Relations

Overview

A relation R is a set of ordered pairs. The domain of R (domR), the range of R (ranR), and the field of R (fldR) are defined as:

An n-ary relation on A is a set of n-tuples with each components in A. Keep in mind though, a unary (1-ary) relation on A is just a subset of A and may not be a relation at all.

A set A is single-valued iff for each x in domA, there is only one y such that xAy. A set A is single-rooted iff for each yranA, there is only one x such that xAy.

Reflexivity

A relation R is reflexive on A iff xRx for all xA. In relational algebra, we define R to be reflexive on A iff IAR.

Irreflexivity

A relation R is irreflexive on A iff ¬xRx for all xA. That is, it is never the case that xRx.

Symmetry

A relation R is symmetric iff whenever xRy, then yRx. In relational algebra, we define R to be symmetric iff R1R.

Antisymmetry

A relation R is antisymmetric iff whenever xy and xRy, then ¬yRx.

Asymmetry

A relation R is asymmetric iff whenever xRy, then ¬yRx.

Transitivity

A relation R is transitive iff whenever xRy and yRz, then xRz. In relational algebra, we define R to be transitive iff RRR.

Connected

A binary relation R on set A is said to be connected if for any distinct x,yA, either xRy or yRx. The relation is strongly connected if for all x,yA, either xRy or yRx.

Trichotomy

A binary relation R on A is trichotomous if for all x,yA, exactly one of the following holds:

xRy,x=y,yRx

Inverses

Let F be an arbitrary set. The inverse of F is the set F1={u,vvFu}.

Compositions

Let F and G be arbitrary sets. The composition of F and G is the set

FG={u,vt,uGttFv}

Composition of relations is associative.

Restrictions

Let F and A be arbitrary sets. The restriction of F to A is the set

FA={u,vuFvuA}.

Extensions

A relation F is an extension of another, say f, if:

  1. dom(f)dom(F);
  2. Fdom(f)=f.

Images

Let F and A be sets. Then the image of F under A is F[[A]]={vuA,uFv}.

Inverse Images

Let F and A be sets. Then the inverse image of F under A is

F1[[A]]={uvA,uFv}.

Properties

The following hold for any sets F, A, B, and A:

Powered by Forestry.md