Knaph

Soundness: Proofs Never Lie9 of 243 min read

Proofs Never Lie

You build a proof, line by line, with the rules from Level 4. You reach a conclusion. But should you believe it? A proof is only a pile of steps that follow rules. Why should following rules ever lead to something true? That is the question of this lesson.

What soundness says

Level 4 gave us proofs. Level 3 gave us truth tables. They are two different things (see Two Kinds of Follows). Write Γ ⊢ φ when φ can be proved from the premises Γ. Write Γ ⊨ φ when φ is true in every row where all of Γ is true. (Γ is read "gamma": a list of premises. φ is read "phi": any formula.)

A proof system is sound when every proof gives a true result. In symbols: if Γ ⊢ φ, then Γ ⊨ φ. Whatever the rules prove really follows. Proofs never lie.

Two boxes joined by an arrow. The left box says Γ ⊢ φ, a proof exists. The right box says Γ ⊨ φ, every row that makes Γ true makes φ true. The arrow between them is labelled soundness.

This is a claim about the whole system, seen from outside. We cannot just hope it is true. We must check it.

Checking one rule

Every proof is made of rules. If each rule is safe, then every proof is safe. So we check the rules, one at a time, with a small table. Take →E: from P → Q and P, write Q. The rule is safe if no row has P → Q true, P true and Q false.

A truth table for P, Q and P → Q with four rows. The first row, where P and Q are both true, is circled. It is the only row where P and P → Q are both true, and Q is true there too.

Look at the table. P is true only in rows 1 and 2. In row 2, P → Q is false. So row 1 is the only row with both premises true, and Q is true there. No row breaks the rule. →E is safe. The other rules pass the same kind of check. For example ∧E: from P ∧ Q write P. The only row with P ∧ Q true has P true.

A rule that fails

Now invent a rule. From P → Q and Q, write P. It looks like →E, but it is not. Try the table again. Row 3 has P false and Q true. Then P → Q is true, Q is true, and P is false. This row breaks the rule.

The same truth table with the third row circled in red, where P is false and Q is true. Both P → Q and Q are true there, but P is false.

With this rule the system would prove P from P → Q and Q. In words: "If it rained, the grass is wet. The grass is wet. So it rained." The sprinkler may have done it. A system with this rule would not be sound. Soundness means every rule passes its table.

Be careful: this lesson checks single rules. Rules with boxes need more care, and that is the next lesson. The full proof of soundness is longer. This is the idea.

Careful

Same word, different idea. In Level 1 a sound argument is valid with true premises. A sound proof system is one whose proofs are all valid. The first is about one argument. The second is about a whole system.

Try it at home

  1. Check ∨I with a table: from P, write P ∨ Q. Is there a row with P true and P ∨ Q false?
  2. Invent a bad rule: from P ∨ Q, write P. Find the row that breaks it.
  3. Write one sentence saying why a bad rule would make a proof system unsound.

Words to know

  • sound (proof system) - every argument it proves is valid: if Γ ⊢ φ then Γ ⊨ φ
  • Γ (gamma) - a list of premises
  • safe rule - a rule with no row where the lines it uses are true and the line it writes is false

Big idea

A proof system is sound when each rule is safe, so whatever is proved really follows.

Test your understanding

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