COMP-2310 Chapter 1 - Applications
Section 1.8 of chapter 1 of the COMP2310 courseware discusses a concept called Applications. This describes using what was learned about formal proofs in propositional logic to test the validity of certain real-world arguments.
In this blog, I will go over an example to see how we can use propositional logic to prove if certain arguments make sense. Each proof follows a given structure:
- Denote each proposition with a variable (usually upper-case but doesn’t have to be), such as , , , etc.
- Translate each statement into a wff.
- Prove the conclusion with the given premises.
Some general tips when solving:
- Try to only denote the positive expressions as variables (i.e. if the statement reads “John does not walk”, denote J as “John walks” and convert the expression to ).
- Once the statements are properly translated into wffs, do your best to try and understand conceptually why the logic works out.
Example
There is a poker game going on. If Nick wins, then Matt will throw a party. If Spencer wins, then Tom will throw a party. It is the case that either Nick or Spencer will win. If Nick wins, then Tom will not throw a party, and if Spencer wins, then Matt will not throw a party. Therefore, Matt will throw a party if and only if Tom does not throw a party.
Solution
Let N denote “Nick wins”,
S denote “Spencer wins”,
M denote “Matt will throw a party”,
T denote “Tom will throw a party”.
The sentence “There is a poker game going on” does not need to be translated at all, as there is nothing useful about it.
The sentence “If Nick wins, then Matt will throw a party” can be translated to
The sentence “If Spencer wins, then Tom will throw a party” can be translated to
The sentence “It is the case that either Nick or Spencer will win” can be translated to
The sentence “If Nick wins, then Tom will not throw a party, and if Spencer wins, then matt will not throw a party ” can be translated to
The conclusion “Matt will throw a party if and only if Tom does not throw a party” can be translated to .
One might translate the third sentence to . However, the purpose of the statement was to say only one of them will win. The final wff translates to “Nick or Spencer will win, and both of them won’t win” which has the same meaning.
The conclusion is a bidirectional because it said “if and only if”.
We thus have:
and we are to prove that .
1. from
2. from
3. from
4. from
5. 4, E9
6. 5, I2
7. 6, E19
8. 7, E15
9. 3, I2
10. 9, E10
11. 10, E15
12. 11, E18
13. 8, 12, I5
14. 4, I2
15. 13, 14, I5
16. 2, E19
17. 16, 12, I5
18. 17, 1, I5
19. 15, 18, I6
20. 19, E20
Hence,