Im reading logic books using the Hilbert-Ackerman system. When reading on predicate logic I find some equivalences such as the following:
$from:(\exists x) Px$
We get:
$\neg(\forall x)(\neg Px)$
Some books use them as definitions others just say they are equivalent. My question is: What is the correct way to proof this equivalence, are they axioms on the system or is there any way to deduct this rule?
In some logic systems $\forall x$ is defined as $\neg \exists x \neg$, and in some systems, you can derive these kinds of equivalences from more basic inference principles regarding the $\forall $ and $\exists$, but most systems have a clear foral semantics for these two logical operators, so that an equivalence like $\neg \forall x P(x) \Leftrightarrow \exists x \neg P(x)$ can be proven using their formal semantics:
For any interpretation $I$ with domain $D$:
$I \vDash \neg \forall x P(x)$ iff (semantics $\neg$)
not $I \vDash \forall x P(x)$ iff (semantics $\forall$)
not for all objects $d \in D$: $I[d/c] \vDash P(c)$ iff (pure logic)
for some object $d \in D$: not $I[d/c] \vDash P(c)$ iff (semantics $\neg$)
for some object $d \in D$: $I[d/c] \vDash \neg P(c)$ iff (semantics $\exists$)
$I \vDash \exists x \neg P(x)$
Here, $I[d/c] $ is the interpretation that extends interpretation $I$ by interpreting a new constant symbol $c$ as object $d$
Since we have that for any interpretation $I$: $I \vDash \neg \forall x P(x)$ iff $I \vDash \exists x \neg P(x)$ we have that $\neg \forall x P(x) \Leftrightarrow \exists x \neg P(x)$
Notice though how in the 'pure logic' step we basically do the same logic as that we are trying to prove, which is that if not everything has some property, then there is something that does not have that property, and vice versa. And that more informal way of looking at it may well be the most understandable way to explain why $\neg \forall x P(x) \Leftrightarrow \exists \neg P(x)$. But as the above shows, there is a purely formal/mathematical way of proving the equivalence.