[Math] Prove by Natural deduction that $\lnot\exists xP(x)\rightarrow\forall x\lnot P(x)$

first-order-logicformal-proofslogicnatural-deductionpredicate-logic

I have the following problem:

Prove by Natural deduction in First Order Logic that

$\lnot\exists xP(x)\rightarrow\forall x \lnot P(x)$

I tried to prove it using the Contradiction Theorem but I got stuck.

Probably I am missing something.

Best Answer

Under the premise $\neg\exists x P(x)$, assume $P(x)$ and follow from this contradiction.