I am trying to prove that $(p∨q)∨(p∨¬q)$ is a tautology.
This is a relatively easy problem because it is easy to tell that the statement will be true whenever p or q or ¬q are true. I have never written proofs before, however and I am wondering what the correct way to prove this would be.
I used the distributive law initially so that my problem could be rewritten as p∨p ∨q∨¬q which can then simplify to $p∨q∨¬q.$
What law can I use to say from here that this is a tautology due to the fact that p or q or ¬q will always be true?
$(p∨q)∨(p∨¬q) \equiv p \lor p \lor q \lor \lnot q\quad$ due to associativity and commutativity.
$\equiv p \lor (q \lor \lnot q)\quad$ Simplification, associativity.
$\equiv p \lor (T)\quad$ due to the fact that $q \lor \lnot q$ is always true (the law of the excluded middle).
$\equiv T$ because $p \lor T $ is always true.
Therefore, the initial proposition is a tautology.