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 ∀x∈S  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: ∀x∈S  P(x)\forall x\in S\ \ P(x)

Proof: Let x∈Sx\in S be arbitrary.
⋮
Thus, P(x)P(x).


Theorem: ∀x∈S  P(x)\forall x\in S\ \ P(x)

Proof: Let x∈Sx\in S be given.
⋮
so P(x)P(x).


Theorem: ∀x≤N  P(x)\forall x\leq N\ \ P(x)

Proof: Assume x≤Nx\leq N.
⋮
so P(x)P(x).


Theorem: ∀x≤N  P(x)\forall x\leq N\ \ P(x)

Proof: Let x≤Nx\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: ∃x∈N  P(x)\exists x\in \mathbb{N}\ \ P(x)

Proof:
⋮
Thus, P(42)P(42).


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

Proof: Put x=42x = 42.
⋮
and hence P(x)P(x).


Theorem: ∃x∈N  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: ∀x∈S  (P(x)→Q(x))\forall x\in S\ \ \bigl(P(x)\to Q(x)\bigr)

Proof: Let x∈Sx\in S be arbitrary.
Assume P(x)P(x).
⋮
Thus, Q(x)Q(x).


Theorem: ∀x∈S  (P(x)→Q(x))\forall x\in S\ \ \bigl(P(x)\to Q(x)\bigr)

Proof: Let x∈Sx\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: ∀x∈N  ∃y∈N R(x,y)\forall x{\in} \mathbb{N}\ \ \exists y{\in}\mathbb{N} \ R(x,y)

Proof:
Let x∈Nx{\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: ∃x∈N  ∀y∈N 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 y∈Ny{\in}\mathbb{N} be given.
⋮
Thus, R(x,y)R(x,y).


Theorem: ∀x∈N  ∀y∈N R(x,y)\forall x{\in} \mathbb{N}\ \ \forall y{\in}\mathbb{N} \ R(x,y)

Proof:
Let x∈Nx{\in}\mathbb{N} and y∈Ny{\in}\mathbb{N} be arbitrary.
⋮
Thus, R(x,y)R(x,y).


Theorem: ∃x∈N  ∃y∈N 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: ∀x∈N  ∀y∈N ∀z∈N 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 x∈Nx{\in}\mathbb{N} and y∈Ny{\in}\mathbb{N} and z∈Nz{\in}\mathbb{N} be given.
⋮
Thus, T(x,y,z)T(x,y,z).


Theorem: ∀x∈N  ∃y∈N ∃z∈N 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 x∈Nx{\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: ∃x∈N  ∀y∈N ∃z∈N 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 y∈Ny{\in}\mathbb{N} be given.
Put z:=x+y−1z := 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 ∀n∈N Q(n)\forall n{\in}\mathbb{N}\ Q(n).
Then Q(42)Q(42), so …
⋮


Proof:
Assume ∀n∈N 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 ∃n∈N Q(n)\exists n{\in}\mathbb{N}\ Q(n).
Then Q(k)Q(k) for some k∈Nk{\in}\mathbb{N}, so … kk …


Proof:
Assume ∃n∈N Q(n)\exists n{\in}\mathbb{N}\ Q(n).
Then Q(n)Q(n) for some n∈Nn{\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 ∀x∈R ∀y∈R ∃z∈R  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 z1∈Rz_1{\in}\mathbb{R} such that f(3,z1)=g(4)f(3,z_1) = g(4)
and z2∈Rz_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

∀y∈R ∃z∈R 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

∃z∈R 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

∃z∈R 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 ∃z∈R ∀x∈R ∀y∈R  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 z∈Rz{\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

∀x∈R ∀z∈R 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.