2.3 Quantifiers

By way of motivation, consider the following statement11 1 Logicians might not like us calling AA a statement at all because it involves nn as a ‘free variable’. You do not need to be worried about this at this stage of your mathematical career..

AA: ‘The square of the integer nn is even.’

We label this statement AA so we can refer to it concisely. Whether AA is true or false depends on the value of nn. For example,

  • if n=4n=4 then AA is true (because 42=164^{2}=16, which is even);

  • if n=5n=5 then AA is false (because 52=255^{2}=25, which is not even).

We cannot know whether AA is true without knowing something about the value of nn.

In statement AA, the symbol ‘nn’ is called a variable because its value can vary. Symbols can also be used to stand for constants, e.g. π\pi and ee. The value of a constant is fixed.

As mathematicians, we aim to make statements and establish that they are true (by giving a proof) in order to advance our understanding of the subject. Statement AA does not really help our understanding of which integers have even squares because it is sometimes true and sometimes false. Compare it with the following two statements:

BB: ‘Let nn be 22, 44 or 66. The square of the integer nn is even.’ [True]

CC: ‘Let nn be 11, 22 or 33. The square of the integer nn is even.’ [False]

We can say for sure that statements BB and CC are either true or false, but not both, because we have specified something about the variable nn. We say that the variable has been quantified.

Two types of quantifier are very common in mathematics. These are ‘for all’ (the universal quantifier) and ‘there exists’ (the existential quantifier). You have probably seen many statements that use these quantifiers already in your mathematical career, but you might not have thought about them in such terms.

2.3.1 Universal quantifier

Consider the following claim.

Claim 2.8.

For all positive real numbers xx, x2+xx^{2}+x is positive.

The phrase ‘for all’ is called the universal quantifier. It is used when we want to make a statement about all objects with some property – in this case all positive real numbers. There are different ways of phrasing Claim 2.8, for example:

  • Given any positive real number xx, x2+xx^{2}+x is positive.

  • Suppose xx is a real number. If x>0x>0 then x2+x>0x^{2}+x>0.

Read these carefully and convince yourself that they mean the same thing as Claim 2.8.

The point here is that there is room for mathematicians to have their own writing style while working within the norms expected by the rest of the mathematical community. You will find a style that suits you as you progress through your degree.

Some people use \forall (an upside-down A) as a shorthand for the phrase ‘for all’.

Here are two more examples of statements using a universal quantifier:

Claim 2.9.

For all real numbers xx, x2+xx^{2}+x is positive.

Claim 2.10.

For all real numbers xx strictly between 1-1 and 0, x2+xx^{2}+x is negative.

Exercise 2.11.

Decide whether you think Claims 2.8, 2.9 and 2.10 are true or false.

Try rephrasing the claims in different, but equivalent, ways. Which way seems most natural to you?

2.3.2 Existential quantifier

Consider the following claim.

Claim 2.12.

There exists a real number xx such that x2+xx^{2}+x is positive.

The phrase ‘there exists’ is called the existential quantifier. It is used when we want to make a statement about there being at least one object with some property. There are different ways of phrasing Claim 2.12, for example:

  • There is a real number xx with the property that x2+xx^{2}+x is positive.

  • Some real number xx is such that x2+x>0x^{2}+x>0.

Read these carefully and convince yourself that they mean the same thing as Claim 2.12.

Some people use \exists (a back-to-front E) as a shorthand for the phrase ‘there exists’.

Note that Claim 2.12 does not state precisely which real numbers make x2+xx^{2}+x positive, or exactly how many there are; it just says that there is at least one value of xx which does.

Here are two more examples of statements using an existential quantifier:

Claim 2.13.

There is a real number xx such that x2+xx^{2}+x is negative.

Claim 2.14.

For some real number xx strictly between 1-1 and 0, x2+xx^{2}+x is positive.

Exercise 2.15.

Decide whether you think Claims 2.12, 2.13 and 2.14 are true or false.

Try rephrasing the claims in different, but equivalent, ways. Which way seems most natural to you?