Early Chapter Notes
Early Chapter Notes
1
A Little Light Concepts Pre-Reading
Contents
0.7 Polynomials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1
0.10 Conjunction & Disjunction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
0.13 Negation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Chapter 0
Definition: Proposition
A proposition is a statement to which it is possible to assign a truth value (‘true’ or ‘false’).
The vast majority of your time in this class will be spent proving propositions. If a proposition is
true, a proof of the proposition is a logically valid argument demonstrating that it is true, which
is pitched at such a level that a member of the intended audience can verify its correctness.
In this course, ”the intended audience” comprises other students in this course. Thus when
writing a proof, ensure that your level of detail makes it understandable to your classmates.
Some non-examples of propositions are This sentence is false and The happiest donkey in the
world - it doesn’t make sense to assign truth values to them, so we won’t bother trying to
prove them.
When specifying the role of certain propositions that we prove true, we sometimes label them
as theorems, lemmas, or corollaries.
• A lemma is a result which is proved for the purposes of being used in the proof of a
theorem.
• A corollary is a result which follows from a theorem without much additional effort.
Definition: Set
A set is a collection of objects. The objects in the set are called elements of the set. If X
is a set and x is an object in X, then we write x ∈ X (in LATEX, x \in X) to denote the
assertion that x is an element of X.
2
Number sets are sets whose elements are numbers. For instance, we could consider a set that
contains 0, 1, 2, 3, 4, and so on forever. We call this set the natural numbers, or the naturals
for short, and it is represented by the symbol N.
• n = dr · br + dr−1 · br−1 + · · · + d0 · b0 ;
Certain number bases have names; for instance, the base-2, 3, 8, 10 and 16 expansions are
respectively called binary, ternary, octal, decimal and hexadecimal.
Definition: Integers
Consider a set initially containing just the naturals. For each natural n, we also add −n to
the set. This set is known as the set of integers, or Z (in LATEX, \mathbb{Z}).
Since −n + n = 0, we say that −n is the additive inverse of n. Thus we can also define the
integers as the naturals and their additive inverses.
We write Z for the set of all integers; thus, the notation ‘x ∈ Z’ means x is an integer.
Definition: Divides
Let a, b ∈ Z. We say that b divides a if there is some integer k such that a = bk. We often
write b | a (in LATEX, b \mid a) to mean that b divides a. We can also say that b is a divisor
of a, b is a factor of a, or a is a multiple of b.
For example, 5 divides 15 because 15 = 5 · 3, and 3 is an integer. For any integer a, 1 divides
a because a = 1 · a and a divides 0 because 0 = a · 0. Also for a ∈ Z, 0 only divides a if a = 0
because if a is nonzero, then there does not exist any integer k such that a = 0 · k.
3
Divisibility is an incredibly important topic in concepts. Make sure you’re comfortable with
the definition. We can use it to define even and odd integers. For this class, you may argue
that a|b implies a is a factor of b
The symbol R (in LATEX, \mathbb{R}) represents the set of all real numbers; thus x ∈ R is
equivalent to x is a real number. You might have heard that this includes decimals that are
infinite but don’t repeat, such as π or e.
This isn’t a super formal definition, but it will suffice for this course.
Note that unlike the naturals, integers, rationals, and reals, there is no single letter represen-
tation of the set of irrational numbers. After we learn more about sets, we will be able to
represent the irrational numbers as R \ Q (in LATEX, \mathbb{R} \setminus \mathbb{Q}).
4
0.6 Complex numbers (C)
The square of any real number is always non-negative, but sometimes we may want to work
with numbers whose squares are negative. For this, we must introduce imaginary numbers.
Remember a or b (or both) can be 0. So for example 3 and 5i are both complex numbers (even
though you could also classify them as a real number and an imaginary number, respectively).
Whereas the real numbers can be visualized on a number line, the complex numbers form a
plane, namely the complex plane:
5
Every complex number can be expressed as a + bi, but a number does not need to be written
this way to be complex. For example (although the rest of this paragraph is beyond the scope
of this course), you could also write a complex number as ceiθ for c, θ ∈ R. If you read Infinite
Descent, Clive will define complex numbers as a rotation of the real number line. In that case,
the θ can be interpreted as what angle you are rotating the real number line by, and c can be
interpreted as how far away from the origin you are moving.
0.7 Polynomials
Polynomials - you (probably) know them, you (possibly) love them, and it turns out that
a more formal and general definition of them is quite intimidating. If you want the formal
definition, refer to Infinite Descent, but the simpler definition below will suffice for this course:
Definition: Polynomials
A polynomial is an expression of the form
a0 + a1 x + a2 x 2 + · · · + an x n
where n ∈ N. The numbers ak are called the coefficients of the polynomial. When there is
at least one non-zero coefficient, we say the degree of the polynomial is the largest value of
k such that ak 6= 0. By convention, the degree of the polynomial 0 is −∞.
Polynomials of degree 1, 2, 3, 4 and 5 are respectively called linear, quadratic, cubic, quartic
and quintic polynomials. Instead of writing out the coefficients of a polynomial each time, we
may define p(x) = x2 or q(x) = 5x4 − x3 + 7 and later write p(1) to mean 12 or q(1) to mean
5(14 ) − 13 + 7.
(x + c2 )(y + c1 ) = c3 + c1 c2
Here’s a quick example. Consider the equation 2xy + 6x + 9y = 7. In order to use Simon’s
Favorite Factoring Trick, we first divide the equation by 2 so the coefficient of xy is 1. Then,
we can pattern match to find that
9 7 9
xy + 3x + y = =⇒ x + (y + 3) = 17
2 2 2
6
0.8 Chapter 0 Exercises
Solutions to the following exercises can be found in the appendix, although you will learn the
most if you attempt each problem to the best of your ability first.
Closed questions
Definition: Closure
A set X is closed under an operation if, whenever a and b are elements of X, a b is also
an element of X.
In the following questions, determine, with proof, which of the number sets N, Z, Q, and R are
closed under the operation defined in the question. In other words, if a, b are from some set
S, is a b always in S?
0.5 a b=a+b
a
0.9 a b= b2 +1
In this class, you may assume the following list of closure properties without proof. However,
it is best practice to cite what closure property you are using.
Note: We expect you to show all intermediate steps in your proofs. For example, if you start
with a, b ∈ N, you must note that a + b ∈ N (and ideally cite that this is because the naturals
are closed under addition) before using it in the rest of your proof.
Always-Sometimes-Never questions
In the following questions, determine, with proof, whether the conclusion is always, sometimes,
or never true under the given hypotheses.
0.26 Let a, b, c ∈ Z and suppose that a divides c and b divides c. Then ab divides c.
7
0.27 Let a, b, c ∈ Z and suppose that a divides c and b divides c. Then ab divides c2 .
ax+b
0.28 Let x, y ∈ Q and let a, b, c, d ∈ Z with cy + d 6= 0. Then cy+d
∈ Q.
In mathematics, we write proofs by making assumptions, which are propositions that are
known or assumed to be true. They include theorems that have already been proved, prior
knowledge, and assumptions which are explicitly made using words like ‘suppose’ or ‘assume’.
With these assumptions, we can achieve goals, which are propositions we are trying to prove.
The three statements ‘c divides b’, ‘b divides a’ and ‘c divides a’ are all propositions in their
own right. We can replace these simpler propositions with propositional variables. Letting p
represent ‘c divides b’, q represent ‘b divides a’ and r represent ‘c divides a’, we can rewrite our
original proposition as:
If p and q, then r.
Breaking down the proposition in this way makes it clear that a feasible way to prove it is to
assume p and q, and then derive r from these assumptions. But importantly, it suggests that
the same proof strategy might work for other propositions which are also of the form ‘if p and
q, then r’, such as the following proposition (for a given integer n):
If n > 2 and n is prime, then n is odd.
If that doesn’t make sense, don’t worry! It will become clearer as we introduce you to the
logical operators below.
8
0.10 Conjunction & Disjunction
Check your understanding: what is the truth value of ‘I am above 5 feet tall and I am an MCS
student’ ? What about the proposition ‘Earth revolves around the Sun ∧ birds exist’ ?
We present a truth table of p ∧ q below, where T represents ‘true’, and F represents ‘false’:
p q p∧q
T T T
T F F
F T F
F F F
We can read the first row as ‘if p is true and q is true, then p ∧ q is true.’ Note that this is the
only case where p ∧ q is true. This motivates the following proof strategy:
p q p∨q
T T T
T F T
F T T
F F F
You can see in the table above that the only time p ∨ q is false is when both p and q are false.
This leads to the following proof strategy:
9
Strategy: Assuming Disjunctions - Proof By Cases
If we are assuming that p ∨ q is true, and our goal is to prove the proposition r, we almost
always want to split into cases. To do so, temporarily assume that p is true and show that
r being true follows. Then, assume separately that q is true and show that r being true also
follows in that case.
Proposition 1.1.18
Let n ∈ N. Then n2 leaves a remainder of 0 or 1 when divided by 3.
Proof
Let n ∈ Z. By the division theorem, one of the following must be true for some k ∈ Z:
n = 3k or n = 3k + 1 or n = 3k + 2.
n2 = (3k)2 = 9k 2 = 3 · (3k 2 ) + 0
Definition: Implication
The implication operator is written in mathematical notation as =⇒ (in LATEX, \implies).
The propositional formula p =⇒ q is shorthand for ‘if p is true, then q is true’.
10
It may be helpful to think of an implication as a contract or a promise. The propositional
formula p =⇒ q is equivalent to saying when p happens, I promise that q will happen.
Note: this interpretation promises nothing about q when p isn’t true. In the case that p is
false, q could be anything - true or false - and we would still consider p =⇒ q to be true.
In the case that you come to recitation, the truth of the implication promises that Susan will be
happy. It cannot be the case that Susan is not happy, because that would violate the promise,
and the implication would be false.
In the case that you don’t come to recitation, nothing is promised about Susan’s emotions.
Susan could very well be happy despite teaching to an empty classroom - maybe her co-TA
gave her an origami hedgehog. It could also be the case that Susan is not happy.
Note that this means that p =⇒ q is true even if p is false and q is true. The only thing that
would violate the implication’s promise is if p is true and q is false.
We now consider an alternate way of saying p =⇒ q. First let’s look at truth table of p =⇒ q:
p q p =⇒ q
T T T
T F F
F T T
F F T
Again, we can see that the only case where p =⇒ q is false is when p is true and q is false.
Two propositions are logically equivalent if they have the same truth table, and it turns out
that p =⇒ q is logically equivalent to ¬p ∨ q.
p q ¬p ¬p ∨ q
T T F T
T F F F
F T T T
F F T T
Observe that the truth value of ¬p ∨ q is the same as that of p =⇒ q for every possible truth
value combination of p and q. Intuitively, both p =⇒ q and ¬p ∨ q are true in the case where
p is false, and further, in the case where p is true, both statements only hold if q is true. Thus
when proving p =⇒ q, it suffices to prove ¬p ∨ q.
Definition: Converse
The converse of a proposition of the form p =⇒ q is the proposition q =⇒ p.
11
Note that having an implication be true does not tell us whether the converse will be true. If
you aren’t sure about this, think about the truth tables for p =⇒ q and q =⇒ p.
A quick remark on terminology is pertinent. The following table summarises some common
ways of referring to the propositions ‘p =⇒ q’ and ‘q =⇒ p’.
p =⇒ q q =⇒ p
if p, then q if q, then p
p only if q p if q
p is sufficient for q p is necessary for q
We so often encounter the problem of proving both an implication and its converse that we
introduce a new logical operator that represents the conjunction of both.
Definition: Biimplication
The biconditional operator is the logical operator ⇐⇒ (in LATEX, \iff), defined by declar-
ing p ⇐⇒ q to be logically equivalent to (p =⇒ q) ∧ (q =⇒ p).
The expression p ⇐⇒ q is commonly said as ‘p if and only if q’ and sometimes written as
‘p iff q’.
12
In this course, you may use the quadratic formula without derivation. Next, we present an
alternate method of solving (monic) quadratics, made famous by Po-Shen Loh:
We can then see that there is some u ∈ C such that r and s are −B 2
± u (depending on which
one is bigger). If you aren’t convinced, try it out with some numbers of your own.
For instance, take the quadratic x2 + 20x + 91. Maybe you didn’t know that 91 = 7 × 13.
However, try solving this using the steps outlined above. You will find that you did not need
to know about the factorization about 91 to do so.
0.13 Negation
Definition: Contradiction
A contradiction is a proposition that is known or assumed to be false. We will use the
symbol ⊥ (in LATEX, \bot) to represent an arbitrary contradiction.
√
Some examples of contradictions include the propositions 0 = 1, or ‘ 2 is rational’, or ‘the
equation x2 = −1 has a solution x ∈ R.’
Definition: Negation
The negation operator is the logical operator ¬ (in LATEX, \neg), where ¬p is equivalent to
‘p is false’.
Note that if we can derive a contradiction from the assumption that p is true, then we can
conclude that ¬p is true. Conversely, if ¬p is true and p is true, then we may derive a
contradiction. We can apply this idea to use the following proof strategy:
13
It may be helpful to think of this strategy as proving that it cannot be the case that a propo-
sition is true, because in that case, we derive a contradiction, which is like breaking math and
blowing up the world. There is only one other case for what the truth value of a proposition
can be: false. Since we ruled out the true case, the proposition has to be false.
Note that this intuition relies on the fact that there are only two cases for what the truth value
of a proposition can be: true and false. This is formalized in the following axiom:
Although this axiom may seem trivially true, it is not accepted in all mathematical contexts.
In this class however, you can use it freely. The following proof strategy relies on the axiom:
This casing strategy is useful in many proofs, including the proof of the following proposition:
Proof Suppose a, b ∈ Z with ab even. By the division theorem, either a is even or a is odd.
• Case 2: Suppose a is odd. If b is also odd, then by the definition of odd, can write
a = 2k + 1 and b = 2l + 1 for some integers k, l. This implies that
so that ab is odd since 2kl + k + l ∈ Z. This contradicts the given assumption that ab is
even, and so b must in fact be even.
(IMPORTANT) Exercise 1.1.48 in Clive’s Infinite Descent may be useful for your future en-
deavors in this course :eyes:
1.1 For fixed n ∈ N, let p represent the proposition ‘n is even’, let q represent the proposition
‘n is prime’ and let r represent the proposition ‘n = 2’. For each of the following propositional
formulae, translate it into plain English and determine whether it is true for all n ∈ N, true
for some values of n and false for some values of n, or false for all n ∈ N.
14
(a) (p ∧ q) =⇒ r
(d) (p ∧ q) ∧ (¬r)
1.3 Let p and q be propositions, and assume that p =⇒ (¬q) is true and that (¬q) =⇒ p is
false. Which of the following are true, and which are false?
Note: All of the solutions below are fully complete proofs, and can therefore serve as examples
of what we expect on HWs.
0.4 Solution The remainder can be 0 or 1. The proof of this is in Clive on page 37 and in
these notes on page 10.
0.5 Solution The sets N, Z, Q, and R are all closed under . The proofs are as followed:
0.8 Solution The sets N, Z, Q, and R are all closed under . We will do this in one proof:
a b = (a − 1)(b − 1) + 2(a + b) = ab − a − b + 1 + 2a + 2b = ab + a + b + 1.
15
Note: In this case we used S as a stand in for the set in question because all 4 sets had the
same two properties that we needed, namely being closed under addition and multiplication. If
this makes you uncomfortable, you can also replace S with N then Z then Q and then R and
do the proof four times as in the solution to 0.5.
0.9 Solution The Q and R are closed under but N and Z are not. The proofs are as followed:
• N and Z: Let S = N or Z. The operation is not closed under S. In order to prove this,
1
it suffices to find a counter example. Consider a = b = 1. Then a b = b2a+1 = 1+1 = 12 .
Since a, b ∈ S but a b = 12 6∈ S then S isn’t closed under .
Note: Other counter examples could work as well.
• Q and R: Let S = Q or R. Take arbitrary a, b ∈ S. Note that b2 ≥ 0 and 1 > 0 so
b2 + 1 > 0. Furthermore, because S is closed under addition and multiplication, then
b2 + 1 ∈ S. It follows that b2a+1 ∈ S because S is closed under nonzero division. So Q and
R are closed under .
0.26 Solution The conclusion is sometimes true. To prove this we will provide one example
where it is true and another example where it is false.
Thus we have two examples of a, b, c ∈ Z where a divides c and b divides c. In one case we had
ab divide c but in the other case ab did not divide c, which means the conclusion is sometimes
true.
Fix a, b, c ∈ Z and assume a divides c and b divides c. Since a divides c then there is some
k ∈ Z such that c = ak. Likewise since b divides c then there is some j ∈ Z such that c = bj.
Hence c2 = (ak)(bj) = (ab)(kj). Since the integers are closed under multiplication, we know
kj ∈ Z. It follows that ab divides c2 by the definition of division.
16
0.28 Solution The conclusion is always true. The proof is as follows:
j
Fix x, y ∈ Q and a, b, c, d ∈ Z such that cy + d 6= 0. Since x, y ∈ Q then we can write x = k
and y = m` for j, k, `, m ∈ Z with k, m 6= 0. Hence
aj bk aj + bk
ax + b = + =
k k k
c` dm c` + dm
cy + d = + = 6 0
=
m m m
In order for cy + d = c`+dm
m
6= 0 to hold, we must have that c` + dm 6= 0. Furthermore, we have
that k 6= 0, so (c` + dm)k 6= 0. Now observe that:
aj+bk
ax + b k (aj + bk)m
= c`+dm
=
cy + d m
(c` + dm)k
We know (aj + bk)m ∈ Z and (c` + dm)k ∈ Z because integers are closed under addition and
multiplication. We already established that (c` + dm)k 6= 0. Thus by the definition of rational
numbers, we can indeed conclude that ax+b
cy+d
= (aj+bk)m
(c`+dm)k
∈ Q.
1.1 Solution
(a) ‘if n is even and n is prime then n = 2.’ This is true for all values of n ∈ N. Fix n ∈ N
and suppose n is even and prime. Since n is even then n = 2k for some k ∈ Z. Assume
for the sake of contradiction that n 6= 2. Then k 6= 1 hence either k ≤ 0 or k ≥ 2. If
k ≤ 0 then n ≤ 0 so n can’t be prime, which is a contradiction. If k ≥ 2 then since
n = 2k, we know that n has a factor (namely k) other than 1 and itself, so n isn’t prime.
We have arrived at a contradiction, thus we can conclude that n = 2.
(b) ‘n is prime and doesn’t equal 2 only if n isn’t even.’ This is true for all values n ∈ N.
Let n ∈ N and assume n is prime and n 6= 2. Now suppose for the sake of contradiction
that n is even. Well now we have that n is prime and that n is even, so from part (a)
we get that n = 2. This is a contradiction since we assume n 6= 2, thus we can conclude
that n is even as desired.
Note: You can also prove this without relying on part (a), the proof would likely involve
casing on values of n (or of k where n = 2k) as was done in the solution to (a).
(c) ‘n isn’t even or n isn’t prime or n 6= 2’. This is true for some values of n and false for
other values of n. Specifically, it is true for n ∈ N where n 6= 2 because then ‘n 6= 2’ is
true so the entire statement becomes true. However when n = 2 then ‘n isn’t even’ is
false (because 2 = 2 · 1 where 1 ∈ Z), and ‘n isn’t prime’ is false, and ‘n 6= 2’ is false, so
the statement as a whole is false.
(d) ‘n is even and n is prime and n 6= 2’. This statement is false for all n ∈ N. Suppose
for the sake of contradiction that there is some n ∈ N such the statement was true. It
follows that n is prime and that n is even. The only even prime number is 2 (as shown in
part a), so this would imply n = 2. However, we know from our assumption that n 6= 2.
This is a contradiction. Thus the statement is always false.
17
1.3 Solution
(a) True: We can rewrite ‘q being false is necessary for p to be true’ as ‘(¬q) is necessary for p’
which (looking at the table in the implications section if necessary) becomes p =⇒ (¬q).
We were given that this is true.
(b) False: We can rewrite ‘q being false is sufficient for p to be true’ as ‘(¬q) is sufficient for
p’ which is equivalent to (¬q) =⇒ p. We were given that this was false.
(c) False: We can rewrite ‘p being true is necessary for p to be false’ as ‘p is necessary for
(¬p)’, which is equivalent to (¬p) =⇒ p. Finally, recall that in general an implication
a =⇒ b will only be false when a is true and b is false. So the fact that (¬q) =⇒ p is
false implies that p is false. This means (¬p) is true so that (¬p) =⇒ p is false.
(d) True: ‘p being true is sufficient for p to be false’ can be rewritten as ‘p is sufficient for
(¬p)’ which is equivalent to p =⇒ (¬p). As established in part c, we know p is false, so
then the implication p =⇒ (¬p) is true.
18