Knaph

Proofs with All and Some18 of 243 min read

Proving an All

To prove an all, we cannot check every thing in the domain. In maths we write "take any number n" and show it for n. When does a name stand for any thing at all, and when does it not?

All-in and the fresh name

All-in (∀I) goes from Fa to ∀x Fx. It is safe only if a is fresh: a stands for any thing at all, and we know nothing special about it. The rule has three conditions on a.

  • a is in no premise.
  • a is in no assumption that is still open.
  • a is not in ∀x Fx.

A name in a premise is special: the premise says something about that very thing.

A proof with a fresh name

We prove this. Every friendly person is glad. Every glad person is helpful. So every friendly person is helpful.

Domain: people in the class
Fx: x is friendly, Gx: x is glad, Hx: x is helpful

∀x(Fx → Gx)
∀x(Gx → Hx)
So ∀x(Fx → Hx)

The goal is an all, so the plan is: take any a, and prove Fa → Ha. That is an if-then, so we use a box.

#LineWhy
1∀x(Fx → Gx)premise
2∀x(Gx → Hx)premise
3│ Faassume
4│ Fa → Ga∀E 1
5│ Ga→E 4, 3
6│ Ga → Ha∀E 2
7│ Ha→E 6, 5
8Fa → Ha→I 3-7
9∀x(Fx → Hx)∀I 8

A nine-line proof. Two premises, then a box from line 3 to line 7 that assumes a is friendly and reaches a is helpful. Line 8 closes the box with arrow-I. Line 9, everyone friendly is helpful, is written by all-in on line 8.

Check line 9. The name a is in no premise. It is in no open assumption, because the box closed at line 8. It is not in ∀x(Fx → Hx). So a is fresh and ∀I is allowed.

The mistake that breaks it

Look at a proof that fails. Ana is friendly, so everyone is friendly?

#LineWhy
1Fapremise
2∀x Fx∀I 1

A two-line proof. Line 1 is the premise, Ana is friendly. Line 2, everyone is friendly, is marked red, because all-in on line 1 uses the name a, which is in the premise.

Line 1 is about Ana, so a is not just any thing. The same fault hides inside a box: assume Fa, write ∀x Fx, close the box. There a is in an assumption still open. The conclusion is false, so the rule must stop it.

Careful

A name in a premise or in an open assumption is not fresh. Never use ∀I on it.

Try it at home

  1. Say each condition on a in your own words. Why does each one matter?
  2. Rebuild the nine-line proof. Mark the line where a first appears and the line where the box closes.
  3. Think of a maths proof that starts "take any number n". Which line would be ∀I?

Words to know

  • all-in (∀I) - from Fa, write ∀x Fx, if a is fresh
  • fresh name - a name in no premise, no open assumption, and not in the result
  • take any - the plain-words way to say: use a fresh name

Big idea

To prove an all, take a fresh name a, prove the claim for a, then close with all-in.

Test your understanding

Sign in to test your understanding of this lesson and track your progress.