Lecture 01
Lecture 01
Discrete Mathematics
<www.cl.cam.ac.uk/teaching/2122/DiscMath>
—0—
What are we up to ?
—2—
What is it that we do ?
In general:
In particular:
—4—
Lecture plan
I. Proofs.
II. Numbers.
III. Sets.
—6—
Proofs
Objectives
— 16 —
Proofs in practice
◮ what the product of two integers is, and that this is in turn an
integer.
— 18-a —
More precisely put, we may write:
◮ what
if . . . then . . .
statements are, and how one goes about proving them;
— 19-a —
Even more precisely, we should write
◮ what
for all . . .
statements are, and how one goes about proving them.
Statement
A sentence that is either true or false — but not both.
Example 1
‘ei π + 1 = 0’
Non-example
— 21 —
Predicate
A statement whose truth depends on the value of one
or more variables.
Example 2
— 23 —
Theorem
A very important true statement.
Proposition
A less important but nonetheless interesting true statement.
Lemma
A true statement used in proving other true statements.
Corollary
A true statement that is a simple deduction from a theorem
or proposition.
Example 3
1. Fermat’s Last Theorem
Example 4
1. Goldbach’s Conjecture
— 27 —
Proof
Logical explanation of why a statement is true; a method for
establishing truth.
Logic
The study of methods and principles used to distinguish
good (correct) from bad (incorrect) reasoning.
Example 5
2. Hoare logic
3. Temporal logic
— 28-a —
Axiom
A basic assumption about a mathematical situation.
Axioms can be considered facts that do not need to be
proved (just to get us going in a subject) or they can be
used in definitions.
Example 6
1. Euclidean Geometry
2. Riemannian Geometry
3. Hyperbolic Geometry
— 29 —
Definition
An explanation of the mathematical meaning of a word (or
phrase).
The word (or phrase) is generally defined in terms of prop-
erties.
— 30 —
Definition, theorem, intuition, proof
in practice
— 31-a —
Intuition:
— 32 —
P ROOF OF Proposition 8:
— 33 —
Simple and composite statements
Examples:
‘2 is a prime number’
— 40 —
Implication
or, in symbols,
— 42 —
Proof pattern:
In order to prove that
P =⇒ Q
1. Write: Assume P.
2. Show that Q logically follows.
— 43 —
Scratch work:
— 44 —
Proposition 8 If m and n are odd integers, then so is m · n.
P ROOF :
— 45 —
An alternative proof strategy for implication:
Definition:
— 47 —
Proof pattern:
In order to prove that
P =⇒ Q
— 48 —
Scratch work:
— 49 —
Definition 9 A real number is:
— 50 —
Proposition 10 Let x be a positive real number. If x is irrational
√
then so is x.
P ROOF :
— 51 —
Logical Deduction
− Modus Ponens −
or, in symbols,
P P =⇒ Q
Q
— 53 —
The use of implications:
To use an assumption of the form P =⇒ Q,
aim at establishing P.
Once this is done, by Modus Ponens, one can
conclude Q and so further assume it.
— 54 —
Theorem 11 Let P1 , P2 , and P3 be statements. If P1 =⇒ P2 and
P2 =⇒ P3 then P1 =⇒ P3 .
P ROOF :
— 55 —
Bi-implication
Some theorems can be written in the form
P is equivalent to Q
or, in other words,
P implies Q, and vice versa
or
Q implies P, and vice versa
or
P if, and only if, Q P iff Q
or, in symbols,
P ⇐⇒ Q
— 58 —
Proof pattern:
In order to prove that
P ⇐⇒ Q
— 59 —
Proposition 12 Suppose that n is an integer. Then, n is even iff n2
is even.
P ROOF :
— 60 —
Divisibility