Download Logic and Proof Book Chapter - IUPUI Mathematical Sciences

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Big O notation wikipedia , lookup

Mathematical proof wikipedia , lookup

Mathematics of radio engineering wikipedia , lookup

Theorem wikipedia , lookup

Non-standard calculus wikipedia , lookup

Function (mathematics) wikipedia , lookup

Elementary mathematics wikipedia , lookup

Laws of Form wikipedia , lookup

Proofs of Fermat's little theorem wikipedia , lookup

Catuṣkoṭi wikipedia , lookup

History of the function concept wikipedia , lookup

Transcript
Logic and Proof
Jeffrey X. Watt
Logic
And Proof
Jeffrey X. Watt, Ph.D.
Associate Professor of Mathematical Sciences
Indiana University - Purdue University Indianapolis
Copyright ©
ii
Contents
Chapter 1
Sets
1.1
1.2
1.3
1.4
Chapter 2
Chapter 5
Propositional Calculus
Tautology, Equivalence, and Conditional
Theorems of Propositional Calculus
Analysis of Arguments for Logical Validity
Predicate Calculus
Quantified Predicates in One Variable
Quantification in Several Variables
Introduction to Proof
Infinite Unions and Intersections
Methods of Mathematical Proof
4.1
4.2
4.3
4.4
4.5
Proof by Transitivity
Division into Cases
Proof by Induction
Epsilon-Delta Proofs
Indirect Proofs
Advanced Methods of Mathematical Proof
5.1
5.2
5.3
5.4
5.5
1
19
28
41
55
From Logic to Proof
3.1
3.2
3.3
3.4
3.5
Chapter 4
Definitions and Notations
Operations
Properties of Sets
Theorems of Set Theory
Logic
2.1
2.2
2.3
2.4
Chapter 3
1
Existence and Uniqueness
Advanced Methods
Equivalence Relations
Equivalence Classes and Partitions
Partial Orderings
Appendices
55
65
78
89
101
101
123
141
156
175
189
189
208
226
243
262
287
287
294
315
328
346
352
A
Answers to Selected Problems
352
Glossary
397
Index
403
iii
3.2 QUANTIFIERS
The first chapter of this book focused on how to determine the truth values of compound statements and
how to determine whether an argument is valid; however, the methods learned thus far are often incapable
of describing many of the statements in mathematics. Consider the following sentence
x is a prime number.
This sentence is not either true or false. That is, the truth value of this sentence depends on the value of x.
For example, if x = 2 then the sentence is false and if x = 3 then the sentence is true. Since the majority of
statement in mathematics include variables, we must expand our understanding of logic to include such
statements.
Let p ( x ) be a statement involving the variable x and let U be a set.
p ( x ) is called a propositional function if for each x in U ,
p ( x ) is a statement.
A propositional function is a sentence containing one or more variables.
The set U is called the domain of discourse of p ( x ) .
A propositional function, by itself, is neither true nor false. However, for each x in its domain of
discourse, p ( x ) is a statement, and is either true or false. That is, each value of x will determine the truth
value of the proposition.
Let p ( x ) be a propositional function over a domain of discourse U,
the set P contains all x in U that make p ( x ) true.
The set P is called the truth set of p ( x ) .
Example A
Let p ( x ) be the statement
x is a prime number,
and let U = {1, 2, 3, 4, 5, 6, 7, 8, 9} . Then p ( x ) is a propositional function with domain of
discourse U.
Determine the truth values of p ( x ) for x = 1, 2, 3, 4, and 5.
Determine the truth set P for p ( x ) .
123
Solution
If x = 1, we obtain the proposition, 1 is a prime number, which is false.
If x = 2, we obtain the proposition, 2 is a prime number, which is true.
If x = 3, we obtain the proposition, 3 is a prime number, which is true.
If x = 4, we obtain the proposition, 4 is a prime number, which is false.
If x = 5, we obtain the proposition, 5 is a prime number, which is true.
Therefore,
p (1) and p ( 4 ) are false statements.
p ( 2 ) , p ( 3) , and p ( 5 ) are true statements.
Note: each of p(1), p(2),… is either true or false, but not both.
The truth set for p ( x ) is the set containing all values of x from the domain of discourse
that make p ( x ) a true statement. Thus,
P = {2, 3, 5, 7, 9}
We can connect propositional functions together to form compound propositional functions in the
same manner that we formed compound statements in the first two sections of this chapter. With
propositional functions, we want to find the values of x in the domain of discourse that make the compound
propositional function true based on the truth values of the individual propositional functions. For
example, the truth set for
q(x) → s(x)
are those values of x that make q(x) → s(x) a true statement.
Let U = {1, 2, 3, 4, 5, 6, 7, 8, 9} be the domain of discourse for the following propositional functions.
1.
p(x) : x is a prime number
q(x) : x ≤ 3
r(x) : x + 5 > 10
s(x) : x is an even integer
t(x) : x < 7
Determine the truth sets for each propositional function.
2.
Using the results of exercise 1, find the truth sets of the compound propositional functions.
[a] ¬p(x)
[c] q(x) ∨ r(x)
[e] q(x) → s(x)
124
[b] p(x) ∧ q(x)
[d] t(x) ∧ ¬s(x)
[f] p(x) ↔ t(x)
In exercise 2[e], you must find the values in set U that make the compound propositional function
q(x) → s(x) true. Remember, a conditional statement is true unless the premise is true and the conclusion
is false (i.e., for a given value of x, q(x) is true and s(x) is false). The only values of x in
U = {1, 2, 3, 4, 5, 6, 7, 8, 9} that make the conditional statement false are 1 and 3. Therefore, the truth set of
q(x) → s(x) is {2, 4, 5, 6, 7, 8, 9} .
Universal and Existential Quantifiers
You most likely have noticed that many of the statements in mathematics use terms such as “for every” and
“for some.” For example:
For every rectangle, the sum of the angles is equal to 360 .
For some number x, 5 + x = 8 .
We now extend our understanding of logic to include “for every” and “for some” in statements.
If p ( x ) is a propositional function with variable x and domain of discourse U, then:
The sentence for all x, p ( x ) , symbolized ( ∀x ) ( p(x)) ,
is a proposition that is true if and only if the truth set of p ( x ) equals U.
The sentence for some x, p ( x ) , symbolized ( ∃x ) ( p(x)) ,
is a proposition that is true if and only if the truth set of p ( x ) is nonempty.
It is important to understand that an expression ( ∀x ) ( p(x)) or ( ∃x ) ( p(x)) is a statement (either
true or false), and not a propositional function, even though it contains a variable. Unlike a propositional
function, its truth value does not depend on which value is substituted for the variable x.
Example B
Let the domain of discourse be U = {0,1, 2, 3, 4, 5, 6, 7, 8, 9} . For each of the following
statements, convert the statement into symbolic form and determine its truth value.
[a] For every number x, x is a prime number.
[b] For some number x, x is a prime number.
[c] For every number x, there is a number y, such that x − y = x .
Solution
[a] ( ∀x ) ( p(x)) where p ( x ) : x is a prime number, and U = {0,1, 2, 3, 4, 5, 6, 7, 8, 9} .
This is a false statement because not every number in U is a prime number.
[b] ( ∃x ) ( p(x)) where p ( x ) : x is a prime number, and U = {0,1, 2, 3, 4, 5, 6, 7, 8, 9} .
125
This is a true statement because at least one number in the domain of discourse
is a prime number.
( ∀x ) ( ∃y ) ( s(x, y))
where s(x, y) : x − y = x , and U = {0,1, 2, 3, 4, 5, 6, 7, 8, 9} .
This is a true statement because for every number in the domain of discourse,
there is a number, 0, in the domain of discourse such that x − y = x .
[c]
3.
Let the domain of discourse be all students at IUPUI in the year 2004. Define three propositional
functions over U by:
p(x) : x is a male
q(x) : x is an athlete
r(x) : x is younger than 25 years old
For each of the following statements, convert into symbolic form and determine its truth value.
[a]
[b]
[c]
[d]
[e]
[f]
All students are male.
Some students are athletes.
Not all students are male.
Some students are male and are not younger than 25 years old.
All students are male athletes.
Some students are male or athletes.
Let s(x, y) be a propositional function “x is taller than y,” and let the domain of discourse be all high
school students in Perry Township this year. Express each statement in an English sentence and
determine its truth value.
4.
( ∀x ) ( ∀y ) ( s(x, y))
[b] ( ∀x ) ( ∃y ) ( s(x, y))
[c] ( ∃x ) ( ∀y ) ( s(x, y))
[d] ( ∃x ) ( ∃y ) ( s(x, y))
[a]
In exercise 3[c], you should have found the statement to be true, but did you find ¬ ( ∀x ) ( p(x)) or
( ∃x ) ( ¬p(x))
to be the symbolic form? It turns out that both forms are correct. The first symbolic form
reads, “it is not the case that all students are male,” and the second form reads, “some students are not
male.” These two forms are logically equivalent.
In exercise 3[e], you should have found this statement to be false, since IUPUI has a female
basketball team. You may have found one of two symbolic forms for this statement:
( ∀x ) ( p(x) ∧ q(x))
( ∀x ) ( p(x)) ∧ ( ∀x ) ( q(x))
These two symbolic forms are logically equivalent and leads us to our next definition.
126
Let p(x) and q(x) be propositional functions over a domain of discourse.
Then the following statements are logically equivalent:
¬ ( ∀x ) ( p(x)) ⇔ ( ∃x ) ( ¬p(x))
¬ ( ∃x ) ( p(x)) ⇔ ( ∀x ) ( ¬p(x))
( ∀x ) ( p(x) ∧ q(x)) ⇔ ( ∀x ) ( p(x)) ∧ ( ∀x ) ( q(x))
( ∃x ) ( p(x) ∨ q(x)) ⇔ ( ∃x ) ( p(x)) ∨ ( ∃x ) ( q(x))
Exercises
5.
Let p(x) be the propositional function x 2 + 10 = 14 . The domain of discourse is the set of all real
numbers. Determine the truth value of each.
[a] p(0)
[b] p(−2)
[c] p(2)
[d] p(4)
[e] For some n, p(n)
[f] For all n, p(n)
For exercises 6 through 9, determine whether the sentence is a propositional function. For each statement
that is a propositional function, give a domain of discourse.
6.
Let x be an integer.
7.
It rained and John saw a movie.
8.
There exists a person who has won the State Math Contest and the Science Fair contest.
9.
Every animal eats other animals for food.
10. Let the domain of discourse be all of the problems on an IQ test. Define three propositional functions
over U by:
p(x) : x is a geometry problem
q(x) : x is a probability problem
r(x) : x is an unsolvable problem
Convert each of the symbolic forms into an English sentence.
[a] ( ∀x ) ( p(x))
[b] ( ∀x ) ( ¬r(x))
[c]
( ∀x ) ( p(x) ∨ q(x))
[d]
( ∃x ) ( p(x) ∨ r(x))
127
11. Let the domain of discourse be all of the problems on an IQ test. Define three propositional functions
over U by:
p(x) : x is a geometry problem
q(x) : x is a probability problem
r(x) : x is an unsolvable problem
Convert each of the symbolic forms into an English sentence.
[a] ( ∃x ) ( q(x))
[b] ¬ ( ∃x ) ( r(x))
[c]
( ∀x ) ( p(x) → q(x))
[d]
( ∃x ) ( p(x) ∧ ¬r(x))
12. Let the domain of discourse be the set of all positive integers. Define three propositional functions
over U by:
p(x) : x is a prime
q(x) : x is an odd number
r(x) : x is divisable by 3
Determine the truth value of each statement.
[a] ( ∀x ) ( p(x) → q(x))
[c]
( ∀x ) ( r(x) ∨ ¬r(x))
[b] ¬ ( ∀x ) ( r(x))
[d]
( ∃x ) ( p(x) ∧ ¬r(x))
13. Let s(x, y) be a propositional function “x is a sibling of y,” and let the domain of discourse be all
living people. Express each statement in symbolic form and determine its truth value.
[a] Everybody is a sibling of everybody.
[b] Everybody is a sibling of somebody.
[c] Somebody is a sibling of everybody.
[d] Somebody is a sibling of somebody.
14. Let f (x, y) be a propositional function “x is a friend of y,” and let the domain of discourse be all living
people. Express each statement in an English sentence and determine its truth value.
[a] ( ∀x ) ( ∀y ) ( f (x, y))
[b] ( ∀x ) ( ∃y ) ( f (x, y))
[c] ( ∃x ) ( ∀y ) ( f (x, y))
[d] ( ∃x ) ( ∃y ) ( f (x, y))
For exercises 15 through 18, let t(x, y) : x ≤ y , and the domain of discourse be all nonnegative real
numbers. Determine the truth value of each statement.
15.
( ∀x ) ( ∀y ) (t(x, y))
16. ( ∀x ) ( ∃y ) ( t(x, y))
17.
( ∃x ) ( ∀y ) (t(x, y))
18. ( ∃x ) ( ∃y ) ( t(x, y))
128
For exercises 19 through 22, rephrase the statement and determine its meaning.
19. Every pot does not contain gold.
20. Some men are not mortal.
21. Some gun owner are not criminal.
22. All carpet stains can’t be cleaned.
23. Determine the truth value of the statement. The domain of discourse is all natural numbers.
( ∀x ) ( ∀y ) ( ∃z ) (( x + z ) ≤ (y + z))
24. Determine the truth value of the statement. The domain of discourse is all natural numbers.
( ∀x ) ( ∀y ) ( ∀z ) (( x > y ) → (x + z > y + z))
25. Determine the truth value of the statement. The domain of discourse is all natural numbers.
( ∀x ) ( ∀y ) ( ∀z ) (( x > y ) → (x ⋅ z > y ⋅ z))
26. Which of the following are logically equivalent to ¬ ( ∀x ) ( ∃y ) ( p(x, y)) ?
[a] ( ∃x ) ( ∀y ) ( ¬p(x, y))
[c] ( ∃y ) ( ∀x ) ( ¬p(x, y))
( ∃x ) ¬ ( ∀y ) ( p(x, y))
[d] ( ∃x ) ( ∀y ) ( p(x, y))
[b]
129