Chapter 48 Soundness
In this chapter we relate TFL’s semantics to its natural deduction proof system (as defined in part IV). We will prove that the formal proof system is safe: you can only prove sentences from premises from which they actually follow. Intuitively, a formal proof system is sound iff it does not allow you to prove any invalid arguments. This is obviously a highly desirable property. It tells us that our proof system will never lead us astray. Indeed, if our proof system were not sound, then we would not be able to trust our proofs. The aim of this chapter is to prove that our proof system is sound.
Let’s make the idea more precise. We’ll abbreviate a list of sentences using the Greek letter (‘gamma’). A formal proof system is sound (relative to a given semantics) iff, whenever there is a formal proof of from assumptions among , then genuinely entails (given that semantics). Otherwise put, to prove that TFL’s proof system is sound, we need to prove the following
Soundness Theorem. For any sentences and : if , then
To prove this, we will check each of the rules of TFL’s proof system individually. We want to show that no application of those rules ever leads us astray. Since a proof just involves repeated application of those rules, this will show that no proof ever leads us astray. Or at least, that is the general idea.
To begin with, we must make the idea of ‘leading us astray’ more precise. Say that a line of a proof is shiny iff the assumptions on which that line depends entail the sentence on that line.11 1 The word ‘shiny’ is not standard among logicians. To illustrate the idea, consider the following:
Line number
|
Subproof level
|
Formula
|
Justification
|
---|---|---|---|
0
|
|
PR
|
|
open subproof,
1
|
|
AS
|
|
1
|
|
E ,
|
|
1
|
|
E
|
|
close subproof,
0
|
|
I –
|
Line is shiny iff . You should be easily convinced that line is, indeed, shiny! Similarly, line is shiny iff . Again, it is easy to check that line is shiny. As is every line in this TFL-proof. We want to show that this is no coincidence. That is, we want to prove:
Shininess Lemma. Every line of every TFL-proof is shiny.
Then we will know that we have never gone astray, on any line of a proof. Indeed, given the Shininess Lemma, it will be easy to prove the Soundness Theorem:
Proof. Suppose . Then there is a TFL-proof, with appearing on its last line, whose only undischarged assumptions are among . The Shininess Lemma tells us that every line on every TFL-proof is shiny. So this last line is shiny, i.e., . QED
It remains to prove the Shininess Lemma.
To do this, we observe that every line of any TFL-proof is either a premise or an assumption, or it is obtained by applying some rule. Premises are automatically shiny: if is a premise, then it is among the sentences in , and trivially. Assumptions are also shiny, since the any assumption depends on itself, and . So what we want to show is that no application of a rule of TFL’s proof system will lead us astray. More precisely, say that a rule of inference is rule-sound iff for all TFL-proofs, if we obtain a line on a TFL-proof by applying that rule, and every earlier line in the TFL-proof is shiny, then our new line is also shiny. What we need to show is that every rule in TFL’s proof system is rule-sound.
We will do this below. But having demonstrated the rule-soundness of every rule, the Shininess Lemma will follow immediately:
Proof. Start with line of any TFL proof. It must be either a premise or an assumption, and those are all shiny, as we’ve seen above. Take the next line, . If it is a premise or assumption, it is shiny. If not, it is obtained from line using an inference which is rule-sound. Since line is shiny, line is also shiny. Take the next line, . If it is a premise or assumption, it is shiny. If not, it is obtained from a previous line using an inference which is rule-sound, and we’ve established that all previous lines are shiny. Thus, line is also shiny. And so on. In general, the sentence written on line must either be a premise or assumption (which is shiny) or be obtained using a formal inference rule which is rule-sound. Since every earlier line is shiny, line itself is shiny. We can simply go through this reasoning, for any TFL proof, starting with line and continuing to the last line, and get that every line of every TFL-proof is shiny. QED
It remains to show that every rule is rule-sound. This is not difficult, but it is time-consuming, since we need to check each rule individually, and TFL’s proof system has plenty of rules! To speed up the process marginally, we will introduce a convenient abbreviation: ‘’ (‘delta’) will abbreviate the assumptions (if any) on which line depends in our TFL-proof (context will indicate which TFL-proof we have in mind). This includes all premises of our proof, and all assumptions of subproofs which are still open at line . Let’s first record our observation about premises and assumptions from above.
Premises and assumptions in TFL proofs are shiny.
If is a premise on line , then it is among as that includes all premises of the proof. If it is introduced as an assumption of a subproof on line , then everything in the subproof (including line , i.e., itself) depends on , and so is among . In either case, .
Now let’s proceed to show that all the inference rules are rule-sound.
I is rule-sound.
Proof. Consider any application of I in any TFL-proof, i.e., something like:
Line number
|
Subproof level
|
Formula
|
Justification
|
---|---|---|---|
0
|
|
|
|
0
|
|
|
|
0
|
|
I ,
|
To show that I is rule-sound, we assume that every line before line is shiny; and we aim to show that line is shiny, i.e., that .
So, let be any valuation that makes all of true.
We first show that makes true. To prove this, note that all of are among . By hypothesis, line is shiny. So any valuation that makes all of true makes true. Since makes all of true, it makes true too.
We can similarly see that makes true.
So makes true and makes true. Consequently, makes true. So any valuation that makes all sentences among true also makes true. That is: line is shiny. QED
All of the remaining lemmas establishing rule-soundness will have, essentially, the same structure as this one did.
E is rule-sound.
Proof. Assume that every line before line on some TFL-proof is shiny, and that E is used on line . So the situation is:
Line number
|
Subproof level
|
Formula
|
Justification
|
---|---|---|---|
0
|
|
|
|
0
|
|
E
|
(or perhaps with on line instead; but similar reasoning will apply in that case). Let be any valuation that makes all of true. Note that all of are among . By hypothesis, line is shiny. So any valuation that makes all of true makes true. So makes true, and hence makes true. So . QED
I is rule-sound.
We leave this as an exercise.
E is rule-sound.
Proof. Assume that every line before line on some TFL-proof is shiny, and that E is used on line . So the situation is:
Line number
|
Subproof level
|
Formula
|
Justification
|
---|---|---|---|
0
|
|
|
|
open subproof,
1
|
|
AS
|
|
1
|
|
|
|
close subproof,
open subproof,
1
|
|
AS
|
|
1
|
|
|
|
close subproof,
0
|
|
E , –, –
|
Let be any valuation that makes all of true. Note that all of are among . By hypothesis, line is shiny. So any valuation that makes true makes true. So in particular, makes true, and hence either makes true, or makes true. We now reason through these two cases:
-
1.
makes true. All of are among , with the possible exception of . Since makes all of true, and also makes true, makes all of true. Now, by assumption, line is shiny; so . But the sentences are just the sentences , so . So, any valuation that makes all of true makes true. But is just such a valuation. So makes true.
-
2.
makes true. Reasoning in exactly the same way, considering lines and , makes true.
Either way, makes true. So . QED
E is rule-sound.
Proof. Assume that every line before line on some TFL-proof is shiny, and that E is used on line . So the situation is:
Line number
|
Subproof level
|
Formula
|
Justification
|
---|---|---|---|
0
|
|
|
|
0
|
|
|
|
0
|
|
E ,
|
Note that all of and all of are among . By hypothesis, lines and are shiny. So any valuation which makes all of true would have to make both and true. But no valuation can do that. So no valuation makes all of true. So , vacuously. QED
X is rule-sound.
We leave this as an exercise.
I is rule-sound.
Proof. Assume that every line before line on some TFL-proof is shiny, and that I is used on line . So the situation is:
Line number
|
Subproof level
|
Formula
|
Justification
|
---|---|---|---|
open subproof,
1
|
|
AS
|
|
1
|
|
|
|
close subproof,
0
|
|
I –
|
Let be any valuation that makes all of true. Note that all of are among , with the possible exception of itself. By hypothesis, line is shiny. But no valuation can make ‘’ true, so no valuation can make all of true. Since the sentences are just the sentences , no valuation can make all of true. Since makes all of true, it must therefore make false, and so make true. So . QED
IP, I, E, I, and E are all rule-sound.
We leave these as exercises.
This establishes that all the basic rules of our proof system are rule-sound. Finally, we show:
All of the derived rules of our proof system are rule-sound.
Proof. Suppose that we used a derived rule to obtain some sentence, , on line of some TFL-proof, and that every earlier line is shiny. Every use of a derived rule can be replaced (at the cost of long-windedness) with multiple uses of basic rules. That is to say, we could have used basic rules to write on some line , without introducing any further assumptions. So, applying our individual results that all basic rules are rule-sound several times ( times, in fact), we can see that line is shiny. Hence the derived rule is rule-sound. QED
And that’s that! We have shown that every rule—basic or otherwise—is rule-sound, which is all that we required to establish the Shininess Lemma, and hence the Soundness Theorem.
But it might help to round off this chapter if we repeat my informal explanation of what we have done. A formal proof is just a sequence—of arbitrary length—of applications of rules. We have shown that any application of any rule will not lead you astray. It follows that no formal proof will lead you astray. That is: our proof system is sound.
Practice exercises
A. Complete the Lemmas left as exercises in this chapter. That is, show that the following are rule-sound:
-
1.
I. (Hint: this is similar to the case of E.)
-
2.
X. (Hint: this is similar to the case of E.)
-
3.
I. (Hint: this is similar to E.)
-
4.
E.
-
5.
IP. (Hint: this is similar to the case of I.)