¬(p ∨ ¬(p→q)) ∨ p ≡ ¬(p ∨ ¬(¬p ∨ q) ∨p (implication rule)
≡ ¬(p ∨(p ∨ ¬q) ∨p (double negation rule)
≡ ¬(p ∨ p) ∨ ¬q) ∨p (associative rule)
≡ ¬((p ∨ ¬q)∨p (Idempotent rule)
≡ (¬p ∨ q) ∨p(double negation rule) *I put the negation into p,do i need to change the sign?
≡ p v (¬p v q)
.
.
.
Hi, I am new to discrete mathematics and i have no idea whether this is correct or not. Can anyone help me with this?
\begin{align}\neg(p \lor \neg(p\to q)) \lor p &\equiv \neg(p ∨ \neg(\neg p \lor q) \color{red})\lor p \text{(implication rule) }\\ &\equiv \neg(p \lor(p \color{red}{\land} ¬q)\color{red}) ∨p \text{(double negation rule and De Morgan) }\\ &\equiv \neg(p ) \lor p \\ &\equiv T \end{align}
In your second and fourth step, remember that when you bring in the negation, use De Morgan's rule.