-
Notifications
You must be signed in to change notification settings - Fork 0
/
hol_cbvf.mm
211 lines (207 loc) · 4.77 KB
/
hol_cbvf.mm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
$( Theory: hol_cbvf $)
$c
var
type
term
|-
:
.
|=
bool
->
(
)
\
=
T.
[
]
$.
$v al be ga de x y z p A B C F R S T $.
hal $f type al $.
hbe $f type be $.
hga $f type ga $.
hde $f type de $.
vx $f var x $.
vy $f var y $.
vz $f var z $.
vp $f var p $.
ta $f term A $.
tb $f term B $.
tc $f term C $.
tf $f term F $.
tr $f term R $.
ts $f term S $.
tt $f term T $.
tv $a term x : al $.
ht $a type ( al -> be ) $.
hb $a type bool $.
kc $a term ( F T ) $.
kl $a term \ x : al . T $.
ke $a term = $.
kt $a term T. $.
kbr $a term [ A F B ] $.
${
id.0 $e |- R : bool $.
id $a |- R |= R $.
$}
${
a1i.0 $e |- R : bool $.
a1i.1 $e |- T. |= A $.
a1i $a |- R |= A $.
$}
${
ax-cb1.0 $e |- R |= A $.
ax-cb1 $a |- R : bool $.
$}
weq $a |- = : ( al -> ( al -> bool ) ) $.
${
wc.0 $e |- F : ( al -> be ) $.
wc.1 $e |- T : al $.
wc $a |- ( F T ) : be $.
$}
wv $a |- x : al : al $.
${
wl.0 $e |- T : be $.
wl $a |- \ x : al . T : ( al -> be ) $.
$}
${
weqi.0 $e |- A : al $.
weqi.1 $e |- B : al $.
weqi $a |- [ A = B ] : bool $.
$}
${
eqtypi.0 $e |- A : al $.
eqtypi.1 $e |- R |= [ A = B ] $.
eqtypi $a |- B : al $.
$}
${
eqcomi.0 $e |- A : al $.
eqcomi.1 $e |- R |= [ A = B ] $.
eqcomi $a |- R |= [ B = A ] $.
$}
${
ceq2.0 $e |- F : ( al -> be ) $.
ceq2.1 $e |- A : al $.
ceq2.2 $e |- R |= [ A = B ] $.
ceq2 $a |- R |= [ ( F A ) = ( F B ) ] $.
$}
${
$d x R $.
leq.0 $e |- A : be $.
leq.1 $e |- R |= [ A = B ] $.
leq $a |- R |= [ \ x : al . A = \ x : al . B ] $.
$}
${
beta.0 $e |- A : be $.
beta $a |- T. |= [ ( \ x : al . A x : al ) = A ] $.
$}
${
eqtri.0 $e |- A : al $.
eqtri.1 $e |- R |= [ A = B ] $.
eqtri.2 $e |- R |= [ B = C ] $.
eqtri $a |- R |= [ A = C ] $.
$}
${
3eqtr3i.0 $e |- A : al $.
3eqtr3i.1 $e |- R |= [ A = B ] $.
3eqtr3i.2 $e |- R |= [ A = S ] $.
3eqtr3i.3 $e |- R |= [ B = T ] $.
3eqtr3i $a |- R |= [ S = T ] $.
$}
${
oveq12.0 $e |- F : ( al -> ( be -> ga ) ) $.
oveq12.1 $e |- A : al $.
oveq12.2 $e |- B : be $.
oveq12.3 $e |- R |= [ A = C ] $.
oveq12.4 $e |- R |= [ B = T ] $.
oveq12 $a |- R |= [ [ A F B ] = [ C F T ] ] $.
$}
${
hbl1.0 $e |- A : ga $.
hbl1.1 $e |- B : al $.
hbl1.2 $e |- R : bool $.
hbl1 $a |- R |= [ ( \ x : al . \ x : be . A B ) = \ x : be . A ] $.
$}
${
$d x A $.
ax-17.0 $e |- A : be $.
ax-17.1 $e |- B : al $.
ax-17 $a |- T. |= [ ( \ x : al . A B ) = A ] $.
$}
${
hbc.0 $e |- F : ( be -> ga ) $.
hbc.1 $e |- A : be $.
hbc.2 $e |- B : al $.
hbc.3 $e |- R |= [ ( \ x : al . F B ) = F ] $.
hbc.4 $e |- R |= [ ( \ x : al . A B ) = A ] $.
hbc $a |- R |= [ ( \ x : al . ( F A ) B ) = ( F A ) ] $.
$}
${
hbov.0 $e |- F : ( be -> ( ga -> de ) ) $.
hbov.1 $e |- A : be $.
hbov.2 $e |- B : al $.
hbov.3 $e |- C : ga $.
hbov.4 $e |- R |= [ ( \ x : al . F B ) = F ] $.
hbov.5 $e |- R |= [ ( \ x : al . A B ) = A ] $.
hbov.6 $e |- R |= [ ( \ x : al . C B ) = C ] $.
hbov $a |- R |= [ ( \ x : al . [ A F C ] B ) = [ A F C ] ] $.
$}
${
$d x y $.
$d y B $.
$d y R $.
hbl.0 $e |- A : ga $.
hbl.1 $e |- B : al $.
hbl.2 $e |- R |= [ ( \ x : al . A B ) = A ] $.
hbl $a |- R |= [ ( \ x : al . \ y : be . A B ) = \ y : be . A ] $.
$}
${
$d x y R $.
$d y B $.
insti.0 $e |- C : al $.
insti.1 $e |- B : bool $.
insti.2 $e |- R |= A $.
insti.3 $e |- T. |= [ ( \ x : al . B y : al ) = B ] $.
insti.4 $e |- [ x : al = C ] |= [ A = B ] $.
insti $a |- R |= B $.
$}
${
$d y A $.
$d y B $.
$d y C $.
$d x y al $.
clf.0 $e |- A : be $.
clf.1 $e |- C : al $.
clf.2 $e |- [ x : al = C ] |= [ A = B ] $.
clf.3 $e |- T. |= [ ( \ x : al . B y : al ) = B ] $.
clf.4 $e |- T. |= [ ( \ x : al . C y : al ) = C ] $.
clf $a |- T. |= [ ( \ x : al . A C ) = B ] $.
$}
${
$d f x F $.
$d f x al $.
$d f x be $.
eta.0 $e |- F : ( al -> be ) $.
eta $a |- T. |= [ \ x : al . ( F x : al ) = F ] $.
$}
${
$d p z A $.
$d p z B $.
$d p x y z al $.
$d p be $.
cbvf.0 $e |- A : be $.
cbvf.1 $e |- T. |= [ ( \ y : al . A z : al ) = A ] $.
cbvf.2 $e |- T. |= [ ( \ x : al . B z : al ) = B ] $.
cbvf.3 $e |- [ x : al = y : al ] |= [ A = B ] $.
cbvf $p |- T. |= [ \ x : al . A = \ y : al . B ] $=
( vp ht kl tv kc kt wc ke kbr wl eqtypi weqi ax-17 clf weq hbl hbc ax-cb1 wv hb hbl1 hbov ceq2 beta eqcomi a1i eqtri oveq12 insti leq eta 3eqtr3i id )
ABMALACFNZALOZPZNALADGNZVFPZNQVEVHABLVGABVEVFABCFHUAZALUJZRZUAABLVGVIQVLADEVE
ADOZPZGSTVGVISTVFQVKBVGVIVLABVHVFABDGBFGACOVMSTHKUBZUAZVKRZUCABCEFGVMHADUJZKJAAC
VMAEOZVRAEUJZUDUEABBUKDVGVSVISQBUFZVLVTVQABBUKMMDSVSWAVTUDAABDVFVSVEQVJVKVTAABDCFVSQHVTIUGA
ADVFVSVKVTUDZUHAABDVFVSVHQVPVKVTAABDGVSQVOVTADFNVSPFSTQIUIULWBUHUMBBUKVNGVGSVMVFSTZVIWAABVEVMVJ
VRRVOABVMVFVEWCVJVRWCAVMVFVRVKUCVDZUNZBGVHVMPZVIWCVOGWFSTWCVNVGSTWCWEUIBWFGQABVHVMVPVRRABDGVOUOUPUQAB
VMVFVHWCVPVRWDUNURUSUTVAABLVEVJVBABLVHVPVBVC
$.
$}
$( hol_cbvf End $)