2  Background

2.1 Sets

A set is a collection of elements.

TipNotation

We reserve uppercase letters as labels for sets and lowercase letters as labels for their elements. We write \(a \in A\) to indicate that \(a\) is an element of \(A\).

We may specify a set by enumeration, e.g., \(\{0, 2, 4\}\) is a set of three natural numbers. Alternatively, we may specify a condition satisfied by all, and only its elements, e.g., {\(x\): \(x\) is an even natural number less than 5}.

Definition 2.1 A set \(A\) is a subset of another set \(B\), written \(A \subseteq B\), if every element of \(A\) is an element of \(B\). A set \(A\) is a proper subset of \(B\) if \(A\) is a subset of \(B\) but \(B\) is not a subset of \(A\).

Proposition 2.1 (Extensionality) If \(A\) is a subset of \(B\) and \(B\) is a subset of \(A\), then \(A\) is the same set as \(B\). That is, \(A = B\).

One may think that no mater what objects may be, there is a collection of them. Or, otherwise put, for each condition \(\dots x \dots\), there is a collection of all and only those objects satisfying the condition \(\dots x \dots\). That is, there is a set of the form \(\{x: \dots x \dots\}\). But that would be a mistake.

WarningRussell’s paradox

Consider the condition \(x \notin x\). There is no set of the form \(\{x : x \notin x\}\). For suppose such a set exists, which we may call \(R\).

if \(R \in R\), then \(R\) does not satisfy the condition \(x \notin x\) and \(R\notin R\).

if \(R\notin R\), then \(R\) satisfies the condition \(x \notin x\) and \(R \in R\).

We conclude that \(R \in R\) if, and only if, \(R \notin R\), which leads to contradiction.

In response to Russell’s paradox, we limit ourselves to collections we may construct from antecedently given collections in accordance to the axioms of modern set theory.

Proposition 2.2 (Separation) If \(A\) is a set and \(\dots x \dots\) is a condition on elements of \(A\), then there is a set \(B\) of exactly those elements of \(A\) which satisfy the condition \(\dots x \dots\). That is, \(B = \{x \in A: \dots x \dots\}\)

The axiom of separation yields the existence of sets conditional on the existence of supersets. To secure the inconditional existence of a set, we require another axiom.

Proposition 2.3 (Empty Set) There is a set without members which we label \(\emptyset\). That is, \(\emptyset\) is the set \(\{x: x \neq x\}\).

Further axioms justify the existence of sets constructed in terms of other given sets. The Pair Set Axiom, for example, justifies the existence of a pair set of two given sets:

Proposition 2.4 (Pair Set) Given two objects \(a\) and \(b\), there is a set whose elements are exactly \(a\) and \(b\). We write \(\{a, b\}\) for the pair set of \(a\) and \(b\).

2.2 Relations

We construe relations as sets of ordered pairs. But an ordered pair is itself a special set from which we can recover the order in which two components are given.

Definition 2.2 (Ordered Pair) The ordered pair of \(a\) and \(b\), \((a, b)\), is a doubleton set \(\{\{a\},\{a, b\}\}\). We will write that its first element is \(a\) and that its second element is \(b\).

Other definitions of ordered pair are feasible, but what matters is the ability to encode the order in which the two components are given.

Theorem 2.1 The ordered pair \((a, b)\) is the same as the ordered pair \((c, d)\) if, and only if, \(a\) is the same object as \(c\) and \(b\) is the same object as \(d\).

We first unfold the definition of \((a, b)\) as \(\{\{a\}, \{a, b\}\}\) and \((c, d)\) as \(\{\{c\},\{c, d\}\}\). We now argue that if \(\{\{a\},\{a, b\}\}\) is the same set as \(\{\{c\},\{c, d\}\}\), then \(a=c\) and \(b = d\).

We distinguish two cases:

If \(a=b\), then \(\{\{a\},\{a, b\}\}\) is \(\{\{a\},\{a,a\}\}\), which is just \(\{a\}\}\). So, if \(\{\{a\},\{a, b\}\}\) is the same set as \(\{\{c\},\{c, d\}\}\), then \(\{\{a\}\}\) is the same set as \(\{\{c\},\{c, d\}\}\), which means that \(c = d\) and \(a= c\) and \(b = d\).

If \(a\neq b\), then the singleton \(\{a\}\) and the doubleton \(\{a, b\}\) must correspond to \(\{c\}\) and \(\{c, d\}\), respectively, which requires that \(a=c\) and \(b=d\).

We can now identify a relation with a set of ordered pairs.

Definition 2.3 (Cartesian Product) The Cartesian Product \(A \times B\) of two sets \(A\) and \(B\) is the set of ordered pairs whose first element belongs to \(A\) and whose second element belongs to \(B\). That is, the Cartesian Product of two sets \(A\) and \(B\) is: \[A \times B = \{(x, y): x\in A \wedge y\in B\}.\]

Definition 2.4 (Relation) If \(A\) is a set, \(R\) is a binary relation on \(A\) if, and only if, \(R\) is a subset of \(A \times A\).

\(R\) is a binary relation if, and only if, \(R\) is a binary relation on some set \(A\).

TipNotation

If \(R\) is a binary relation on \(A\), we sometimes write \(Rxy\) or \(xRy\) for \((x, y) \in R\).

2.2.1 Structural Features of Relations

We now specify some structural features a binary relation may exemplify.

Definition 2.5 (Reflexivity) If \(R\) is a binary relation on a set \(A\),

  • \(R\) is reflexive on \(A\) iff for every element \(x \in A\), \(Rxx\)

  • \(R\) is irreflexive on \(A\) iff for every element \(x \in A\), \(\neg Rxx\) for every element \(x\) in \(A\).

  • \(R\) is non-reflexive on \(A\) iff for some element \(x \in A\), \(\neg Rxx\).

2.3

Definition 2.6 (Symmetry) If \(R\) is a binary relation on a set \(A\),

  • \(R\) is symmetric on \(A\) iff for all \(x, y \in A\), if \(Rxy\), then \(Ryx\).

  • \(R\) is asymmetric on \(A\) iff for all \(x,y \in A\), if \(Rxy\), then \(\neg Ryx\).

  • \(R\) is non-symmetric on \(A\) iff for some \(x, y \in A\), \(Rxy\) and \(\neg Ryx\).

  • \(R\) is antisymmetric on \(A\) iff for all \(x, y \in A\), if \(Rxy\), then \(Ryx\) only if \(x=y\)

Definition 2.7 (Transitivity) If \(R\) is a binary relation on a set \(A\),

  • \(R\) is transitive on \(A\) iff for all elements \(x,y,z \in A\), if \(Rxy\) and \(Ryz\), then \(Rxz\).

  • \(R\) is intransitive on \(A\) iff for all elements \(x,y,z \in A\), if \(Rxy\) and \(Ryz\), then \(\neg Rxz\).

  • \(R\) is non-transitive on \(A\) iff for some elements \(x,y,z \in A\), if \(Rxy\) and \(Ryz\), then \(\neg Rxz\).

Definition 2.8 (Equivalence Relation) A binary relation \(R\) on a set \(A\) is an equivalence relation on \(A\) if, and only if,

  • \(R\) is reflexive on \(A\), and
  • \(R\) is symmetric on \(A\), and
  • \(R\) is transitive on \(A\).

Given an equivalence relation \(R\) on a set \(A\), we will write that two elements \(x, y \in A\) are \(R\)-equivalent when \(Rxy\). Equivalence relations induce a partition of the relevant set \(A\) into equivalence classes.

Definition 2.9 (Equivalence Class) If a relation \(R\) is an equivalence relation on a set \(A\), for each \(x\in A\), the equivalence class of \(x\), written \([x]_R\) is the set of elements of \(A\) that are \(R\)-equivalent to it: \[ [x]_R:=\{y\in A: Rxy\}. \] The quotient of \(A\) under \(R\) is the set of equivalence classes induced by \(A\): \[ A/R:= \{[x]_R: x \in A\}. \]

There is an alternative characterization of equivalence relations in terms of reflexivity and yet another structural feature of relations.

Definition 2.10 (Euclidean) If \(R\) is a binary relation on a set \(A\), then:

  • \(R\) is euclidean on \(A\) iff for all elements \(x, y, z\in A\), if if \(Rxy\) and \(Rxz\), then \(Ryz\).

Here is the alternative characterization of an equivalence relation in question:

Theorem 2.2 If \(R\) is a binary relation on a set \(A\), then \(R\) is an equivalence relation on \(A\) if, and only if, \(R\) is reflexive on \(A\) and \(R\) is euclidean on \(A\).

NoteFurther Structural Features of Relations

If \(R\) is a binary relation on a set \(A\), then:

  • \(R\) is serial on \(A\) iff for every \(x\in A\), there is some \(y\in A\) such that \(Rxy\).

  • \(R\) is convergent on \(A\) iff for every \(x,y,z\in A\), if \(Rxy\) and \(Rxz\), then for some \(w\in A\), \(Ryw\) and \(Rzw\).

  • \(R\) is connected on \(A\) iff for every \(x, y \in A\), \(Rxy\) or \(x=y\) or \(Ryx\).

2.4 Induction and Definitions by Recursion

Induction is a powerful method for proving universal generalizations over some items ordered by the natural numbers, e.g., formulas and proofs by induction of length. Because natural numbers are defined inductively from \(0\) and the successor operation, they are similarly governed by a principle of induction:

Proposition 2.5 (Induction on the Natural Numbers) Given a condition \(\Phi\) on natural numbers, if

  • \(\Phi(0)\), and
  • for every natural number \(n\), \(\Phi(n)\) only if \(\Phi(n+1)\),

then for every natural number \(n\) \(\Phi(n)\).

Proposition 2.6 (Induction on the Positive Integers) Given a condition \(\Phi\) on positive integers, if

  • \(\Phi(1)\), and
  • for every positive integer \(n\), \(\Phi(n)\) only if \(\Phi(n+1)\),

then for every positive integer \(n\), \(\Phi(n)\).

A word of caution. The principle of induction becomes all too powerful when it is misused. Here is an example of how a misapplication of mathematical induction can lead us astray. Let me give you some examples.

We will sometimes rely on alternative but equivalent forms of induction:

Proposition 2.7 (Complete Induction) Given a condition \(\Phi(n)\) on natural numbers, if

  • \(\Phi(0)\), and
  • if for all \(m < n\), \(\Phi(m)\), then \(\Phi(n)\).

then for every natural number \(n\), \(\Phi(n)\).

Equivalently:

Proposition 2.8 (Complete Induction without a Base Case) Given a condition \(\Phi(n)\) on natural numbers, if

  • if for all \(m < n\), \(\Phi(m)\), then \(\Phi(n)\),

then for every natural number \(n\), \(\Phi(n)\).

Notice that \(\Phi(0)\) will be true if the conditional above holds, for it will be vacuously true that all natural numbers less than \(0\) satisfy the condition \(\Phi\).

We will often define infinite sets by recursion, which is closely connected to induction.


  1. Consider the word ‘radar’ for example.↩︎

  2. Consider the words ‘flow’ and ‘wolf’, for example.↩︎