Proofs with Quantifiers

“I mean the word proof not in the sense of the lawyers, who set two half proofs equal to a whole one, but in the sense of a mathematician, where half proof = 0, and it is demanded for proof that every doubt becomes impossible.”
—Carl Friedrich Gauss

Although there are many ways to structure proofs, the “default” (and most common) approach is to have the structure of the proof exactly match the structure of the formula being proved. In this section, we consider common patterns involving proofs for quantified formulas.

Universal Quantifiers

By far the most common way to prove an assertion of the form x P(x)\forall x\ P(x) is to present a proof that starts by assuming xx is completely arbitrary, and showing that we can prove P(x)P(x). If we can do so with no assumptions about xx, then our proof is completely general, the same argument would work for any specific value of xx, and so x P(x)\forall x\ P(x) holds.

In the more common case of restricted quantifiers like xS  P(x)\forall x\in S\ \ P(x), we use the same idea except we assume we know nothing about xx except that it is an element of SS.

As usual, there are many possible choices of wording. Here are several examples of the pattern:

Example

Theorem: xS  P(x)\forall x\in S\ \ P(x)

Proof: Let xSx\in S be arbitrary.

Thus, P(x)P(x).


Theorem: xS  P(x)\forall x\in S\ \ P(x)

Proof: Let xSx\in S be given.

so P(x)P(x).


Theorem: xN  P(x)\forall x\leq N\ \ P(x)

Proof: Assume xNx\leq N.

so P(x)P(x).


Theorem: xN  P(x)\forall x\leq N\ \ P(x)

Proof: Let xNx\leq N be fixed but arbitrary.

so P(x)P(x).

Existential Quantifiers

The most direct to prove an assertion of the form x P(x)\exists x\ P(x) is to find such a value. (Or show that one of several values must work.) Here are several examples of the pattern:

Example

Theorem: xN  P(x)\exists x\in \mathbb{N}\ \ P(x)

Proof:

Thus, P(42)P(42).


Theorem: xN  P(x)\exists x\in \mathbb{N}\ \ P(x)

Proof: Put x=42x = 42.

and hence P(x)P(x).


Theorem: xN  P(x)\exists x\in \mathbb{N}\ \ P(x)

Proof:

Therefore, P(42)P(42) or P(47)P(47).

Universally Quantified Implications

Many mathematical statements are universally quantified implications. In these cases, we can combine the pattern for proving a universally quantified formula with the pattern for proving an implication.

Example

Theorem: xS  (P(x)Q(x))\forall x\in S\ \ \bigl(P(x)\to Q(x)\bigr)

Proof: Let xSx\in S be arbitrary.
Assume P(x)P(x).

Thus, Q(x)Q(x).


Theorem: xS  (P(x)Q(x))\forall x\in S\ \ \bigl(P(x)\to Q(x)\bigr)

Proof: Let xSx\in S be given such that P(x)P(x).

Thus, Q(x)Q(x).

Multiple Quantifiers

If a statement corresponds to a formula with multiple quantifiers, we just apply the appropriate patterns for each quantifier in order.

Example

Theorem: xN  yN R(x,y)\forall x{\in} \mathbb{N}\ \ \exists y{\in}\mathbb{N} \ R(x,y)

Proof:
Let xNx{\in}\mathbb{N} be given.
Let y=min{x,10}y = \min\{\lfloor\sqrt{x}\rfloor, 10\}.

Thus, R(x,y)R(x,y).


Theorem: xN  yN R(x,y)\exists x{\in} \mathbb{N}\ \ \forall y{\in}\mathbb{N} \ R(x,y)

Proof:
Put x:=min{x,10}x := \min\{\lfloor\sqrt{x}\rfloor, 10\}.
Let yNy{\in}\mathbb{N} be given.

Thus, R(x,y)R(x,y).


Theorem: xN  yN R(x,y)\forall x{\in} \mathbb{N}\ \ \forall y{\in}\mathbb{N} \ R(x,y)

Proof:
Let xNx{\in}\mathbb{N} and yNy{\in}\mathbb{N} be arbitrary.

Thus, R(x,y)R(x,y).


Theorem: xN  yN R(x,y)\exists x{\in} \mathbb{N}\ \ \exists y{\in}\mathbb{N} \ R(x,y)

Proof:
Put x:=42x{:=}42 and y:=47y:=47.

Thus, R(x,y)R(x,y).

Example

Theorem: xN  yN zN T(x,y,z)\forall x{\in} \mathbb{N}\ \ \forall y{\in}\mathbb{N} \ \forall z{\in}\mathbb{N}\ T(x,y,z)

Proof:
Let xNx{\in}\mathbb{N} and yNy{\in}\mathbb{N} and zNz{\in}\mathbb{N} be given.

Thus, T(x,y,z)T(x,y,z).


Theorem: xN  yN zN T(x,y,z)\forall x{\in} \mathbb{N}\ \ \exists y{\in}\mathbb{N} \ \exists z{\in}\mathbb{N}\ T(x,y,z)

Proof:
Let xNx{\in}\mathbb{N} be given.
Put y:=x+1y := x+1 and z:=2xz := 2x.

Thus, T(x,y,z)T(x,y,z).


Theorem: xN  yN zN T(x,y,z)\exists x{\in} \mathbb{N}\ \ \forall y{\in}\mathbb{N} \ \exists z{\in}\mathbb{N}\ T(x,y,z)

Proof:
Put x:=99x{:=}99.
Let yNy{\in}\mathbb{N} be given.
Put z:=x+y1z := x+y-1.

Thus, T(x,y,z)T(x,y,z).

Using Quantified Formulas

Common strategies for proving a quantified statement mimic the Introduction rules of Natural Deduction. Similarly, strategies for applying quantified statements already known (or assumed) to be true mimic the Elimination rules of Natural Deduction.

Using Universally Quantified Statements

Once we know something is true for all xx, we can assert it any specific value(s) of interest.

Example

Proof:
Assume nN Q(n)\forall n{\in}\mathbb{N}\ Q(n).
Then Q(42)Q(42), so …


Proof:
Assume nN Q(n)\forall n{\in}\mathbb{N}\ Q(n).

By assumption, Q(0)Q(0) and Q(1)Q(1), so …

Using Existentially Quantified Statements

If we know something exists, we can give that thing a name. The name may or may not be the same as the bound variable in our existential; it doesn’t matter except that we may not use a name that we’re not already using to stand for some other specific value. (Also, as in the E\exists E rule, the name we choose for “the thing that exists” should not be a free variable in the conclusion of our proof.)

Example

Proof:
Assume nN Q(n)\exists n{\in}\mathbb{N}\ Q(n).
Then Q(k)Q(k) for some kNk{\in}\mathbb{N}, so … kk


Proof:
Assume nN Q(n)\exists n{\in}\mathbb{N}\ Q(n).
Then Q(n)Q(n) for some nNn{\in}\mathbb{N}, so … kk

Using Statements with Nested Quantifiers

Nested quantifiers work as above; we just handle each quantifier in sequence.

Example

Proof:
Assume xR yR zR  f(x,z)=g(y)\forall x\in\mathbb{R}\ \forall y\in\mathbb{R}\ \exists z{\in}\mathbb{R}\ \ f(x,z)=g(y) .

Then there exist z1Rz_1{\in}\mathbb{R} such that f(3,z1)=g(4)f(3,z_1) = g(4)
and z2Rz_2{\in}\mathbb{R} such that f(9,z2)=g(7)f(9, z_2) = g(7).

Note: Implicit in this proof is that plugging 33 in for xx in the assumption gives us

yR zR f(3,z)=g(y).\forall y\in\mathbb{R}\ \exists z{\in}\mathbb{R}\ f(3,z)=g(y).

Plugging 44 in for yy in that statement gives us

zR f(3,z)=g(4).\exists z{\in}\mathbb{R}\ f(3,z)=g(4).

and we chose the name z1z_1 for this value that exists.

We called it z1z_1 rather than zz because we immediately doing the same thing again with x:=9x := 9 and y:=7y := 7 to get

zR f(9,z)=g(7),\exists z{\in}\mathbb{R}\ f(9,z)=g(7),

and we can’t use the name for the zz for both numbers known to exist (since there’s no reason to believe they’ll be equal).


Proof:
Assume zR xR yR  f(x,z)=g(y)\exists z\in\mathbb{R}\ \forall x\in\mathbb{R}\ \forall y{\in}\mathbb{R}\ \ f(x,z)=g(y) .
(Note: the order of quantifiers has changed!)
Then there exists zRz{\in}\mathbb{R} such that f(3,z)=g(4)f(3,z) = g(4) and f(9,z)=g(7)f(9, z) = g(7).

Note: Because we always handle quantifiers in order, we first give a name to the value zz such that

xR zR f(3,z)=g(y).\forall x\in\mathbb{R}\ \forall z{\in}\mathbb{R}\ f(3,z)=g(y).

We can then plug 3 and 4 into this, and also plug in 9 and 7, and know it is the same zz for both.