Beruflich Dokumente
Kultur Dokumente
When reasoning in mathematics, we use terms such as: and, or, not, implies,
(logically) equivalent. It is important to realise that, although these terms
coincide with words in everyday language, when using them in logic or
mathematics, they are precise technical terms governed by rules for use.
In this section I will use capital letters A, B, C, . . ., P, Q to denote state-
ments (mathematical or otherwise) which may be true or false. Such as:
All dogs are animals.
London is the capital of France.
1
However, there have been some very good and entertaining attempts to answer this
question: See What is Mathematics? by Courant and Robbins, or A very short intro-
duction to Mathematics by Tim Gowers.
1
2
Proof. We assume – or suppose – that the hypothesis is true; i.e. that every
even number greater than 3 is a sum of two primes.
2In fact, in a letter to the mathematician Leonhard Euler in 1742, Goldbach conjec-
tured the statement Q, now referred to as the ‘weak Goldbach conjecture’. In his reply,
Euler conjectured the statement P which is now known as Goldbach’s conjecture.
4
2.4. Truth tables. A good way for understanding the correct use of logical
connectives such as and, or and implies is via truth tables.
We use a truth table to define the conditions under which the statements
P and Q, P or Q, P =⇒ Q are true, given knowledge of the truth of falsity
of the individual statements P and Q.
Thus the truth table for P and Q is:
P Q P and Q
T T T
T F F
F T F
F F F
Thus the truth table for P or Q is:
P Q P or Q
T T T
T F T
F T T
F F F
Thus the truth table for P implies Q is:
P Q P =⇒ Q
T T T
T F F
F T T
F F T
is the statement
If a number is an integer then it is prime.
(The first of these statements is true, simply by definition. The second is
clearly false: the number 4 is a counterexample.)
In general knowing the truth or falsity of an implication tells us nothing
about the truth or falsity of its converse. However, very often when we are
considering an implication it is natural to ask what can be said about the
truth or falsity of the converse statement.
Example 2.2. Let ABC be a triangle. Pythagoras’s Theorem states
If hABC is a right angle then
|AB|2 + |BC|2 = |AC|2 .
2.7. The contrapositive. Given two statements P and Q, observe that the
following statements are equivalent: ‘P =⇒ Q’ and ‘¬Q =⇒ ¬P’. Either of
these is false if P is true and Q is false (i.e. if ¬Q is true and ¬P is false),
and is true otherwise.
The statement ¬Q =⇒ ¬P is called the contrapositive of the statement
P =⇒ Q. Since these are equivalent statements, we can always replace an
implication by its contrapositive in the course of an argument.
For example, the contrapositive of the statement
If a number is greater than 100 then it is positive
is the statement
If a number is not positive then it is not greater than 100.
These two statements are logically equivalent to each other.
2.8. ‘For all’ and ‘There exists’. Often a single mathematical statement
is best understood as a series of statements, one for each element of a given
set.
For instance, the statement ‘The square of an odd number is odd’ can be
expressed as follows:
For all integers n, if n is odd then n2 is odd.
7
Written this way, we see that our original statement can be understood as
an infinite list of statements:
...
If −1 is odd then (−1)2 is odd
If 0 is odd then 02 is odd
If 1 is odd then 12 is odd
If 2 is odd then 22 is odd
...
Each of these statements is an implication (and each is true, as it happens).
Using standard mathematical notation, we can write the original statement
as follows:
∀n ∈ Z, If n is odd then n2 is odd.
or
∀n ∈ Z, n is odd =⇒ n2 is odd.
(The symbol ∀ is read ‘For all’. In logic, it is called the universal quantifier.
Z is the symbol for the set of all integers.)
What is the negation of this statement? Answer:
It is not (always) the case that the square of an odd integer
is odd.
This is equivalent to
There is an odd integer whose square is not odd.
This is an existential statement. (Of course, it is a false statement, but
that is not our concern just now.) It asserts the existence of an integer with
some specified property. In standard mathematical notation we can express
it as follows:
∃n ∈ Z, n is odd and n2 is even.
(The symbol ∃ is read ‘There exists’. In logic, it is called the existential
quantifier.)
In general, when we negate a statement with a universal quantifier we obtain
a statement with an existential quantifier, and vice versa.
For example, if we negate the statement
∀n ∈ Z, n2 > n
we obtain the statement
∃n ∈ Z, n2 6> n,
or, equivalently,
∃n ∈ Z, n2 ≤ n.
8
∃x ∈ R, x3 = x + 2
∀x ∈ R, x3 6= x + 2.
∀x > 0, ∃y ∈ R with y 2 = x.
In this statement, it is understood (from the order in which the terms occur)
that the y whose existence is asserted will depend on the given x.
Suppose that we exchange the order of the quantifiers:
Proof. Suppose, for the sake of contradiction, that the statement is false.
√ √
Then there exist a, b, c > 0 satisfying a = bc but b > a and c > a. It
follows that √ √
bc > a · a = a.
Thus bc > a and hence bc 6= a. This is a contradiction (since a = bc), and
hence the statement is proved.
10
When we spell out what is required in this way, we can’t miss the proof: by
the laws of arithmetic
2s + 2t = 2(s + t)
and (the crucial point) each of s, t is an integer, so that s + t is also an
integer. Thus n + m is twice an integer, and we have completed the proof.
Having figured all of this out, let’s write it out as a proof:
Proposition 3.3. The sum of two even integers is even.
3.1.1. What are we allowed to assume known? Have we really proved that
the sum of two even numbers is even? After all, in the course of the proof, we
made statements which we took as known: eg. that if s and t are integers,
then so is s + t, or that
2s + 2t = 2(s + t)
for any integers s and t. Since we are in the business (just for now) of
proving the obvious, why not prove these statements also?
The answer is that we could do so. In order to do so, we would first need to
know the definitions of the concepts of integer, addition of integers, multi-
plication of integers. These, in turn, can be expressed in terms of the more
primitive concepts of set, element, subset etc.
But (since our time is finite) this process cannot be continued indefinitely.
Whenever we prove some statement, we do so by reducing it, via the rules
of logic or reasoning, to more elementary statements which we either (a)
have already proved or (b) proceed to prove or (c) are willing to accept as
known without proof. At some stage we have to be content to accept the
truth of certain (elementary) statements without proof.
For the purpose of this course, we will take as known the basic algebraic
properties of the real numbers (R). For example:
(1) For all a, b ∈ R, a + b, ab ∈ R
12
These are two mathematical questions whose answer is certainly not obvi-
ous. We cannot discover the answer simply by reflecting on the definitions
of the terms. (Of course, we cannot discover the answer, or even address
the questions, without first knowing the definitions of the terms.)
Both of these questions were answered by the mathematicians of ancient
Greece. The answer to the first (which is known to us from the books of
Euclid, ca. 350 BC) is one of the great achievements of that civilization.
The answer to the second was a source of great surprise, and even scandal,
to the mathematicians and philosophers who followed Pythagoras.
In both cases, the answer involves an idea, a creative act. We cannot an-
swer genuine mathematical questions by simply unravelling definitions or
following known procedures.
Let us consider some of the reasoning involved in answering the first ques-
tion.
Of course, if we start to calculate the primes, the sequence shows no sign of
stopping. Sometimes the gap to the next prime can be quite large (find the
next prime after 113), but in practice, we eventually find it. Experimenting
in this way is likely to lead us to guess that the sequence goes on for ever.
But guessing falls far short of answering the question with the certainty
that only mathematics allows.
Recall that
Definition 3.11. A prime number is an integer greater than 1 which has
no divisors other than itself and 1.
way: For example, using only the prime 2, we can make infinitely many
integers whose only prime divisor is 2:
2, 22 , 23 , 24 , 25 , . . .
To prove that the sequence of prime numbers goes on forever requires a good
idea. In this case, the good idea (due to Euclid, or some other unknown
mathematician, from around 350BC) was the following: given any finite
list n1 , n2 , . . . , nt of integers greater than 1, it is possible to write down an
integer greater than 1 which is not divisible by any of the numbers in the
list. How is this done? The idea is simple, but very ingenious:
We simply multiply all the numbers together and add 1: i.e. let N =
n1 n2 · · · nt + 1.
Proposition 3.12. N is not divisible by n1 or n2 or . . . or nt .
We’ll just prove it for n1 (since an identical proof works for all the other
numbers in the list.)
(A short proof of this proposition is the following:
N is equal to a multiple of n1 with 1 added on. Therefore N leaves remainder
1 on division by n1 , and hence is not divisible by n1 .
This proof is fine, provided we already know the theory of remainders, which
in turn depends on the division algorithm, one of the main results we will
meet and use this semester. Because I do not want to assume all of this
theory at this stage, we will give a more elementary proof:)
Proof. Given any finite list of primes, we can use the construction in the
proposition to find a number N > 1 not divisible by any of the primes in the
list. But N is divisible by some prime. Therefore there is a prime number
not in the list.
This shows that no finite list of primes can contain all the primes.
15
We let N denote the set of positive integers (also called the set of natural
numbers):
N := {1, 2, 3, . . . , }.
n(n+1)
(Here P(n) is the statement 1 + 2 + · · · + n = 2
, and we wish to prove
the truth of P(n) for all n.)
Now suppose that P(n) is true for some n ∈ N (this is called the inductive
hypothesis). Then we must prove that P(n + 1) is true.5
Now, by our inductive hypothesis,
n(n + 1)
1 + 2 + ··· + n = .
2
Adding n + 1 to both sides gives us:
n(n + 1)
1 + 2 + · · · + n + (n + 1) = + (n + 1).
2
But
n(n + 1) n(n + 1) 2(n + 1) n(n + 1) + 2(n + 1) (n + 2)(n + 1)
+(n+1) = + = = .
2 2 2 2 2
Proof. We’ll use complete induction. Let Q(n) be the statement that n is
either prime or a product of primes.
We begin with n = 2: Q(2) is true since 2 is a prime.
18
Suppose now that Q(2),. . ., Q(n) are all true, for some n > 1.
We must prove that Q(n + 1) is true: If n + 1 is prime, then Q(n + 1) is true.
Otherwise, n + 1 = rs where r, s are integers satisfying 2 ≤ r, s ≤ n. Thus,
by our inductive hypothesis, Q(r) and Q(s) are both true. Thus r and s
are each either prime of a product of primes. It follows that n + 1 = rs is
a product of prime numbers, and we are done.
Remark 4.6. In fact, we usually express the conclusion of this last Theorem
by saying that every integer greater than 1 can be expressed as a product of
primes; i.e., we define the phrase product of primes to include the case
where the number is a prime number itself.
6This means that T consists of all those natural numbers which do not belong to set
S. We say that T is the complement of S. We’ll learn more about the language of sets
later in the course.