1 Logic

1.12 Negation

This section is about some examples of producing useful logical equivalents for negations of quantified formulas. We’re going to use real-life examples from bits of mathematics you may not have met yet, but this won’t be a problem as our negation procedure doesn’t require understanding anything about the meaning of the formulas!

Example 1.12.1.

ℝ means the set of all real numbers. The statement “every value the function f:ℝ→ℝ takes is less than 10.” can be written

∀x⁢f⁢(x)<10.

This is an interpretation of a formula

∀x⁢P⁢(x).

Let’s negate it, using the negation of quantifiers lemma, Lemma 1.11.2:

¬⁢∀x⁢P⁢(x)≡∃x⁢¬⁢P⁢(x)

Passing back to our interpretation, this says ∃x⁢¬⁡(f⁢(x)<10) which is the same as ∃x⁢f⁢(x)⩾10.

Example 1.12.2.

Consider the statement “the function f:ℝ→ℝ is bounded”, which we could write as

∃M⁢∀x⁢|f⁢(x)|⩽M.

This is an interpretation of a formula

∃M⁢∀x⁢P⁢(x,M).

Let’s negate it.

¬⁢∃M⁢∀x⁢P⁢(x,M) ≡∀M⁢¬⁢∀x⁢P⁢(x,M)
≡∀M⁢∃x⁢¬⁢P⁢(x,M)

so “the function f is not bounded” is ∀M⁢∃x⁢¬⁡(|f⁢(x)|⩽M), or equivalently, ∀M⁢∃x⁢|f⁢(x)|>M.

Example 1.12.3.

Goldbach’s conjecture is that every integer larger than 2 is either odd or is a sum of two prime numbers. We could write this as

∀n⁢Odd⁡(n)∨∃p⁢∃q⁢Prime⁡(p)∧Prime⁡(q)∧(p+q=n)

This is an interpretation of a formula

∀n⁢O⁢(n)∨∃p⁢∃q⁢P⁢(p)∧P⁢(q)∧R⁢(p,q,n).

Let’s negate it.

¬⁡(∀n⁢O⁢(n)∨∃p⁢∃q⁢P⁢(p)∧P⁢(q)∧R⁢(p,q,n))
≡∃n⁢¬⁡(O⁢(n)∨∃p⁢∃q⁢P⁢(p)∧P⁢(q)∧R⁢(p,q,n))
≡∃n⁢¬⁢O⁢(n)∧(¬⁢∃p⁢∃q⁢P⁢(p)∧P⁢(q)∧R⁢(p,q,n))
≡∃n⁢¬⁢O⁢(n)∧(∀p⁢¬⁢∃q⁢P⁢(p)∧P⁢(q)∧R⁢(p,q,n))
≡∃n⁢¬⁢O⁢(n)∧(∀p⁢∀q⁢¬⁡(P⁢(p)∧P⁢(q)∧R⁢(p,q,n)))
≡∃n⁢(¬⁢O⁢(n))∧(∀p⁢∀q⁢¬⁢P⁢(p)∨¬⁢P⁢(q)∨¬⁢R⁢(p,q,n))