Knaph

What a Proof Is4 of 243 min read

Working Backwards from the Goal

You want to cross a town. You know where you stand and where you must end. Smart travellers read the map from the end too. How do we find a proof, not only check one?

Premises on top, goal at the bottom

Take this argument. Key: P = The bell rings. Q = Class starts. R = Mia is ready. Premises: P ∧ Q and P → R. Goal: R ∧ Q. Write the premises at the top and the goal at the bottom. The lines between are a gap.

A proof sketch. Lines 1 and 2 are the premises P and Q joined, and P arrow R. Line 3 is a gap marked with a question mark. Line 4 is the goal, R and Q joined.

Now we ask two questions. What do we want? Which rule could give it, and what would it need?

Working backwards

We want R ∧ Q. An and is made by and-in (∧I). It needs R on one line and Q on another. So there are two new goals: R, and Q.

Q is easy: line 1 is P ∧ Q, so ∧E gives Q. For R we ask again. An if-then gives R by →E, and line 2 is P → R. It needs P on an earlier line. That is a new goal: P. And P comes from line 1 by ∧E.

A chain of goals. The goal R and Q needs R and needs Q. R needs P arrow R and P. Both P and Q come from line 1 by and-out.

Forwards and backwards meet

Now write the pieces in order, from the top.

#LineWhy
1P ∧ Qpremise
2P → Rpremise
3P∧E 1
4R→E 2, 3
5Q∧E 1
6R ∧ Q∧I 4, 5

Check each line. Line 3 splits an and. Line 4 uses if-out on lines 2 and 3. Line 5 splits line 1 again. Line 6 joins lines 4 and 5. The goal is reached.

If a rule needs a line you do not have, that line becomes the new goal. We can also work forwards: from P ∧ Q, ∧E gives P and Q at once. Switch between both ways until they meet.

Careful

A line can be valid and still useless. Ask each time: does this get me nearer the goal?

Try it at home

  1. Take the argument P ∧ Q, P → R, so R ∧ Q. Cover this lesson and find the proof yourself.
  2. Write the premises P → Q and Q → R and P. Your goal is R. Ask which rule gives R, then what it needs.
  3. Next time you plan a trip or a recipe, write the end result first and ask what comes just before it.

Words to know

  • goal - the claim at the bottom that the proof must reach
  • working backwards - asking which rule gives the goal and what it needs
  • working forwards - writing what the premises give by rules
  • gap - the lines still missing between premises and goal

Big idea

To find a proof, put the premises at the top and the goal at the bottom, then ask which rule gives the goal and what it needs, until forwards and backwards meet.

Test your understanding

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