- 2068 Bhadra · 8 marks
Rules of inference: e-mail and program
Short answer
Let p: send email, q: finish program, r: sleep early, s: refreshed. p→q contrapositive ¬q→¬p. ¬p→r, so ¬q→r by hypothetical syllogism. r→s gives ¬q→s. Thus if I don't finish the program, I will wake up feeling refreshed.
Using rules of inferences, show that the hypotheses "If you send me an e-mail message, then I will finish writing the program," "If you do not send me an e-mail message, then I will go to sleep early," and "If I go to sleep early, then I will wake up feeling refreshed" lead to the conclusion "If I do not finish writing the program, then I will wake up feeling refreshed." You are required to show each steps and give reasons for those steps before you come to the desired conclusion from the hypotheses.
Propositions
- p: you send me an e-mail message
- q: I will finish writing the program
- r: I will go to sleep early
- s: I will wake up feeling refreshed
Hypotheses and conclusion
- p → q
- ¬p → r
- r → s
Conclusion: ¬q → s.
Proof
| Step | Statement | Reason |
|---|---|---|
| 1 | p → q | Hypothesis 1 |
| 2 | ¬q → ¬p | Contrapositive of 1 (logical equivalence) |
| 3 | ¬p → r | Hypothesis 2 |
| 4 | ¬q → r | Hypothetical syllogism from 2, 3 |
| 5 | r → s | Hypothesis 3 |
| 6 | ¬q → s | Hypothetical syllogism from 4, 5 |
So, if I do not finish writing the program, then I will wake up feeling refreshed. ∎
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Rules of inference: sailing race · Discrete Structure, chapter 1
- Rules of inference: movie and sunset · Discrete Structure, chapter 1
- Rules of inference: Randy and the job · Discrete Structure, chapter 1
- Rules of inference: cheque book argument · Discrete Structure, chapter 1
- Rules of inference: Sunday test in MFC · Discrete Structure, chapter 1
- Rules of inference: Pokhara and Sarankot · Discrete Structure, chapter 1
- Mutual exclusion via sleep and wake · Embedded System, chapter 6
- Web-mail to POP3 message transfer protocols · Internet and Intranet, chapter 3
- Why FOPL; rules of inference · Artificial Intelligence, chapter 4
- E-mail components and message delivery path · Internet and Intranet, chapter 3