I can prove this with semantic equivalences and truth tables but I'm struggling on the formal proof using rules of inference front.
Given its format I would assume it must finish on V-introduction which means using if-introduction at some point on p⇒r or q⇒r?
I've made 3 or 4 attempts now and I can't seem to get there!
Any advice or pointers in the right direction would be very much appreciated, Thanks!
Edit: We've been using Γ ├ B to mean ‘B can be formally proved from the set of Γ of assumptions’.
Edit: The rules at my disposal are:
- &-I
- &-E
- V-I
- V-E
- ⇔-I
- ⇔-E
- ⇒-I
- ⇒-E
- $\lnot$-I
- $\lnot$-E
- true-I
- false-E
Since $(a \Rightarrow b) \Leftrightarrow (\lnot a \vee (a \wedge b)) \Leftrightarrow (\lnot a \vee b ) $ for all $a,b$ by the material implication rule.
$$ [ p \Rightarrow (q \Rightarrow r) ] \Leftrightarrow [ \lnot p \vee (q \Rightarrow r) ] \Leftrightarrow [ \lnot p \vee ( \lnot q \vee r) ] \Leftrightarrow [ \lnot p \vee \lnot q \vee r ] $$ By the same rule, $$ [ (p \Rightarrow r ) \vee (q \Rightarrow r) ] \Leftrightarrow [ (\lnot p \vee r ) \vee ( \lnot q \vee r) ] \Leftrightarrow [ \lnot p \vee \lnot q \vee r] $$ Hence the result.