Knaph

What a Machine Can Decide20 of 243 min read

No Test for All and Some

For letter logic, a table always answers. Now take arguments with all and some. Earlier we met one whose only breaking world is endless. Can a machine test every argument in that logic, as the table does for letters? And if not, what can a machine still do? That is the question of this lesson.

No machine for all and some

In 1936 Alonzo Church and Alan Turing each showed this: no decision procedure tells, for every argument with all and some, whether it is valid. The idea is short. The halting problem can be written as an argument in this logic. A method that answered every such argument would then answer the halting problem, and we know none does. The full proof is longer.

Be careful. This does not say that we can settle no argument. Many we settle, by a proof or by a small counter-model. It says there is no single method that settles every one.

Two boxes. The left box, letter logic, says a table always answers yes or no. The right box, all and some, says no method always answers. Yes comes with a proof, but no may never come.

Half a test

Something is still possible. A proof is a finite list of lines, and checking one is decidable. So a machine can write all lists of lines, one after another, and check each. By completeness, a valid argument has a proof. So for a valid argument the machine reaches it, and answers yes.

For an argument that is not valid, no proof exists. The machine goes on and on. Silence tells you nothing: a proof might come in the next minute. This is half a test: the yes answers always come, but the no answers may never come.

Two rows of boxes. The top row, a valid argument, shows tries marked with red crosses, then a green tick: yes. The bottom row, an invalid argument, shows tries marked with red crosses going on for ever, with three dots.

The tree that never ends

Remember the truth tree for the argument about "less than", where every thing has something bigger. Each new name needs another, so the tree adds a, b, c ... and never closes and never ends. That fits the half test: for this argument no finite search says no. Some invalid arguments have a small breaking world, and a search can find it. This one has none.

So the map is this. Letter logic is decidable. All and some is only half decidable.

Careful

No answer yet is not the same as no. The machine may simply not have reached the proof.

Try it at home

  1. Say the half test in your own words: when do you get an answer, and when may you wait for ever?
  2. A machine has run for a week on an argument and found no proof. May you say the argument is not valid? Why?
  3. Name the two logics of this lesson. For each, say what a machine can promise.

Words to know

  • half a test - a test where yes always comes in time, but no may never come
  • Church and Turing 1936 - no single method decides validity for all and some
  • completeness - every valid argument has a proof

Big idea

No machine decides every argument with all and some, but a machine listing proofs finds one for each valid argument.

Test your understanding

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