Exercises

Exercises#

Star Issue Watch Follow

Exercise 1.1

Which of the following are tautologies?

  1. (p1(p2p3))(p2(p1p3))

  2. ((p1p2)(p1p3))(p2p3)

  3. (p1(¬p2))(p2(¬p1))

Solution

Proposition 1: This is a tautology because the only way a valuation of this proposition can be false is if

v(p1(p2p3))=1,v(p2(p1p3))=0.

The second condition can occur only if v(p2)=1 and v(p1p3)=0, which can in turn occur only if v(p1)=1 and v(p3)=0. But if all of these conditions hold, then

v(p1(p2p3))=0,

which means that

v(p1(p2p3))(p2(p1p3))=1.

Therefore the proposition is a tautology.

Proposition 2: This is not a tautology because if v(p1)=1 and v(p2)=v(p3)=0, we have

v(p1p2)=1,v(p1p3)=1,v((p1p2)(p1p3))=1,v(p2p3)=0,

which implies that

v(((p1p2)(p1p3))(p2p3))=0.

Proposition 3: This is a tautology. The only way for a valuation of this proposition to be false is if

v(p1(¬p2))=1,v(p2(¬p1))=0.

The latter of these conditions can occur only if v(p2)=1 and v(¬p1)=0, so v(p1)=1. But that would imply v(p1(¬p2))=0. Contradiction.

Exercise 1.2

Write down a proof of ⊥⇒q. Use this to write down a proof of pq from ¬q.

Solution

Part 1: First, we show that if a,b,c are propositions, then ac can be proved from ab and bc. To show this, we can use the steps

  1. (a(bc))((ab)(ac)) from axiom 2.

  2. (bc)(a(bc)) from axiom 1.

  3. (bc) by hypothesis.

  4. (a(bc)) by modus ponens on (2) and (3).

  5. (ab)(ac) by modus ponens on (1) and (4).

  6. (ab) by hypothesis.

  7. (ac) by modus ponens on (5) and (6).

Now, consider the following steps

  1. ⊥⇒(¬q⇒⊥) from axiom 1.

  2. ⊥⇒¬¬q, since this is the same as (2).

  3. ¬¬qq, by axiom 3.

We therefore have ⊥⇒¬¬q and ¬¬qq. Repeating the first proof with a=⊥,b=¬¬q,c=q, we obtain a proof for ⊥⇒q.

Part 2: We show that ¬ppq. From the deduction theorem, we have ¬ppq if and only if {¬p,p}q. This is equivalent to ⊥⊢q, so we are done.

Exercise 1.3

Use the deduction theorem to show that p¬¬p.

Solution

Note that ¬¬p=¬p⇒⊥. Therefore p¬¬p if and only if p¬p⇒⊥. By the deduction theorem, this holds if and only if {p,¬p}⊢⊥, which we know holds. We conclude that p¬¬p.