I'm trying to deny a quantified sentence.
My attempt:
To negate a quantified sentence, I just need to change the quantifier and connectives.
So:
$$(∀x)(p(x)∨q(x)→¬q(x))$$
Denying:
$$(∃x) (p(x) ∧ ~q(x) ∧ q(x))$$
Notes:
$\lnot(∀)$ = $∃$
$\lnot(∨)$ = $∧$
$\lnot(→)$ = $∧$
$\lnot(¬q(x))$ = $q(x)$
I'm pretty sure that my solution is correct, the problem is that the denial of the conditional connective is causing me doubts.
I confirm the conclusion of @MauroALLEGRANZA, using the definition of $P\to Q$, which is $(\lnot P)\vee Q$.
So, since $\forall x\;(p(x)\vee q(x)\to \lnot q(x)$ is the same as $\forall x\;\lnot(p(x)\vee q(x))\vee \lnot q(x)$, its negation is $$\exists x\:\lnot\lnot\bigl(p(x)\vee q(x)\bigr)\wedge\lnot \lnot q(x),\quad \text{i.e.}\quad \exists x\:\bigl(p(x)\vee q(x)\bigr)\wedge q(x). $$