Introduction
Introduction
Introduction
Definition 1. Two sets A and B are said to be equal, and we write A = B, if they contain
the same elements.
Several special sets are denoted by standard symbols. (We will use the symbol := to
mean that the symbol on the left is being defined by the symbol on the right.)
∪∞
n=1 An = {x : x ∈ An for some n ∈ N}.
The intersection is the set of elements that belong to all of these sets An . In this case we
write
∩∞
n=1 An = {x : x ∈ An for all n ∈ N}.
1.2 Functions
In order to discuss functions, we define the Cartesian product of two sets.
Definition 3. If A and B are nonempty sets, then the Cartesian product A × B of A and
B is the set of all ordered pairs (a, b) with a ∈ A and b ∈ B. That is,
A × B = {(a, b) : a ∈ A, b ∈ B}.
A function f from a set A into a set B is a rule of correspondence that assigns to each
element x in A, a uniquely determined element f (x) in B.
Definition 4. Let A and B be sets. Then a function from A to B is a set f of ordered pairs
in A × B such that for each a ∈ A there exists a unique b ∈ B with (a, b) ∈ f. (In other
words, if (a, b) ∈ f and (a, b′ ) ∈ f, then b = b′ .)
–2–
The set A of first elements of a function f is called the domain of f and is often denoted
by D(f ). The set B is sometimes called the co-domain. The set of all second elements in
f is called the range of f and is often denoted by R(f ). Note that, although D(f ) = A, we
only have R(f ) ⊆ B.
The notation f : A → B is often used to indicate that f is a function from A into B.
We will also say that f is a mapping of A into B, or that f maps A into B. If (a, b) is an
element in f, it is customary to write b = f (a) or sometimes a 7→ b.
If b = f (a), we often refer to b as the value of f at a, or as the image of a under f.
Definition 5. (a) If E is a subset of A, then the direct image of E under f is the subset
f (E) of B given by
(b) If H is a subset of B, then the inverse image of H under f is the subset f −1 (H) of
A given by
–3–
ally a function. However, if f is a bijection, then this interchange does lead to a function,
called the “inverse function” of f.
g := {(b, a) ∈ B × A : (a, b) ∈ f }
is a function on B into A. This function is called the inverse function of f, and is denoted
by f −1 . The function f −1 is also called the inverse of f.
Restrictions of Functions
If f : A → B is a function and if A1 ⊂ A, we can define a function f1 : A1 → B by
–4–
• 4 is a prime number.
The first three are statements: the first is true, the second is false, and the third is either
true or false, but we are not sure which at this time. The fourth sentence is not a statement;
it can be neither true nor false since it leads to contradictory conclusions.
Some statements (such as “1 + 1 = 2”) are always true; they are called tautologies.
Some statements (such as “2 = 3”) are always false; they are called contradictions or
falsities. Some statements (such as “x2 = 1”) are sometimes true and sometimes false
(e.g., true when x = 1 and false when x = 3).
Two statements P and Q are said to be logically equivalent if P is true exactly when
Q is true (and hence P is false exactly when Q is false). In this case we often write P ≡ Q.
For example, we write
There are several different ways of forming new statements from given ones by using
logical connectives.
If P is a statement, then its negation is the statement denoted by
not P,
which is true when P is false, and is false when P is true. (A common notation for the
negation of P is ¬P.)
If P and Q are statements, then their conjunction is the statement denoted by
P and Q,
which is true when both P and Q are true, and is false otherwise. (A standard notation
for the conjunction of P and Q is P ∧ Q.)
Similarly, the disjunction of P and Q is the statement denoted by
P or Q,
which is true when at least one of P and Q is true, and false only when they are both false.
(A standard notation for the disjunction of P and Q is P ∨ Q.)
–5–
√
To contrast disjunctive and conjunctive statements, note that the statement “2 < 2
√ √ √
and 2 < 3” is false, but the statement “2 < 2 or 2 < 3” is true.
2.2 Implications
A very important way of forming a new statement from given ones is the implication
(or conditional) statement, denoted by
Here P is called the hypothesis, and Q is called the conclusion of the implication.
In mathematical arguments, we are very much interested in implications when the
hypothesis is true, but not much interested in them when the hypothesis is false.
(P ⇒ Q) and (Q ⇒ P ),
and is denoted by
P ⇔ Q or P if and only if Q.
–6–
involve one or more variables whose values usually affect the truth or the falsity of the
statement, so we should always make clear what the possible values of the variables are.
Very often mathematical statements involve expressions such as “for all,” “for every,”
“for some,” “there exists,” “there are,” and so on. For example, we may have the state-
ments
and
Clearly the first statement is false, as is seen by taking x = 2; however, the second state-
ment is true since we can take either x = 1 or x = −1.
If the context has been established that we are talking about integers, then the above
statements can safely be abbreviated as
For any x, x2 = 1
and
The first statement involves the universal quantifier “for every,” and is making a state-
ment (here false) about all integers. The second statement involves the existential quan-
tifie “there exists,” and is making a statement (here true) about at least one integer.
These two quantifiers occur so often that mathematicians often use the symbol ∀ to
stand for the universal quantifier, and the symbol ∃ to stand for the existential quantifier.
The statement
(2.1) (∀x)(∃y)(x + y = 0)
(understood for integers) can be read “For every integer x; there exists an integer y such
that x + y = 0.”
The statement
(2.2) (∃y)(∀x)(x + y = 0)
–7–
can be read “There exists an integer y; such that for every integer x; then x + y = 0.
These two statements are very different; for example, (2.1) is true and (2.2) is false. The
moral is that the order of the appearance of the two different types of quantifiers is very
important.
It is important to understand how to negate a statement that involves quantifiers.
The negation of the statement “There exists δ > 0 such that the interval (−δ, δ) does
not contain any point in A” is the following: “For every δ > 0, the interval (−δ, δ) contains
a point belonging to the set A.
3. Proof Techniques
3.1 Direct Proofs
Let P and Q be statements. The assertion that the hypothesis P of the implication P ⇒
Q implies the conclusion Q (or that P ⇒ Q is a theorem) is the assertion that whenever
the hypothesis P is true, then Q is true.
The construction of a direct proof of P ⇒ Q involves the construction of a string of
statements R1 , R2 , . . . , Rn such that
P ⇒ R1 , R1 ⇒ R2 , . . . , Rn ⇒ Q.
P : n is an odd integer.
Q : n2 is an odd integer.
–8–
R5 : n2 = 2m + 1, where m = 2k 2 + 2k.
Observe that P ⇒ R1 ⇒ R2 ⇒ R3 ⇒ R4 ⇒ R5 ⇒ Q.
Proof by contradiction. This method of proof employs the fact that if C is a contradiction
(i.e., a statement that is always false, such as “1 = 0”), then the two statements
(P and(not Q)) ⇒ C, P ⇒ Q
are logically equivalent. Thus we establish P ⇒ Q by showing that the statement (P and(not Q))
implies a contradiction.
Theorem 3.3. There are infinitely many prime numbers.
Proof. If we suppose by way of contradiction that there are finitely many prime numbers,
then we may assume that S = {p1 , p2 , . . . , pn } is the set of all prime numbers. We let
m = p1 · · · pn , the product of all the primes, and we let q = m + 1. Since q > pi for all
i ∈ {1, 2, . . . , n}, we see that q is not in S, and therefore q is not prime. Then there exists
a prime p that is a divisor of q. Since p is prime, then p = pj for some j ∈ {1, 2, . . . , n}, so
that p is a divisor of m. But if p divides both m and q = m + 1, then p divides the difference
q − m = 1. However, this is impossible, so we have obtained a contradiction.
–9–
Well-Ordering Property of N : Every nonempty subset of N has a least element.
A more detailed statement of this property is as follows: If S is a subset of N and if
S ̸= ∅, then there exists m ∈ S such that m ≤ k for all k ∈ S.
Proof. Suppose to the contrary that S ̸= N. Then the set N\S is not empty, so by the Well-
Ordering Principle it has a least element m. Since 1 ∈ S by hypothesis (1), we know that
m > 1. But this implies that m − 1 is also a natural number. Since m − 1 < m and since m
is the least element in N such that m ∈
/ S, we conclude that m − 1 ∈ S.
We now apply hypothesis (2) to the element k := m − 1 in S, to infer that k + 1 =
(m−1)+1 = m belongs to S. But this statement contradicts the fact that m ∈
/ S. Since m was
obtained from the assumption that N\S is not empty, we have obtained a contradiction.
Therefore we must have S = N.
The Principle of Mathematical Induction is often set forth in the framework of state-
ments about natural numbers. In this context, the Principle of Mathematical Induction
can be formulated as follows.
Theorem 3.5. For each n ∈ N, let P (n) be a statement about n. Suppose that:
(1’) P (1) is true.
(2’) For every k ∈ N, if P (k) is true, then P (k + 1) is true.
Then P (n) is true for all n ∈ N.
Using the Principle of Mathematical Induction, we will prove the following theorem.
Theorem 3.6. Given two real numbers a and b, a − b is a factor of an − bn for all n ∈ N.
Proof. First we see that the statement is clearly true for n = 1. If we now assume that a − b
is a factor of ak − bk , then
–10–
4. Cardinality
4.1 Finite and Infinite Sets
When we count the elements in a set, we say “one, two, three, . . . ,” stopping when we
have exhausted the set. From a mathematical perspective, what we are doing is defining
a bijective mapping between the set and a portion of the set of natural numbers. If the
set is such that the counting does not terminate, such as the set of natural numbers itself,
then we describe the set as being infinite.
The notions of “finite” and “infinite” are extremely primitive, and it is very likely that
the reader has never examined these notions very carefully. In this section we will define
these terms precisely and establish a few basic results.
Theorem 4.1. If S is a finite set, then the number of elements in S is a unique number in N.
Definition 10. (a) A set S is said to be countably infinite if there exists a bijection of N
onto S.
(b) A set S is said to be countable if it is either finite or countably infinite.
(c) A set S is said to be uncountable if it is not countable.
Definition 11. Two sets A and B have the same cardinality if there exists a bijection f : A → B.
The construction of an explicit bijection between sets is often complicated. The next
two results are useful in establishing the countability of sets, since they do not involve
showing that certain mappings are bijections.
–11–
Theorem 4.4. Suppose that S and T are sets and that T ⊆ S.
(a) If S is a countable set, then T is a countable set.
(b) If T is an uncountable set, then S is an uncountable set
Proof. Suppose not i.e., the set {0, 1}∞ is countable. Then we can exhaustively list all the
elements of {0, 1}∞ . Let {x1 , x2 , x3 , x4 , . . . } be an exhaustive listing of {0, 1}∞ . We have,
–12–
Proof. Suppose that f : A → P(A) is a surjection. Since f (a) is a subset of A, either a
belongs to f (a) or it does not belong to this set. We let
D := {a ∈ A : a ∈
/ f (a)}.
Cantor’s Theorem implies that there is an unending progression of larger and larger
sets. In particular, it implies that the collection P(N) of all subsets of the natural numbers
N is uncountable.
–13–