A Handbook of Mathematical Discourse
type
The type of a symbol is the kind of value it is allowed to have in the current context.
Example 1 In the assertion
“If $f$ is differentiable and $f'(x) = 0$ then $x$ is a critical point of $f$.”
we may deduce that $f$ is of type function and $x$ is (probably) of type real, even if the author does not say this.
This sort of type deduction requires both mathematical knowledge and knowledge of conventions; in the present example one convention is that complex numbers are more commonly written $z$ instead of $x$. Mathematical knowledge (as well as convention) tells us that $x$ cannot be of type integer.
Types and sets One could dispense with the concept of type and refer to the set of possible values of the symbol. It appears to me however that “type” is psychologically different from “set”. Normally one expects the type to be a natural and homogeneous kind such as “function” or “real number”, not an arbitrary kind such as “real number bigger than 3 or integer divisible by 4”. One has no such psychological constraint on sets themselves. This needs further investigation.
Type labeling Type labeling means giving the type of a symbol along with the symbol. It is a form of redundancy.
Example 2 If it has been established on some early page of a text that $S_{3}$ denotes the symmetric group on 3 letters. A later reference to it as “the group $S_{3}$” or “the symmetric group $S_{3}$” is an example of type labeling.
Remark 1 Russian mathematical authors seem to do this a lot, although that may be because one cannot attach grammatical endings to symbols.
References: Jeffrey Ullman, in a guest appearance in [Knuth, Larrabee and Roberts, 1989], flatly recommends always giving the type of a symbol. Using explicit typing in teaching is advocated in [Wells, 1995]. See also [Bagchi and Wells, 1998a].
Difficulties Students commonly make type mistakes (talking about $2\pi$ being divisible by 2, for example); it would be helpful to refer to the concept explicitly as a way of raising consciousness. This is discussed in [Wells, 1995]. Citations: (194), (248).
Pages 257–258 of the book (PDF).