Knaph

English into Proofs20 of 243 min read

Checking a Proof

Let P = The moon is made of cheese and Q = Mice live there. Here is a proof: "P → Q. P. So Q." Can you check it without knowing anything about the moon?

Checking by rule alone

Yes, you can. Line 3 says →E on lines 1 and 2. Line 1 is P → Q. Line 2 is P. →E allows Q. The step is right. We never asked whether the moon is cheese.

That is the point of rules. Each line can be checked by its shape, with no understanding of the topic. A checker needs only the rule list, the lines, and a careful eye.

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

Computers check proofs this way. A proof assistant such as Lean accepts a proof only if every line obeys a rule.

Three cards in a row for checking one line: which rule, which lines are cited, and whether the lines have the right shape, with a tick on the last card.

Four common faults

Check every line against four questions. 1. Wrong shape. The rule does not fit. From P → Q and Q, you cannot write P by →E. That is affirming the then-part. 2. A closed box. A line inside a box can be used only inside that box. 3. Wrong lines cited. The rule fits, but the numbers point to other lines. 4. A box left open. Every box must close before the proof ends.

Here is a proof with one fault. Premises: P → Q and Q. Goal: P.

#LineWhy
1P → Qpremise
2Qpremise
3P→E 1, 2

→E needs the if-part, P, on a line. Line 2 is the then-part, Q. Line 3 is the fault of the wrong shape.

Four cards, one for each fault: wrong shape, a closed box, wrong lines cited, and a box left open, each with a short example line.

How to hunt a fault

Go down the lines from the top. For each line, ask: which rule? Which lines? Do the lines have the shape the rule wants? Is each cited line still usable? The first line that fails is your fault. A line can look right and still be wrong. The rule list decides, not the feeling.

A proof with no fault proves that the argument is valid. Later, we will see why proofs can be trusted.

Careful

Finding no fault in line 5 does not clear line 3. Check every line, one by one.

Try it at home

  1. Copy a proof from this module. Change one citation to a wrong number and ask a friend to find it.
  2. Write a three-line proof that uses →E the wrong way, with the then-part. Mark the fault.
  3. Check a proof by covering all its lines except the line you are checking and its cited lines.

Words to know

  • fault - a line that breaks a rule of proof
  • wrong shape - the lines cited do not have the form the rule wants
  • proof assistant - a program that checks every line of a proof by its rule

Big idea

Every line of a proof can be checked by rule alone: look for a wrong shape, a closed box, wrong lines, or a box left open.

Test your understanding

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