20. Sets of real numbers
Now we use the setbuilder notation to define a notation for intervals of real numbers.
20.1 Definition: interval
An open interval
$$(a\,..\,b)=\{x\in\mathrm{R}\mid a<x<b\} \tag{20.1}$$
for any specific real numbers $a$ and $b$. A closed interval includes its endpoints, so is of the form
$$[a\,..\,b]=\{x\in\mathrm{R}\mid a\leq x\leq b\} \tag{20.2}$$
20.1.1 Example The interval $\mathrm{I}$ defined in (18.3), page 29, is $[0\,..\,1]$.
20.1.2 Usage The more common notation for these sets uses a comma instead of two dots, but that causes confusion with the notation for ordered pair which will be introduced later.
20.1.3 Exercise Which of these are the same set? $x$ is real.
$$\begin{array}{ll} \text{a) } \{0,1,-1\} & \text{d) } \{x\mid x^{3}=-x\} \\ \text{b) } \{x\mid x=-x\} & \text{e) } [-1\,..\,1] \\ \text{c) } \{x\mid x^{3}=x\} & \text{f) } (-1\,..\,1) \end{array}$$
(Answer on page 243.)
20.2 Bound and free variables
The variable in setbuilder notation, such as the $x$ in Equation (18.3), is bound, in the sense that you cannot substitute anything for it. The “dummy variable” $x$ in an integral such as $\int_{a}^{b}f(x)\,dx$ is bound in the same sense. On the other hand, the $a$ and $b$ in Equation (20.2) are free variables: by substituting real numbers for $a$ and $b$ you get specific sets such as $[0\,..\,2]$ or $[-5\,..\,3]$. Free variables which occur in a definition in this way are also called parameters of the definition.
Pages 31–32 of the book (PDF).