Next: Connection with relational databases
Up: Review of logic.
Previous: First order logic.
Consider the formula
Inside this formula,
is a variable. Outside this formula
there are no variables -- because
is doing an implied
AND:
So
is successively set equal to all of the objects in the universe
and a huge AND is taken. The variable
is being used to perform a computation
and no longer exists outside the formula -- it is said to be bound.
The same is true of variables that appear as subscripts to an
quantifier, as the following example shows
(``there exists a big dog''). Since an
quantifier is performing
an implied OR:
so that the variable
no longer exists outside the formula. Rule:
Variables that appear as subscripts to quantifiers are bound and do
not exist outside their scope (the portion of the formula in which they appear).
Bound variables are like local variables to a subroutine or variables over which
you are computing definite integrals. Variables that are not bound are said
to be free. Example:
Since
was not a subscript of a quantifies, it remains free. Consequently,
is really a function of one variable, and we should have written
It is true for a given
if there exists something bigger than
it (assuming that we have defined the predicate function
in this way).
Next: Connection with relational databases
Up: Review of logic.
Previous: First order logic.
Justin R. Smith
2001-04-06