-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathquantifiers_nested_quantifiers.tex
More file actions
242 lines (185 loc) · 10.6 KB
/
quantifiers_nested_quantifiers.tex
File metadata and controls
242 lines (185 loc) · 10.6 KB
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
\yourname
\activitytitle{Quantifiers and nested quantifiers}{}
\overview{
Many statements that we want to prove are supposed to be true {\bf for all} objects having a certain property.
Other times, we want to show that {\bf there exists} an object having a property.
`For all' and `there exists' are called quantifiers.
Sometimes the two occur together, as in a statement that `for every object A, there exists an object B having a certain relationship to A.'
Then we say that the quantifiers are {\em nested}.
In this activity you will work with quantifiers and nested quantifiers.
}
\definition{For all}{The phrase {\em for all} means that what follows is supposed to be true for all values of the indicated variable, and will probably require a generic proof to cover all possibilities.
Alternative words are ``for every'' or ``for each.''
Sometimes people write ``for any'' but please avoid that because it can be ambiguous.
The notation $\forall$ is often used to represent ``for all''.
The format is ``for all (introduce a variable and optionally put restrictions on the variable), we have (property satisfied by the variable).''
In this course, use the words ``we have'' except when ``for all'' is followed by ``there exists.''
}
\definition{There exists}{The phrase {\em there exists} claims that an object with a certain property can be shown to exist.
Often, you prove existence by constructing the object that is needed, but occasionally the proof works differently.
The notation $\exists$ is often used to represent ``there exists.''
The format is ``there exists (introduce a variable and optionally put restrictions on the variable) such that (property satisfied by the variable).''
In this course, write out the words ``such that.''}
\exercise{Rewrite English sentences symbolically, and rewrite symbolic statements as English sentences.
The first ones are done for you.
Pay close attention to the format for writing the statements.
\balist{0.3in}
\item Every prime number is greater than 1. Solution: $\forall$ prime $n$, we have $n > 1$.
\vspace*{-0.2in}
\item There is a real number $x$ for which $x^2 = 2$. Solution: $\exists$ $x \in \R$ such that $x^2 = 2$.
Note: The set $\R$ is called the {\em universe} for the variable $x$.
\vspace*{-0.2in}
\item $\forall$ $x \in A$, we have $x^2 = x$. Rewrite in English:
\item The equation $x = \sin(x)$ has an integer-valued solution.
Rewrite symbolically:
\ealist
}{0.1in}
\exercise{
Write the following statements symbolically:
\balist{0.3in}
\item For every $a$, there is a $b$ for which $b^2 = a$
\item For every $b$, there is an $a$ for which $b^2 = a$
\item For every $a$ and every $b$, we have $b^2 = a$
\item There exists an $a$ and there exists a $b$ such that $b^2 = a$
\elist
}{0.0in}
\pagebreak
\exercise{For each of the statements in the previous problem, decide whether it is true or false if the universe for both $a$ and $b$ is the set of non--negative integers.
If false, give specific numbers as counterexamples using ``Let \ldots''
\balist{0.2in}
\item
\item
\item
\item
\elist
}{0.1in}
\remark{Now you will write proofs that involve nested quantifiers.
For each, first write the statement using symbols $\forall$ and $\exists$.
Note the order in which the quantifiers occur, because that will have a big impact on the structure of the proof.
To prove a ``for all'' statement, use ``Let \ldots'' to introduce a generic instance of the variable that satisfies whatever restriction is imposed.
If your proof works for a generic value of the variable, then it will work for all variables satisfying the restriction.
To prove a ``there exists'' statement, construct the required variable in terms of other variables, also using ``Let \ldots'' to start the construction.
It can help you organize your work if you indent under each ``Let'' statement.
}
\prove{Show that for all odd integers $m$ and $n$, there exists an integer $p$ such that $m+n = 2p$.
\noindent
In symbols: $\forall$ \blank{1in} integers $m$ and $n$, \blank{2in}
\noindent
Let $m$ and $n$ be odd integers. ($m$ and $n$ satisfy the condition but are otherwise arbitrary)\\
\hspace*{0.3in} By the definition of odd, \blank{4in}\\
\hspace*{0.3in} Thus, $m+n=$\blank{4in}\\
\hspace*{0.3in} Let $p = $\blank{1in} (this constructs $p$)\\
\hspace*{0.6in} Then $p$ is an \blank{1.2in} and $m+n=2p$ as desired.\\
Because $m$ and $n$ were arbitrary odd numbers, we have shown that for all odd $m$ and $n$, there exists ...
}{0in}
\prove{Show that for every rational number $r \neq 0$, there exists a rational number $s$ such that $rs = 1$.
Follow the model.
\noindent
In symbols:
\noindent
Let $r$ be a rational number with $r \neq 0$.
By the definition of rational numbers, \blank{4in}
\vspace{0.1in}
Let $s = $ \blank{1in}.
\vspace{0.1in}
\hspace*{0.3in} Then $s$ is rational and $rs=\blank{1in}=1$.
\noindent
Because ...
}{0.0in}
\prove{Show that for every real number $y$ there is a value of $x$ for which $y = 2x-5$.
\noindent
In symbols:
}{1.0in}
\prove{(Calculus required.) Show that for every continuous function $f:\R \to \R$, there exists a function $F$ with $F' = f$ and $F(0) = 0$.
Is there more than one possible choice for $F$?
\noindent
In symbols:
}{1.0in}
\prove{(Linear algebra required.) Suppose that the 3 by 3 matrix $A$ is invertible.
(The matrix $A$ is given; you don't need to say ``Let $A$ be a matrix'' or construct $A$.)
Show that for all 3-dimensional vectors $b$, the equation $Ax = b$ has a solution $x$, which is also a 3-dimensional vector.
Is there more than one possible value for $x$?
\noindent
In symbols:
}{1.0in}
\exercise{~
\balist{0.7in}
\item Show that for every integer $p > 0$, there is an integer $n$ with $2^n > p$.
You don't need the smallest possible $n$, just one that works.
\item Show that there exists an integer $n$ such that for all integers $p$ with $p \leq 0$, we have $2^n > p$.
First define $n$, then show that it works for all $p$ by starting with ``Let $p \leq 0$ be an integer.''
\item Suppose that $2^n > p$. Show that for all $m > n$, we have $2^m > p$.
\item Fill in the blanks to document what you have shown about $p$, $n$, and $m$ in (a), (b), and (c).\\
\hspace*{0.3in} $\forall p \blank{0.6in}, \exists n \blank{0.6in}$ such that $\forall m \blank{0.6in},$ we have \blank{1in}
\elist
}{0.0in}
\exercise{~
\balist{0.7in}
\item Suppose that $n^2 > \frac{1}{a}$. Cite a property of inequalities to show that $n^2 + 10 > \frac{1}{a}$.
\item Show that for every real number $a > 0$, there exists an integer $n$ with $\frac{1}{n^2 + 10} < a$.
\noindent
Let $a > 0$.
Let $n = ceil(\frac{1}{\sqrt{a}}).$
Then $n \geq \frac{1}{\sqrt{a}}$, (now you continue)
\item Suppose that $\frac{1}{n^2+10} < a$.
Show that for all $m > n$, we have $\frac{1}{m^2+10} < a$.
\item As in the previous question, use three quantifiers to express what you have shown about $a$, $n$, and $m$ in (b) and (c).
\elist
As a consequence, you have shown that $\lim_{n\to\infty} \frac{1}{n^2 + 10} = 0.$
}{0.3in}
\exercise{~
\balist{0.5in}
\item Let $a > 0$. Solve the inequality $0 < \frac{1}{x^2 - 100} < a$ for a value of $x$ where $x > 10$.
\item Show that for every real number $a > 0$, there is an integer $n$ with $0 < \frac{1}{n^2 - 100} < a$.
\item Suppose that $\frac{1}{n^2 - 100} < a$.
Show that for all $m > n$, we have $\frac{1}{m^2 - 100} < a$.
\item Use three quantifiers to express what you have shown about $a$, $n$, and $m$ in (b) and (c).
\elist
}{0.3in}
\exercise{
Show that there exists a number $a$ such that for all $x \in \R$, $5\sin(x) + 7\cos(3x) < a$.
Note that in this problem, you first construct $a$ and then you show a ``for all'' statement.
\noindent
In symbols:
}{1.0in}
\exercise{
Show that there exists an integer $a$ for which, for all integers $b$, $ab = b$.
\noindent
In symbols:
}{0.1in}
\remark{The negation of a logical statement $P$ is denoted by $\lnot P$. It is true when $P$ is false and false when $P$ is true. When the logical statement begins with a quantifier, we can think through the result of negation. In what follows, $Q(x)$ is a logical statement whose truth value depends on the value of $x$. For example, $Q(x)$ could be the statement ``$x^2 = x$.''
\blist{0.1in}
\item Consider $\lnot \forall$ $x \in A$, we have $Q(x)$. This means that it is not true that all $x$ values ``work,'' so there must be an $x$ value that does not work, that is, $\exists$ $x\in A$ such that $\lnot Q(x)$.
\item Consider $\lnot \exists$ $x \in A$ such that $Q(x)$. Try as we might, we cannot find a value of $x$ that ``works,'' so it must be that all values of $x$ fail to work. That is, $\forall$ $x\in A$, we have $\lnot Q(x)$.
\elist
Note that in both cases, negating the quantifier can be done quite mechanically: negation turns $\forall$ into $\exists$ and it turns $\exists$ into $\forall$. Also note that in both cases we keep the restriction $x\in A$ and instead negate the property $Q(x)$ that $x$ is supposed to have.
When negating nested quantifiers, after flipping the first quantifier, the negation applies to the next quantifier, which then flips, and so on.
}
\exercise{Negate the following statements, getting rid of every ``not'' (except for part (c) where you will need ``not equal'').
\balist{0.1in}
\item $\exists$ integer $k$ such that $k^2 < k$
\item $\exists$ $x \geq 0$ such that $\cos(x) > e^x$
\item $\forall$ $y \in \R$, $\exists$ $x \in \R$ such that $x^2 = y$
\item $\forall$ $a > 0$, $\exists$ integer $n$ such that $\forall$ $m > n$, $\sin(m) < a$
\item $\forall$ $a > 0$, $\exists$ $d > 0$ such that $\forall$ $x \in (a-d,a+d)$, we have $|\cos(x) - \cos(a)| < a$
\ealist
}{0in}
\exercise{Write the following statements symbolically.
Introduce new notation as you need it.
The first one is done for you.
\balist{0.5in}
\item Every state has a city named Springfield. Use variables $s$ and $c$.
\noindent
Solution: $\forall$ state $s$, $\exists$ city $c$ in $s$ such that NameOf(c) = Springfield.\\
\vspace*{-0.6in}
\item Every bridge has a weight limit. Use variables $b$ and $w$.
\item There is an integer that is larger than every other integer. Use variables $m$ and $n$.
\item Every broken clock is right twice a day. Use variables $c, t_1, t_2$.
\item Every married couple can find a tax deduction. Use variables $m$ and $d$.
\item Between every two locations in the US, there is a shortest driving route. Use variables $L_1, L_2, r,$ and $R$.\\
Solution: $\forall$ locations $L_1$ and $L_2$ in the US, $\exists$ route $r$ such that $r$ starts at $L_1$ and ends at $L_2$ and $\forall$ route $R$ such that $R$ starts at $L_1$ and ends at $L_2$, length($r$) $\leq$ length($R$).\\
Why is the second $\forall$ needed?
\vspace*{-0.2in}
\elist
}{0.1in}
\vfill % pad the rest of the page with white space