B Exercises
Exercise Sheet 1: Propositional Logic
1. Let pstand for the proposition “I bought a lottery ticket”and qfor “I won the jackpot”.
Express the following as natural English sentences:
(a) ¬p
(b) p∨q
(c) p∧q
(d) p⇒q
(e) ¬p⇒¬q
(f) ¬p∨(p ∧q)
2. Formalise the following in terms of atomic propositions r,b, and w, first making clear
how they correspond to the English text.
(a) Berries are ripe along the path, but rabbits have not been seen in the area.
(b) Rabbits have not been seen in the area, and walking on the path is safe, but
berries are ripe along the path.
(c) If berries are ripe along the path, then walking is safe if and only if rabbits have
not been seen in the area.
(d) It is not safe to walk along the path, but rabbits have not been seen in the area
and the berries along the path are ripe.
(e) For walking on the path to be safe, it is necessary but not sufficient that berries
not be ripe along the path and for rabbits not to have been seen in the area.
(f) Walking is not safe on the path whenever rabbits have been seen in the area and
berries are ripe along the path.
3. Formalise these statements and determine (with truth tables or otherwise) whether
they are consistent (i.e. if there are some assumptions on the atomic propositions that
make it true): “The system is in a multiuser state if and only if it is operating normally.
If the system is operating normally, the kernel is functioning. Either the kernel is not
functioning or the system is in interrupt mode. If the system is not in multiuser state,
then it is in interrupt mode. The system is not in interrupt mode.”
4. When is a propositional formula Pvalid ? When is Psatisfiable?
5. For each of the following propositions, construct a truth table and state whether the
proposition is valid or satisfiable. (For brevity, you can just write one truth table with
many columns.)
(a) p∧¬p
(b) p∨¬p
(c) (p ∨¬q) ⇒q
(d) (p ∨q) ⇒(p ∧q)
(e) (p ⇒q) ⇔(¬q⇒¬p)
(f) (p ⇒q) ⇒(q ⇒p)
6. For each of the following propositions, construct a truth table and state whether the
proposition is valid or satisfiable.
58