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.
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.
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.
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
- Check ∨I with a table: from
P, writeP ∨ Q. Is there a row withPtrue andP ∨ Qfalse? - Invent a bad rule: from
P ∨ Q, writeP. Find the row that breaks it. - 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.