-
Notifications
You must be signed in to change notification settings - Fork 1
/
contrapositive_elimination_contradiction.tex
326 lines (251 loc) · 15.1 KB
/
contrapositive_elimination_contradiction.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
\yourname
\activitytitle{Contrapositive, process of elimination, contradiction}{}
\vspace*{-0.2in}
\overview{
A central part of mathematics is identifying logical statements and showing which statements imply other statements.
This activity introduces logical statements and four ways to prove implications: direct proof, contrapositive, the process of elimination, and proof by contradiction.
You may have seen this same material presented using truth tables, but this particular activity specifically avoids truth tables.
}
\definition{Logical statement}{A {\em logical statement} is a sentence that is either true or false.
Sometimes logical statements have an unknows such as $n$, but for each value of $n$, the statement is either true or false.
We often label logical statements with capital letters.}
\example{\label{logicalstatementexample}
For each of the logical statements below, write its truth value T or F.
If the sentence is not a logical statement, explain why not.
\balist{0.0in}
\item $P$: 18 is even
\item $Q$: 19 is even
\item $R$: 19 is a large number
\item $S$: 13 is prime
\item $T$: $2^5-1$ is prime
\item $U$: $\sqrt{2}$ is rational
\elist
}{-0.2in}
\example{For each of the logical statements below, give five values of the integer $n$ for which the statement is true, if possible, and five values of the integer $n$ for which the statement is false, if possible.
\balist{0.0in}
\item \parbox{1.5in}{$2^n-1$ is prime} \parbox{2in}{ T: $n=$} F: $n=$
\item \parbox{1.5in}{$n$ is a perfect square} \parbox{2in}{T: $n=$} F: $n=$
\item \parbox{1.5in}{$n^2$ is a prime number} \parbox{2in}{T: $n=$} F: $n=$
\item \parbox{1.5in}{$n^2 + 3n + 1$ is odd} \parbox{2in}{T: $n=$} F: $n=$
\elist
}{-0.2in}
\definition{Conjunction, logical and}{The {\em conjunction} of two logical statements $P$ and $Q$ is a new logical statement denoted $P \wedge Q$ which is true when both $P$ and $Q$ are true, and false otherwise.
It is usually read as ``and''.
The symbol $\wedge$ is only used between logical statements.
We don't write ``Suppose $x > 3~\wedge \leq 9$'' but rather ``Suppose $x > 3 \wedge x \leq 9.$''}
\definition{Disjunction, logical or}{The {\em disjunction} of two logical statements $P$ and $Q$ is a new logical statement denoted $P \vee Q$ which is true when $P$ is true, when $Q$ is true, or when both are true, but false when both are false.
The symbol $\vee$ is only used between logical statements.
Instead of writing ``Suppose $n=3 \vee 5$,'' you could write ``Suppose $n=3 \vee n=5$.''
}
\exercise{Give the truth value T or F of each of the statements, using definitions in Example \ref{logicalstatementexample}.
\balist{0.0in}
\item $P \vee Q$
\item $Q \wedge S$
\item $P \wedge Q \wedge T$
\item $P \vee (Q \wedge U)$
\elist
}{-0.2in}
\definition{Negation}{The {\em negation} of a logical statement $P$ is a new statement denoted $\lnot P$ which is true when $P$ is false and false when $P$ is true.
$\lnot P$ is read as ``not $P$''.}
\exercise{Give the truth value T or F of each of the statements, using definitions in Example \ref{logicalstatementexample}.
\balist{0.0in}
\item $\lnot Q$
\item $P \wedge \lnot Q$
\item $Q \vee \lnot S$
\elist
}{-0.2in}
\definition{Implication}{For logical statements $P$ and $Q$, we say that $P$ implies $Q$ and write $P \to Q$ if $P$ being true guarantees that $Q$ is true.
}
\exercise{For each line below, identify the statement corresponding to $P$ and the statement corresponding to $Q$ in the implication $P \to Q$.
In every case, $n$ is an integer.
\balist{0.2in}
\item If $n$ is even, this implies that $n^2$ is even.
\item If $n^2$ is odd, then $n$ is odd.
\item If $n$ is odd, then $n^3-n$ is a multiple of 24.
\elist
}{0.0in}
\definition{Direct proof}{A {\em direct proof} of an implication is where we start with the statement $P$ and use the information in it together with a series of valid logical steps to show that $Q$ is true. This establishes that $P \to Q$.
We have seen a number of direct proofs, including proofs by rewriting.}
\prove{Let $n$ be an integer. Consider $S: n$ is even and $T: n^2+6n+7$ is odd.
Write a direct proof that $S \to T$.
Start with ``Let $n$ be an integer. Suppose that $n$ is even.''}{1.2in}
\example{\label{trydirectoddeven}
Let $n$ be an integer.
Consider $A: n^2$ is even and $B: n$ is even.
Try to write a direct proof that $A \to B$.
If you don't see a way to do it, you can stop trying.
}{0.8in}
\definition{Contrapositive}{Here is another way to think about showing $P \to Q$.
You need to be sure that it never happens that $P$ is true but $Q$ is false.
You can do this by showing that whenever $Q$ is false, $P$ is also false.
In other words, show that $\lnot Q \to \lnot P$.
This is called {\em proof by contrapositive}.
It may be easier to find a direct proof that $\lnot Q \to \lnot P$ than it is to show $P \to Q$.
}
%===============================================================
\pagebreak
\exercise{Let $n$ be an integer.
Consider $A: n^2$ is even and $B: n$ is even.\\
State $\lnot B$:\\
State $\lnot A$:\\
Show that $\lnot B \to \lnot A$, starting with: ``Let $n$ be an integer. Suppose that $n$ is odd.''
\vspace*{0.5in}
\noindent
State what you have shown: if $n^2$ is even then \blank{2in}
}{-0.2in}
\exercise{Let $n$ be an integer. Consider $P: n^2 + 8n + 9$ is even and $Q: n$ is odd.\\
State $\lnot Q$:\\
State $\lnot P$:\\
Show $\lnot Q \to \lnot P$:
\vspace*{0.5in}
\noindent
State $P \to Q$:}{-0.2in}
\exercise{Let $n$ be an integer. Consider $S: n^2$ is a multiple of 3 and $T: n$ is a multiple of 3.\\
State $\lnot T$:\\
State $\lnot S$:\\
By the Division Algorithm, there are two ways that $\lnot T$ can happen.
Call these Case 1 and Case 2.
Prove that in either case, they imply $\lnot S$.
\vspace{0.8in}
\noindent
Thus, if $n^2$ is a multiple of 3, we know that $n$ is a multiple of 3.}{-0.2in}
\definition{Rational\label{rational}}{A real number is said to be {\em rational} if it can be written as $\frac{a}{b}$ where $a$ and $b$ are integers and $b \neq 0$; this is the quotient of two integers.}
\definition{Irrational\label{irrational}}{A real number is said to be {\em irrational} if it cannot be written as the quotient of two integers.}
\exercise{Let $r \neq 0$. Show that if $r$ is irrational, then $\frac{1}{r}$ is irrational. Write a proof by contrapositive.}{0.6in}
\exercise{Suppose that $a$ is an irrational number. Show that $5a$ is irrational.}{0.6in}
\exercise{Let $b$ be a rational number not equal to 0. Suppose that $a$ is an irrational number. Show that $ba$ is irrational.
There are three logical statements here.
The one about $b$ is just context, one is $P$ and one is $Q$ in the implication $P \to Q$.
Identify $P$ and $Q$, then show that $P \to Q$.}{0.1in}
%===============================================================
\pagebreak
\note{{\bf Showing that a statement is false.} Sometimes we want to show that a statement $P$ is false.
Here is a method to do that.
Pretend for a minute that $P$ is true, and use rules of algebra, previously-proven results, theorems, etc.~to make a series of logical implications $P \to Q$, $Q \to R$, $R \to S$, $S \to T$ until you arrive at a statement $T$ that you know to be false.
Then you have shown that $P \to T$.
But since $T$ is false, then you can be certain that $P$ is false.
It can be difficult to identify a specific statement that is false; work hard to accomplish this, because it can really help to clarify the proof.}
\note{When proving that statement $P$ is false, we start by writing ``Pretend for a minute that $P$ is true.''
We do not really believe that $P$ is true, but it helps to pretend that it's true as you make a chain of implications starting from $P$.
}
\prove{\label{bothevenandodd}
Let $n$ be an integer.
Consider the statement $P: n$ is both even and odd.
Complete the following proof that $P$ is false.
\noindent
Pretend for a minute that $P$ is true. Then $n = 2k$ and $n= 2j+1$ for ...
\vspace{0.6in}
\noindent
But $k$ and $j$ are integers, and so $k-j$ is an integer, so $k-j = \frac{1}{2}$ is false.
Thus, $P$ must be false.
}{-0.2in}
\prove{Consider the statements $P:$ $n$ is a positive integer and $Q:$ $n^2$ is 6.
Prove that $P \wedge Q$ is false.
Your calculator will tell you that $\sqrt{6}=2.4494...$, but make an argument that does not rely on numerical approximations of square roots.
\noindent
Pretend for a minute that $n$ is a positive integer and $n^2 = 6$.
Then $2^2 < n^2 < 3^2$.
\vspace*{0.6in}
\noindent
Thus $2<n<3$. But this is false because \ldots
}{-0.2in}
\note{In the previous problem, we saw that $P \wedge Q$ is false, but we cannot say which of the two statements is false.
If $n$ is an integer, then $Q: n^2 = 6$ is false.
If $n^2 = 6$, then $n$ is not an integer, so $P$ is false.
The next example shows a slightly different approach where you can make a solid conclusion.
}
\example{Let $n$ be an integer and suppose that $n$ is even.
Prove that the statement $Q$: $n$ is odd is false.
\noindent
Pretend for a minute that $Q$ is true. The argument in \ref{bothevenandodd} leads us to a false statement.
Thus, $Q$ must be false.
\noindent
What is different here is that before we encounter the statement $Q$, we have supposed that $n$ is an integer and $n$ is even, both of which can be true.
In that context, we can see that $Q$ is false.
}{0in}
\guidedproof{Let $R$ be the statement that $\sqrt{2}$ is rational.
You will show that $R$ is false, by making a series of deductions that lead to a conclusion that is known to be false.
\noindent
Pretend for a minute that $R$ is true, that is, that $\sqrt{2}$ is rational.
\noindent
Then there exist integers $p$ and $q$ for which $\sqrt{2} = \frac{p}{q}$, and we can arrange it so that $p$ and $q$ have no common factors.
(If they had common factors, we would cancel common factors until they had no common factors.)
\noindent
Using algebra, $2q^2 = p^2$. Thus, $p^2$ is \blank{1.5in}.
Thus, $p$ is \blank{1in} by Exercise \blank{1in} earlier in this activity, and so can be written as $p = \blank{1in}$ for some \blank{1in}.
\noindent
Using algebra, $q^2 = \frac{1}{2} p^2 = $ \blank{2in}, and so $q^2$ is \blank{1in}. Thus $q$ is \blank{1in}.
\noindent
But we know that this is false, because $\blank{3in}$.
Thus, the statement $R$ is false.
Note that because $\sqrt{2}$ is not rational, it must be irrational.
}
\prove{
Suppose there are 20 kids playing musical chairs, with 19 chairs.
When the music stops, at least one kid will not have a chair to sit on.
Show that the statement $M:$ ``all kids have a chair to sit on by themselves'' is false.
\noindent
Pretend for a moment that $M$ is true. Let $k$ denote the number of kids and let $c$ denote the number of chairs. (What is the relationship between $k$ and $c$?)
}{0.5in}
\definition{Composite}{An integer $n > 1$ is {\em composite} if it can be written as $n=ab$ where $a$ and $b$ are integers with $1 < a,b < n$.}
\definition{Prime}{An integer $n>1$ is {\em prime} if it is not composite, that is, its only non-negative integer factors are 1 and itself.}
\exercise{List the prime numbers less than 20.}{0.0in}
\exercise{Write 24 as a product of prime factors.}{0.0in}
\prove{Let $S$ be the statement that there are finitely many prime numbers.
Show that $S$ is false by filling in the blanks.
\noindent
Pretend for a minute that $S$ is true, so there are only finitely many \blank{2in}.
Let $k$ be how many prime numbers there are, and call the prime numbers $p_1, p_2, p_3, \ldots, p_k$.
Consider the number $n = p_1 p_2 p_3 \cdots p_k + 1$.
Then $n$ is larger than all prime numbers and so $n$ is not \blank{1in}, so it must be \blank{1.5in}.
By considering factors of $n$, at least one factor must be a \blank{1in} number.
But by the \blank{2in} part of the \blank{2in}, $n$ is not a multiple of $p_1$, $n$ is not a multiple of $p_2$, etc.
Thus, $n$ is not a multiple of a prime number.
We have arrived at the false statement that $n$ is composite and yet has no prime factors.
Thus, statement $S$ must be false, and now we know that there are infinitely many prime numbers.
}{-0.2in}
\definition{Process of elimination}{Consider logical statements $P, Q$, and $R$ and suppose we know that $P \vee Q \vee R$ is true.
Suppose we show that $Q$ is false and $R$ is false.
We can conclude that $P$ is true.
Hopefully that is obviously true.
If not, one can use truth tables to make it extra clear, which is one place where truth tables really help.}
\prove{\label{nsquaredmultipleof5}
Let $n$ be an integer.
Suppose that $n^2$ is a multiple of 5.
Use the Division Algorithm to produce statements $P,$ $Q,$ $R,$ $S,$ and $T$ of the form $n = 5k + r$ for different values of $r$, so that $P \vee Q \vee R \vee S \vee T$ is true.
Then show that $Q$, $R$, $S$, and $T$ are false, and conclude that $P$ is true, so that $n$ is a multiple of 5.
Do a really good job on these cases, because you'll use them a few more times in the next questions.\\
By the Division Algorithm, we can write $n$ as \blank{2.5in}\\
Let $P: n=5k$, let $Q: n=5k+1$, ...\\
Assume $Q$ is true, then $n^2 = $ ...\\
}{0in}
% ===============================================
\pagebreak
\example{List the first 11 perfect squares, $0, 1, 4, 9, \ldots$.}{0.0in}
\prove{Use the cases from \ref{nsquaredmultipleof5} to argue that perfect squares of integers can only end in the decimal digits 0, 1, 4, 5, 6, 9, and never in 2, 3, 7, 8. If that doesn't make sense, let $n$ be an integer and write $n=10q+r$ and check $n^2$ in 10 cases.}{1.0in}
\prove{The result in \ref{nsquaredmultipleof5} can also be shown with a contrapositive proof.
\noindent
Let $n$ be an integer. Consider $A$: $n^2$ is a multiple of 5 and $B$: $n$ is a multiple of 5.
Clearly state $\lnot B$ and $\lnot A$.
Rewrite $\lnot B$ in terms of the cases from \ref{nsquaredmultipleof5}, and then argue that each case implies $\lnot A$. You may use the cases from \ref{nsquaredmultipleof5} without rewriting them.
}{0.9in}
\definition{Proof by contradiction}{Another way to prove that a statement $P$ is true is to pretend for a minute that $\lnot P$ is true and argue to a false statement, conclude that $\lnot P$ is false, and thus establish that $P$ is true.
It may be easiest to think of this as a proof by the process of elimination: we know that $P \vee \lnot P$ is true, and we are eliminating $\lnot P$.
}
\note{When using proof by contradiction that $P$ is true, we will write ``Pretend for a minute that $\lnot P$ is true'' and find a chain of implications resulting in a statement that is false.
Sometimes it is difficult to put your finger on what specific statement is false, but you realize that two or more statements are true, but cannot be true at the same time.
That is the nature of a contradiction.
If you can put your finger on a specific statement that is false, that is better.}
\guidedproof{Let $L$ be the statement ``There is a largest integer.''
Prove that $L$ is false.
\noindent
Pretend for a minute that $L$ is true.
Write $n$ for the largest integer.
Consider $n+1$.
\vspace{0.5in}
\noindent
Thus, $L$ is false.
}
\prove{Show that $\sqrt{5}$ is irrational, following the proof that $\sqrt{2}$ is irrational.
Start by pretending for a minute that $\sqrt{5}$ is rational and argue to a false statement or a contradiction.}{0in}
\vfill % pad the rest of the page with white space