Relations

This chapter is covers notes on relations.

In the previous chapter on tuples, we saw that, given some sets

A1,A2,
,An, A_1, A_2, \ldots, A_n,

we can encapsulate all the possible tuples

(a1∈A1,a2∈A2,
,an∈An) (a_1 \in A_1, a_2 \in A_2, \ldots, a_n \in A_n)

into a single set A1×A2×
×An{A_1 \times A_2 \times \ldots \times A_n} called the Cartesian product. But what if we want to specify just a part of the Cartesian product? For that, we use another special set called a relation. We'll start with the simplest type, the binary relation.

Binary Relations

A binary relation is defined as follows:

binary relation. A set of ordered pairs (a,b){(a,b)} is called a relation.

Notice what this definition implies: R{R} is a set, whose members are always 2-tuples (ordered pairs). For example, the set:

{ (a,1),(b,2),(c,3) } \set{(a,1), (b,2), (c,3)}

is a relation. In some cases, the relation is actually a subset of a Cartesian product. For example, suppose we had the following sets:

X={ 1,2,3 }Y={ a,b,c }. \eqs{ X &= \set{1,2,3} \\ Y &= \set{a,b,c}. }

The Cartesian product of these two sets is:

X×Y={(1,a),(2,a),(3,a)(1,b),(2,b),(3,b)(1,c),(2,c),(3,c)}. X \times Y = \lset{ \eqs{ & (1,a), & (2,a), && (3,a) & \\ & (1,b), & (2,b), && (3,b) & \\ & (1,c), & (2,c), && (3,c) & } }.

A binary relation is simply a subset of this Cartesian product. For example, this is a binary relation:

{(1,a),(2,b),(3,c)}, \lset{ (1,a), (2,b), (3,c) },

and so is this:

{(1,a),(2,a),(3,a)}, \lset{ (1,a), (2,a), (3,a) },

and this:

{(1,a),(2,a),(3,a)(1,b),(2,b),(3,b)(1,c),(2,c),(3,c)}. \lset{ \eqs{ & (1,a), & (2,a), && (3,a) & \\ & (1,b), & (2,b), && (3,b) & \\ & (1,c), & (2,c), && (3,c) & } }.

Notice that this is also the Cartesian product we specified earlier. The binary relation does not have to be a strict subset of the Cartesian product. It just has to be a subset. I.e., we can never have a tuple (a,b)∈R,{(a,b) \in R,} where R⊆A×B{R \subseteq A \times B} and a∉A∹b∉B.{a \notin A \lor b \notin B.}

Now that we've seen what a relation is, let's introduce some new notation.

relation notation. Let R{R} be a relation from A{A} to B.{B.} That is, R⊆A×B.{R \subseteq A \times B.}

If (a,b)∈R,{(a,b) \in R,} we say "a{a} is related to b{b} by R,{R,}" and we write:

aRb. a \rel b.

Otherwise, if (a,b)∉R,{(a,b) \notin R,} we say "a{a} is not related to b{b} by R,{R,}" and write:

aRÌžb a \nrel b

Relations Generally

Much like how the Cartesian product can be generalized to handle an n{n} number of sets, relations can be generalized for an n{n} number of sets.

general definition of a relation. Let A1,A2,
,An{A_1, A_2, \ldots, A_n} be sets. An n{n}-ary relation on the sets A1,A2,
,An{A_1, A_2, \ldots, A_n} is a subset of

A1×A2×
×An, A_1 \times A_2 \times \ldots \times A_n,

and n{n} is the relation's degree, and Ai,i=1,2,
,n{A_i, i = 1,2,\ldots,n} are called the relation's projections.

Certain n{n}-ary relations have unique names. For example, when n=3,{n=3,} we have a ternary relation. When n=4,{n = 4,} we have a quaternary relation. n{n}-ary relations are examined in closer detail at a later juncture. Until then, we'll use binary relations to explore the various properties of relations. Accordingly, we'll use the word "relation" to mean a binary relation, unless otherwise stated.

Relation Language

It's important to get used to some of the language associated with relations. Below are some common phrases often used in the study of relations.

PhraseSymbolic Representation
R{R} is a relation on A{A}R⊆A×A{R \subseteq A \times A}
R{R} is a relation in A{A}R⊆A×A{R \subseteq A \times A}
R{R} is a relation from A{A} to B{B}R⊆A×B{R \subseteq A \times B}
a{a} is related to b{b} by R{R}aRb{a \rel b}, (a,b)∈R{(a,b) \in R}

Homogenous Relations

Earlier, we saw the relation R×R.{\reals \times \reals.} Notice that this is a relation from a set to itself. We call such relations homogenous relations.

homogenous relations. A relation R{R} on a set A{A} is a relation from A{A} to A.{A.} That is,

R={ (a,b):a∈A,b∈A } R = \set{(a,b) : a \in A, b \in A}

We call the set A{A} the domain of discourse of R.{R.}

For example, say we had the set:

A={ 1,2,3,4 } A = \set{1,2,3,4}

The relation:

R={ (a,b)∈A×A:a ∣ b } R = \set{(a,b) \in A \times A : a \dv b}

is a homogenous relation, since it consists of pairs where both elements are of the same set, A.{A.} Explicitly listing its members:

{(1,1)(1,2)(1,3)(1,4)(2,2)(2,4)(3,3)(4,4)} \lset{ \eqs{ & (1,1) & (1,2) & \\ & (1,3) & (1,4) & \\ & (2,2) & (2,4) & \\ & (3,3) & (4,4) & \\ } }

Other examples of homogenous relations include R2{\reals^2} and R3.{\reals^3.} Homogenous relations are particularly important because (1) they're the simplest relations to work with (the domain and the range are the same), and (2) they provide a medium for examining the properties of relations. Before we examine these properties, we introduce some special homogenous relations.

Heterogenous Relations

In contrast to homogenous relations, heterogenous relations are relations over two different sets X{X} and Y.{Y.} For these relations, we call the set X{X} the relation's domain, and Y{Y} the relation's codomain. Heterogenous relations introduce several new types of relations.

For the first few types of relations, we'll stick to homogenous relations. That is, a relation R{R} on a single set called the domain of discourse D.{\DD.} Starting with left-unique relations, we'll start using heterogenous relations, but it's important to keep in mind that for such relations, we can have X=Y.{X = Y.}

Types of Relations

We now examine the various types of relations. As it turns out, there are many different types.

The Empty Relation

Because relations are simply sets of tuples, it follows that relations are sets. As such, there's a special relation called the empty relation — the relation that contains no members.

empty relation. Let X{X} be a set. The empty relation on X{X} is defined as:

∅X={ (x,y)∈X:x ∅X y } \nil_{X} = \set{(x,y) \in X : x~\nil_{X}~y}

Reflexive Relations

The is equal to relation on the set of real numbers is an example of a reflexive relation — every real number is equal to to itself. Let's see a visual example. In the diagram below, the colored cells are members of a relation Rr.{R_r.}

a{a} b{b} c{c}
a{a} (a,a){(a,a)} (a,b){(a,b)} (a,c){(a,c)}
b{b} (b,a){(b,a)} (b,b){(b,b)} (b,c){(b,c)}
c{c} (c,a){(c,a)} (c,b){(c,b)} (c,c){(c,c)}

The relation Rr{R_r} is an example of a reflexive relation — a relation containing all the pairs resulting from pairing each domain element with itself.

reflexive relation. A relation R{R} on a domain of discourse D{\DD} is a reflexive relation if, and only if:

∀a∈D[(a,a)∈R].{\forall a \in \DD \ix{(a,a) \in R}.}

Or, equivalently:

For all a∈D,{a \in \DD,} aRa.{a \rel a.}

Note that definition of reflexivity does not prevent a relation from having other pairs. For example, both of these relations are reflexive:

a{a} b{b} c{c}
a{a} (a,a){(a,a)} (a,b){(a,b)} (a,c){(a,c)}
b{b} (b,a){(b,a)} (b,b){(b,b)} (b,c){(b,c)}
c{c} (c,a){(c,a)} (c,b){(c,b)} (c,c){(c,c)}
a{a} b{b} c{c}
a{a} (a,a){(a,a)} (a,b){(a,b)} (a,c){(a,c)}
b{b} (b,a){(b,a)} (b,b){(b,b)} (b,c){(b,c)}
c{c} (c,a){(c,a)} (c,b){(c,b)} (c,c){(c,c)}

However, the moment we're missing one of self-pairs, the relation is no longer reflexive. For example, all of the relations below are not reflexive:

a{a} b{b} c{c}
a{a} (a,a){(a,a)} (a,b){(a,b)} (a,c){(a,c)}
b{b} (b,a){(b,a)} (b,b){(b,b)} (b,c){(b,c)}
c{c} (c,a){(c,a)} (c,b){(c,b)} (c,c){(c,c)}
a{a} b{b} c{c}
a{a} (a,a){(a,a)} (a,b){(a,b)} (a,c){(a,c)}
b{b} (b,a){(b,a)} (b,b){(b,b)} (b,c){(b,c)}
c{c} (c,a){(c,a)} (c,b){(c,b)} (c,c){(c,c)}
a{a} b{b} c{c}
a{a} (a,a){(a,a)} (a,b){(a,b)} (a,c){(a,c)}
b{b} (b,a){(b,a)} (b,b){(b,b)} (b,c){(b,c)}
c{c} (c,a){(c,a)} (c,b){(c,b)} (c,c){(c,c)}
a{a} b{b} c{c}
a{a} (a,a){(a,a)} (a,b){(a,b)} (a,c){(a,c)}
b{b} (b,a){(b,a)} (b,b){(b,b)} (b,c){(b,c)}
c{c} (c,a){(c,a)} (c,b){(c,b)} (c,c){(c,c)}

We can also visualize relations with graphs. For example, the graphs below are all visual representations of a reflexive relation:

Irreflexive Relations

In the diagram below, the red cells are elements that are not members of a relation called Ri.{R_i.}

a{a} b{b} c{c}
a{a} (a,a){(a,a)} (a,b){(a,b)} (a,c){(a,c)}
b{b} (b,a){(b,a)} (b,b){(b,b)} (b,c){(b,c)}
c{c} (c,a){(c,a)} (c,b){(c,b)} (c,c){(c,c)}

As long as the relation has this property, we say that it's irreflexive. If someone tells us that a relation R{R} is irreflexive, then they're essentially saying, "No matter how hard you search through R,{R,} you'll never find an identity pair."

irreflexive relation. A relation R{R} on a domain of discourse D{\DD} is an irreflexive relation if, and only if:

∀a∈D[(a,a)∉R].{\forall a \in \DD \ix{(a,a) \notin R}.}

Or, equivalently,

For all a∈D,{a \in \DD,} aRÌža.{a \nrel a.}

Importantly, reflexivity and irreflexivity are not opposites of one another. For example, the following relation is neither reflexive nor irreflexive:

a{a} b{b} c{c}
a{a} (a,a){(a,a)} (a,b){(a,b)} (a,c){(a,c)}
b{b} (b,a){(b,a)} (b,b){(b,b)} (b,c){(b,c)}
c{c} (c,a){(c,a)} (c,b){(c,b)} (c,c){(c,c)}

Why? Because (1) it's nonreflexive because it doesn't contain all the pairs whose elements relate to themselves, and (2) it's nonirreflexive because some of the relation's pairs are elements relating to themselves.

Below are two graphs of irreflexive relations. Notice for both graphs, there are no loops.

Quasi-reflexive Relations

Consider the following relation. To the left is its tabular representation, and to the right is its corresponding graph.

a{a} b{b} c{c}
a{a} (a,a){(a,a)} (a,b){(a,b)} (a,c){(a,c)}
b{b} (b,a){(b,a)} (b,b){(b,b)} (b,c){(b,c)}
c{c} (c,a){(c,a)} (c,b){(c,b)} (c,c){(c,c)}

This is an example of a relation that's neither reflexive nor irreflexive. We call such relations quasi-reflexive relations — a relation where some of the elements relate to themselves, and others do not. There are two kinds of quasi-reflexive relations. Left-quasi-reflexive relations:

left-quasi-reflexive relation. A relation R{R} on a domain of discourse D{\DD} is left-quasi-reflexive if, and only if:

∀a,b∈D[(a,b)∈R⇒(a,a)∈R].{\forall a,b \in \DD \ix{(a,b) \in R \nc (a,a) \in R}.}

Or, equivalently,

For all a,b∈D,{a,b \in \DD,} if aRb,{a \rel b,} then aRa.{a \rel a.}

and right-quasi-reflexive relations:

right-quasi-reflexive relation. A relation R{R} on a domain of discourse D{\DD} is right-quasi-reflexive if, and only if:

∀a,b∈D[(a,b)∈R⇒(b,b)∈R].{\forall a,b \in \DD \ix{(a,b) \in R \nc (b,b) \in R}.}

Or, equivalently,

For all a,b∈D,{a,b \in \DD,} if aRb,{a \rel b,} then bRb.{b \rel b.}

Symmetric Relations

Below, the colored cells are members of a relation called Rs:{R_s:}

a{a} b{b} c{c}
a{a} (a,a){(a,a)} (a,b){(a,b)} (a,c){(a,c)}
b{b} (b,a){(b,a)} (b,b){(b,b)} (b,c){(b,c)}
c{c} (c,a){(c,a)} (c,b){(c,b)} (c,c){(c,c)}

Rs{R_s} is an example of a symmetric relation. The basic idea is, if we reach into the relation and find:

(a,b) (a,b)

then we can expect to later get:

(b,a) (b,a)

Here's one definition:

symmetric relation. A relation R{R} on a domain of discourse D{\DD} is symmetric if, and only if:

∀a,b∈D[(a,b)∈R⇒(b,a)∈R]{\forall a,b \in \DD \ix{(a,b) \in R \nc (b,a) \in R}}

Or, equivalently,

For all a,b∈D,{a,b \in \DD,} if aRb,{a \rel b,} then bRa.{b \rel a.}

Antisymmetric Relations

Beloow, the teal-colored cells are members of a relation called Ra,{R_a,} and the and the red-colored cells are members not in Ra.{R_a.}

a{a} b{b} c{c}
a{a} (a,a){(a,a)} (a,b){(a,b)} (a,c){(a,c)}
b{b} (b,a){(b,a)} (b,b){(b,b)} (b,c){(b,c)}
c{c} (c,a){(c,a)} (c,b){(c,b)} (c,c){(c,c)}

This is an example of an antisymmetric relation. The idea is, if someone tells us that a relation is antisymmetric, then:

If we reach into the relation and find the pair:

(a,b) (a,b)

and a≠b,{a \neq b,} then we won't find a pair

(b,a). (b,a).

Here's an explicit definition:

antisymmetric relation. A relation R{R} on a domain of discourse D{\DD} is antisymmetric if, and only if:

∀a,b∈D[((a,b)∈R∧a≠b)⇒(b,a)∉R]{\forall a,b \in \DD \ix{((a,b) \in R \land a \neq b) \nc (b,a) \notin R}}

Or, equivalently,

For all a,b∈D,{a,b \in \DD,} if aRb{a \rel b} and a≠b,{a \neq b,} then bRÌža.{b \nrel a.}

Alternatively:

∀a,b∈D[((a,b)∈R∧(b,a)∈R)⇒a=b].{\forall a,b \in \DD \ix{((a,b) \in R \land (b,a) \in R) \nc a = b}.}

For all a,b∈D,{a,b \in \DD,} if aRb{a \rel b} and bRa,{b \rel a,} then a=b.{a = b.}

Asymmetric Relations

If a relation R{R} is both antisymmetric and irreflexive, we say that R{R} is an asymmetric relation.

asymmetric relation. A relation R{R} on a domain of discourse D{\DD} is asymmetric if, and only if:

∀a,b∈D[(a,b)∉R∹(b,a)∉R]{\forall a,b \in \DD \ix{(a,b) \notin R \lor (b,a) \notin R}}

Or, equivalently,

For all a,b∈D,{a,b \in \DD,} then aRÌžb{a \nrel b} or bRÌža.{b \nrel a.}

Note that this is a very different type of relation from the antisymmetric relation. With the antisymmetric relation, we allow (a,b)∈R{(a,b) \in R} and (b,a)∈R,{(b,a) \in R,} provided that a=b.{a = b.} The asymmetric relation says if we have an (a,b)∈R,{(a,b) \in R,} we'd better not have a (b,a)∈R,{(b,a) \in R,} whether or not a=b.{a = b.}

Transitive Relations

When we see an argument of the form:

(1) R⊆S×S.{R \subseteq S \times S.}

(2) a,b,c∈S.{a, b, c \in S.}

(3) aRb{a \rel b} and bRc.{b \rel c.}

(4) Therefore, aRc{a \rel c}

then we can deduce that R{R} is a transitive relation.

transitivite relation. A relation R{R} on a domain of discourse D{\DD} is transitive if, and only if:

∀a,b,c∈D[((a,b)∈R∧(b,c)∈R)⇒(a,c)∈R]{\forall a,b,c \in \DD \ix{((a,b) \in R \land (b,c) \in R) \nc (a,c) \in R}}

Or, equivalently,

For all a,b,c∈D,{a,b,c \in \DD,} if aRb{a \rel b} and bRc,{b \rel c,} then aRc.{a \rel c.}

Intransitive Relations

Relations that are not transitive are called intransitive relations.

intransitive relation. A relation R{R} on a domain of discourse D{\DD} is intransitive if, and only if:

∀a,b,c∈D[( (a,b)∈R∧(b,c)∈R )⇒(a,c)∉R].{\forall a,b,c \in \DD \ix{(~(a,b) \in R \land (b,c) \in R~) \nc (a,c) \notin R}.}

Or, equivalently,

For all a,b,c∈D,{a,b,c \in \DD,} if aRb{a \rel b} and bRc,{b \rel c,} then aRÌžc.{a \nrel c.}

Left-total Relations

A left-total relation is defined as follows:

left-total relation. Let X{X} and Y{Y} be sets, and R{R} a relation from X{X} to Y.{Y.} Then R{R} is a left-total relation if, and only if,

∀x∈X[∃y∈Y:(x,y)∈R].{\forall x \in X \ix{\exists y \in Y : (x,y) \in R}.}

That is,

for all x∈X,{x \in X,} there exists a y∈Y{y \in Y} such that xRy.{x \rel y.}

Right-total Relations

A right-total relation is defined as follows:

right-total relation. Let X{X} and Y{Y} be sets, and R{R} a relation from X{X} to Y.{Y.} Then R{R} is a right-total relation if, and only if,

∀y∈Y[∃x∈X:(x,y)∈R].{\forall y \in Y \ix{\exists x \in X : (x,y) \in R}.}

That is,

for all y∈Y,{y \in Y,} there exists an x∈X{x \in X} such that xRy.{x \rel y.}

Comparable Relations

If a relation R{R} has the property of comparability, we say that R{R} is a comparabe relation or a strongly-connected relation.

comparable relation. A relation R{R} on a domain of discourse D{\DD} is comparable if, and only if:

∀a,b∈D[(a,b)∈R∹(b,a)∈R]{\forall a,b \in \DD \ix{(a,b) \in R \lor (b,a) \in R}}

Or, equivalently,

For all a,b∈D,{a,b \in \DD,} aRb{a \rel b} or bRa.{b \rel a.}

Connex Relations

If a relation R{R} has the connex property, we say that R{R} is a connected relation or a connex relation.

connex. A relation R{R} on a domain of discourse D{\DD} is a connex relation if, and only if:

∀a,b∈D[(a≠b)⇒(a,b)∈R∹(b,a)∈R].{\forall a,b \in \DD \ix{(a \neq b) \nc (a,b) \in R \lor (b,a) \in R}.}

Or, equivalently,

For all a,b∈D,{a,b \in \DD,} if a≠b,{a \neq b,} then aRb{a \rel b} or bRa.{b \rel a.}

Incomparable Relations

If a relation R{R} has the property of incomparability, we say that R{R} is incomparable.

incomparability relation. A relation R{R} on a domain of discourse D{\DD} is incomparable if, and only if:

∀a,b∈D[(a,b)∉R∧(b,a)∉R]{\forall a,b \in \DD \ix{(a,b) \notin R \land (b,a) \notin R}}

Or, equivalently,

For all a,b∈D,{a,b \in \DD,} aRÌžb{a \nrel b} and bRÌža.{b \nrel a.}

Right Euclidean Relation

A right Euclidean relation is defined as follows:

right euclidean relation. A relation R{R} on a domain of discourse D{\DD} is right Euclidean if, and only if,

∀a,b,c∈D[(a,b),(a,c)∈R⇒(b,c)∈R]{\forall a,b,c \in \DD \ix{ (a,b), (a,c) \in R \nc (b,c) \in R }}

Or, equivalently,

For all a,b,c∈R,{a,b,c \in R,} if aRb{a \rel b} and aRc,{a \rel c,} then bRc.{b \rel c.}

Left Euclidean Relation

A left Euclidean relation is defined as follows:

left euclidean relation. A relation R{R} on a domain of discourse D{\DD} is left Euclidean if, and only if,

∀a,b,c∈D[(b,a),(c,a)∈R⇒(b,c)∈R]{\forall a,b,c \in \DD \ix{ (b,a), (c,a) \in R \nc (b,c) \in R }}

Or, equivalently,

For all a,b,c∈R,{a,b,c \in R,} if bRa{b \rel a} and cRa,{c \rel a,} then bRc.{b \rel c.}

Equivalence Relations

Earlier, we saw the relations:

a{a} b{b} c{c}
a{a} (a,a){(a,a)} (a,b){(a,b)} (a,c){(a,c)}
b{b} (b,a){(b,a)} (b,b){(b,b)} (b,c){(b,c)}
c{c} (c,a){(c,a)} (c,b){(c,b)} (c,c){(c,c)}
a{a} b{b} c{c}
a{a} (a,a){(a,a)} (a,b){(a,b)} (a,c){(a,c)}
b{b} (b,a){(b,a)} (b,b){(b,b)} (b,c){(b,c)}
c{c} (c,a){(c,a)} (c,b){(c,b)} (c,c){(c,c)}

Both of these are examples of equivalence relations.

equivalence relation. A relation ≡{\equiv} on a domain of discourse A{A} is an equivalence relation if, and only if:

  1. a≡a{a \equiv a} reflexivity,
  2. a≡b{a \equiv b} implies b≡a{b \equiv a} symmetry, and
  3. a≡b{a \equiv b} and b≡c{b \equiv c} implies a≡c{a \equiv c} transitivity.

Equivalence relations are a formalization of "sameness." Former U.S. presidents are all different people, but they're all equivalent (i.e., "the same") in terms of being former U.S. presidents. The equivalence relation between all of them is former U.S. president. Apples and oranges are the same in terms of being fruits.

Equivalence Class

If a object x{x} is related to an object y{y} by an equivalence relation, we say that x{x} and y{y} are equivalent, and write x≡y.{x \equiv y.} We say this earlier in our discussion of equivalence relations. Often, it's helpful to gather all the objects equivalent to some object x{x} into a single set. We call this set the equivalence class of x.{x.}

equivalence class. Let ≡{\equiv} be an equivalence relation on the domain of discourse D,{\DD,} and a∈D.{a \in \DD.} Then the equivalence class of a{a} is defined as the set:

\class{a}_{\equiv}~~:=~~\set{b \in \DD : b \equiv a}

Given an element {c \in \class{a}_{\equiv},} c{c} is called a representative of the equivalence class. Note that some authors denote the equivalence class with the notation [a].{\ix{a}.} Because we use this notation in another area of mathematics — combinatorics — we instead use the notation {\class{a}_{\equiv}.}

Partial Orders

Below is the definition of a partial order. Note that there's some new notation being used here. The symbol âȘŻ{\preceq} is a generic symbol for a relation that can be replaced with <,{\lt,} ≀,{\le,} â‰ș,{\prec,} =,{=,} etc. The symbol â‰ș{\prec} means "immediately precedes" and the notation ≻{\succ} means "immdiately succeeds." These are useful notations when we're discussing comparisons between objects that aren't necessarily numbers. For example, if we define the tuple

(George I,George II,George III) (\text{George I}, \text{George II}, \text{George III})

as the partial order of British kings by reign, then we may denote the relation as:

George Iâ‰șGeorge IIâ‰șGeorge III. \text{George I} \prec \text{George II} \prec \text{George III}.

Such a relation would be read as, "George I immediately precedes George II, and George II immediately precess George III." We could, of course, write:

George I<George II<George III \text{George I} \lt \text{George II} \lt \text{George III}

but it looks a bit awkward, given that the <{\lt} is commonly associated with numbers, the Georges aren't numbers (unless we define them as purely regnal numbers), and we risk offending some historian saying, "George I is less than George II ..." As such, we use the weaker symbol âȘŻ{\preceq} to denote some hint of order.

partial order. A relation âȘŻ{\preceq} on a domain of discourse D{\DD} is called a partial order if, and only if, for all a,b,c∈D,{a,b,c \in \DD,}

  1. If aâȘŻb{a \preceq b} and bâȘŻc,{b \preceq c,} then aâȘŻc{a \preceq c} (transitivity), and
  2. If aâȘŻb{a \preceq b} and bâȘŻa,{b \preceq a,} then a=b.{a = b.} (antisymmetry).

Partial orders come in three subtypes: weak partial orders, strong partial orders, and full orders.

Weak Partial Orders

A weak partial order is defined as follows:

weak partial order. A relation âȘŻ{\preceq} on a domain of discourse X{X} is called a weak partial order if, and only if, for all a,b,c∈D{a,b,c \in \DD}

  1. aâȘŻa,{a \preceq a,}
  2. If aâȘŻb{a \preceq b} and bâȘŻc,{b \preceq c,} then aâȘŻc{a \preceq c} (transitivity), and
  3. If aâȘŻb{a \preceq b} and bâȘŻa,{b \preceq a,} then a=b.{a = b.} (antisymmetry).

As we can see from the definition, weak partial orders are what allow us to define the notion of "less than or equal to."

Strong Partial Orders

Strong partial orders are what give us the notion of less than and greater than:

strong partial order. A relation â‰ș{\prec} on a domain of discourse D{\DD} is called a strong partial order if, and only if, for all a,b,c∈D{a,b,c \in \DD}

  1. aâ‰șÌža{a \not\prec a} (irreflexivity),
  2. If aâ‰șb,{a \prec b,} then bâ‰șÌža{b \not\prec a} (asymmetry), and
  3. If aâ‰șb{a \prec b} and bâ‰șc,{b \prec c,} then aâ‰șc{a \prec c} (transitivity).

A classic example of the strong partial order is the <{\lt} relation.

Total Order

A total order is defined as follows:

total order. A relation ≀{\leq} on a domain of discourse D{\DD} is called a total order if, and only if, for all a,b,c∈D{a,b,c \in \DD}

  1. a≀a,{a \leq a,} (transitivity),
  2. a≀b{a \leq b} or b≀a,{b \leq a,} (comparability),
  3. If a≀b{a \leq b} and b≀c,{b \leq c,} then a≀c{a \leq c} (transitivity), and
  4. If a≀b{a \leq b} and b≀a,{b \leq a,} then a=b.{a = b.} (antisymmetry).

Preorders

Preorders are a particularly useful kind of relation that we'll use extensively later.

preorder. Let â‰Č{\lesssim} be relation on the domain of discourse D.{\DD.} Then R{R} is called a preorder if, and only if, for all a,b,c∈D,{a,b,c \in \DD,}

  1. aâ‰Ča{a \lesssim a} (reflexivity), and
  2. If aâ‰Čb{a \lesssim b} and bâ‰Čc,{b \lesssim c,} then aâ‰Čc{a \lesssim c} (transitivity).

The name preorder comes from the fact that preorders are "almost" partial orders. They have the property of transitivity, but not antisymmetry.

Posets

Partial orders lead to another kind of mathematical object called the poset. Posets are defined as a tuple (S,R),{(S,R),} where S{S} is domain of discourse, and R{R} is a relation. This is likely our first encounter with a definition of this form. As we'll see later (and throughout all of the volumes on this site), it is extremely common in mathematics to define objects as tuples:

(set,relation) (\text{set}, \text{relation})
(set,function) (\text{set}, \text{function})
(set,operation) (\text{set}, \text{operation})
(set,functions) (\text{set}, \text{functions})
(set,set,functions) (\text{set}, \text{set}, \text{functions})
(set,operations) (\text{set}, \text{operations})

In fact, there's an entire field of mathematics dedicated to studying the way we construct these definitions, called abstract algebra.

poset. Let âȘŻ{\preceq} be a partial order on a set P.{P.} Then the tuple P=(P,âȘŻ){P = (P,\preceq)} is called a poset (or partially ordered set) if, and only if, for all a,b,c∈P:{a,b,c \in P:}

  1. aâȘŻa{a \preceq a} (reflexivity),
  2. if aâȘŻb{a \preceq b} and bâȘŻa,{b \preceq a,} then a=b{a = b} (antisymmetry), and
  3. if aâȘŻb{a \preceq b} and bâȘŻc,{b \preceq c,} then aâȘŻc{a \preceq c} (transitivity).

Posets are a much weaker notion of ordering (hence the name partial order). A poset can be ordered, but not necessarily. This is because posets impose no requirement for comparability.

Astute readers might have noticed something slightly off about posets. They're a bit, well, redundant. We could've just simply written:

dom(âȘŻ) \dom{\preceq}

When it comes to notation in mathematics, however, traditionâȘŻreason.{\text{tradition} \preceq \text{reason}.}

Minimal and Maximal Elements

Below are the definitions of minimal and maximal elements. Minimals and maximals are much weaker notions of "minimum" and "maximum." A minimal m∈S{m \in S}, informally, is an element that does not precede any other element of S.{S.} That doesn't necessarily make it the smallest element. Why? Becuse posets, by definition, aren't necessarily comparable.

maximal element. Let (A,âȘŻ){(A, \preceq)} be a poset. Then an element b∈A{b \in A} is a maximal element if, and only if,

there is no a∈A{a \in A} such that bâȘŻa.{b \preceq a.}

If the above condition is satisfied, we write:

maximal(A)=b \text{maximal}{(A)} = b

The definition of a minimal element:

minimal element. Let (A,âȘŻ){(A,\preceq)} be a poset. Then an element b∈A{b \in A} is a minimal element if, and only if:

there is no a∈A,{a \in A,} such that aâȘŻb.{a \preceq b.}

If the above condition is satisfied, we write:

minimal(A)=b \text{minimal}{(A)} = b

Chains

Chains are a stronger form of the poset.

chain. Let ≀{\le} be a partial order on a set L.{L.} Then the tuple L=(L,≀){L = (L,\le)} is called a chain, if, and only if, for all a,b,c∈L,{a,b,c \in L,}

  1. a,b∈L,{a,b \in L,} a≀b{a \le b} or b≀a,{b \le a,} (comparability),
  2. a≀a{a \le a} (reflexivity),
  3. if a≀b{a \le b} and b≀a,{b \le a,} then a=b{a = b} (antisymmetry), and
  4. if a≀b{a \le b} and b≀c,{b \le c,} then a≀c{a \le c} (transitivity).

Like the poset, what we call a chain is simply the domain of a total order. Tradition, once again, calls upon us to use a specific term.

Lower Bound and Upper Bound

Here is the definition for lower bound:

lower bound. Let P{P} be a poset (P,âȘŻ),{(P,\preceq),} and S⊆P.{S \subseteq P.} If there exists an element a∈P{\mathcal{a} \in P} such that:

for all s∈S,{s \in S,} aâȘŻs,{\mathcal{a} \preceq s,}

then a{\mathcal{a}} is called the lower bound of S,{S,} which we denote as:

a∈Sℓ a \in S^{\ell}

where Sℓ{S^{\ell}} is the set of all lower bounds of S.{S.}

And the definition of an upper bound:

upper bound. Let P{P} be a poset (P,âȘŻ),{(P, \preceq),} and S⊆P.{S \subseteq P.} If there exists an element a∈P{\mathcal{a} \in P} such that:

for all s∈S,{s \in S,} sâȘŻa,{s \preceq \mathcal{a},}

then a{\mathcal{a}} is called the upper bound of S,{S,} which we denote as:

a∈Su a \in S^{u}

where Su{S^u} is the set of all upper bounds of S.{S.}

Infimum and Supremum

From the definition of a lower bound, we get another relation called the infimum:

infimum. Let (P,âȘŻ),{(P,\preceq),} be a poset and S⊆P.{S \subseteq P.} If:

  1. there exists an element i∈Sℓ,{\texttt{i} \in S^{\ell},} and
  2. for all s∈Sℓ,{s \in S^{\ell},} iâȘŻs,{\texttt{i} \preceq s,}

then we say the element i∈S{\texttt{i} \in S} is the infimum of S.{S.} To denote the infimum i,{\texttt{i},} we may use any of the following notations:

inf⁡(S)=⋀i∈Si=i \inf(S) = \bigwedge\limits_{\texttt{i} \in S} \texttt{i} = \texttt{i}

The symbol ⋀{\bigwedge} is often called "big wedge" after its LaTeX command, \bigwedge. The benefit to using this notation is that it falls in line with the using the notation x∧y,{x \land y,} which returns the infimum of (x,y).{(x,y).} Those familiar with symbolic logic might recognize this as the and operator. Indeed, when x,y∈{ 0:=“false”,1:=“true” },{x,y \in \set{0 := \string{false},1 := \string{true}},} it becomes apparent why ∧{\land} is an attractive notation. Given 0∧1,{0 \land 1,} we get 0,{0,} or “false”.{\string{false}.}

Likewise, the definition of an upper bound gives us another relation called the supremum.

supremum. Let (P,âȘŻ){(P,\preceq)} be a poset and S⊆P.{S \subseteq P.} If:

  1. there exists an element b∈Su{\texttt{b} \in S^{u}} and
  2. for all s∈Su,{s \in S^{u},} sâȘŻb,{s \preceq \texttt{b},}

then we say the element b∈S{\texttt{b} \in S} is the supremum of S.{S.} To denote the supremum b,{\texttt{b},} we may use any of the following notations:

sup⁡(S)=⋁b∈Sb=b \sup(S) = \bigvee\limits_{\texttt{b} \in S} \texttt{b} = \texttt{b}

Mimimum and Maximum

The maximum of a set P{P} is defined as follows:

minimum. Let (P,âȘŻ){(P,\preceq)} be a poset. If:

  1. there exists an element ℓ∈P,{\ell \in P,} such that
  2. for all p∈P,{p \in P,} ℓâȘŻp,{\ell \preceq p,}

then ℓ∈P{\ell \in P} is the minimum of P,{P,} denoted:

min⁡(P)=ℓ \min{(P)} = \ell

and the minimum of a set P:{P:}

maximum. Let (P,âȘŻ){(P,\preceq)} be a poset. If:

  1. there exists an element u∈P,{u \in P,} such that
  2. for all p∈P,{p \in P,} uâȘŻb,{u \preceq b,}

then u∈P{u \in P} is the minimum of P,{P,} denoted:

max⁥(P)=u \max{(P)} = u

Well-ordered Relations

Now that we have the definition of minimal and maximal elements, we can define an extremely useful relation called a well ordering.

well ordering. Let R{R} be a on the domain of discourse D.{\DD.} If, and only if,

  1. R{R} is a total order, and
  2. every non-empty subset of D{\DD} has a minimum,

then R{R} is a well-ordered relation.

Left-unique Relations

A left-unique relation is defined as follows:

left-unique relation. Let X{X} and Y{Y} be sets, and R{R} a relation from X{X} to Y.{Y.} Then R{R} is left-unique if, and only if,

(∀x,z∈X∧∀y∈Y)[((x,y)∈R∧(z,y)∈R)⇒x=z].{(\forall x,z \in X \land \forall y \in Y)\ix{ ((x,y) \in R \land (z,y) \in R) \nc x = z }.}

That is,

For all x,z∈X{x,z \in X} and for all y∈Y,{y \in Y,} if xRy{x \rel y} and zRy,{z \rel y,} then x=z.{x = z.}

Right-unique Relations

A right-unique relation (also called a univalent relation), is defined as follows:

right-unique relation. Let X{X} and Y{Y} be sets, and R{R} a relation from X{X} to Y.{Y.} Then R{R} is right-unique if, and only if,

(∀x,z∈X∧∀y∈Y)[((x,y)∈R∧(z,y)∈R)⇒y=z].{(\forall x,z \in X \land \forall y \in Y)\ix{ ((x,y) \in R \land (z,y) \in R) \nc y = z }.}

That is,

For all x,z∈X{x,z \in X} and for all y∈Y,{y \in Y,} if xRy{x \rel y} and zRy,{z \rel y,} then y=z.{y = z.}

As we'll see later, the right-unique relation is a key component in the definition of functions.

Maps

Another type of relation is the map; also called mapping, assignment, function, operation, or transformation. While the latter terms are often used interchangeably, we take a bit more care in using the words and distinguish them by definition. In these materials, we will say that map, assignment, and mapping are synonymous, but function, operation, and transformation are special kinds of maps.

map. Let A,{A,} B,{B,} and Γ{\Gamma} be sets, such that Γ⊆A×B.{\Gamma \subseteq A \times B.} Then the triple:

f=(A,B,Γ) f = (A, B, \Gamma)

is a map if, and only if

For each a∈A,{a \in A,} there is exactly one b∈B{b \in B} with (a,b)∈Γ.{(a,b) \in \Gamma.}

We write f(a){f(a)} for this unique b,{b,} and call it the value of f{f} at a{a} (or the image of a{a} under f{f}). We say that A{A} is the domain of f,{f,} B{B} the codomain of f,{f,} and Γ{\Gamma} the graph of f.{f.} We write:

f:A→B f : A \to B

to indicate that f{f} is a map from A{A} to B.{B.}

Visualizing the map relation as a graph, all of the following are maps:

But the following are not: