We often let variables represent arbitrary mathematical objects. However, as we have seen, object variables or free variables (as opposed to statement variables) lead to problems in logic. For example, the phrase โ\(f \) is a differentiable functionโ can only be determined to be true or false when \(f \) represents a specific function.
In this section, we deal with these problems by quantifying such free variables: restricting ourselves to discussing whether โstatementsโ involving one or more free variables are always/sometimes/never true for objects of the type represented by the free variables.
In Exampleย 4.1.1, the domain of the variable \(f \) could be โfunctions of a single real variableโ, and the domains of the variables \(m \) and \(n \) could both be โnatural numbersโ (whole, nonnegative numbers).
Usually the domain of a variable in a predicate is implicit and can be determined from the context of the statement. However, if we want to make the domain explicit we can prefix it to the variable. For example,
\begin{gather*}
A(f) = \text{ โfunction } f \text{ is differentiableโ,} \\
B(m,n) = \text{ โinteger } m \text{ is greater than integer } n \text{โ.}
\end{gather*}
We can turn a predicate into a logical statement by being more specific about which objects in their domains the variables represent. However, we often do not want to be too specific (or else we would usually not need variables).
The first statement is false; for example, the function \(f(x) = \abs{x} \) is not differentiable at \(x=0 \text{.}\) The second statement is true; this statement basically says that even integers exist.
the sentence fragments โfor everyโ and โthere existsโ quantify whether a predicate should apply to all or only some of the objects in the domain of one of its variables
As before, let \(A(f) \) represent the predicate โ\(f \) is differentiable.โ Then the statement \((\forall f ) A(f) \) is false, because not every function is differentiable. However, the statement \((\exists f) A(f) \) is true โ for example, polynomials are differentiable.
For an existentially quantified statement to be true, it is not necessary for there to be one and only one object in the implied domain that satisfies the conditions of the predicate โ there could be many such objects. So, just as you should always read a disjunction \(p \lgcor q \) as โp or q or both,โ you should always read an existentially quantified statement \((\exists x) A(x) \) as โthere exists at least one\(x \) such that \(A(x) \) is trueโ.
This statement says โfor every \(m \) and for every \(n \text{,}\)\(m \) divides \(n \text{.}\)โ One example of values for \(m \) and \(n \) with \(m \)not dividing \(n \) (such as \(m=3 \) and \(n=2 \)) suffices to show that it is not always true that one number \(m \) divides another number \(n \text{.}\)
This statement says โthere exists \(m \) such that there exists \(n \) such that \(m \) divides \(n \text{.}\)โ To demonstrate that this statement is true, we have to explicitly show that at least one pair of values for \(m \) and \(n \) exists by giving an example (such as \(m = n = 2 \)).
This statement says โfor every \(m \) there exists an \(n \) such that \(m \) divides \(n \text{.}\)โ To show that this statement is true, we have to provide, for every possible value of \(m \text{,}\) a value of \(n \) that works. When \(m=1 \text{,}\) we have example \(n=1 \text{.}\) When \(m=2 \text{,}\) we have example \(n=2 \text{.}\) When \(m=3 \text{,}\) we have example \(n=3 \text{.}\) Similarly, for each value of \(m \text{,}\) we can choose \(n \) to be the same value as \(m \) as an example.
Note. If the domain for \(m \) and \(n \) included \(0 \text{,}\) then this third statement would actually be false, as demonstrated by the example \(m = 0 \text{.}\)
This statement says โthere exists \(m \) such that for every \(n \) we have \(m \) divides \(n \text{.}\)โ This is true, as the example \(m = 1 \text{,}\) which divides every number \(n \text{,}\) demonstrates existence of this special \(m \) (though it is the only example possible).
This statement says โfor every \(n \) there exists an \(m \) so that \(m \) divides \(n \text{.}\)โ Similarly to the justification for Statementย 3, for every possible value of \(n \) we need to provide an example \(m \) so that \(m \) divides \(n \text{,}\) but this time it is the \(n \) that is arbitrary and the \(m \) that is to be the example. But again, every positive number divides itself, so we could always take \(m \) to be the same value as \(n \) as our example to demonstrate that such an \(m \) exists. (Or, actually we could always choose \(m=1 \) as the example for each different value of \(n \text{.}\))
This statement says โthere exists \(n \) such that for every \(m \) we have \(m \) divides \(n \text{.}\)โ However, there is no positive number that is divisible by every other positive number.
While the order of two quantifiers of the same type does not matter (which is why we didnโt consider the statements with quantifiers in the order \((\forall n)(\forall m) \) and \((\exists n)(\exists m) \) in Worked Exampleย 4.1.8 above), the order of a โmixedโ pair of quantifiers matters! This is demonstrated by Statementย 3 and Statementย 6 in Worked Exampleย 4.1.8 โ both of these statements involve a \(\forall m \) and a \(\exists n \text{,}\) but in opposite orders. Since one of these two statements is true and one is false, they obviously cannot be the same statement.
Even more, the order of a โmixedโ pair of quantifiers implies a dependence of the second quantified variable on the first.
If the statement \((\forall x)(\exists y) A(x,y) \) is true, it means that, corresponding to each and every object \(x \) in the appropriate domain, there will exist at least one example of an object \(y \) in the appropriate domain so that \(A(x,y) \) is true. But the corresponding example \(y \) could be different for different examples of the object \(x \text{.}\)
If the statement \((\exists y)(\forall x) A(x,y) \) is true, it means that there is at least one โspecialโ example object \(y \) that enjoys the property that \(A(x,y) \) will be true for each and every object \(x \) in the appropriate domain.
Suppose \(A(x,y) \) is a predicate statement, where \(x \) and \(y \) are variables that can only take on the values \(0 \text{,}\)\(1 \text{,}\) or \(2 \text{.}\) Further suppose that it is known that \(A(x,y) \) is true in the specific instances
Statement \((\forall x)(\exists y) A(x,y) \) is true because for each value of \(x \) we can exhibit at least one value \(y \) for which \(A(x,y) \) is true:
when \(x=0 \text{,}\) we know \(A(0,y) \) is true for at least one \(y \) (for example, \(y = 1 \));
Statement \((\exists x)(\forall y) A(x,y) \) is true because we can exhibit at least one โspecialโ value of \(x \) for which \(A(x,y) \) is true for each and every value of \(y \text{.}\) In particular, we see that for \(x=1 \) we have \(A(1,y) \) true for each of \(y = 0,1,2 \text{.}\)
Depending on grammar requirements or personal style, the quantifier โfor everyโ might be expressed as โfor allโ or just โeveryโ or โallโ. The quantifier โthere existsโ can also be expressed as โsomeโ or โthere is at least oneโ, but remember that the reality of the situation could be โmore than one.โ
It says to prove \(n+1 \) is odd for any even number \(n \text{,}\) so I will choose my favourite even number \(n = 8 \text{.}\) Then \(8+1 = 9 \) is obviously odd.
The problem statement is really asking to prove that every even number has the property that the subsequent number is odd. So let \(n \) represent an arbitrary but unspecified even number. Then \(n \) is divisible by \(2 \text{,}\) so there is some number \(m \) such that \(n = 2m \text{.}\) Now, \(n+1 = 2m+1 \) is not divisible by \(2 \text{,}\) since \((2m+1)/2 = m + \frac{1}{2} \) is not a whole number. Therefore, \(n+1 \) must be odd.