Knaph

Shortcuts and Swaps14 of 243 min read

More Shortcuts

"If it rains, the match is off. If the match is off, we go to the cinema." So if it rains, we go to the cinema. We saw this chain before. Which shortcuts does it give us?

Hypothetical syllogism (HS)

In an earlier proof we chained two if-thens with a box: assume the first if-part, use →E twice, close with →I. That proof can be named once. Hypothetical syllogism (HS): from A → B and B → C, write A → C.

Side by side, the long proof has six lines and the short proof has three.

Two proofs side by side: the long one assumes P in a box, uses arrow-E twice and closes with arrow-I, and the short one writes the same last line with HS on line 3.

Double negation (DNE)

Two nots cancel. Double negation (DNE): from ¬¬A, write A. We proved this with indirect proof: assume ¬A, find a clash with ¬¬A, and write A. Now it is one step. Premises: ¬¬P and P → Q. Goal: Q.

#LineWhy
1¬¬Ppremise
2P → Qpremise
3PDNE 1
4Q→E 2, 3

DNE needs exactly two nots in front of the whole line. One not is not enough.

Excluded middle (LEM)

The theorem P ∨ ¬P was proved in the last module with no premises. Since it is proved, we may write it at any time, for any claim, with no lines to cite. We call that step excluded middle (LEM). It gives an or to feed or-out.

Key: P = It rains. Q = We take a coat. Premises: P → Q and ¬P → Q. Goal: Q. Ask: what gives Q? ∨E, but we need an or. LEM gives one.

#LineWhy
1P → Qpremise
2¬P → Qpremise
3P ∨ ¬PLEM
4│ Passume
5│ Q→E 1, 4
6│ ¬Passume
7│ Q→E 2, 6
8Q∨E 3, 4-5, 6-7

An eight-line proof: two premises, line 3 writes P or not-P by LEM, two boxes each reach Q, and line 8 writes Q by or-out citing 3, 4 to 5 and 6 to 7.

Every shortcut can still be unfolded into basic rules. A shortcut only saves lines.

Careful

DNE works on ¬¬A, not on a single ¬A. HS needs the then-part of the first if-then to match the if-part of the second.

Try it at home

  1. Say the rain and cinema chain aloud. Which two claims are chained?
  2. Copy the LEM proof. Colour the two boxes in two colours. Which line do both boxes reach?
  3. Make your own P ∨ ¬P about something at home. Is it always true?

Words to know

  • hypothetical syllogism (HS) - from A → B and B → C, write A → C
  • double negation (DNE) - from ¬¬A, write A
  • excluded middle (LEM) - a theorem you may write any time: P ∨ ¬P

Big idea

Three more shortcuts, HS, DNE and LEM, each come from a proof we already did, so none adds new power.

Test your understanding

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