A Test That Always Answers
A friend gives you an argument with ten letters. Is it valid? You could try the rows by hand, but that is slow. So you ask: can a machine do it? Can a machine always give an answer, for every argument of this kind, yes or no? That is the question of this lesson.
What a test must be
Think of a machine as a box. A question goes in. An answer comes out. For a test to count, three things must be true. The steps are exact: no guessing, no feeling. It works for every question of one kind. And it always stops, with yes or no. Such a method is a decision procedure. (It is an algorithm.)
The kind of question here: "Is this argument valid?", for arguments made of sentence letters and ¬ ∧ ∨ → ↔. If a decision procedure exists for a kind of question, we call the kind decidable.
The truth table is one
In Level 3 we tested validity by a table. List every row. In each row, check: are all premises true and the conclusion false? If some row does that, the argument is not valid. If none does, it is valid. The steps are exact. The list of rows is finite. So the test always stops.
How many rows? One letter gives 2 rows. Two letters give 4. Three give 8. Each new letter doubles the rows. So n letters give 2ⁿ rows. Ten letters give 1024. Twenty letters give 1,048,576. That is a lot, and a person would give up. But a machine works through them and stops.
So validity in letter logic is decidable. Slow does not mean undecidable. A test that takes a year still counts, if it surely stops.
Checking is not finding
Now take a proof, as in Level 4: numbered lines, each with a rule. Someone hands you a proof and asks: is it correct? Look at each line. Does its rule fit the lines it names? There are finitely many lines, and each check is exact. So checking a given proof is decidable too.
Finding a proof is a different question. Which line do you write next? No rule of the system says. That is the question of the rest of this module: for which kinds of question can a machine always answer?
Careful
Slow is not the same as undecidable. A very long test still counts if it surely stops.
Try it at home
- Take
P → Q, PsoQ. How many letters? How many rows? Write the rows and decide: valid or not. - How many rows does a table with 5 letters have? And one with 6? What happens to the number when you add one letter?
- Think of a question with no exact steps, like "Is this poem beautiful?". Which of the three needs does it fail?
Words to know
- decision procedure - a method with exact steps, for every question of one kind, that always stops with yes or no
- decidable - a kind of question is decidable if some decision procedure answers every question of that kind
- 2ⁿ - two multiplied by itself n times: the number of rows for n letters
Big idea
A decision procedure always stops with yes or no. Truth tables decide validity for letter logic.