HOLE Home Higher-Order Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  HOLE Home  >  Th. List  >  ecase GIF version

Theorem ecase 153
Description: Elimination by cases.
Hypotheses
Ref Expression
ecase.1 A:∗
ecase.2 B:∗
ecase.3 T:∗
ecase.4 R⊧[A B]
ecase.5 (R, A)⊧T
ecase.6 (R, B)⊧T
Assertion
Ref Expression
ecase RT

Proof of Theorem ecase
Dummy variable x is distinct from all other variables.
StepHypRef Expression
1 ecase.3 . 2 T:∗
2 ecase.6 . . 3 (R, B)⊧T
32ex 148 . 2 R⊧[BT]
4 wim 127 . . . 4 ⇒ :(∗ → (∗ → ∗))
5 ecase.2 . . . . 5 B:∗
64, 5, 1wov 64 . . . 4 [BT]:∗
74, 6, 1wov 64 . . 3 [[BT] ⇒ T]:∗
8 ecase.5 . . . 4 (R, A)⊧T
98ex 148 . . 3 R⊧[AT]
10 ecase.4 . . . . 5 R⊧[A B]
1110ax-cb1 29 . . . . . 6 R:∗
12 ecase.1 . . . . . . 7 A:∗
1312, 5orval 137 . . . . . 6 ⊤⊧[[A B] = (λx:∗ [[Ax:∗] ⇒ [[Bx:∗] ⇒ x:∗]])]
1411, 13a1i 28 . . . . 5 R⊧[[A B] = (λx:∗ [[Ax:∗] ⇒ [[Bx:∗] ⇒ x:∗]])]
1510, 14mpbi 72 . . . 4 R⊧(λx:∗ [[Ax:∗] ⇒ [[Bx:∗] ⇒ x:∗]])
16 wv 58 . . . . . . 7 x:∗:∗
174, 12, 16wov 64 . . . . . 6 [Ax:∗]:∗
184, 5, 16wov 64 . . . . . . 7 [Bx:∗]:∗
194, 18, 16wov 64 . . . . . 6 [[Bx:∗] ⇒ x:∗]:∗
204, 17, 19wov 64 . . . . 5 [[Ax:∗] ⇒ [[Bx:∗] ⇒ x:∗]]:∗
2116, 1weqi 68 . . . . . . . 8 [x:∗ = T]:∗
2221id 25 . . . . . . 7 [x:∗ = T]⊧[x:∗ = T]
234, 12, 16, 22oveq2 91 . . . . . 6 [x:∗ = T]⊧[[Ax:∗] = [AT]]
244, 5, 16, 22oveq2 91 . . . . . . 7 [x:∗ = T]⊧[[Bx:∗] = [BT]]
254, 18, 16, 24, 22oveq12 90 . . . . . 6 [x:∗ = T]⊧[[[Bx:∗] ⇒ x:∗] = [[BT] ⇒ T]]
264, 17, 19, 23, 25oveq12 90 . . . . 5 [x:∗ = T]⊧[[[Ax:∗] ⇒ [[Bx:∗] ⇒ x:∗]] = [[AT] ⇒ [[BT] ⇒ T]]]
2720, 1, 26cla4v 142 . . . 4 (λx:∗ [[Ax:∗] ⇒ [[Bx:∗] ⇒ x:∗]])⊧[[AT] ⇒ [[BT] ⇒ T]]
2815, 27syl 16 . . 3 R⊧[[AT] ⇒ [[BT] ⇒ T]]
297, 9, 28mpd 146 . 2 R⊧[[BT] ⇒ T]
301, 3, 29mpd 146 1 RT
Colors of variables: type var term
Syntax hints:  tv 1  hb 3  kc 5  λkl 6   = ke 7  [kbr 9  kct 10  wffMMJ2 11  wffMMJ2t 12  tim 111  tal 112   tor 114
This theorem was proved from axioms:  ax-syl 15  ax-jca 17  ax-simpl 20  ax-simpr 21  ax-id 24  ax-trud 26  ax-cb1 29  ax-cb2 30  ax-refl 39  ax-eqmp 42  ax-ded 43  ax-ceq 46  ax-beta 60  ax-distrc 61  ax-leq 62  ax-distrl 63  ax-hbl1 93  ax-17 95  ax-inst 103
This theorem depends on definitions:  df-ov 65  df-al 116  df-an 118  df-im 119  df-or 122
This theorem is referenced by:  exmid  186  notnot  187  ax3  192
  Copyright terms: Public domain W3C validator