Supplement to the Classical Algebra text

Chapter 0: Logic and Proofs

0.2    QUANTIFIERS

In mathematics we are always using sentences involving variables, such as `x 2 > 0.' However, until the value of x is specified, this sentence has no truth value. If we let P(x) denote the sentence `x 2 > 0.' then P(-3) is a true statement and P(0) is a false statement.

If P(x) is a sentence depending on the variable x, we often want to say that P(x) is true for all values of x, or that it is true for at least one value of x. This can be done by adding quantifiers that convert the sentence P(x) into a statement.

0.2.1 Definition

The universal quantification of P(x) is the statement and is denoted by   forall x   P(x)   where the symbol forall is called the universal quantifier.

This statement forall x  P(x)  could also be expressed in any of the following ways.

The values of x are assumed to lie in a particular set called the universe of discourse. For example, the universe of discourse may be the integers, or the real numbers, or the set of all people.

If we are dealing with the real numbers, the statement `forall x, x2 > 0.' means that `For all real numbers x, x2 > 0.' which is a false statement. However the statement `forall x, x2 >= 0.' is true.

0.2.2 Definition

The existential quantification of P(x) is the statement and is denoted by   exists x   P(x)   where the symbol exists is called the existential quantifier.

Again this is interpreted to mean that `There exists an x in the universe of discourse for which P(x) is true.' This statement exists x   P(x)  could also be expressed in any of the following ways.

For example, if the universe of discourse is the set of real numbers, then the factorization

x3 - 1 = ( x - 1 ) ( x2 + x + 1 )
is true for all x. So
forall x     x3 - 1 = ( x - 1 ) ( x2 + x + 1 )
is a true statement. However the equation   x2 + x - 6 = 0   is true for only certain values of x, namely   x = 2   and  x = -3. So
exists x    x2 + x - 6 = 0
is a true statement.

0.2.3 Example

Express the statement `Every real number has a real square root.' as as logical expression using quantifiers.

Solution. If we assume that the universe of discourse is the set of real numbers, we can express this statement as

forall exists x    x2 = a.
Note that this is just a statement. It does not have to be true; in fact it is not.

0.2.4 Example

If A and B are sets, then A subset B means that A is a subset of B, and this can be defined using a quantifier as
forall x     ( x in A => x in B ).

If S is a set and Ø denotes the empty set, show that S subset S and Ø subset S.

Solution. S subset S is equivalent to forall x ( x in S => x in S ). If P(x) is the statement x in S, then P(x) => P(x) is true for all x. Hence S subset S is true.

Ø subset S is equivalent to forall x ( x in Ø => x in S ). Now x in Ø is false for all x. However P => Q is always true if P is false, so that the statement Ø subset S is true.

0.2.5 Example

In §1.1 the divisibility relation a | b is defined as exists q   ( b = q a )   where the universe of discourse is the set of integers. Determine whether (i) 0 | 3 and (ii) 0 | 0.

Solution. (i) 0 | 3 is equivalent to exists q   ( 3 = q 0 ); that is, exists q   ( 3 = 0 ). Since 3 = 0 is always false, 0 | 3 is not true.

(ii) 0 | 0 is equivalent to exists q   ( 0 = q 0 ); that is, exists q   ( 0 = 0 ). Since 0 = 0 is always true, we can choose q as any integer, and so 0 | 0 is true.

How do we negate quantifiers? For example, the statement `All Canadians speak French.' is not true. However we do not have to show that `All Canadians do not speak French.' to show that the statement is false. We only have to show that `There exists a Canadian who does not speak French.' Similarly, the statement `There exists a real solution to the equation x2=-1.' is false. To show this, we have to show that `For all real x, x2 is not -1.' We have the following rules for negating quantifiers.

0.2.6 Quantifier Negation Rules

NOT ( forall x   P(x) ) is equivalent to ( exists x   NOT P(x) )
NOT ( exists x   P(x) ) is equivalent to ( forall x   NOT P(x) )

As an example of the first rule, ``Not everyone has a calculator'' has the same meaning as ``Someone does not have a calculator.'' As an example of the second rule, ``No one has a calculator'' has the same meaning as ``Everyone does not have a calculator.''

In general, two statements involving quantifiers will be equivalent if they have the same meaning. We cannot always use truth tables to check for equivalence or implications involving quantifiers, so at this stage we have to reason informally to check the equivalence or implication.

0.2.7 Example

If the universe of discourse is the real numbers, what does the following statement mean in English? How would you prove it true or false?

exists forall y   ( x >= y ) .

Solution. The statement says that there is a real number x that is greater than or equal to all real numbers. That is, statement says that there is a largest real number. This is false. To show that it is false we have to prove that

NOT (exists forall y   ( x >= y ) )

is true. This is equivalent to the following statements.

forall x  NOT ( forall y   ( x >= y ) ) .

forall exists y   NOT ( x >= y ) .

forall exists y   ( x < y ) .

This last statement is true because, for all x, we can take y = x + 1 .


© 1998 William J. Gilbert and Scott A. Vanstone, University of Waterloo

Supplement Contents   |   Previous Section   |   Next Section