ConceptComplete

Relations and Functions - Core Definitions

Relations and functions are fundamental constructs in set theory, providing the mathematical framework for describing relationships between objects. In ZFC, all mathematical concepts, including relations and functions, are ultimately defined in terms of sets.

DefinitionOrdered Pair

An ordered pair (a,b)(a, b) is a mathematical object where order matters. The defining property is that (a,b)=(c,d)(a, b) = (c, d) if and only if a=ca = c and b=db = d. In set theory, we use the Kuratowski definition:

(a,b):={{a},{a,b}}(a, b) := \{\{a\}, \{a, b\}\}

This definition satisfies the required property and constructs ordered pairs purely from sets.

The Kuratowski construction is elegant and minimal. Notice that if a=ba = b, then (a,a)={{a},{a,a}}={{a}}(a, a) = \{\{a\}, \{a, a\}\} = \{\{a\}\}, and we can still recover both coordinates. The first coordinate is the element that appears in every set in the ordered pair, and the second coordinate is any element that appears.

DefinitionCartesian Product

The Cartesian product of sets AA and BB, denoted AΓ—BA \times B, is the set of all ordered pairs with first coordinate from AA and second coordinate from BB:

AΓ—B={(a,b):a∈A∧b∈B}A \times B = \{(a, b) : a \in A \land b \in B\}

By the axioms of pairing, union, and comprehension applied to P(P(AβˆͺB))\mathcal{P}(\mathcal{P}(A \cup B)), this set exists in ZFC.

ExampleSmall Cartesian Products

Consider A={1,2}A = \{1, 2\} and B={x,y}B = \{x, y\}. Then:

AΓ—B={(1,x),(1,y),(2,x),(2,y)}A \times B = \{(1, x), (1, y), (2, x), (2, y)\}

If either set is empty, the product is empty: AΓ—βˆ…=βˆ…A \times \emptyset = \emptyset for any set AA. The cardinality satisfies ∣AΓ—B∣=∣Aβˆ£β‹…βˆ£B∣|A \times B| = |A| \cdot |B| when both sets are finite.

DefinitionBinary Relation

A binary relation RR from a set AA to a set BB is a subset of the Cartesian product: RβŠ†AΓ—BR \subseteq A \times B. We write aRbaRb or (a,b)∈R(a, b) \in R to denote that aa is related to bb under RR.

The domain of RR is dom(R)={a∈A:βˆƒb∈B((a,b)∈R)}\text{dom}(R) = \{a \in A : \exists b \in B((a, b) \in R)\}.

The range of RR is ran(R)={b∈B:βˆƒa∈A((a,b)∈R)}\text{ran}(R) = \{b \in B : \exists a \in A((a, b) \in R)\}.

The field of RR is fld(R)=dom(R)βˆͺran(R)\text{fld}(R) = \text{dom}(R) \cup \text{ran}(R).

Relations provide a general framework for describing connections between objects. The relation "less than" on natural numbers is {(m,n)βˆˆΟ‰Γ—Ο‰:m<n}\{(m, n) \in \omega \times \omega : m < n\}, which in set theory means m∈nm \in n.

Remark

Relations are first-class objects in set theoryβ€”they are simply sets of ordered pairs. This allows us to manipulate relations using standard set-theoretic operations like union, intersection, and complementation. For instance, the inverse relation Rβˆ’1={(b,a):(a,b)∈R}R^{-1} = \{(b, a) : (a, b) \in R\} is also a set.

DefinitionFunction

A function (or mapping) ff from a set AA to a set BB, written f:Aβ†’Bf: A \to B, is a relation fβŠ†AΓ—Bf \subseteq A \times B satisfying:

  1. Total: For every a∈Aa \in A, there exists b∈Bb \in B such that (a,b)∈f(a, b) \in f
  2. Single-valued: If (a,b)∈f(a, b) \in f and (a,c)∈f(a, c) \in f, then b=cb = c

We write f(a)=bf(a) = b when (a,b)∈f(a, b) \in f. The set AA is called the domain of ff, and BB is called the codomain.

The function concept formalizes the intuitive idea of a rule that assigns to each input exactly one output. The totality condition ensures the function is defined everywhere on its domain, while the single-valued condition ensures uniqueness of outputs.

ExampleFunction Examples
  1. The identity function on AA is idA={(a,a):a∈A}\text{id}_A = \{(a, a) : a \in A\}
  2. The constant function mapping everything to c∈Bc \in B is {(a,c):a∈A}\{(a, c) : a \in A\}
  3. The successor function on Ο‰\omega is S={(n,n+1):nβˆˆΟ‰}S = \{(n, n+1) : n \in \omega\}
  4. The characteristic function of AβŠ†XA \subseteq X is Ο‡A:Xβ†’{0,1}\chi_A: X \to \{0, 1\} defined by:
Ο‡A(x)={1ifΒ x∈A0ifΒ xβˆ‰A\chi_A(x) = \begin{cases} 1 & \text{if } x \in A \\ 0 & \text{if } x \notin A \end{cases}
DefinitionImage and Preimage

Let f:A→Bf: A \to B be a function.

The image of a set XβŠ†AX \subseteq A under ff is:

f[X]={f(x):x∈X}={b∈B:βˆƒx∈X(f(x)=b)}f[X] = \{f(x) : x \in X\} = \{b \in B : \exists x \in X(f(x) = b)\}

The preimage (or inverse image) of a set YβŠ†BY \subseteq B under ff is:

fβˆ’1[Y]={a∈A:f(a)∈Y}f^{-1}[Y] = \{a \in A : f(a) \in Y\}

The image and preimage operations have useful properties. For instance, fβˆ’1[Y1βˆͺY2]=fβˆ’1[Y1]βˆͺfβˆ’1[Y2]f^{-1}[Y_1 \cup Y_2] = f^{-1}[Y_1] \cup f^{-1}[Y_2] and fβˆ’1[Y1∩Y2]=fβˆ’1[Y1]∩fβˆ’1[Y2]f^{-1}[Y_1 \cap Y_2] = f^{-1}[Y_1] \cap f^{-1}[Y_2], showing that preimage preserves all set operations.

Remark

In set theory, we distinguish between a function ff (a set of ordered pairs) and its action f(a)f(a) (the unique bb such that (a,b)∈f(a, b) \in f). This distinction is sometimes blurred in informal mathematics, but it is important for foundational clarity. The notation fβˆ’1[Y]f^{-1}[Y] denotes preimage, which exists for any function, while fβˆ’1f^{-1} as a function only exists when ff is bijective.

Functions are the workhorses of mathematics, appearing in every area from analysis to algebra to topology. Understanding their set-theoretic foundation clarifies many subtle points and enables rigorous treatment of infinite function spaces and transfinite constructions.