HomeHome Metamath Proof Explorer < Previous   Next >
Related theorems
Unicode version

Theorem elimdhyp 3026
Description: Version of elimhyp 3021 where the hypothesis is deduced from the final antecedent. See ghomgrplem 13632 for an example of its use. (Contributed by Paul Chapman, 25-Mar-2008.)
Hypotheses
Ref Expression
elimdhyp.1 |- (ph -> ps)
elimdhyp.2 |- (A = if(ph, A, B) -> (ps <-> ch))
elimdhyp.3 |- (B = if(ph, A, B) -> (th <-> ch))
elimdhyp.4 |- th
Assertion
Ref Expression
elimdhyp |- ch

Proof of Theorem elimdhyp
StepHypRef Expression
1 elimdhyp.1 . . 3 |- (ph -> ps)
2 iftrue 2989 . . . . 5 |- (ph -> if(ph, A, B) = A)
32eqcomd 1889 . . . 4 |- (ph -> A = if(ph, A, B))
4 elimdhyp.2 . . . 4 |- (A = if(ph, A, B) -> (ps <-> ch))
53, 4syl 12 . . 3 |- (ph -> (ps <-> ch))
61, 5mpbid 212 . 2 |- (ph -> ch)
7 elimdhyp.4 . . 3 |- th
8 iffalse 2991 . . . . 5 |- (-. ph -> if(ph, A, B) = B)
98eqcomd 1889 . . . 4 |- (-. ph -> B = if(ph, A, B))
10 elimdhyp.3 . . . 4 |- (B = if(ph, A, B) -> (th <-> ch))
119, 10syl 12 . . 3 |- (-. ph -> (th <-> ch))
127, 11mpbii 210 . 2 |- (-. ph -> ch)
136, 12pm2.61i 140 1 |- ch
Colors of variables: wff set class
Syntax hints:  -. wn 2   -> wi 3   <-> wb 163   = wceq 1298  ifcif 2982
This theorem is referenced by:  ghomgrplem 13632  divalg 13706
This theorem was proved from axioms:  ax-1 4  ax-2 5  ax-3 6  ax-mp 7  ax-7 1304  ax-gen 1305  ax-8 1306  ax-10 1308  ax-12 1310  ax-17 1317  ax-4 1319  ax-5o 1321  ax-6o 1324  ax-9o 1481  ax-10o 1500  ax-16 1580  ax-11o 1588  ax-ext 1865
This theorem depends on definitions:  df-bi 164  df-or 241  df-an 242  df-ex 1327  df-sb 1536  df-clab 1872  df-cleq 1877  df-clel 1880  df-if 2983
Copyright terms: Public domain