Am having a little difficulty trying to formally prove a formula. I'm new to this so just trying to have a go and see where I get to. The formula I have is copied in below;
p ∧ r ⇒ q ∧ r , p ∨ r ⇒ q ∨ r |- p ⇒ q
I have had a go at it but I don't really know if I'm correct. I would be really grateful if someone could check for me.
1. p ∧ r ⇒ q ∧ r Assumption 0
2. p ∨ r ⇒ q ∨ r Assumption 0
3. p |- q
3.1 p Assumption 3
3.2 r ∧-E from Line 1
3.3 q ⇒-E from Line 1 & 2
4. p ⇒ q ⇒-I from Line 3.1 & 3.3
I would really appreciate it if anyone could show me if I'm going wrong. I'm not sure at all if I'm right or wrong.
Thanks.
1) $p ∧ r → q ∧ r$ --- premise
2) $p ∨ r → q ∨ r$ --- premise
3) $p$ --- assumed [a]
4) $p ∨ r$ --- from 3) by $∨$-I
5) $q ∨ r$ --- from 4) and 2) by $→$-E.
Now we need $∨$-E (proof by cases) from 5):
6) $q$ --- assumed [b]
7) $p → q$ --- from 3) and 6) by $→$-I
8) $r$ --- assumed [c]
9) $p ∧ r$ --- from 3) and 8) by $∧$-I
10) $q ∧ r$ --- from 1) and 9) by $→$-E
11) $q$ --- from 10) by $∧$-E
12) $p → q$ --- from 3) and 11) by $→$-I.
Having derived $p → q$ from both 6) and 8), we can apply $∨$-E to 6)-7) and 8)-12) and 5), discharging [b] and [c], to conclude with:
Thus: