<< Chapter < Page | Chapter >> Page > |
Wow! This formalization is a lot longer than the original informal proof. That's a result of the particular set of inference rules we are using,that we can only make inferences in small steps. Also, here we were pickier about the distinction between
not safeand
unsafe.
The previous example is a perfect candidate for adding structure to the proof by using additional subproofs.The following is more similar to the original informal proof .
Note also that subproofs can have their own subproofs.
1 | WaterWorld axiom, choosing a grouping of the ternary ∨, as justified by ∨ commutativity | |||
2 | subproof: | |||
2.a | Premise | |||
2.b | ∧Elim (left), line 2.a | |||
3 | ⇒Elim, lines 1,3 | |||
4 | subproof: | |||
4.a | Premise | |||
4.b | ∧Elim (right), line 4.a | |||
4.c | WaterWorld axiom | |||
4.d | ⇒Elim, lines 4.b,4.c | |||
5 | subproof: | |||
5.a | subproof: | |||
5.a.i | Premise for subproof | |||
5.a.ii | ∧Elim (right), line 5.a.1 | |||
5.a.iii | Intro, lines 4,5.a.2 | |||
5.b | RAA, line 5.a | |||
5.c | CaseElim (right), lines 3,5.b | |||
5.d | subproof: | |||
5.d.i | Premise for subproof | |||
5.d.ii | ∧Elim (left), line 5.d.1 | |||
5.d.iii | Intro, lines 4,5.d.2 | |||
5.e | RAA, line 5.d | |||
5.f | CaseElim (right), lines 5.c,5.e | |||
6 | ∧Elim (right), line 5 |
A standard way of presenting proofs is by using lemmas to show parts of the proofs. Lemmas are simply formulas which we prove not as an end result,but as intermediate steps in a larger proof. So, they are simply another way of presenting subproofs.
Consider the above figure . We'll show . We'll do this through the following series of lemmas:
First, we'll show the main proof, assuming each of the lemmas. Then, proofs of each of the lemmas will follow.
1 | Premise | ||
2 | ∧Elim (left), line 1 | ||
3 | ∧Elim (right), line 1 | ||
4 | ∧Elim (left), line 3 | ||
5 | ∧Elim (right), line 3 | ||
6 | subproof: | ||
6.a | Premise for subproof | ||
6.b | Lemma A, lines 6.a,4 | ||
6.c | Lemma B, lines 6.a,2 | ||
6.d | Lemma C, lines 6.b,6.c,5 | ||
7 | RAA, line 6 | ||
8 | Lemma D, lines 7,2 | ||
9 | Lemma E, lines 7,3 | ||
10 | Lemma F, lines 8,9,5 |
And that's the desired proof! Now it just remains to show each of the six lemmas.
Lemma A:
1 | Premise | ||
2 | Premise | ||
3 | subproof: | ||
3.a | Premise for subproof | ||
3.b | ∧Elim | ||
3.c | Intro, lines 1,3b | ||
4 | RAA, line 3 | ||
5 | WaterWorld axiom | ||
6 | ⇒Elim, lines 5,2 | ||
7 | Theorem: ∨ commutes, line 6 | ||
8 | CaseElim, lines 4,7 | ||
9 | ∧Elim (right), line 8 |
Lemma B:
1 | Premise | ||
2 | Premise | ||
3 | subproof: | ||
3.a | Premise for subproof | ||
3.b | ∧Elim (left), line 3a | ||
3.c | Intro, lines 1,3b | ||
4 | RAA, line 3 | ||
5 | WaterWorld axiom | ||
6 | ⇒Elim, lines 5,2 | ||
7 | Theorem: ∨ commutes, line 6 | ||
8 | CaseElim, lines 4,7 | ||
9 | ∧Elim (right), line 8 |
Proving the other lemmas is left as an exercise to the reader.
Note that we took a little shortcut: we used the lemmas as if they were inference rules.According to our previous definition of proofs, we technically should present the lemma as a subproof and then use an inference rule or twoto show how that applies, as we've done in previous examples. This shorter form is common practice and much easier to read.
In summary, we must state one of the following four possible reasons for each step in a proof, allowing subproofs.
Technically, when using subproofs, one must be careful to rename variables, to avoid clashes.Rather than formalize this notion, we'll leave it as
obvious.
Notification Switch
Would you like to follow the 'Pdf generation test course' conversation and receive update notifications?