]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/basic_2/notation.ma
140086abb50e6ff15d93387c6d1be1c930de6058
[helm.git] / matita / matita / contribs / lambdadelta / basic_2 / notation.ma
1 (**************************************************************************)
2 (*       ___                                                              *)
3 (*      ||M||                                                             *)
4 (*      ||A||       A project by Andrea Asperti                           *)
5 (*      ||T||                                                             *)
6 (*      ||I||       Developers:                                           *)
7 (*      ||T||         The HELM team.                                      *)
8 (*      ||A||         http://helm.cs.unibo.it                             *)
9 (*      \   /                                                             *)
10 (*       \ /        This file is distributed under the terms of the       *)
11 (*        v         GNU General Public License Version 2                  *)
12 (*                                                                        *)
13 (**************************************************************************)
14
15 (* NOTATION FOR THE FORMAL SYSTEM λδ ****************************************)
16
17 (* Grammar ******************************************************************)
18
19 notation "⓪"
20  non associative with precedence 55
21  for @{ 'Item0 }.
22
23 notation "hvbox( ⓪ { term 46 I } )"
24  non associative with precedence 55
25  for @{ 'Item0 $I }.
26
27 notation "⋆"
28  non associative with precedence 46
29  for @{ 'Star }.
30
31 notation "hvbox( ⋆ term 90 k )"
32  non associative with precedence 55
33  for @{ 'Star $k }.
34
35 notation "hvbox( # term 90 i )"
36  non associative with precedence 55
37  for @{ 'LRef $i }.
38
39 notation "hvbox( § term 90 p )"
40  non associative with precedence 55
41  for @{ 'GRef $p }.
42
43 notation "hvbox( ② term 55 T1 . break term 55 T )"
44  non associative with precedence 55
45  for @{ 'SnItem2 $T1 $T }.
46
47 notation "hvbox( ② { term 46 I } break term 55 T1 . break term 55 T )"
48  non associative with precedence 55
49  for @{ 'SnItem2 $I $T1 $T }.
50
51 notation "hvbox( ⓑ { term 46 a , break term 46 I } break term 55 T1 . break term 55 T )"
52  non associative with precedence 55
53  for @{ 'SnBind2 $a $I $T1 $T }.
54
55 notation "hvbox( + ⓑ { term 46 I } break term 55 T1 . break term 55 T )"
56  non associative with precedence 55
57  for @{ 'SnBind2Pos $I $T1 $T }.
58
59 notation "hvbox( - ⓑ { term 46 I } break term 55 T1 . break term 55 T )"
60  non associative with precedence 55
61  for @{ 'SnBind2Neg $I $T1 $T }.
62
63 notation "hvbox( ⓕ { term 46 I } break term 55 T1 . break term 55 T )"
64  non associative with precedence 55
65  for @{ 'SnFlat2 $I $T1 $T }.
66
67 notation "hvbox( ⓓ { term 46 a } break term 55 T1 . break term 55 T2 )"
68  non associative with precedence 55
69  for @{ 'SnAbbr $a $T1 $T2 }.
70
71 notation "hvbox( + ⓓ term 55 T1 . break term 55 T2 )"
72  non associative with precedence 55
73  for @{ 'SnAbbrPos $T1 $T2 }.
74
75 notation "hvbox( - ⓓ term 55 T1 . break term 55 T2 )"
76  non associative with precedence 55
77  for @{ 'SnAbbrNeg $T1 $T2 }.
78
79 notation "hvbox( ⓛ { term 46 a } break term 55 T1 . break term 55 T2 )"
80  non associative with precedence 55
81  for @{ 'SnAbst $a $T1 $T2 }.
82
83 notation "hvbox( + ⓛ term 55 T1 . break term 55 T2 )"
84  non associative with precedence 55
85  for @{ 'SnAbstPos $T1 $T2 }.
86
87 notation "hvbox( - ⓛ term 55 T1 . break term 55 T2 )"
88  non associative with precedence 55
89  for @{ 'SnAbstNeg $T1 $T2 }.
90
91 notation "hvbox( ⓐ term 55 T1 . break term 55 T2 )"
92  non associative with precedence 55
93  for @{ 'SnAppl $T1 $T2 }.
94
95 notation "hvbox( ⓝ term 55 T1 . break term 55 T2 )"
96  non associative with precedence 55
97  for @{ 'SnCast $T1 $T2 }.
98
99 notation "hvbox( Ⓐ term 55 T1 . break term 55 T )"
100  non associative with precedence 55
101  for @{ 'SnApplV $T1 $T }.
102
103 notation > "hvbox( T . break ②{ term 46 I } break term 47 T1 )"
104  non associative with precedence 46
105  for @{ 'DxBind2 $T $I $T1 }.
106
107 notation "hvbox( T . break ⓑ { term 46 I } break term 48 T1 )"
108  non associative with precedence 47
109  for @{ 'DxBind2 $T $I $T1 }.
110
111 notation "hvbox( T1 . break ⓓ T2 )"
112  left associative with precedence 48
113  for @{ 'DxAbbr $T1 $T2 }.
114
115 notation "hvbox( T1 . break ⓛ T2 )"
116  left associative with precedence 49
117  for @{ 'DxAbst $T1 $T2 }.
118
119 notation "hvbox( ♯ { term 46 x } )"
120  non associative with precedence 90
121  for @{ 'Weight $x }.
122
123 notation "hvbox( ♯ { term 46 x , break term 46 y } )"
124  non associative with precedence 90
125  for @{ 'Weight $x $y }.
126
127 notation "hvbox( 𝐒 ⦃ term 46 T ⦄ )"
128    non associative with precedence 45
129    for @{ 'Simple $T }.
130
131 notation "hvbox( T1 ≃ break term 46 T2 )"
132    non associative with precedence 45
133    for @{ 'Iso $T1 $T2 }.
134
135 (* Relocation ***************************************************************)
136
137 notation "hvbox( ⇧ [ term 46 d , break term 46 e ] break term 46 T1 ≡ break term 46 T2 )"
138    non associative with precedence 45
139    for @{ 'RLift $d $e $T1 $T2 }.
140
141 notation "hvbox( ⇩ [ term 46 e ] break term 46 L1 ≡ break term 46 L2 )"
142    non associative with precedence 45
143    for @{ 'RDrop $e $L1 $L2 }.
144
145 notation "hvbox( ⇩ [ term 46 d , break term 46 e ] break term 46 L1 ≡ break term 46 L2 )"
146    non associative with precedence 45
147    for @{ 'RDrop $d $e $L1 $L2 }.
148
149 notation "hvbox( ⦃ term 46 L1, break term 46 T1 ⦄ ⊃ break ⦃ term 46 L2 , break term 46 T2 ⦄ )"
150    non associative with precedence 45
151    for @{ 'SupTerm $L1 $T1 $L2 $T2 }.
152
153 notation "hvbox( ⦃ term 46 L1, break term 46 T1 ⦄ ⊃⸮ break ⦃ term 46 L2 , break term 46 T2 ⦄ )"
154    non associative with precedence 45
155    for @{ 'SupTermOpt $L1 $T1 $L2 $T2 }.
156
157 notation "hvbox( ⦃ term 46 L1, break term 46 T1 ⦄ ⊃⊃⸮ break ⦃ term 46 L2 , break term 46 T2 ⦄ )"
158    non associative with precedence 45
159    for @{ 'SupTermOptAlt $L1 $T1 $L2 $T2 }.
160
161 notation "hvbox( L ⊢ break ⌘ ⦃ term 46 T ⦄ ≡ break term 46 k )"
162    non associative with precedence 45
163    for @{ 'ICM $L $T $k }.
164
165 (* Substitution *************************************************************)
166
167 notation "hvbox( @ ⦃ term 46 T1 , break term 46 f ⦄ ≡ break term 46 T2 )"
168    non associative with precedence 45
169    for @{ 'RAt $T1 $f $T2 }.
170
171 notation "hvbox( T1 ▭ break term 46 T2 ≡ break term 46 T )"
172    non associative with precedence 45
173    for @{ 'RMinus $T1 $T2 $T }.
174
175 notation "hvbox( ⇧ * [ term 46 e ] break term 46 T1 ≡ break term 46 T2 )"
176    non associative with precedence 45
177    for @{ 'RLiftStar $e $T1 $T2 }.
178
179 notation "hvbox( ⇩ * [ term 46 e ] break term 46 L1 ≡ break term 46 L2 )"
180    non associative with precedence 45
181    for @{ 'RDropStar $e $L1 $L2 }.
182
183 notation "hvbox( ⦃ term 46 L1, break term 46 T1 ⦄ ⊃ + break ⦃ term 46 L2 , break term 46 T2 ⦄ )"
184    non associative with precedence 45
185    for @{ 'SupTermPlus $L1 $T1 $L2 $T2 }.
186
187 notation "hvbox( ⦃ term 46 L1, break term 46 T1 ⦄ ⊃ * break ⦃ term 46 L2 , break term 46 T2 ⦄ )"
188    non associative with precedence 45
189    for @{ 'SupTermStar $L1 $T1 $L2 $T2 }.
190
191 notation "hvbox( L1 ⊑ break term 46 L2 )"
192    non associative with precedence 45
193    for @{ 'CrSubEq $L1 $L2 }.
194
195 notation "hvbox( L ⊢ break term 46 T1 ▶* break term 46 T2 )"
196    non associative with precedence 45
197    for @{ 'PSubstStar $L $T1 $T2 }.
198
199 notation "hvbox( T1 ⊢ ▶ * break term 46 T2 )"
200    non associative with precedence 45
201    for @{ 'PSubstStarSn $T1 $T2 }.
202
203 (* Static typing ************************************************************)
204
205 notation "hvbox( L ⊢ break term 46 T ⁝ break term 46 A )"
206    non associative with precedence 45
207    for @{ 'AtomicArity $L $T $A }.
208
209 notation "hvbox( T1 ⁝ ⊑ break term 46 T2 )"
210    non associative with precedence 45
211    for @{ 'CrSubEqA $T1 $T2 }.
212
213 notation "hvbox( ⦃ term 46 h , break term 46 L ⦄ ⊢ break term 46 T ÷ break term 46 A )"
214    non associative with precedence 45
215    for @{ 'BinaryArity $h $L $T $A }.
216
217 notation "hvbox( h ⊢ break term 46 L1 ÷ ⊑ break term 46 L2 )"
218    non associative with precedence 45
219    for @{ 'CrSubEqB $h $L1 $L2 }.
220
221 notation "hvbox( ⦃ term 46 h , break term 46 L ⦄ ⊢ break term 46 T1 • break [ term 46 g ] break ⦃ term 46 l , break term 46 T2 ⦄ )"
222    non associative with precedence 45
223    for @{ 'StaticType $h $g $L $T1 $T2 $l }.
224
225 (* Unfold *******************************************************************)
226
227 notation "hvbox( ⦃ term 46 h , break term 46 L ⦄ ⊢ break term 46 T1 •* break [ term 46 g ] break term 46 T2 )"
228    non associative with precedence 45
229    for @{ 'StaticTypeStar $h $g $L $T1 $T2 }.
230
231 notation "hvbox( L1 ⊢ ⧫ * break term 46 T ≡ break term 46 L2 )"
232    non associative with precedence 45
233    for @{ 'Unfold $L1 $T $L2 }.
234
235 notation "hvbox( L ⊢ break term 46 T1 ➤ * break term 46 T2 )"
236    non associative with precedence 45
237    for @{ 'PRestStar $L $T1 $T2 }.
238
239 notation "hvbox( T1 ⊢ ➤ * break term 46 T2 )"
240    non associative with precedence 45
241    for @{ 'PRestStarSn $T1 $T2 }.
242
243 (* Reduction ****************************************************************)
244
245 notation "hvbox( L ⊢ 𝐑 break ⦃ term 46 T ⦄ )"
246    non associative with precedence 45
247    for @{ 'Reducible $L $T }.
248
249 notation "hvbox( ⦃ term 46 h, break term 46 L ⦄ ⊢ 𝐑 break [ term 46 g ] break ⦃ term 46 T ⦄ )"
250    non associative with precedence 45
251    for @{ 'Reducible $h $g $L $T }.
252
253 notation "hvbox( L ⊢ 𝐈 break ⦃ term 46 T ⦄ )"
254    non associative with precedence 45
255    for @{ 'NotReducible $L $T }.
256
257 notation "hvbox( ⦃ term 46 h, break term 46 L ⦄ ⊢ 𝐈 break [ term 46 g ] break ⦃ term 46 T ⦄ )"
258    non associative with precedence 45
259    for @{ 'NotReducible $h $g $L $T }.
260
261 notation "hvbox( L ⊢ 𝐍 break ⦃ term 46 T ⦄ )"
262    non associative with precedence 45
263    for @{ 'Normal $L $T }.
264
265 notation "hvbox( ⦃ term 46 h, break term 46 L ⦄ ⊢ 𝐍 break [ term 46 g ] break ⦃ term 46 T ⦄ )"
266    non associative with precedence 45
267    for @{ 'Normal $h $g $L $T }.
268
269 notation "hvbox( L ⊢ break term 46 T1 ➡ break term 46 T2 )"
270    non associative with precedence 45
271    for @{ 'PRed $L $T1 $T2 }.
272
273 notation "hvbox( ⦃ term 46 h, break term 46 L ⦄ ⊢ break term 46 T1 ➡ break [ term 46 g ] break term 46 T2 )"
274    non associative with precedence 45
275    for @{ 'PRed $h $g $L $T1 $T2 }.
276
277 notation "hvbox( L1 ⊢ ➡ break term 46 L2 )"
278    non associative with precedence 45
279    for @{ 'PRedSn $L1 $L2 }.
280
281 notation "hvbox( ⦃ term 46 h, break term 46 L1 ⦄ ⊢ ➡ break [ term 46 g ] break term 46 L2 )"
282    non associative with precedence 45
283    for @{ 'PRedSn $h $g $L1 $L2 }.
284
285 (* Computation **************************************************************)
286
287 notation "hvbox( ⦃ term 46 L, break term 46 T ⦄ ϵ break [ term 46 R ] break 〚term 46  A 〛 )"
288    non associative with precedence 45
289    for @{ 'InEInt $R $L $T $A }.
290
291 notation "hvbox( T1 ⊑ break [ term 46 R ] break term 46 T2 )"
292    non associative with precedence 45
293    for @{ 'CrSubEq $T1 $R $T2 }.
294
295 notation "hvbox( L1 ⓝ ⊑ break term 46 L2 )"
296    non associative with precedence 45
297    for @{ 'CrSubEqT $L1 $L2 }.
298
299 notation "hvbox( L ⊢ break term 46 T1 ➡ * break term 46 T2 )"
300    non associative with precedence 45
301    for @{ 'PRedStar $L $T1 $T2 }.
302
303 notation "hvbox( ⦃ term 46 h, break term 46 L ⦄ ⊢ break term 46 T1 ➡ * break [ term 46 g ] break term 46 T2 )"
304    non associative with precedence 45
305    for @{ 'PRedStar $h $g $L $T1 $T2 }.
306
307 notation "hvbox( L1 ⊢ ➡* break term 46 L2 )"
308    non associative with precedence 45
309    for @{ 'PRedSnStar $L1 $L2 }.
310
311 notation "hvbox( ⦃ term 46 h, break term 46 L1 ⦄ ⊢ ➡ * break [ term 46 g ] break term 46 L2 )"
312    non associative with precedence 45
313    for @{ 'PRedSnStar $h $g $L1 $L2 }.
314
315 notation "hvbox( L1 ⊢ ➡ ➡ * break term 46 L2 )"
316    non associative with precedence 45
317    for @{ 'PRedSnStarAlt $L1 $L2 }.
318
319 notation "hvbox( ⦃ term 46 h, break term 46 L1 ⦄ ⊢ ➡ ➡ * break [ term 46 g ] break term 46 L2 )"
320    non associative with precedence 45
321    for @{ 'PRedSnStarAlt $h $g $L1 $L2 }.
322
323 notation "hvbox( ⦃ term 46 h , break term 46 L ⦄ ⊢ break term 46 T1 • * ➡ * break [ term 46 g ] break term 46 T2 )"
324    non associative with precedence 45
325    for @{ 'DecomposedPRedStar $h $g $L $T1 $T2 }.
326
327 notation "hvbox( ⦃ term 46 h, break term 46 L ⦄ ⊢ ⬊ * break [ term 46 g ] break term 46 T )"
328    non associative with precedence 45
329    for @{ 'SN $h $g $L $T }.
330
331 notation "hvbox( ⦃ term 46 h, break term 46 L ⦄ ⊢ ⬊ ⬊ * break [ term 46 g ] break term 46 T )"
332    non associative with precedence 45
333    for @{ 'SNAlt $h $g $L $T }.
334
335 notation "hvbox( L ⊢ break term 46 T1 ➡ * break 𝐍 ⦃ term 46 T2 ⦄ )"
336    non associative with precedence 45
337    for @{ 'PEval $L $T1 $T2 }.
338
339 notation "hvbox( ⦃ term 46 h, break term 46 L ⦄ ⊢ break term 46 T1 ➡ * break [ term 46 g ] break 𝐍 ⦃ term 46 T2 ⦄ )"
340    non associative with precedence 45
341    for @{ 'PEval $h $g $L $T1 $T2 }.
342
343 (* Conversion ***************************************************************)
344
345 notation "hvbox( L ⊢ break term 46 T1 ⬌ break term 46 T2 )"
346    non associative with precedence 45
347    for @{ 'PConv $L $T1 $T2 }.
348
349 notation "hvbox( L1 ⊢ ⬌ break term 46 L2 )"
350    non associative with precedence 45
351    for @{ 'PConvSn $L1 $L2 }.
352
353 (* Equivalence **************************************************************)
354
355 notation "hvbox( L ⊢ break term 46 T1 ⬌* break term 46 T2 )"
356    non associative with precedence 45
357    for @{ 'PConvStar $L $T1 $T2 }.
358
359 notation "hvbox( h ⊢ break term 46 L1 • ⊑ break [ term 46 g ] break term 46 L2 )"
360    non associative with precedence 45
361    for @{ 'CrSubEqS $h $g $L1 $L2 }.
362
363 notation "hvbox( L1 ⊢ ⬌* break term 46 L2 )"
364    non associative with precedence 45
365    for @{ 'PConvSnStar $L1 $L2 }.
366
367 (* Dynamic typing ***********************************************************)
368
369 notation "hvbox( ⦃ term 46 h , break term 46 L ⦄ ⊢ break term 46 T ¡ break [ term 46 g ] )"
370    non associative with precedence 45
371    for @{ 'NativeValid $h $g $L $T }.
372
373 notation "hvbox( h ⊢ break term 46 L1 ¡ ⊑ break [ term 46 g ] break term 46 L2 )"
374    non associative with precedence 45
375    for @{ 'CrSubEqV $h $g $L1 $L2 }.
376
377 notation "hvbox( h ⊢ break ⦃ term 46 L1, break term 46 T1 ⦄ ≽ break [ term 46 g ] break ⦃ term 46 L2 , break term 46 T2 ⦄ )"
378    non associative with precedence 45
379    for @{ 'BTPRed $h $g $L1 $T1 $L2 $T2 }.
380
381 notation "hvbox( h ⊢ break ⦃ term 46 L1, break term 46 T1 ⦄ ≻ break [ term 46 g ] break ⦃ term 46 L2 , break term 46 T2 ⦄ )"
382    non associative with precedence 45
383    for @{ 'BTPRedProper $h $g $L1 $T1 $L2 $T2 }.
384
385 notation "hvbox( h ⊢ break ⦃ term 46 L1, break term 46 T1 ⦄ ≥ break [ term 46 g ] break ⦃ term 46 L2 , break term 46 T2 ⦄ )"
386    non associative with precedence 45
387    for @{ 'BTPRedStar $h $g $L1 $T1 $L2 $T2 }.
388
389 notation "hvbox( h ⊢ break ⦃ term 46 L1, break term 46 T1 ⦄ > break [ term 46 g ] break ⦃ term 46 L2 , break term 46 T2 ⦄ )"
390    non associative with precedence 45
391    for @{ 'BTPRedStarProper $h $g $L1 $T1 $L2 $T2 }.
392
393 notation "hvbox( ⦃ term 46 h , break term 46 L ⦄ ⊢ break term 46 T1 : break term 46 T2 )"
394    non associative with precedence 45
395    for @{ 'NativeType $h $L $T1 $T2 }.
396
397 notation "hvbox( ⦃ term 46 h , break term 46 L ⦄ ⊢ break term 46 T1 : : break term 46 T2 )"
398    non associative with precedence 45
399    for @{ 'NativeTypeAlt $h $L $T1 $T2 }.
400
401 (* Higher order dynamic typing **********************************************)
402
403 notation "hvbox( ⦃ term 46 h , break term 46 L ⦄ ⊢ break term 46 T1 : * break term 46 T2 )"
404    non associative with precedence 45
405    for @{ 'NativeTypeStar $h $L $T1 $T2 }.