Chapter 1
Chapter 1
Chapter 1
N = {0, 1, 2, 3, · · ·}
We use ellipses (i.e.,. . .) when the meaning is clear, thus Jn = {1, 2, 3, · · · , n} represents the set
of all natural numbers from 1 to n.
When the need arises, we use more explicit notation, in which we write
S = {i|i ≥ 0, i is even}
f : S1 → S2
to indicate that the domain of the function f is a subset of S1 and that the range of f is a subset
of S2. If the domain of f is all of S1, we say that f is a total function on S1; otherwise f is said to
be a partial function on S1.
5. f : S1 → S1 is called a function on S1
10. f is a one to one function or injection if (f(x) = z and f(y) = z) ⇒ x = y 11. A total function f is an
injection if it is both an injection and a surjection.
A function can be represented by a set of pairs {(x1, y1),(x2, y2), · · · }, where each xi is an element in the
domain of the function, and yi is the corresponding value in its range. For such a set to define a function,
each xi can occur at most once as the first element of a pair. If this is not satisfied, such a set is called a
relation.
Example: The relation congruence mod m (modulo m) on the set of the integers Z. i = j mod m if i − j is
divisible by m; Z is partitioned into m equivalence classes:
Proof Techniques:
We will give examples of proof by induction, proof by contradiction, and proof by Cantor
diagonalization.
In proof by induction, we have a sequence of statements P1, P2, · · · , about which we want to make
some claim. Suppose that we know that the claim holds for all statements P1, P2, · · · , up to Pn. We then
try to argue that this implies that the claim also holds for Pn+1. If we can carry out this inductive step for
all positive n, and if we have some starting point for the induction, we can say that the claim holds for all
statements in the sequence.
The starting point for an induction is called the basis. The assumption that the claim holds for
statements P1, P2, · · · , Pn is the induction hypothesis, and the argument connecting the induction
hypothesis to Pn+1 is the induction step. Inductive arguments become clearer if we explicitly show these
three parts.