Section 4.1 Predicates and quantifiers
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 โ is a differentiable functionโ can only be determined to be true or false when 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.
- predicate
- a statement whose truth value depends on one or more free variables
Note 4.1.2.
A predicate is not a logical statement unless all of its variables represent specific objects.
Example 4.1.3.
In Example 4.1.1, the domain of the variable could be โfunctions of a single real variableโ, and the domains of the variables and could both be โnatural numbersโ (i.e. whole, nonnegative numbers).
Note 4.1.4.
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).
Example 4.1.5.
The following sentences are logical statements, because their truth value can be determined.
- โEvery function
is differentiable.โ
The first statement is false; for example, the function is not differentiable at The second statement is true; this statement basically says that even integers exist.
- quantifier
- 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.
- universal quantifier
- the quantifier โfor everyโ
- symbol for the universal quantifier
- existential quantifier
- the quantifier โthere existsโ
- symbol for the existential quantifier
Example 4.1.6.
As before, let represent the predicate โ is differentiable.โ Then the statement is false, because not every function is differentiable. However, the statement is true โ for example, polynomials are differentiable.
Warning 4.1.7.
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 as โp or q or both,โ you should always read an existentially quantified statement as โthere exists at least one such that is true.โ
Mathematical statements often involve several quantified variables.
Worked Example 4.1.8. Working with quantified statements of several variables.
Let represent โ divides โ, where and are positive whole numbers. Which of the following statements are true?
Solution.
-
False.This statement says โfor every
and for every divides โ One example of values for and with not dividing (such as and ) suffices to show that it is not always true that one number divides another number -
True.This statement says โthere exists
such that there exists such that divides โ To demonstrate that this statement is true, we have to explicitly show that at least one pair of values for and exists by giving an example (such as ). -
True.This statement says โfor every
there exists an such that divides โ To show that this statement is true, we have to provide, for every possible value of a value of that works. When we have example When we have example When we have example Similarly, for each value of we can choose to be the same value as as an example. -
True.This statement says โthere exists
such that for every we have divides โ This is true, as the example which divides every number demonstrates existence of this special (though it is the only example possible). -
True.This statement says โfor every
there exists an so that divides โ Similarly to the justification for Statement 3, for every possible value of we need to provide an example so that divides but this time it is the that is arbitrary and the that is to be the example. But again, every positive number divides itself, so we could always take to be the same value as as our example to demonstrate that such an exists. (Or, actually we could always choose as the example for each different value of ) -
False.This statement says โthere exists
such that for every we have divides โ However, there is no positive number that is divisible by every other positive number.
Warning 4.1.9.
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 and 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 and a 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
is true, it means that, corresponding to each and every object in the appropriate domain, there will exist at least one example of an object in the appropriate domain so that is true. But the corresponding example could be different for different examples of the object - If the statement
is true, it means that there is at least one โspecialโ example object that enjoys the property that will be true for each and every object in the appropriate domain.
Example 4.1.10.
Suppose is a predicate statement, where and are variables that can only take on the values or Further suppose that it is known that is true in the specific instances
- Statement
is true because we can exhibit at least one โspecialโ value of for which is true for each and every value of In particular, we see that for we have true for each of
Remark 4.1.11.
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.โ
Warning 4.1.12.
Mathematicians are fond of using โanyโ or โfor anyโ in place of โeveryโ or โfor everyโ.
Worked Example 4.1.13.
Solution 1. (Incorrect)
Solution 2. (Correct)
It says to prove is odd for any even number so I will choose my favourite even number Then 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 represent an arbitrary but unspecified even number. Then is divisible by so there is some number such that Now, is not divisible by since is not a whole number. Therefore, must be odd.