1 (**************************************************************************)
4 (* ||A|| A project by Andrea Asperti *)
6 (* ||I|| Developers: *)
7 (* ||T|| The HELM team. *)
8 (* ||A|| http://helm.cs.unibo.it *)
10 (* \ / This file is distributed under the terms of the *)
11 (* v GNU General Public License Version 2 *)
13 (**************************************************************************)
15 (* NOTATION FOR THE FORMAL SYSTEM λδ ****************************************)
17 (* Grammar ******************************************************************)
20 non associative with precedence 90
23 notation "hvbox( ⓪ { I } )"
24 non associative with precedence 90
28 non associative with precedence 90
31 notation "hvbox( ⋆ term 90 k )"
32 non associative with precedence 90
35 notation "hvbox( # term 90 i )"
36 non associative with precedence 90
39 notation "hvbox( § term 90 p )"
40 non associative with precedence 90
43 notation "hvbox( ② term 55 T1 . break term 55 T )"
44 non associative with precedence 55
45 for @{ 'SnItem2 $T1 $T }.
47 notation "hvbox( ② { I } break term 55 T1 . break term 55 T )"
48 non associative with precedence 55
49 for @{ 'SnItem2 $I $T1 $T }.
51 notation "hvbox( ⓑ { a , I } break term 55 T1 . break term 55 T )"
52 non associative with precedence 55
53 for @{ 'SnBind2 $a $I $T1 $T }.
55 notation "hvbox( + ⓑ { I } break term 55 T1 . break term 55 T )"
56 non associative with precedence 55
57 for @{ 'SnBind2Pos $I $T1 $T }.
59 notation "hvbox( - ⓑ { I } break term 55 T1 . break term 55 T )"
60 non associative with precedence 55
61 for @{ 'SnBind2Neg $I $T1 $T }.
63 notation "hvbox( ⓕ { I } break term 55 T1 . break term 55 T )"
64 non associative with precedence 55
65 for @{ 'SnFlat2 $I $T1 $T }.
67 notation "hvbox( ⓓ { a } term 55 T1 . break term 55 T2 )"
68 non associative with precedence 55
69 for @{ 'SnAbbr $a $T1 $T2 }.
71 notation "hvbox( + ⓓ term 55 T1 . break term 55 T2 )"
72 non associative with precedence 55
73 for @{ 'SnAbbrPos $T1 $T2 }.
75 notation "hvbox( - ⓓ term 55 T1 . break term 55 T2 )"
76 non associative with precedence 55
77 for @{ 'SnAbbrNeg $T1 $T2 }.
79 notation "hvbox( ⓛ { a } term 55 T1 . break term 55 T2 )"
80 non associative with precedence 55
81 for @{ 'SnAbst $a $T1 $T2 }.
83 notation "hvbox( + ⓛ term 55 T1 . break term 55 T2 )"
84 non associative with precedence 55
85 for @{ 'SnAbstPos $T1 $T2 }.
87 notation "hvbox( - ⓛ term 55 T1 . break term 55 T2 )"
88 non associative with precedence 55
89 for @{ 'SnAbstNeg $T1 $T2 }.
91 notation "hvbox( ⓐ term 55 T1 . break term 55 T2 )"
92 non associative with precedence 55
93 for @{ 'SnAppl $T1 $T2 }.
95 notation "hvbox( ⓝ term 55 T1 . break term 55 T2 )"
96 non associative with precedence 55
97 for @{ 'SnCast $T1 $T2 }.
99 notation "hvbox( Ⓐ term 55 T1 . break term 55 T )"
100 non associative with precedence 55
101 for @{ 'SnApplV $T1 $T }.
103 notation > "hvbox( T . break ②{ I } break term 47 T1 )"
104 non associative with precedence 46
105 for @{ 'DxBind2 $T $I $T1 }.
107 notation "hvbox( T . break ⓑ { I } break term 48 T1 )"
108 non associative with precedence 47
109 for @{ 'DxBind2 $T $I $T1 }.
111 notation "hvbox( T1 . break ⓓ T2 )"
112 left associative with precedence 48
113 for @{ 'DxAbbr $T1 $T2 }.
115 notation "hvbox( T1 . break ⓛ T2 )"
116 left associative with precedence 49
117 for @{ 'DxAbst $T1 $T2 }.
119 notation "hvbox( T . break ④ { I } break { T1 , break T2 , break T3 } )"
120 non associative with precedence 50
121 for @{ 'DxItem4 $T $I $T1 $T2 $T3 }.
123 notation "hvbox( # { x } )"
124 non associative with precedence 90
127 notation "hvbox( # { x , break y } )"
128 non associative with precedence 90
129 for @{ 'Weight $x $y }.
131 notation "hvbox( 𝐒 ⦃ T ⦄ )"
132 non associative with precedence 45
135 notation "hvbox( L ⊢ break term 46 T1 ≈ break term 46 T2 )"
136 non associative with precedence 45
137 for @{ 'Hom $L $T1 $T2 }.
139 notation "hvbox( T1 ≃ break term 46 T2 )"
140 non associative with precedence 45
141 for @{ 'Iso $T1 $T2 }.
143 (* Substitution *************************************************************)
145 notation "hvbox( ⇧ [ d , break e ] break term 46 T1 ≡ break term 46 T2 )"
146 non associative with precedence 45
147 for @{ 'RLift $d $e $T1 $T2 }.
149 notation "hvbox( T1 break ≼ [ d , break e ] break term 46 T2 )"
150 non associative with precedence 45
151 for @{ 'SubEq $T1 $d $e $T2 }.
153 notation "hvbox( ≽ [ d , break e ] break term 46 T2 )"
154 non associative with precedence 45
155 for @{ 'SubEqBottom $d $e $T2 }.
157 notation "hvbox( ⇩ [ e ] break term 46 L1 ≡ break term 46 L2 )"
158 non associative with precedence 45
159 for @{ 'RDrop $e $L1 $L2 }.
161 notation "hvbox( ⇩ [ d , break e ] break term 46 L1 ≡ break term 46 L2 )"
162 non associative with precedence 45
163 for @{ 'RDrop $d $e $L1 $L2 }.
165 notation "hvbox( ⦃ L1, break T1 ⦄ ⧁ break ⦃ L2 , break T2 ⦄ )"
166 non associative with precedence 45
167 for @{ 'RestSupTerm $L1 $T1 $L2 $T2 }.
169 notation "hvbox( L ⊢ break ⌘ ⦃ T ⦄ ≡ break term 46 k )"
170 non associative with precedence 45
171 for @{ 'ICM $L $T $k }.
173 notation "hvbox( L ⊢ break term 46 T1 break ▶ [ d , break e ] break term 46 T2 )"
174 non associative with precedence 45
175 for @{ 'PSubst $L $T1 $d $e $T2 }.
177 (* Unfold *******************************************************************)
179 notation "hvbox( @ ⦃ T1 , break f ⦄ ≡ break term 46 T2 )"
180 non associative with precedence 45
181 for @{ 'RAt $T1 $f $T2 }.
183 notation "hvbox( T1 ▭ break term 46 T2 ≡ break term 46 T )"
184 non associative with precedence 45
185 for @{ 'RMinus $T1 $T2 $T }.
187 notation "hvbox( ⇧ * [ e ] break term 46 T1 ≡ break term 46 T2 )"
188 non associative with precedence 45
189 for @{ 'RLiftStar $e $T1 $T2 }.
191 notation "hvbox( ⇩ * [ e ] break term 46 L1 ≡ break term 46 L2 )"
192 non associative with precedence 45
193 for @{ 'RDropStar $e $L1 $L2 }.
195 notation "hvbox( ⦃ L1, break T1 ⦄ ⧁ + break ⦃ L2 , break T2 ⦄ )"
196 non associative with precedence 45
197 for @{ 'RestSupTermPlus $L1 $T1 $L2 $T2 }.
199 notation "hvbox( ⦃ L1, break T1 ⦄ ⧁ * break ⦃ L2 , break T2 ⦄ )"
200 non associative with precedence 45
201 for @{ 'RestSupTermStar $L1 $T1 $L2 $T2 }.
203 notation "hvbox( T1 break ▶ * [ d , break e ] break term 46 T2 )"
204 non associative with precedence 45
205 for @{ 'PSubstStar $T1 $d $e $T2 }.
207 notation "hvbox( L ⊢ break term 46 T1 break ▶ * [ d , break e ] break term 46 T2 )"
208 non associative with precedence 45
209 for @{ 'PSubstStar $L $T1 $d $e $T2 }.
211 notation "hvbox( L ⊢ break term 46 T1 break ▶ ▶ * [ d , break e ] break term 46 T2 )"
212 non associative with precedence 45
213 for @{ 'PSubstStarAlt $L $T1 $d $e $T2 }.
215 notation "hvbox( T1 break ⊢ ▶ * [ d , break e ] break term 46 T2 )"
216 non associative with precedence 45
217 for @{ 'PSubstStarSn $T1 $d $e $T2 }.
219 notation "hvbox( T1 break ⊢ ▶ ▶ * [ d , break e ] break term 46 T2 )"
220 non associative with precedence 45
221 for @{ 'PSubstStarSnAlt $T1 $d $e $T2 }.
223 notation "hvbox( ▼ * [ d , break e ] break term 46 T1 ≡ break term 46 T2 )"
224 non associative with precedence 45
225 for @{ 'TSubst $T1 $d $e $T2 }.
227 notation "hvbox( L ⊢ break ▼ * [ d , break e ] break term 46 T1 ≡ break term 46 T2 )"
228 non associative with precedence 45
229 for @{ 'TSubst $L $T1 $d $e $T2 }.
231 notation "hvbox( ▼ ▼ * [ d , break e ] break term 46 T1 ≡ break term 46 T2 )"
232 non associative with precedence 45
233 for @{ 'TSubstAlt $T1 $d $e $T2 }.
235 notation "hvbox( L ⊢ break ▼ ▼ * [ d , break e ] break term 46 T1 ≡ break term 46 T2 )"
236 non associative with precedence 45
237 for @{ 'TSubstAlt $L $T1 $d $e $T2 }.
239 (* Static typing ************************************************************)
241 notation "hvbox( L ⊢ break term 46 T ⁝ break term 46 A )"
242 non associative with precedence 45
243 for @{ 'AtomicArity $L $T $A }.
245 notation "hvbox( T1 ⁝ ⊑ break term 46 T2 )"
246 non associative with precedence 45
247 for @{ 'CrSubEqA $T1 $T2 }.
249 notation "hvbox( ⦃ h , break L ⦄ ⊢ break term 46 T ÷ break term 46 A )"
250 non associative with precedence 45
251 for @{ 'BinaryArity $h $L $T $A }.
253 notation "hvbox( h ⊢ break term 46 L1 ÷ ⊑ break term 46 L2 )"
254 non associative with precedence 45
255 for @{ 'CrSubEqB $h $L1 $L2 }.
257 notation "hvbox( ⦃ h , break L ⦄ ⊢ break term 46 T1 • break [ g , break l ] break term 46 T2 )"
258 non associative with precedence 45
259 for @{ 'StaticType $h $g $l $L $T1 $T2 }.
261 notation "hvbox( h ⊢ break term 46 L1 • ⊑ [ g ] break term 46 L2 )"
262 non associative with precedence 45
263 for @{ 'CrSubEqS $h $g $L1 $L2 }.
265 (* Unwind *******************************************************************)
267 notation "hvbox( L1 ⊢ ⧫ * break term 46 T ≡ break term 46 L2 )"
268 non associative with precedence 45
269 for @{ 'Unwind $L1 $T $L2 }.
271 (* Reducibility *************************************************************)
273 notation "hvbox( L ⊢ break 𝐑 ⦃ T ⦄ )"
274 non associative with precedence 45
275 for @{ 'Reducible $L $T }.
277 notation "hvbox( L ⊢ break 𝐈 ⦃ T ⦄ )"
278 non associative with precedence 45
279 for @{ 'NotReducible $L $T }.
281 notation "hvbox( L ⊢ break 𝐍 ⦃ T ⦄ )"
282 non associative with precedence 45
283 for @{ 'Normal $L $T }.
285 (* this might be removed *)
286 notation "hvbox( 𝐇𝐑 ⦃ T ⦄ )"
287 non associative with precedence 45
288 for @{ 'HdReducible $T }.
290 (* this might be removed *)
291 notation "hvbox( L ⊢ break 𝐇𝐑 ⦃ T ⦄ )"
292 non associative with precedence 45
293 for @{ 'HdReducible $L $T }.
295 (* this might be removed *)
296 notation "hvbox( 𝐇𝐈 ⦃ T ⦄ )"
297 non associative with precedence 45
298 for @{ 'NotHdReducible $T }.
300 (* this might be removed *)
301 notation "hvbox( L ⊢ break 𝐇𝐈 ⦃ T ⦄ )"
302 non associative with precedence 45
303 for @{ 'NotHdReducible $L $T }.
305 (* this might be removed *)
306 notation "hvbox( 𝐇𝐍 ⦃ T ⦄ )"
307 non associative with precedence 45
308 for @{ 'HdNormal $T }.
310 (* this might be removed *)
311 notation "hvbox( L ⊢ break 𝐇𝐍 ⦃ T ⦄ )"
312 non associative with precedence 45
313 for @{ 'HdNormal $L $T }.
315 notation "hvbox( T1 ➡ break term 46 T2 )"
316 non associative with precedence 45
317 for @{ 'PRed $T1 $T2 }.
319 notation "hvbox( L ⊢ break term 46 T1 ➡ break term 46 T2 )"
320 non associative with precedence 45
321 for @{ 'PRed $L $T1 $T2 }.
323 notation "hvbox( ⦃ L1 ⦄ ➡ break ⦃ L2 ⦄ )"
324 non associative with precedence 45
325 for @{ 'FocalizedPRed $L1 $L2 }.
327 notation "hvbox( ⦃ L1, break T1 ⦄ ➡ break ⦃ L2 , break T2 ⦄ )"
328 non associative with precedence 45
329 for @{ 'FocalizedPRed $L1 $T1 $L2 $T2 }.
331 notation "hvbox( L ⊢ break ⦃ L1, break T1 ⦄ ➡ break ⦃ L2 , break T2 ⦄ )"
332 non associative with precedence 45
333 for @{ 'FocalizedPRed $L $L1 $T1 $L2 $T2 }.
335 notation "hvbox( ⦃ L1 ⦄ ➡ ➡ break ⦃ L2 ⦄ )"
336 non associative with precedence 45
337 for @{ 'FocalizedPRedAlt $L1 $L2 }.
339 notation "hvbox( ⦃ h , break L ⦄ ⊢ break term 46 T1 • ➡ break [ g ] break term 46 T2 )"
340 non associative with precedence 45
341 for @{ 'XPRed $h $g $L $T1 $T2 }.
343 (* Computation **************************************************************)
345 notation "hvbox( T1 ➡ * break term 46 T2 )"
346 non associative with precedence 45
347 for @{ 'PRedStar $T1 $T2 }.
349 notation "hvbox( L ⊢ break term 46 T1 ➡ * break term 46 T2 )"
350 non associative with precedence 45
351 for @{ 'PRedStar $L $T1 $T2 }.
353 notation "hvbox( T1 ➡ ➡ * break term 46 T2 )"
354 non associative with precedence 45
355 for @{ 'PRedStarAlt $T1 $T2 }.
357 notation "hvbox( ⦃ L1 ⦄ ➡ * break ⦃ L2 ⦄ )"
358 non associative with precedence 45
359 for @{ 'FocalizedPRedStar $L1 $L2 }.
361 notation "hvbox( ⦃ L1 , T1 ⦄ ➡ * break ⦃ L2 , T2 ⦄ )"
362 non associative with precedence 45
363 for @{ 'FocalizedPRedStar $L1 $T1 $L2 $T2 }.
365 notation "hvbox( ⦃ L1 ⦄ ➡ ➡ * break ⦃ L2 ⦄ )"
366 non associative with precedence 45
367 for @{ 'FocalizedPRedStarAlt $L1 $L2 }.
369 notation "hvbox( ⦃ L1 , T1 ⦄ ➡ ➡ * break ⦃ L2 , T2 ⦄ )"
370 non associative with precedence 45
371 for @{ 'FocalizedPRedStarAlt $L1 $T1 $L2 $T2 }.
373 notation "hvbox( L ⊢ break term 46 T1 ➡ * break 𝐍 ⦃ T2 ⦄ )"
374 non associative with precedence 45
375 for @{ 'PEval $L $T1 $T2 }.
377 notation "hvbox( ⬊ * term 46 T )"
378 non associative with precedence 45
381 notation "hvbox( L ⊢ ⬊ * break term 46 T )"
382 non associative with precedence 45
385 notation "hvbox( L ⊢ ⬊ ⬊ * break term 46 T )"
386 non associative with precedence 45
387 for @{ 'SNAlt $L $T }.
389 notation "hvbox( ⦃ L, break T ⦄ ϵ break [ R ] break 〚 A 〛 )"
390 non associative with precedence 45
391 for @{ 'InEInt $R $L $T $A }.
393 notation "hvbox( T1 ⊑ break [ R ] break term 46 T2 )"
394 non associative with precedence 45
395 for @{ 'CrSubEq $T1 $R $T2 }.
397 notation "hvbox( ⦃ h , break L ⦄ ⊢ break term 46 T1 • ➡ * break [ g ] break term 46 T2 )"
398 non associative with precedence 45
399 for @{ 'XPRedStar $h $g $L $T1 $T2 }.
401 notation "hvbox( ⦃ h , break L ⦄ ⊢ • ⬊ * break [ g ] break term 46 T2 )"
402 non associative with precedence 45
403 for @{ 'XSN $h $g $L $T }.
405 (* Conversion ***************************************************************)
407 notation "hvbox( L ⊢ break term 46 T1 ⬌ break term 46 T2 )"
408 non associative with precedence 45
409 for @{ 'PConv $L $T1 $T2 }.
411 notation "hvbox( ⦃ L1 ⦄ ⬌ break ⦃ L2 ⦄ )"
412 non associative with precedence 45
413 for @{ 'FocalizedPConv $L1 $L2 }.
415 notation "hvbox( ⦃ L1 , break T1 ⦄ ⬌ break ⦃ L2 , break T2 ⦄ )"
416 non associative with precedence 45
417 for @{ 'FocalizedPConv $L1 $T1 $L2 $T2 }.
419 notation "hvbox( ⦃ L1 ⦄ ⬌ ⬌ break ⦃ L2 ⦄ )"
420 non associative with precedence 45
421 for @{ 'FocalizedPConvAlt $L1 $L2 }.
423 notation "hvbox( ⦃ L1 , break T1 ⦄ ⬌ ⬌ break ⦃ L2 , break T2 ⦄ )"
424 non associative with precedence 45
425 for @{ 'FocalizedPConvAlt $L1 $T1 $L2 $T2 }.
427 (* Equivalence **************************************************************)
429 notation "hvbox( L ⊢ break term 46 T1 ⬌* break term 46 T2 )"
430 non associative with precedence 45
431 for @{ 'PConvStar $L $T1 $T2 }.
433 notation "hvbox( h ⊢ break term 46 L1 ⊢ • ⊑ [ g ] break term 46 L2 )"
434 non associative with precedence 45
435 for @{ 'CrSubEqSE $h $g $L1 $L2 }.
437 notation "hvbox( ⦃ L1 ⦄ ⬌ * break ⦃ L2 ⦄ )"
438 non associative with precedence 45
439 for @{ 'FocalizedPConvStar $L1 $L2 }.
441 notation "hvbox( ⦃ L1 , break T1 ⦄ ⬌ * break ⦃ L2 , break T2 ⦄ )"
442 non associative with precedence 45
443 for @{ 'FocalizedPConvStar $L1 $T1 $L2 $T2 }.
445 notation "hvbox( ⦃ L1 ⦄ ⬌ ⬌ * break ⦃ L2 ⦄ )"
446 non associative with precedence 45
447 for @{ 'FocalizedPConvStarAlt $L1 $L2 }.
449 notation "hvbox( ⦃ L1 , break T1 ⦄ ⬌ ⬌ * break ⦃ L2 , break T2 ⦄ )"
450 non associative with precedence 45
451 for @{ 'FocalizedPConvStarAlt $L1 $T1 $L2 $T2 }.
453 (* Dynamic typing ***********************************************************)
455 notation "hvbox( ⦃ h , break L ⦄ ⊩ break term 46 T : break [ g ] )"
456 non associative with precedence 45
457 for @{ 'NativeValid $h $g $L $T }.
459 notation "hvbox( h ⊢ break term 46 L1 ⊩ : ⊑ [ g ] break term 46 L2 )"
460 non associative with precedence 45
461 for @{ 'CrSubEqV $h $g $L1 $L2 }.
463 notation "hvbox( ⦃ h , break L ⦄ ⊢ break term 46 T1 : break term 46 T2 )"
464 non associative with precedence 45
465 for @{ 'NativeType $h $L $T1 $T2 }.
467 notation "hvbox( ⦃ h , break L ⦄ ⊢ break term 46 T1 : : break term 46 T2 )"
468 non associative with precedence 45
469 for @{ 'NativeTypeAlt $h $L $T1 $T2 }.
471 (* Higher order dynamic typing **********************************************)
473 notation "hvbox( ⦃ h , break L ⦄ ⊢ break term 46 T1 : * break term 46 T2 )"
474 non associative with precedence 45
475 for @{ 'NativeTypeStar $h $L $T1 $T2 }.