Functions
So, a binary relation is a set of ordered pairs, any such set. A binary relation on a set \(X\) is a binary relation which is a subset of \(X\times X\). A binary relation between sets \(X\) and \(Y\) is a binary relation which is a subset of \(X\times Y\). Now, I want to say what is a function: a function will be a special kind of a binary relation. Let us fix a binary relation \(R\). This just means that \(R\) is a set of ordered pairs. Two natural sets assigned to \(R\) are its domain and its range : \[\mathrm{dom}(R):=\{x : \exists y, \langle x,y \rangle\in R\},\] \[\mathrm{ran}(R):=\{y : \exists x, \langle x,y \rangle \in R\}.\] Of course, it's not immediate that these are sets, but there is no doubt that they are classes. In order for a class to be a set, it suffices for it to be contained in a set. More precisely, if a class \(C\) is contained in a set \(X\), then \(C\) is equal to the intersection \(X\cap C\). The intersection of a set and a class is a set by Axiom of...