Backward Reasoning: The Foundations: Logic and Proofs
Backward Reasoning: The Foundations: Logic and Proofs
Backward Reasoning
Example: Suppose that two people play a game taking turns removing, 1, 2, or 3 stones at a
time from a pile that begins with 15 stones. The person who removes the last stone wins
The Foundations: Logic and Proofs the game. Show that the first player can win the game no matter what the second player
Chapter 1, Part III: Proofs-a does.
Proof: Let n be the last step of the game.
Step n: Player1 can win if the pile contains 1,2, or 3 stones.
MCA-105 Step n-1: Player2 will have to leave such a pile if the pile that he/she is faced with has 4 stones.
Step n-2: Player1 can leave 4 stones when there are 5,6, or 7 stones left at the beginning of his/her
Discrete Mathematical Structures turn.
Session: 2017-18 Step n-3: Player2 must leave such a pile, if there are 8 stones .
Step n-4: Player1 has to have a pile with 9,10, or 11 stones to ensure that there are 8 left.
Odd Semester Step n-5: Player2 needs to be faced with 12 stones to be forced to leave 9,10, or 11.
Step n-6: Player1 can leave 12 stones by removing 3 stones.
Compiled By: Now reasoning forward, the first player can ensure a win by removing 3
Dr. Sarika Jain 2
stones and leaving 12.
Most of the slides have been taken from Discrete Mathematics and its Applications, Kenneth H. Rosen, McGraw-Hill Education
Example:
Example: Let p be “it snows.”
Let p be “Weather is good. Let q be “I will study discrete math.”
Let q be “I will study discrete math.” Let r be “I will get an A.”
“If weather is good, then I will study discrete math.” “If it snows, then I will study discrete math.”
“I will not study discrete math.” “If I study discrete math, I will get an A.”
1
8/21/2018
Example:
Example:
Let p be “I will study discrete math.”
Let p be “I will study discrete math.”
Let q be “I will visit Las Vegas.”
Let q be “I will study English literature.”
“I will study discrete math.”
“I will study discrete math or I will study English literature.”
“I will not study discrete math.”
“Therefore, I will study discrete math or I will visit
Las Vegas.”
“Therefore , I will study English literature.”
7 8
Simplification Conjunction
Corresponding Tautology:
Corresponding Tautology: ((p) ∧ (q)) →(p ∧ q)
(p∧q) →p
Example:
Example: Let p be “I will study discrete math.”
Let p be “I will study discrete math.” Let q be “I will study English literature.”
Let q be “I will study English literature.”
“I will study discrete math and English literature” “I will study discrete math.”
“I will study English literature.”
“Therefore, I will study discrete math.”
“Therefore, I will study discrete math and I will study English
literature.”
9 10
2
8/21/2018
13 14
15 16
Example:
Our domain consists of all dogs and Fido is a dog. Used often implicitly in Mathematical Proofs.
“All dogs are cuddly.”
17 18
3
8/21/2018
Example: Example:
“There is someone who got an A in the course.” “Michelle got an A in the class.”
“Let’s call her a and say that a got an A” “Therefore, someone got an A in the class.”
19 20
21 22
23 24
4
8/21/2018
Example of proof
PRACTICE Rosen, section 1.5, question 4
Given the hypotheses:
“If it does not rain or if it is not foggy, (¬r ¬f) →
then the sailing race will be held and the (s l)
lifesaving demonstration will go on”
“If the sailing race is held, then the trophy
will be awarded”
s→t
“The trophy was not awarded”
Can you conclude: “It rained”? ¬t
r
27 28
5
8/21/2018
Solution
1. x (G(x) E(x)) 1st premise
2. (G(c) E(c)) Existential instantiation of (1)
3. G(c) Simplification of (2)
4. x (G(x) S(x)) 2nd premise
5. G(c) S(c) Universal instantiation of (4)
6. S(c) Modus ponens on (3) and (5)
7. E(c) Simplification from (2)
8. S(c) E(c) Conjunction of (6) and (7)
9. x (S(x) E(x)) Existential generalization of (8)
31