Example. [00HU]

As a final example, let’s encode the statement “Every even natural number can be written as the sum of two primes” in formal propositional logic. Assume we have a predicate \mathrm {Prime}(n) meaning “n is prime” (we will see how to define this later). First, we can write it directly as \forall {n}: {\mathrm {Even}}.\; \exists {p}: {\mathrm {Prime}}.\; \exists {q}: {\mathrm {Prime}}.\; n = p + q. We can now progress from left to right, expanding each quantifier into one that uses a more primitive domain:

\forall {n}: {\mathrm {Even}}.\; \exists {p}: {\mathrm {Prime}}.\; \exists {q}: {\mathrm {Prime}}.\; n = p + q
\equiv \quad \quad \quad { Expanding restricted forall }
\forall {n}: {\mathbb {N}}.\; \mathrm {Even}(n) \to (\exists {p}: {\mathrm {Prime}}.\; \exists {q}: {\mathrm {Prime}}.\; n = p + q)
\equiv \quad \quad \quad { Expanding restricted exists }
\forall {n}: {\mathbb {N}}.\; \mathrm {Even}(n) \to (\exists {p}: {\mathbb {N}}.\; \mathrm {Prime}(p) \land (\exists {q}: {\mathrm {Prime}}.\; n = p + q))
\equiv \quad \quad \quad { Expanding restricted exists }
\forall {n}: {\mathbb {N}}.\; \mathrm {Even}(n) \to (\exists {p}: {\mathbb {N}}.\; \mathrm {Prime}(p) \land (\exists {q}: {\mathbb {N}}.\; \mathrm {Prime}(q) \land (n = p + q)))

Incidentally, this proposition is definitely false as written, since 0 and 2 cannot be written as a sum of primes. However, if we add a restriction that n > 2, this is the famous Goldbach conjecture, which we think is probably true, but no one has been able to prove!