A Handbook of Mathematical Discourse
variable
The noun variable in mathematical discourse generally refers to a variate symbol. The word is used primarily in certain conventional settings, primarily as a named element of the domain of a function, as a reference to an unnamed function, and in certain technical terms, most notably “random variable”. Most other occurrences of variate identifiers would not be called variables, except in mathematical logic, where the word is given a technical definition that in effect refers to any variate identifier. This Handbook uses the terminology of mathematical logic.
Example 1 In the discourse
“ Let $f$ be a function for which $f(x) > 0$ when $x > 2$. ”
the $x$ and the $f$ are both variate symbols. In common mathematical parlance only $x$ would be called a variable. In the terminology of mathematical logic, both $x$ and $f$ are variables.
Example 2 Consider the discourse:
“Let $G$ be a group with identity element $e$ and an element $a$ for which $a^{2} = e$. Then $a = a^{-1}$.”
The author or speaker may go on to give a proof of the claim that $a = a^{-1}$, talking about $G, e$, and $a$ with the same syntax used to refer to physical objects and to specific mathematical objects such as 3 or the sine function.
Because of the way the proof is written, the writer will appear to have in mind not any specific group, and not all possible groups, but a nonspecific or variable group. The symbol $G$ is a variable; it varies over groups.
Example 3 In the phrase “A function of $n$ variables” the word refers to the inputs to the function. If the function is given by a formula the variables would normally appear explicitly in the formula.
Example 4 The statement, “Let $x$ be a variable dependent on $t$” has the same effect as saying “Let $f(t)$ be a function”, but now the value is called $x$ or $x(t)$ instead of $f(t)$. Citations: (4), (106), (205), (235), (276), (351), (370).
The adjective “variable” is used to say that the object it modifies is a variable mathematical object. Citations: (89), (396).
There are several ways to think about variables and several ways to formalize them.
(a) How to think about variables
(i) Variable objects One way of understanding the symbol $G$ in Example 2 is that it refers to a variable mathematical object.
From this point of view, what $G$ refers to is a genuine mathematical object just like 3 or $\mathbb{R}$, the difference being that it is an object that is variable as opposed to uniquely determined. This is sound: there are various methods using mathematical logic or category theory that give a formal mathematical definition of “variable object”.
(ii) Incomplete specification There is another point of view about $G$ that I suspect many mathematicians would come up with if asked about this topic: $G$ refers to any group that meets the constraint (in this case having a nontrivial element whose square is the identity element). It is thus incompletely specified. Statements made about it become true if one deduces the statements from the axioms for groups and the given constraints, and not from any other specific properties a group might have.
(iii) Variable as role A metaphor that in some manner incorporates the “incomplete specification” point of view is that a variable is a role; in Example $2,G$ is a role that can be played by any group satisfying the constraint. Then the proof is like a play or a movie; when it stars a particular group in the role of $G$ it becomes a proof of the theorem about that group. References: The idea of role comes from [Lakoff and Núñez, 2000].
(b) Formalisms for variables
(i) Logicians’ formalism In classical logic an interpretation of discourse such as that in Example 2 assigns a specific group to $G$, its identity element to $e$, an element of that group to $a$, and so on. An assertion containing identifiers of variable mathematical objects is said to be true if it is true in all interpretations. I will call this the logician’s semantics of variables. For the purposes of giving a mathematical definition of the word “variable”, it would be reasonable to identify the variable object with the symbol in the formal language (such as $G$ in the example above) corresponding to it.
Another possibility would be to identify the variable object with the set of all possible interpretations, although to do that correctly would require dealing with the fact that that “set” might actually be a proper class.
(ii) Categorists’ semantics of variable objects Categorists have another approach to the concept of variable mathematical object. One defines a theory, which is a specific category (the theory for groups, for example). The theory contains a specific object $g$. Every group is the value at $g$ of a certain type of functor based on that theory. It is natural to interpret the object $g$ of the theory (or, perhaps better, the entire theory) as the object denoted by the identifier $G$ in Example 2 above.
References: The categorical approach is worked out in [Fourman, 1977], [Makkai and Reyes, 1977], [Fourman and Vickers, 1986], [Lambek and Scott, 1986].
(iii) Specific approaches The approaches suggested so far are general ways of understanding variable objects. Certain specific constructions for particular types of variable objects have been known for years, for example the familiar construction of the variable $x$ in the polynomial ring of a field as an infinite sequence that is all 0’s except for a 1 in the second place.
Other aspects of variables are discussed under bound variable, free variable, determinate, substitution, variate, Platonism and the discussion after Example 2 under variable mathematical object. Related concepts are constant, parameter and unknown.
Pages 268–271 of the book (PDF).