Knaph

Soundness: Proofs Never Lie10 of 243 min read

Checking Every Step

A proof can have fifty lines, or five hundred. There are endlessly many proofs. We cannot check each one with a table. Yet we want to say: every proof, of any length, is safe. How can we be sure of that?

Climbing along the lines

We use the climbing idea from earlier in this course, but along the lines of a proof. The claim is this. Each line is true in every row where the premises, and any assumptions still open, are all true. Here a row means one row of a truth table.

The first step: a line that is a premise, or an assumption, is true in such a row. The climbing step: a later line comes from earlier lines by a rule. The earlier lines are true. The rule is safe (last lesson). So the new line is true. Climb to the last line. It is the conclusion, and no assumption is open. So it is true in every row where the premises are true. That is Γ ⊨ φ.

A proof of P → R from P → Q and Q → R. Lines 1 and 2 are premises. Lines 3 to 5 are inside a box with the assumption P. Line 6 is P → R, written after the box closes. Lines 4 and 5 are highlighted.

The step that closes a box

Look at the proof in the picture. Lines 4 and 5 sit in the box, so P is an open assumption. They are true only in rows where the premises are true and P is true. They are not true in every row with true premises. Take a row where the premises are true and P is false: then lines 4 and 5 may be false.

Line 6 closes the box (→I). Is it safe? Take any row where the premises are true. If P is false there, P → R is true at once. If P is true there, lines 3 to 5 are true, so R is true, and P → R is true. Either way line 6 is true. The assumption is gone, and the line is true anyway. That is why closing a box is safe.

Two cases for line 6. In the first case P is false, so P → R is true. In the second case P is true, so the lines in the box are true, R is true, and P → R is true.

Why the name must be new

Level 5 said: ∀I needs a new name. Soundness shows why. Key: Domain: people; Tx: x is tall. Say the premise is Ta. Someone writes ∀x Tx by ∀I, with the name a. That breaks the rule, because a is in a premise, so it is not new.

A world with two people, a and b. Person a has the tag T for tall. Person b has no tag. The premise Ta is true, but the claim for every x, Tx, is false.

In this world the premise is true and the conclusion is false. A rule that allows that is unsound. The new-name condition stops it. It is not decoration. It is what keeps ∀I safe.

Be careful: this is a sketch. A full proof checks every rule in this way, including ∨E, ¬I and ∃E. It takes longer, but it is the same idea.

Careful

Lines in a box are not true in every row where the premises are true. They are true where the premises and the open assumptions are true.

Try it at home

  1. Take the proof in the lesson. Pick a row where P is false and the premises are true. Which lines in the box are false there?
  2. Make a world with two people where Ta is true but ∀x Tx is false. Draw it.
  3. Say in your own words: why can a box line be false in a row where the premises are true?

Words to know

  • open assumption - an assumption whose box has not been closed yet
  • climbing along the lines - showing a claim for the first line, then that each line keeps it
  • new name - a name that is not in any premise or open assumption

Big idea

Soundness is shown by climbing along the lines of a proof: each rule keeps truth, and closing a box is safe.

Test your understanding

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