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( ⓑ { I } break term 55 T1 . break term 55 T )"
52 non associative with precedence 55
53 for @{ 'SnBind2 $I $T1 $T }.
55 notation "hvbox( ⓕ { I } break term 55 T1 . break term 55 T )"
56 non associative with precedence 55
57 for @{ 'SnFlat2 $I $T1 $T }.
59 notation "hvbox( ⓓ term 55 T1 . break term 55 T2 )"
60 non associative with precedence 55
61 for @{ 'SnAbbr $T1 $T2 }.
63 notation "hvbox( ⓛ term 55 T1 . break term 55 T2 )"
64 non associative with precedence 55
65 for @{ 'SnAbst $T1 $T2 }.
67 notation "hvbox( ⓐ term 55 T1 . break term 55 T2 )"
68 non associative with precedence 55
69 for @{ 'SnAppl $T1 $T2 }.
71 notation "hvbox( ⓣ term 55 T1 . break term 55 T2 )"
72 non associative with precedence 55
73 for @{ 'SnCast $T1 $T2 }.
75 notation "hvbox( Ⓐ term 55 T1 . break term 55 T )"
76 non associative with precedence 55
77 for @{ 'SnApplV $T1 $T }.
79 notation > "hvbox( T . break ②{ I } break term 47 T1 )"
80 non associative with precedence 46
81 for @{ 'DxBind2 $T $I $T1 }.
83 notation "hvbox( T . break ⓑ { I } break term 48 T1 )"
84 non associative with precedence 47
85 for @{ 'DxBind2 $T $I $T1 }.
87 notation "hvbox( T1 . break ⓓ T2 )"
88 left associative with precedence 48
89 for @{ 'DxAbbr $T1 $T2 }.
91 notation "hvbox( T1 . break ⓛ T2 )"
92 left associative with precedence 49
93 for @{ 'DxAbst $T1 $T2 }.
95 notation "hvbox( T . break ④ { I } break { T1 , break T2 , break T3 } )"
96 non associative with precedence 50
97 for @{ 'DxItem4 $T $I $T1 $T2 $T3 }.
99 notation "hvbox( # [ x ] )"
100 non associative with precedence 90
103 notation "hvbox( # [ x , break y ] )"
104 non associative with precedence 90
105 for @{ 'Weight $x $y }.
107 notation "hvbox( 𝐒 [ T ] )"
108 non associative with precedence 45
111 notation "hvbox( L ⊢ break term 46 T1 ≈ break term 46 T2 )"
112 non associative with precedence 45
113 for @{ 'Hom $L $T1 $T2 }.
115 notation "hvbox( T1 ≃ break term 46 T2 )"
116 non associative with precedence 45
117 for @{ 'Iso $T1 $T2 }.
119 notation "hvbox( T1 break [ d , break e ] ≼ break term 46 T2 )"
120 non associative with precedence 45
121 for @{ 'SubEq $T1 $d $e $T2 }.
123 (* Substitution *************************************************************)
125 notation "hvbox( L ⊢ break [ d , break e ] break 𝐑 [ T ] )"
126 non associative with precedence 45
127 for @{ 'Reducible $L $d $e $T }.
129 notation "hvbox( L ⊢ break [ d , break e ] break 𝐈 [ T ] )"
130 non associative with precedence 45
131 for @{ 'NotReducible $L $d $e $T }.
133 notation "hvbox( L ⊢ break [ d , break e ] break 𝐍 [ T ] )"
134 non associative with precedence 45
135 for @{ 'Normal $L $d $e $T }.
137 notation "hvbox( ⇧ [ d , break e ] break term 46 T1 ≡ break term 46 T2 )"
138 non associative with precedence 45
139 for @{ 'RLift $d $e $T1 $T2 }.
141 notation "hvbox( ⇩ [ e ] break term 46 L1 ≡ break term 46 L2 )"
142 non associative with precedence 45
143 for @{ 'RDrop $e $L1 $L2 }.
145 notation "hvbox( ⇩ [ d , break e ] break term 46 L1 ≡ break term 46 L2 )"
146 non associative with precedence 45
147 for @{ 'RDrop $d $e $L1 $L2 }.
149 notation "hvbox( L ⊢ break ⌘ [ T ] ≡ break term 46 k )"
150 non associative with precedence 45
151 for @{ 'ICM $L $T $k }.
153 notation "hvbox( L ⊢ break term 46 T1 break [ d , break e ] ▶ break term 46 T2 )"
154 non associative with precedence 45
155 for @{ 'PSubst $L $T1 $d $e $T2 }.
157 (* Unfold *******************************************************************)
159 notation "hvbox( @ [ T1 ] break term 46 f ≡ break term 46 T2 )"
160 non associative with precedence 45
161 for @{ 'RAt $T1 $f $T2 }.
163 notation "hvbox( T1 ▭ break term 46 T2 ≡ break term 46 T )"
164 non associative with precedence 45
165 for @{ 'RMinus $T1 $T2 $T }.
167 notation "hvbox( ⇧ * [ e ] break term 46 T1 ≡ break term 46 T2 )"
168 non associative with precedence 45
169 for @{ 'RLiftStar $e $T1 $T2 }.
171 notation "hvbox( ⇩ * [ e ] break term 46 L1 ≡ break term 46 L2 )"
172 non associative with precedence 45
173 for @{ 'RDropStar $e $L1 $L2 }.
175 notation "hvbox( T1 break [ d , break e ] ▶* break term 46 T2 )"
176 non associative with precedence 45
177 for @{ 'PSubstStar $T1 $d $e $T2 }.
179 notation "hvbox( L ⊢ break term 46 T1 break [ d , break e ] ▶* break term 46 T2 )"
180 non associative with precedence 45
181 for @{ 'PSubstStar $L $T1 $d $e $T2 }.
183 notation "hvbox( L ⊢ break term 46 T1 break [ d , break e ] ▶▶* break term 46 T2 )"
184 non associative with precedence 45
185 for @{ 'PSubstStarAlt $L $T1 $d $e $T2 }.
187 notation "hvbox( T1 break [ d , break e ] ≡ break term 46 T2 )"
188 non associative with precedence 45
189 for @{ 'TSubst $T1 $d $e $T2 }.
191 notation "hvbox( L ⊢ break term 46 T1 break [ d , break e ] ≡ break term 46 T2 )"
192 non associative with precedence 45
193 for @{ 'TSubst $L $T1 $d $e $T2 }.
195 notation "hvbox( T1 break [ d , break e ] ≡≡ break term 46 T2 )"
196 non associative with precedence 45
197 for @{ 'TSubstAlt $T1 $d $e $T2 }.
199 notation "hvbox( L ⊢ break term 46 T1 break [ d , break e ] ≡≡ break term 46 T2 )"
200 non associative with precedence 45
201 for @{ 'TSubstAlt $L $T1 $d $e $T2 }.
203 (* Static typing ************************************************************)
205 notation "hvbox( L ⊢ break term 46 T ÷ break term 46 A )"
206 non associative with precedence 45
207 for @{ 'AtomicArity $L $T $A }.
209 notation "hvbox( T1 ÷ ⊑ break term 46 T2 )"
210 non associative with precedence 45
211 for @{ 'CrSubEqA $T1 $T2 }.
213 notation "hvbox( ⦃ h , break L ⦄ ⊢ break term 46 T1 • break term 46 T2 )"
214 non associative with precedence 45
215 for @{ 'StaticType $h $L $T1 $T2 }.
217 (* Unwind *******************************************************************)
219 notation "hvbox( ⦃ h , break L ⦄ ⊢ break term 46 T1 •* break term 46 T2 )"
220 non associative with precedence 45
221 for @{ 'StaticTypeStar $h $L $T1 $T2 }.
223 (* Reducibility *************************************************************)
225 notation "hvbox( 𝐑 [ T ] )"
226 non associative with precedence 45
227 for @{ 'Reducible $T }.
229 notation "hvbox( L ⊢ break 𝐑 [ T ] )"
230 non associative with precedence 45
231 for @{ 'Reducible $L $T }.
233 notation "hvbox( 𝐈 [ T ] )"
234 non associative with precedence 45
235 for @{ 'NotReducible $T }.
237 notation "hvbox( L ⊢ break 𝐈 [ T ] )"
238 non associative with precedence 45
239 for @{ 'NotReducible $L $T }.
241 notation "hvbox( 𝐍 [ T ] )"
242 non associative with precedence 45
245 notation "hvbox( L ⊢ break 𝐍 [ T ] )"
246 non associative with precedence 45
247 for @{ 'Normal $L $T }.
249 notation "hvbox( 𝐖𝐇𝐑 [ T ] )"
250 non associative with precedence 45
251 for @{ 'WHdReducible $T }.
253 notation "hvbox( L ⊢ break 𝐖𝐇𝐑 [ T ] )"
254 non associative with precedence 45
255 for @{ 'WHdReducible $L $T }.
257 notation "hvbox( 𝐖𝐇𝐈 [ T ] )"
258 non associative with precedence 45
259 for @{ 'NotWHdReducible $T }.
261 notation "hvbox( L ⊢ break 𝐖𝐇𝐈 [ T ] )"
262 non associative with precedence 45
263 for @{ 'NotWHdReducible $L $T }.
265 notation "hvbox( 𝐖𝐇𝐍 [ T ] )"
266 non associative with precedence 45
267 for @{ 'WHdNormal $T }.
269 notation "hvbox( L ⊢ break 𝐖𝐇𝐍 [ T ] )"
270 non associative with precedence 45
271 for @{ 'WHdNormal $L $T }.
273 notation "hvbox( T1 ➡ break term 46 T2 )"
274 non associative with precedence 45
275 for @{ 'PRed $T1 $T2 }.
277 notation "hvbox( L ⊢ break term 46 T1 ➡ break term 46 T2 )"
278 non associative with precedence 45
279 for @{ 'PRed $L $T1 $T2 }.
281 notation "hvbox( L1 ⊢ ➡ break term 46 L2 )"
282 non associative with precedence 45
283 for @{ 'CPRed $L1 $L2 }.
285 (* Computation **************************************************************)
287 notation "hvbox( T1 ➡* break term 46 T2 )"
288 non associative with precedence 45
289 for @{ 'PRedStar $T1 $T2 }.
291 notation "hvbox( L ⊢ break term 46 T1 ➡* break term 46 T2 )"
292 non associative with precedence 45
293 for @{ 'PRedStar $L $T1 $T2 }.
295 notation "hvbox( L1 ⊢ ➡* break term 46 L2 )"
296 non associative with precedence 45
297 for @{ 'CPRedStar $L1 $L2 }.
299 notation "hvbox( L ⊢ break term 46 T1 ➡* break 𝐍 [ T2 ] )"
300 non associative with precedence 45
301 for @{ 'PEval $L $T1 $T2 }.
303 notation "hvbox( ⬇ * term 46 T )"
304 non associative with precedence 45
307 notation "hvbox( L ⊢ ⬇ * term 46 T )"
308 non associative with precedence 45
311 notation "hvbox( L ⊢ ⬇ * * term 46 T )"
312 non associative with precedence 45
313 for @{ 'SNStar $L $T }.
315 notation "hvbox( ⦃ L, break T ⦄ break [ R ] ϵ break 〚 A 〛 )"
316 non associative with precedence 45
317 for @{ 'InEInt $R $L $T $A }.
319 notation "hvbox( T1 break [ R ] ⊑ break term 46 T2 )"
320 non associative with precedence 45
321 for @{ 'CrSubEq $T1 $R $T2 }.
323 (* Conversion ***************************************************************)
325 notation "hvbox( L ⊢ break term 46 T1 ⬌ break term 46 T2 )"
326 non associative with precedence 45
327 for @{ 'PConv $L $T1 $T2 }.
329 notation "hvbox( T1 ⊢ ⬌ break term 46 T2 )"
330 non associative with precedence 45
331 for @{ 'CPConv $T1 $T2 }.
333 (* Equivalence **************************************************************)
335 notation "hvbox( L ⊢ break term 46 T1 ⬌* break term 46 T2 )"
336 non associative with precedence 45
337 for @{ 'PConvStar $L $T1 $T2 }.
339 notation "hvbox( T1 ⊢ ⬌* break term 46 T2 )"
340 non associative with precedence 45
341 for @{ 'CPConvStar $T1 $T2 }.
343 (* Dynamic typing ***********************************************************)
345 notation "hvbox( ⦃ h , break L ⦄ ⊢ break term 46 T1 : break term 46 T2 )"
346 non associative with precedence 45
347 for @{ 'NativeType $h $L $T1 $T2 }.
349 notation "hvbox( h ⊢ break term 46 L1 : ⊑ break term 46 L2 )"
350 non associative with precedence 45
351 for @{ 'CrSubEqN $h $L1 $L2 }.