Description: Theorem 9.20 of Clemente p. 43, translated line by line using the usual translation of natural deduction (ND) in the Metamath Proof Explorer (MPE) notation. For information about ND and Metamath, see the page on Deduction Form and Natural Deduction in Metamath Proof Explorer. The original proof, which uses Fitch style, was written as follows (the leading "..." shows an embedded ND hypothesis, beginning with the initial assumption of the ND hypothesis):
# | MPE# | ND Expression | MPE Translation | ND Rationale | MPE Rationale |
---|---|---|---|---|---|
1 | 1 | ( ps /\ ( ch \/ th ) ) | ( ph -> ( ps /\ ( ch \/ th ) ) ) | Given | $e |
2 | 2 | ps | ( ph -> ps ) | /\EL 1 | simpld 1 |
3 | 11 | ( ch \/ th ) | ( ph -> ( ch \/ th ) ) | /\ER 1 | simprd 1 |
4 | 4 | ...| ch | ( ( ph /\ ch ) -> ch ) | ND hypothesis assumption | simpr |
5 | 5 | ... ( ps /\ ch ) | ( ( ph /\ ch ) -> ( ps /\ ch ) ) | /\I 2,4 | jca 3,4 |
6 | 6 | ... ( ( ps /\ ch ) \/ ( ps /\ th ) ) | ( ( ph /\ ch ) -> ( ( ps /\ ch ) \/ ( ps /\ th ) ) ) | \/IR 5 | orcd 5 |
7 | 8 | ...| th | ( ( ph /\ th ) -> th ) | ND hypothesis assumption | simpr |
8 | 9 | ... ( ps /\ th ) | ( ( ph /\ th ) -> ( ps /\ th ) ) | /\I 2,7 | jca 7,8 |
9 | 10 | ... ( ( ps /\ ch ) \/ ( ps /\ th ) ) | ( ( ph /\ th ) -> ( ( ps /\ ch ) \/ ( ps /\ th ) ) ) | \/IL 8 | olcd 9 |
10 | 12 | ( ( ps /\ ch ) \/ ( ps /\ th ) ) | ( ph -> ( ( ps /\ ch ) \/ ( ps /\ th ) ) ) | \/E 3,6,9 | mpjaodan 6,10,11 |
The original used Latin letters; we have replaced them with Greek letters to follow Metamath naming conventions and so that it is easier to follow the Metamath translation. The Metamath line-for-line translation of this natural deduction approach precedes every line with an antecedent including ph and uses the Metamath equivalents of the natural deduction rules. To add an assumption, the antecedent is modified to include it (typically by using adantr ; simpr is useful when you want to depend directly on the new assumption). Below is the final Metamath proof (which reorders some steps).
A much more efficient proof is ex-natded9.20-2 . (Contributed by David A. Wheeler, 19-Feb-2017) (Proof modification is discouraged.) (New usage is discouraged.)
Ref | Expression | ||
---|---|---|---|
Hypothesis | ex-natded9.20.1 | ⊢ ( 𝜑 → ( 𝜓 ∧ ( 𝜒 ∨ 𝜃 ) ) ) | |
Assertion | ex-natded9.20 | ⊢ ( 𝜑 → ( ( 𝜓 ∧ 𝜒 ) ∨ ( 𝜓 ∧ 𝜃 ) ) ) |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | ex-natded9.20.1 | ⊢ ( 𝜑 → ( 𝜓 ∧ ( 𝜒 ∨ 𝜃 ) ) ) | |
2 | 1 | simpld | ⊢ ( 𝜑 → 𝜓 ) |
3 | 2 | adantr | ⊢ ( ( 𝜑 ∧ 𝜒 ) → 𝜓 ) |
4 | simpr | ⊢ ( ( 𝜑 ∧ 𝜒 ) → 𝜒 ) | |
5 | 3 4 | jca | ⊢ ( ( 𝜑 ∧ 𝜒 ) → ( 𝜓 ∧ 𝜒 ) ) |
6 | 5 | orcd | ⊢ ( ( 𝜑 ∧ 𝜒 ) → ( ( 𝜓 ∧ 𝜒 ) ∨ ( 𝜓 ∧ 𝜃 ) ) ) |
7 | 2 | adantr | ⊢ ( ( 𝜑 ∧ 𝜃 ) → 𝜓 ) |
8 | simpr | ⊢ ( ( 𝜑 ∧ 𝜃 ) → 𝜃 ) | |
9 | 7 8 | jca | ⊢ ( ( 𝜑 ∧ 𝜃 ) → ( 𝜓 ∧ 𝜃 ) ) |
10 | 9 | olcd | ⊢ ( ( 𝜑 ∧ 𝜃 ) → ( ( 𝜓 ∧ 𝜒 ) ∨ ( 𝜓 ∧ 𝜃 ) ) ) |
11 | 1 | simprd | ⊢ ( 𝜑 → ( 𝜒 ∨ 𝜃 ) ) |
12 | 6 10 11 | mpjaodan | ⊢ ( 𝜑 → ( ( 𝜓 ∧ 𝜒 ) ∨ ( 𝜓 ∧ 𝜃 ) ) ) |