<< Chapter < Page | Chapter >> Page > |
Another use of subproofs is to organize proofs' presentations. Many proofs naturally break down into larger subparts, each withits own intermediate conclusion. These steps between these subparts are big enough to correspond to our intuition, but too bigto correspond to individual inference rules. This gives additional useful structure to a proof, aidingour understanding.
Previously, we showed that ∧ (AND) commutes . However, that conclusion is only directly applicablewhen the ∧ is at the
top-level,
We'll do two proofs of this to illustrate that there's always more than one way to prove something!
In our first proof, we'll use RAA. Why? Looking at our desired conclusion, what could be the last inference rule used in the proof toreach the conclusion? By the shape of the formula, the last step can't use any of the
introductioninference rules (∧Intro, ∨Intro, ⇒Intro, Intro, or ¬Intro). We could potentially use any of the
eliminationinference rules. But, for ∧Elim, ∨Elim, ⇒Elim, ¬Elim, or CaseElim, we would first have to prove somemore complicated formula to obtain our desired conclusion. Thatseems somewhat unlikely or unnecessary. For Elim, we'd have to first prove ,
1 | Premise | ||
2 | subproof: | ||
2.a | Premise for subproof | ||
2.b | Theorem: ∧ commutes , line 2a | ||
2.c | Intro, lines 1,2.b | ||
3 | RAA, line 2 |
The proof above uses a subproof because it is necessary for the use of RAA. In contrast, the proof below uses two subproofssimply for organization.
For our second proof, let's not use RAA directly. Our plan is as follows:
1 | Premise | ||
2 | subproof: | ||
2.a | Theorem statement: ∧ commutes | ||
2.b | ⇒Intro, line 2.a | ||
3 | subproof: | ||
3.a | Theorem statement: modus tollens | ||
3.b | ⇒Intro, line 3.a | ||
3.c | ∧Intro, lines 2,1 | ||
3.d | ⇒Elim, lines 3.b,3.c |
Now let's use these rules in a couple larger proofs, to show some more interesting results.
Let's redo the first example 's proof formally and show . The inference rules we used informally above don't correspond exactly tothose in our definition, so the formal proof is more complicated.
1 | WaterWorld axiom, choosing a grouping of the ternary ∨, as justified by ∨ commutativity | ||
2 | Premise | ||
3 | ∧Elim (left), line 2 | ||
4 | ⇒Elim, lines 1,3 | ||
5 | ∧Elim (right), line 2 | ||
6 | WaterWorld axiom | ||
7 | ⇒Elim, lines 5,6 | ||
8 | subproof: | ||
8.a | Premise for subproof | ||
8.b | ∧Elim (right), line 8.a | ||
8.c | Intro, lines 7,8.b | ||
9 | RAA, line 8 | ||
10 | CaseElim (right), lines 4,9 | ||
11 | subproof: | ||
11.a | Premise for subproof | ||
11.b | ∧Elim (left), line 11.a | ||
11.c | Intro, lines 7,11.b | ||
12 | RAA, line 11 | ||
13 | CaseElim (right), lines 10,12 | ||
14 | ∧Elim (right), line 13 |
Notification Switch
Would you like to follow the 'Pdf generation test course' conversation and receive update notifications?