Exercises for Seminar and Homework 5
Exercises for Seminar and Homework 5
Methods of proof
Two important questions that arise in the study of mathematics are:
(1) When is a mathematical argument correct?
(2) What methods can be used to construct mathematical arguments?
This section helps answer these questions by describing various forms of correct and incorrect mathematical
arguments.
A theorem is a statement that can be shown to be true. We demonstrate that a theorem is true with a sequence
of statements that form an argument, called a proof. To construct proofs, methods are needed to derive new
statements from old ones. The statements used in a proof can include axioms or postulates, which are the
underlying assumptions about mathematical structures, the hypotheses of the theorem to be proved, and
previously proved theorems. The rules of inference, which are the means used to draw conclusions from other
assertions, tie together the steps of a proof.
A form of incorrect reasoning is called a fallacy. The terms lemma and corollary are used for certain types of
theorems. A lemma is a simple theorem used in the proof of other theorems. Complicated proofs are usually
easier to understand when they are proved using a series of lemmas, where each lemma is proved individually.
A corollary is a proposition that can be established directly from a theorem that has been proved. A conjecture
is a statement whose truth value is unknown. When a proof of a conjecture is found, the conjecture becomes a
theorem. Many times conjectures are shown to be false, so they are not theorems.
Rules of inference
We will now introduce rules of inference for propositional logic. These rules provide the justification of the
steps used to show that a conclusion follows logically from a set of hypotheses. The tautology
( p ( p q)) q is the basis of the rule of inference called modus ponens, or the law of detachment. This
tautology is written in the following way: p, p q q .
Using this notation, the hypotheses are written in a column and the conclusion below a bar. Modus ponens states
that if both an implication and its hypothesis are known to be true, then the conclusion of this implication is
true.
Example. Suppose that the implication “if it is snows today, then we will go skiing” and its hypothesis, “it is
snowing today”, are true. Then, by modus ponens, it follows that the conclusion of the implication, “we will go
skiing”, is true.
Example. The implication “if n is divisible by 3, then n2 is divisible by 9” is true. Consequently, if n is divisible
by 3, then by modus ponens, it follows that n2 is divisible by 9.
Rules of inference Tautology .Name
p pq p ( p q) Addition
pq p ( p q) p Simplification
p, q p q (( p) (q)) ( p q) Conjunction
p, p q q [ p ( p q)] q Modus ponens
q, p q p [q ( p q)] p Modus tollens
p q, q r p r [( p q) (q r )] ( p r ) Hypothetical syllogism
p q, p q [( p q) p] q Disjunctive syllogism
An argument is called valid if whenever all the hypotheses are true, the conclusion is also true. Consequently,
showing that q logically follows from the hypotheses p1, p2, …, pn is the same as showing that then implication
( p1 p2 ... pn ) q is true.
When there are many premises, several rules of inference are often needed to show that an argument is valid.
This is illustrated by the following examples, where the steps of arguments are displayed step by step, with the
reason for each step explicitly stated. These examples also show how argument in English can be analyzed using
rules of inference.
Example. Show that the hypotheses “It is not sunny this afternoon and it is colder than yesterday”, “We will go
swimming only if it is sunny”, “If we do not go swimming, then we will take a canoe trip”, and “If we take a
canoe trip, then we will be home by sunset” lead to the conclusion “We will be home by sunset”.
Solution: Let p be the proposition “It is sunny this afternoon”, q the proposition “It is colder than yesterday”, r
the proposition “We will go swimming”, s the proposition “We will take a canoe trip”, and t the proposition
“We will be home by sunset”. Then the hypotheses become p q , r p , r s , and s t . The
conclusion is simply t. We construct an argument to show that our hypotheses lead to the desired conclusion as
follows:
Step Reason
1. p q Hypothesis
2. p Simplification using Step 1
3. r p Hypothesis
4. r Modus tollens using Steps 2 and 3
5. r s Hypothesis
3. s Modus ponens using Steps 4 and 5
7. s t Hypothesis
8. t Modus ponens using Steps 3 and 7
Example. Show that the hypotheses “If you send me an e-mail message, then I will finish writing the program”,
“If you do not send me an e-mail message, then I will go to sleep early”, and “If I go to sleep early, then I will
wake up feeling refreshed” lead to the conclusion “If I do not finish writing the program”, then “I will wake up
feeling refreshed”.
Solution: Let p be the proposition “You send me an e-mail message”, q the proposition “I will finish writing the
program”, r the proposition “I will go to sleep early”, and s the proposition “I will wake up feeling refreshed”.
Then the hypotheses are p q , p r and r s . The desired conclusion is q s . The following
argument shows that our hypotheses lead to the desired conclusion.
Step Reason
1. p q Hypothesis
2. q p Contradiction of Step 1
3. p r Hypothesis
4. q r Hypothetical syllogism using Steps 2 and 3
5. r s Hypothesis
3. q s Hypothetical syllogism using Steps 4 and 5
true. Hence, P (0) is true. This is an example of a trivial proof. Note that the hypothesis, which is the statement
“ a b ”, was not needed in this proof.
Suppose that a contradiction q can be found so that p q is true, that is, p F is true. Then the
proposition p must be false. Consequently, p must be true. This technique can be used when a contradiction,
such as r r , can be found so that it is possible to show that the implication p (r r ) is true. An
argument of this type is called a proof by contradiction.
Example. Prove that 2 is irrational by giving a proof by contradiction.
Solution: Let p be the proposition “ 2 is irrational”. Suppose that p is true. Then 2 is rational. We will
show that this leads to a contradiction. Under the assumption that 2 is rational, there exist integers a and b
with 2 a / b , where a and b have no common factors (so that the fraction a/b is in lowest terms). Since
2 a / b , when both sides of this equation are squared, it follows that 2 a / b . Hence, 2b a . This
2 2 2 2
means that a2 is even, implying that a is even. Furthermore, since a is even, a = 2c for some integer c. Thus
2b 2 4c 2 , so b 2 2c 2 . This means that b2 is even. Hence, b must be even as well. It has been shown that
p implies that 2 a / b , where a and b have no common factors, and 2 divides a and b. This is a
contradiction since we have shown that p implies both r and r where r is the statement that a and b are
integers with no common factors. Hence, p is false, so that p: “ 2 is irrational” is true.
To prove an implication of the form
( p1 p2 ... pn ) q the tautology
[( p1 p2 ... pn ) q] [( p1 q) ( p2 q) ... ( pn q)]
can be used as a rule of inference. This shows that the original implication with a hypothesis made up of a
disjunction of the propositions
p1 , p2 ,..., pn can be proved by proving each of the n implications
pi q, i 1, 2, ..., n , individually. Such an argument is called a proof by cases. Sometimes to prove that an
Example. Prove the implication “If n is an integer not divisible by 3, then n 1(mod 3) ”.
2
Solution: Let p be the proposition “n is not divisible by 3”, and let q be the proposition “ n 1(mod 3) ”. Then
2
it has been shown that both p1 q and p2 q are true, it can be concluded that ( p1 p2 ) q is true.
Moreover, since p is equivalent to p1 p2 , it follows that
pq is true.
To prove a theorem that is equivalence, that is, one that is a statement of the form p q where p and q are
propositions, the tautology ( p q) [( p q) (q p)] can be used. That is, the proposition “p if and
only if q” can be proved if both the implications “if p, then q” and “if q, then p” are proved.
Sometimes a theorem states that several propositions are equivalent. Such a theorem states that propositions
p1 , p2 ,..., pn are equivalent. This can be written as p1 p2 ... pn , which states that all n propositions
have the same truth values. One way to prove these mutually equivalent is to use the tautology
[ p1 p2 ... pn ] [( p1 p2 ) ( p2 p3 ) ... ( pn p1 )] .
This shows that if the implications
p1 p2 , p2 p3 , ..., pn p1 can be shown to be true, then the
propositions
p1 , p2 ,..., pn are all equivalent.
Mathematical induction
What is a formula for the sum of the first n positive odd integers? The sums of the first n positive odd integers
for n = 1, 2, 3, 4, 5 are
1 = 1, 1 + 3 = 4, 1 + 3 + 5 = 9, 1 + 3 + 5 + 7 = 13, 1 + 3 + 5 + 7 + 9 = 25.
From these values it is reasonable to guess that the sum of the first n positive odd integers is n2. We need a
method to prove that this guess is correct, if in fact it is.
Mathematical induction is an extremely important proof technique that can be used to prove assertions of this
type.
The validity of mathematical induction follows from the following fundamental axiom about the set of integers.
The well-ordering property: Every nonempty set of nonnegative integers has a least element.
The well-ordering property can often be used directly in proofs.
Example. Use the well-ordering property to prove the division algorithm. Recall that the division algorithm
states that if a is an integer and d is a positive integer, then there are unique integers q and r with 0 r d and
a dq r .
Solution: Let S be the set of nonnegative integers of the form a dq where q is an integer. This set is nonempty
since dq can be made as large as desired (taking q to be a negative integer with large absolute value). By the
well-ordering property S has a least element
r a dq 0.
The integer r is nonnegative. It is also the case that r < d. If it were not, then there would be a smaller nonnegative
element in S, namely,
a d (q0 1) . To see this, suppose that r d . Since a dq0 r , it follows that
a d (q0 1) (a dq0 ) d r d 0 .Consequently, there are integers q and r with 0 r d . The proof
that q and r are unique is left as an exercise for the reader.
Many theorems state that P(n) is true for all positive integers n, where P(n) is a propositional function, such as
n(n 1)
1 2 ... n
or the statement that n 2 . Mathematical induction is a technique
n
the statement that 2
for proving theorems of this kind. In other words, mathematical induction is used to prove propositions of the
form nP(n) , where the universe of discourse is the set of positive integers.
A proof by mathematical induction that P(n) is true for every positive integer n consists of two steps:
1. Basic step. The proposition P(1) is shown to be true.
2. Inductive step. The implication P(n) P(n 1) is shown to be true for every positive integer n.
Here, the statement P(n) for a fixed positive integer n is called the inductive hypothesis. When we complete
both steps of a proof by mathematical induction, we have proved that P(n) is true for all positive integers n; that
is, we have shown that nP(n) is true. Expressed as a rule of inference, this proof technique can be stated as
[ P(1) n( P(n) P(n 1))] nP(n) .
n 1
We need to show that n 1 2 . Adding 1 to both sides of n 2 , and then noting that 1 2 , gives
n n
n 1 2 n 1 2 n 2 n 2 n 1 .
Glossary
rule of inference – правило вывода; to tie – связывать; fallacy – ошибка, заблуждение
law of detachment – закон отделения; premises – предпосылки; vacuous – пустой
wise – мудрый; instantiation – подтверждение
5.6. Prove that the square of an even number is an even number using a) a direct proof; b) an indirect
proof.
5.7. Find a formula for the sum of the first n even positive integers. Use mathematical induction to
prove this formula.
n 1
5.8. Use mathematical induction to prove that 3 3 5 3 5 ... 3 5 3(5 1) / 4 whenever n
2 n
is a nonnegative integer.
1 1 1 1
... n
5.9. Find a formula for 2 4 8 2 by examining the values of this expression for small values
of n. Use mathematical induction to prove your result.
5.10. Prove that 3 n! whenever n is a positive integer greater than 6.
n
5.11. Use mathematical induction to show that 3 divides n 2n whenever n is a nonnegative integer.
3
1 1 1 1
1 ... 2 2
5.12. Prove that 4 9 n n whenever n is a positive integer greater than 1.
n is a nonnegative integer.
1 1 1
...
5.20. Find a formula for 1 2 2 3 n(n 1) by examining the values of this expression for small values
of n. Use mathematical induction to prove your result.
5.21. Prove that 1 1! 2 2! ... n n ! (n 1)! 1 whenever n is a positive integer.
5.22. Use mathematical induction to show that 5 divides n n whenever n is a nonnegative integer.
5