Knaph

Proofs with All and Some20 of 244 min read

Swapping All and Some

Earlier in this level we said "not all" means "some are not", and "not any" means "all are not". We checked it in small worlds. Can we now prove it?

Not any gives all-not

First, nobody is friendly, so everyone is not friendly. We show ¬∃x Fx ⊢ ∀x ¬Fx. The goal is an all, so we take any a and prove ¬Fa, by ¬I: assume Fa, reach ⊥.

#LineWhy
1¬∃x Fxpremise
2│ Faassume
3│ ∃x Fx∃I 2
4│ ⊥¬E 3, 1
5¬Fa¬I 2-4
6∀x ¬Fx∀I 5

A six-line proof. The premise says nobody is friendly. A box from line 2 to line 4 assumes a is friendly and reaches a contradiction. Line 5 writes a is not friendly, and line 6 writes everyone is not friendly, by all-in.

At line 6, a is not in the premise, in no open assumption, and not in ∀x ¬Fx. So a is fresh.

All-not gives not any

Now back. We show ∀x ¬Fx ⊢ ¬∃x Fx. To prove a not, assume ∃x Fx and reach ⊥. Inside, we use the some with ∃E.

#LineWhy
1∀x ¬Fxpremise
2│ ∃x Fxassume
3│ │ Faassume
4│ │ ¬Fa∀E 1
5│ │ ⊥¬E 3, 4
6│ ⊥∃E 2, 3-5
7¬∃x Fx¬I 2-6

A seven-line proof with a box inside a box. The outer box assumes someone is friendly. The inner box assumes a is friendly and reaches a contradiction. Line 6 leaves the inner box by some-out. Line 7 writes nobody is friendly.

At line 6, a is in no earlier line, not in ∃x Fx, and not in ⊥.

QN, the shortcut

Now we may use a shortcut: quantifier negation (QN). It swaps both ways.

  • ¬∀x Fx and ∃x ¬Fx
  • ¬∃x Fx and ∀x ¬Fx

The other pair is proved too. Here is ¬∀x Fx ⊢ ∃x ¬Fx. It uses IP: assume the opposite of the goal, and reach ⊥.

#LineWhy
1¬∀x Fxpremise
2│ ¬∃x ¬Fxassume
3│ │ ¬Faassume
4│ │ ∃x ¬Fx∃I 3
5│ │ ⊥¬E 4, 2
6│ ¬¬Fa¬I 3-5
7│ FaDNE 6
8│ ∀x Fx∀I 7
9│ ⊥¬E 8, 1
10∃x ¬FxIP 2-9

A ten-line proof. The premise says not everyone is friendly. The outer box assumes nobody is not friendly. Inside, a small box reaches a contradiction, so a is friendly, so everyone is, and that clashes with the premise. Line 10 closes by IP.

The last pair follows the second proof above. F may be longer: ¬∃x(Dx ∧ Bx) gives ∀x ¬(Dx ∧ Bx). QN also works inside a line, like Level 4's DeM.

Here is a short proof. Everyone who passed got a badge. Not everyone got a badge. So someone did not pass.

Domain: people in the class
Tx: x passed, Bx: x got a badge

#LineWhy
1∀x(Tx → Bx)premise
2¬∀x Bxpremise
3∃x ¬BxQN 2
4│ ¬Baassume
5│ Ta → Ba∀E 1
6│ ¬TaMT 5, 4
7│ ∃x ¬Tx∃I 6
8∃x ¬Tx∃E 3, 4-7

An eight-line proof. Line 3 turns not everyone got a badge into someone did not, by QN. A box from line 4 to line 7 takes that someone as a, and reaches someone did not pass. Line 8 leaves the box by some-out.

Line 3 is QN on line 2. After that, take a, use the all, and leave with ∃E.

Careful

¬∀x Fx is not ∀x ¬Fx. Not everyone is friendly does not say that no one is.

Try it at home

  1. Say ¬∀x Fx and ∃x ¬Fx aloud. Why are they the same claim?
  2. Use QN to turn ¬∃x(Fx ∧ Gx) into an all.
  3. Copy the first proof. Hide line 5 and rebuild it from the box.

Words to know

  • quantifier negation (QN) - swap ¬∀ with ∃¬ and ¬∃ with ∀¬, in both directions
  • contradiction (⊥) - a claim and its not at once
  • shortcut - a rule we proved, so we may use it at once

Big idea

Not all is some not, and not any is all not. Both swaps are proved from the quantifier rules, so QN is a shortcut.

Test your understanding

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