38. Extensions of predicates with more than one variable
In section 18.1, page 27, we discussed the extension of a predicate containing one variable; the extension is a subset of the type set of the variable. For example, the extension of “$x<5$” ($x$ real) is the subset $\{x\mid x<5\}$ of $\mathrm{R}$.
38.1.1 Remark A predicate can contain several occurrences of one variable. If it contains no occurrences of other variables, it is still said to contain one variable. For example, “$(x<5)\wedge(x>1)$” contains two occurrences of one variable, namely $x$. On the other hand, “$(x-y<5)\wedge(x+y>1)$” contains two variables, $x$ and $y$.
A predicate with more than one variable, such as “$x<y$” ($x,y$ real), has an extension which is a subset of a Cartesian product of its variable types.
38.1.2 Example The extension of “$x<y$” in $\mathrm{R}\times\mathrm{R}$ is
$$\{\langle x,y\rangle\mid x<y\}$$
which is a subset of $\mathrm{R}\times\mathrm{R}$.
38.1.3 Example The extension of the predicate “$x=x$” in $\mathrm{R}$ is the subset $\mathrm{R}$ of $\mathrm{R}$, whereas the extension of the predicate “$x=y$” in $\mathrm{R}\times\mathrm{R}$ is $\Delta_{\mathrm{R}}$, the diagonal subset of $\mathrm{R}\times\mathrm{R}$.
38.1.4 Worked Exercise Write out the extension of the predicate “has the same prime divisors as” in $\{2,3,4,6\}^{2}$.
Answer $\{\langle 2,2\rangle,\langle 3,3\rangle,\langle 2,4\rangle,\langle 4,2\rangle,\langle 4,4\rangle,\langle 6,6\rangle\}$.
38.1.5 Remark The Cartesian product in which the extension of a predicate lies is not uniquely determined. For example, the predicate “$x<y$” has an extension in the set $\mathrm{R}\times\mathrm{R}\times\mathrm{R}$, namely the subset $\left\{\langle x,y,z\rangle\mid x<y\right\}$. In this case, there is no condition on the variable $z$. There is a good reason for allowing this situation. For example, the predicate “$y<z$” also has an extension in $\mathrm{R}\times\mathrm{R}\times\mathrm{R}$, namely $\left\{\langle x,y,z\rangle\mid y<z\right\}$. Looking at it this way allows us to say that the extension of “$x<y\wedge y<z$” in $\mathrm{R}\times\mathrm{R}\times\mathrm{R}$ is the intersection of the extensions of “$x<y$” and “$y<z$”.
By the way, we could have regarded $\mathrm{R}\times\mathrm{R}\times\mathrm{R}$ as the set of tuples
$$\left\{\langle y,z,x\rangle\mid x,y,z\in\mathrm{R}\right\}$$
Then the extension of “$x<y$” would be $\left\{\langle y,z,x\rangle\mid x<y\right\}$. Because of this sort of thing, it pays to be careful to describe exactly what set the extension of a predicate lies in.
38.2 Exercise set
In Problems 38.2.1 through 38.2.4, describe explicitly the extensions of the predicates in the given set; $x$, $y$ and $z$ are real and $n$ is an integer. Associate $x,y,z$ with coordinates in a tuple in alphabetical order.
38.2.1 $x>n$, in $\mathrm{R}\times\mathrm{N}$. (Answer on page 244.)
38.2.2 $x+y=x+1$, in $\mathrm{R}\times\mathrm{R}$. (Answer on page 244.)
38.2.3 $y=1$, in $\mathrm{R}$. (Answer on page 244.)
38.2.4 $x+y=z$, in $\mathrm{R}\times\mathrm{R}\times\mathrm{R}\times\mathrm{R}$. (Answer on page 244.)
Pages 55–56 of the book (PDF).