PhiloWikiConceptsPhilosophersBooksInteractive graph

Concept

Free variables and bound variables

Overview

In mathematics, and in other disciplines involving formal languages, including mathematical logic and computer science, a variable may be said to be either free or bound. Some older books use the terms real variable and apparent variable for free variable and bound variable, respectively. A free variable is a notation (symbol) that specifies places in an expression where substitution may take place and is not a parameter of this or any container expression. The idea is related to a placeholder (a symbol that will later be replaced by some value), or a wildcard character that stands for an unspecified symbol.

In computer programming, the term free variable refers to variables used in a function that are neither local variables nor parameters of that function. The term non-local variable is often a synonym in this context.

An instance of a variable symbol is bound, in contrast, if the value of that variable symbol has been bound to a specific value or range of values in the domain of discourse or universe. This may be achieved through the use of logical quantifiers, variable-binding operators, or an explicit statement of allowed values for the variable (such as, "...where

n

{\displaystyle n}

is a positive integer".)

Since the same variable symbol may appear in multiple places in an expression, some occurrences of the variable symbol may be free while others are bound, hence "free" and "bound" are at first defined for occurrences and then generalized over all occurrences of said variable symbol in the expression.

A variable symbol overall is free if at least one occurrence of it is free.

While the domain of discourse in many contexts is understood, when an explicit range of values for the bound variable has not been given, it may be necessary to specify the domain in order to properly evaluate the expression. For example, consider the following expression in which both variables are bound by logical quantifiers:

∀

y

∃

x

(

x

=

y

)

{\displaystyle \forall y\,\exists x\,\left(x={\sqrt {y}}\right)}

This expression evaluates to false if the domain of

x

{\displaystyle x}

and

y

{\displaystyle y}

is the real numbers, but true if the domain is the complex numbers.

The term "dummy variable" is also sometimes used for a bound variable (more commonly in general mathematics than in computer science), but this should not be confused with the identically named but unrelated concept of dummy variable as used in statistics, most commonly in regression analysis.p.17

Overview adapted from Wikipedia (CC BY-SA 4.0; see the article history for authors).

Possible passages

Found by search and not yet checked by a person; they may only mention the idea in passing.

  1. 147.] (γ) When this externality (of actuality) is thus developed into a circle of the two categories of possibility and immediate actuality, showing the intermediation of the one by the other, it is what is called Real Possibility. Being such a circle, further, it is the totality, and thus the content, the actual fact or affair in its all-round definiteness. Whilst in like manner, if we look at the distinction…

    Georg Wilhelm Friedrich Hegel, The Logic of Hegel

    States what Free variables and bound variables is.

    Read the chapter · Open in the reader

  2. Even speech rebels against this idea. A mathematical figure of three dimensions is called a solid--corpus solidum--and hence, according to the Latin, a body capable of being handled. It has a name derived, therefore, by no means from the independent play of imagination but from solid reality.

    Friedrich Engels, Landmarks of Scientific Socialism

    States what Free variables and bound variables is.

    Read the chapter · Open in the reader

  3. Thus there arises a classification of modes of formation, or in the language commonly used by mathematicians, a classification of Functions. Any number, considered as formed from any other number, is called a function of it; and there are as many kinds of functions as there are modes of formation. The simple functions are by no means numerous, most functions being formed by the combination of several of the…

    John Stuart Mill, A System of Logic, Ratiocinative and Inductive

    States what Free variables and bound variables is.

    Read the chapter · Open in the reader

Related ideas

Place in the tradition

Part of Analytic philosophy.

Explore Free variables and bound variables in the interactive graph →