Propositional logic: exercises
Exercises
Some exercises to train propositional logic.
If anyone sees an error please raise an issue in the blog repository, thanks :). |
Exercise 1
Let’s consider a propositional language where:
-
p
: Is Monday -
q
: John goes running -
r
: Elsa goes running
Formalize the following sentences:
If it’s Monday, John and Elsa go running
— A
If it’s Monday John goes running
— B
If it’s other day than Monday, Elsa goes running, but John doesn’t
— C
Solutions:
Figure 1. Solution to A
Figure 2. Solution to B
Figure 3. Solution to C
Table of truth
Figure 4. table of truth
Exercise 2
Let’s consider a propositional language where:
-
p
: John buys lottery tickets -
q
: Is Christmas time -
r
: John feels lucky
Formalize the following sentences:
If is Christmas time, or John feels lucky, then John buys lottery tickets
— A
If it’s not Christmas, and John doesn’t feel lucky, he doesn’t buy lottery
— B
Solutions:
Figure 5. Solution to A
Figure 6. Solution to B
Table of truth
Figure 7. table of truth