Here is what I have done :
1 | (p∧q)∨(¬p∧¬q) H
2 | | (p∧q) H
3. | | | p H
4. | | | p∧q R-2
5. | | | q ∧E-4
6 | | p⊃q
I'm now trying to demonstrate that (¬p∧¬q) can also imply p⊃q so that I can conclude p⊃q with de rule ∨E. I've tried many different things but can't manage to get the result. Any help is appreciated.
The principle of explosion, or ex falso quadlibet, says that you may derive any statement from a contradiction.
Since you can derive a contradiction under the assumptions of
¬p∧¬qandp, then you may deriverq.