3.E: Symbolic Logic and Proofs (Exercises)
- Last updated
- Jan 10, 2019
- Save as PDF
- Page ID
- 15335
( \newcommand{\kernel}{\mathrm{null}\,}\)
3.1: Propositional Logic
1
Consider the statement about a party, “If it's your birthday or there will be cake, then there will be cake.”
- Translate the above statement into symbols. Clearly state which statement is
and which is - Make a truth table for the statement.
- Assuming the statement is true, what (if anything) can you conclude if there will be cake?
- Assuming the statement is true, what (if anything) can you conclude if there will not be cake?
- Suppose you found out that the statement was a lie. What can you conclude?
- Solution
-
it's your birthday; there will be cake.- Hint: you should get three T's and one F.
- Only that there will be cake.
- It's NOT your birthday!
- It's your birthday, but the cake is a lie.
2
Make a truth table for the statement
- Solution
-
T T T T F F F T F F F T
3
Make a truth table for the statement
- Solution
-
T T F T F F F T F F F T If the statement is true, then both
and are false.
4
Make a truth table for the statement
- Hint
-
Like above, only now you will need 8 rows instead of just 4.
5
Determine whether the following two statements are logically equivalent:
- Solution
-
Make a truth table for each and compare. The statements are logically equivalent.
6
Are the statements
7
Simplify the following statements (so that negation only appears right before variables).
- It is false that if Sam is not a man then Chris is a woman, and that Chris is not a woman.
- Answer
-
or, replacing the implication with a disjunction first: This is necessarily false, so it is also equivalent to- Either Sam is a woman and Chris is a man, or Chris is a woman.
8
Use De Morgan's Laws, and any other logical equivalence facts you know to simplify the following statements. Show all your steps. Your final statements should have negations only appear directly next to the sentence variables or predicates (
(careful with the implications).
9
Tommy Flanagan was telling you what he ate yesterday afternoon. He tells you, “I had either popcorn or raisins. Also, if I had cucumber sandwiches, then I had soda. But I didn't drink soda or tea.” Of course you know that Tommy is the world's worst liar, and everything he says is false. What did Tommy eat?
Justify your answer by writing all of Tommy's statements using sentence variables (
10
Determine if the following deduction rule is valid:
- Solution
-
The deduction rule is valid. To see this, make a truth table which contains
and (and and of course). Look at the truth value of in each of the rows that have and true.
11
Determine if the following is a valid deduction rule:
12
Determine if the following is a valid deduction rule:
13
Can you chain implications together? That is, if
- Prove that the following is a valid deduction rule:
- Prove that the following is a valid deduction rule for any
I suggest you don't go through the trouble of writing out a
row truth table. Instead, you should use part (a) and mathematical induction.
14
We can also simplify statements in predicate logic using our rules for passing negations over quantifiers, and then applying propositional logical equivalence to the “inside” propositional part. Simplify the statements below (so negation appears only directly next to predicates).
- There is a number
for which no other number is either less than or equal to - It is false that for every number
there are two other numbers which is between.
- Solution
-
- There is a number
for which every other number is strictly greater than - There is a number
which is not between any other two numbers.
15
Suppose
- Hint
-
What do these concepts mean in terms of truth tables?
16
Suppose
is a valid deduction rule. Prove that the statement
is a tautology.
3.2: Proofs
1
Consider the statement “for all integers
- Write the contrapositive of the statement.
- Write the converse of the statement.
- Write the negation of the statement.
- Is the original statement true or false? Prove your answer.
- Is the contrapositive of the original statement true or false? Prove your answer.
- Is the converse of the original statement true or false? Prove your answer.
- Is the negation of the original statement true or false? Prove your answer.
- Solution
-
- For all integers
and if or is not even, then is not even. - For all integers
and if and are even, then is even. - There are numbers
and such that is even but and are not both even. - False. For example,
and but neither nor are even. - False, since it is equivalent to the original statement.
- True. Let
and be integers. Assume both are even. Then and for some integers and But then which is even. - True, since the statement is false.
- For all integers
2
Consider the statement: for all integers
- Prove the statement. What sort of proof are you using?
- Is the converse true? Prove or disprove.
- Solution
-
- Direct proof.
Proof
Let
be an integer. Assume is even. Then for some integer Thus Therefore is even. - The converse is false. That is, there is an integer
such that is even but is odd. For example, consider Then which is even but is odd.
- Direct proof.
3
Your “friend” has shown you a “proof” he wrote to show that
Proof
I claim that
What is going on here? Is your friend's argument valid? Is the argument a proof of the claim
4
Suppose you have a collection of 5-cent stamps and 8-cent stamps. We saw earlier that it is possible to make any amount of postage greater than 27 cents using combinations of both these types of stamps. But, let's ask some other questions:
- What amounts of postage can you make if you only use an even number of both types of stamps? Prove your answer.
- Suppose you made an even amount of postage. Prove that you used an even number of at least one of the types of stamps.
- Suppose you made exactly 72 cents of postage. Prove that you used at least 6 of one type of stamp.
5
Suppose that you would like to prove the following implication:
For all numbers
if is prime then is solitary.
Write out the beginning and end of the argument if you were to prove the statement,
- Directly
- By contrapositive
- By contradiction
You do not need to provide details for the proofs (since you do not know what solitary means). However, make sure that you provide the first few and last few lines of the proofs so that we can see that logical structure you would follow.
6
Prove that
- Solution
-
Proof
Suppose
were rational. Then for some integers and Without loss of generality, assume is reduced. NowSo
is a multiple of 3. This can only happen if is a multiple of 3, so for some integer Then we haveSo
is a multiple of 3, making a multiple of 3 as well. But this contradicts our assumption that is in lowest terms.Therefore,
is irrational.
7
Consider the statement: for all integers
- Prove the statement. What sort of proof are you using?
- State the converse. Is it true? Prove or disprove.
8
Prove the statement: For all integers
- Solution
-
We will prove the contrapositive: if
is even, then is even.Proof
Let
be an arbitrary integer, and suppose is even. Then for some integer Thus Since is an integer, we see that must be even. This completes the proof.
9
Prove the statement: For all integers
10
Prove:
11
The game TENZI comes with 40 six-sided dice (each numbered 1 to 6). Suppose you roll all 40 dice.
- Prove that there will be at least seven dice that land on the same number.
- How many dice would you have to roll before you were guaranteed that some four of them would all match or all be different? Prove your answer.
- Solution
-
- This is an example of the pigeonhole principle. We can prove it by contrapositive.
Proof
Suppose that each number only came up 6 or fewer times. So there are at most six 1's, six 2's, and so on. That's a total of 36 dice, so you must not have rolled all 40 dice.
- We can have 9 dice without any four matching or any four being all different: three 1's, three 2's, three 3's. We will prove that whenever you roll 10 dice, you will always get four matching or all being different.
Proof
Suppose you roll 10 dice, but that there are NOT four matching rolls. This means at most, there are three of any given value. If we only had three different values, that would be only 9 dice, so there must be 4 different values, giving 4 dice that are all different.
- This is an example of the pigeonhole principle. We can prove it by contrapositive.
12
Prove that
- Solution
-
We give a proof by contradiction.
Proof
Suppose, contrary to stipulation that
is rational. Then with and integers. By properties of logarithms, this impliesEquivalently,
But this is impossible as any power of 7 will be odd while any power of 10 will be even. Therefore,
is irrational.
13
Prove that there are no integer solutions to the equation
14
Prove that every prime number greater than 3 is either one more or one less than a multiple of 6.
- Hint
- Prove the contrapositive by cases.
15
For each of the statements below, say what method of proof you should use to prove them. Then say how the proof starts and how it ends. Bonus points for filling in the middle.
- There are no integers
and such that is a prime greater than 5 and - For all integers
if is a multiple of 3, then can be written as the sum of consecutive integers. - For all integers
and if is odd, then or is odd.
- Solution
-
- Proof by contradiction. Start of proof: Assume, for the sake of contradiction, that there are integers
and such that is a prime greater than 5 and End of proof: … this is a contradiction, so there are no such integers. - Direct proof. Start of proof: Let
be an integer. Assume is a multiple of 3. End of proof: Therefore can be written as the sum of consecutive integers. - Proof by contrapositive. Start of proof: Let
and be integers. Assume that and are even. End of proof: Therefore is even.
- Proof by contradiction. Start of proof: Assume, for the sake of contradiction, that there are integers
16
A standard deck of 52 cards consists of 4 suites (hearts, diamonds, spades and clubs) each containing 13 different values (Ace, 2, 3, …, 10, J, Q, K). If you draw some number of cards at random you might or might not have a pair (two cards with the same value) or three cards all of the same suit. However, if you draw enough cards, you will be guaranteed to have these. For each of the following, find the smallest number of cards you would need to draw to be guaranteed having the specified cards. Prove your answers.
- Three of a kind (for example, three 7's).
- A flush of five cards (for example, five hearts).
- Three cards that are either all the same suit or all different suits.
17
Suppose you are at a party with 19 of your closest friends (so including you, there are 20 people there). Explain why there must be least two people at the party who are friends with the same number of people at the party. Assume friendship is always reciprocated.
18
Your friend has given you his list of 115 best Doctor Who episodes (in order of greatness). It turns out that you have seen 60 of them. Prove that there are at least two episodes you have seen that are exactly four episodes apart.
19
Suppose you have an
20
What if your

