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

Theorem cbvf 167
Description: Change bound variables in a lambda abstraction.
Hypotheses
Ref Expression
cbvf.1 A:β
cbvf.2 ⊤⊧[(λy:α Az:α) = A]
cbvf.3 ⊤⊧[(λx:α Bz:α) = B]
cbvf.4 [x:α = y:α]⊧[A = B]
Assertion
Ref Expression
cbvf ⊤⊧[λx:α A = λy:α B]
Distinct variable groups:   z,A   z,B   x,y,z,α

Proof of Theorem cbvf
Dummy variable p is distinct from all other variables.
StepHypRef Expression
1 cbvf.1 . . . . 5 A:β
21wl 59 . . . 4 λx:α A:(αβ)
3 wv 58 . . . 4 p:α:α
42, 3wc 45 . . 3 (λx:α Ap:α):β
54wl 59 . 2 λp:α (λx:α Ap:α):(αβ)
6 cbvf.4 . . . . . . . 8 [x:α = y:α]⊧[A = B]
71, 6eqtypi 69 . . . . . . 7 B:β
87wl 59 . . . . . 6 λy:α B:(αβ)
98, 3wc 45 . . . . 5 (λy:α Bp:α):β
104, 9weqi 68 . . . 4 [(λx:α Ap:α) = (λy:α Bp:α)]:∗
11 wv 58 . . . . 5 y:α:α
12 cbvf.3 . . . . 5 ⊤⊧[(λx:α Bz:α) = B]
13 wv 58 . . . . . 6 z:α:α
1411, 13ax-17 95 . . . . 5 ⊤⊧[(λx:α y:αz:α) = y:α]
151, 11, 6, 12, 14clf 105 . . . 4 ⊤⊧[(λx:α Ay:α) = B]
16 weq 38 . . . . 5 = :(β → (β → ∗))
1716, 13ax-17 95 . . . . 5 ⊤⊧[(λy:α = z:α) = = ]
18 cbvf.2 . . . . . . 7 ⊤⊧[(λy:α Az:α) = A]
191, 13, 18hbl 102 . . . . . 6 ⊤⊧[(λy:α λx:α Az:α) = λx:α A]
203, 13ax-17 95 . . . . . 6 ⊤⊧[(λy:α p:αz:α) = p:α]
212, 3, 13, 19, 20hbc 100 . . . . 5 ⊤⊧[(λy:α (λx:α Ap:α)z:α) = (λx:α Ap:α)]
2218ax-cb1 29 . . . . . . 7 ⊤:∗
237, 13, 22hbl1 94 . . . . . 6 ⊤⊧[(λy:α λy:α Bz:α) = λy:α B]
248, 3, 13, 23, 20hbc 100 . . . . 5 ⊤⊧[(λy:α (λy:α Bp:α)z:α) = (λy:α Bp:α)]
2516, 4, 13, 9, 17, 21, 24hbov 101 . . . 4 ⊤⊧[(λy:α [(λx:α Ap:α) = (λy:α Bp:α)]z:α) = [(λx:α Ap:α) = (λy:α Bp:α)]]
262, 11wc 45 . . . . 5 (λx:α Ay:α):β
2711, 3weqi 68 . . . . . . 7 [y:α = p:α]:∗
2827id 25 . . . . . 6 [y:α = p:α]⊧[y:α = p:α]
292, 11, 28ceq2 80 . . . . 5 [y:α = p:α]⊧[(λx:α Ay:α) = (λx:α Ap:α)]
3029ax-cb1 29 . . . . . . 7 [y:α = p:α]:∗
318, 11wc 45 . . . . . . . 8 (λy:α By:α):β
327beta 82 . . . . . . . 8 ⊤⊧[(λy:α By:α) = B]
3331, 32eqcomi 70 . . . . . . 7 ⊤⊧[B = (λy:α By:α)]
3430, 33a1i 28 . . . . . 6 [y:α = p:α]⊧[B = (λy:α By:α)]
358, 11, 28ceq2 80 . . . . . 6 [y:α = p:α]⊧[(λy:α By:α) = (λy:α Bp:α)]
367, 34, 35eqtri 85 . . . . 5 [y:α = p:α]⊧[B = (λy:α Bp:α)]
3716, 26, 7, 29, 36oveq12 90 . . . 4 [y:α = p:α]⊧[[(λx:α Ay:α) = B] = [(λx:α Ap:α) = (λy:α Bp:α)]]
383, 10, 15, 25, 37insti 104 . . 3 ⊤⊧[(λx:α Ap:α) = (λy:α Bp:α)]
394, 38leq 81 . 2 ⊤⊧[λp:α (λx:α Ap:α) = λp:α (λy:α Bp:α)]
402eta 166 . 2 ⊤⊧[λp:α (λx:α Ap:α) = λx:α A]
418eta 166 . 2 ⊤⊧[λp:α (λy:α Bp:α) = λy:α B]
425, 39, 40, 413eqtr3i 87 1 ⊤⊧[λx:α A = λy:α B]
Colors of variables: type var term
Syntax hints:  tv 1  ht 2  hb 3  kc 5  λkl 6   = ke 7  kt 8  [kbr 9  wffMMJ2 11  wffMMJ2t 12
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  ax-eta 165
This theorem depends on definitions:  df-ov 65  df-al 116
This theorem is referenced by:  cbv  168
  Copyright terms: Public domain W3C validator