Metamath Proof Explorer


Theorem ex-natded5.13

Description: Theorem 5.13 of Clemente p. 20, translated line by line using the interpretation of natural deduction in Metamath. For information about ND and Metamath, see the page on Deduction Form and Natural Deduction in Metamath Proof Explorer. A much more efficient proof, using more of Metamath and MPE's capabilities, is shown in ex-natded5.13-2 . 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 TranslationND Rationale MPE Rationale
115 ( ps \/ ch ) ( ph -> ( ps \/ ch ) ) Given $e.
2;32 ( ps -> th ) ( ph -> ( ps -> th ) ) Given $e. adantr to move it into the ND hypothesis
39 ( -. ta -> -. ch ) ( ph -> ( -. ta -> -. ch ) ) Given $e. ad2antrr to move it into the ND sub-hypothesis
41 ...| ps ( ( ph /\ ps ) -> ps ) ND hypothesis assumption simpr
54 ... th ( ( ph /\ ps ) -> th ) ->E 2,4 mpd 1,3
65 ... ( th \/ ta ) ( ( ph /\ ps ) -> ( th \/ ta ) ) \/I 5 orcd 4
76 ...| ch ( ( ph /\ ch ) -> ch ) ND hypothesis assumption simpr
88 ... ...| -. ta ( ( ( ph /\ ch ) /\ -. ta ) -> -. ta ) (sub) ND hypothesis assumption simpr
911 ... ... -. ch ( ( ( ph /\ ch ) /\ -. ta ) -> -. ch ) ->E 3,8 mpd 8,10
107 ... ... ch ( ( ( ph /\ ch ) /\ -. ta ) -> ch ) IT 7 adantr 6
1112 ... -. -. ta ( ( ph /\ ch ) -> -. -. ta ) -.I 8,9,10 pm2.65da 7,11
1213 ... ta ( ( ph /\ ch ) -> ta ) -.E 11 notnotrd 12
1314 ... ( th \/ ta ) ( ( ph /\ ch ) -> ( th \/ ta ) ) \/I 12 olcd 13
1416 ( th \/ ta ) ( ph -> ( th \/ ta ) ) \/E 1,6,13 mpjaodan 5,14,15

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). (Contributed by Mario Carneiro, 9-Feb-2017) (Proof modification is discouraged.) (New usage is discouraged.)

Ref Expression
Hypotheses ex-natded5.13.1 φ ψ χ
ex-natded5.13.2 φ ψ θ
ex-natded5.13.3 φ ¬ τ ¬ χ
Assertion ex-natded5.13 φ θ τ

Proof

Step Hyp Ref Expression
1 ex-natded5.13.1 φ ψ χ
2 ex-natded5.13.2 φ ψ θ
3 ex-natded5.13.3 φ ¬ τ ¬ χ
4 simpr φ ψ ψ
5 2 adantr φ ψ ψ θ
6 4 5 mpd φ ψ θ
7 6 orcd φ ψ θ τ
8 simpr φ χ χ
9 8 adantr φ χ ¬ τ χ
10 simpr φ χ ¬ τ ¬ τ
11 3 ad2antrr φ χ ¬ τ ¬ τ ¬ χ
12 10 11 mpd φ χ ¬ τ ¬ χ
13 9 12 pm2.65da φ χ ¬ ¬ τ
14 13 notnotrd φ χ τ
15 14 olcd φ χ θ τ
16 7 15 1 mpjaodan φ θ τ