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( ⋆ term 90 k )"
24 non associative with precedence 90
27 notation "hvbox( # term 90 k )"
28 non associative with precedence 90
31 notation "hvbox( 𝕒 { I } )"
32 non associative with precedence 90
35 notation "hvbox( 𝕔 { I } break term 90 T1 . break term 90 T )"
36 non associative with precedence 90
37 for @{ 'SItem $I $T1 $T }.
39 notation "hvbox( 𝕓 { I } break term 90 T1 . break term 90 T )"
40 non associative with precedence 90
41 for @{ 'SBind $I $T1 $T }.
43 notation "hvbox( 𝕗 { I } break term 90 T1 . break term 90 T )"
44 non associative with precedence 90
45 for @{ 'SFlat $I $T1 $T }.
47 notation "hvbox( T . break 𝕓 { I } break term 90 T1 )"
48 non associative with precedence 89
49 for @{ 'DBind $T $I $T1 }.
51 notation > "hvbox( T . break 𝕔 { I } break term 90 T1 )"
52 non associative with precedence 89
53 for @{ 'DBind $T $I $T1 }.
54 *) (**) (* this breaks all parsing *)
55 notation "hvbox( # [ x ] )"
56 non associative with precedence 90
59 notation "hvbox( # [ x , break y ] )"
60 non associative with precedence 90
61 for @{ 'Weight $x $y }.
63 notation "hvbox( 𝕊 [ T ] )"
64 non associative with precedence 45
67 notation "hvbox( T1 break [ d , break e ] ≈ break T2 )"
68 non associative with precedence 45
69 for @{ 'Eq $T1 $d $e $T2 }.
71 (* Substitution *************************************************************)
73 notation "hvbox( ↑ [ d , break e ] break T1 ≡ break T2 )"
74 non associative with precedence 45
75 for @{ 'RLift $d $e $T1 $T2 }.
77 notation "hvbox( ↓ [ d , break e ] break L1 ≡ break L2 )"
78 non associative with precedence 45
79 for @{ 'RDrop $d $e $L1 $L2 }.
81 notation "hvbox( T1 break [ d , break e ] ≫ break T2 )"
82 non associative with precedence 45
83 for @{ 'PSubst $T1 $d $e $T2 }.
85 notation "hvbox( L ⊢ break term 90 T1 break [ d , break e ] ≫ break T2 )"
86 non associative with precedence 45
87 for @{ 'PSubst $L $T1 $d $e $T2 }.
89 (* Unfold *******************************************************************)
91 notation "hvbox( T1 break [ d , break e ] ≫* break T2 )"
92 non associative with precedence 45
93 for @{ 'PSubstStar $T1 $d $e $T2 }.
95 notation "hvbox( L ⊢ break term 90 T1 break [ d , break e ] ≫* break T2 )"
96 non associative with precedence 45
97 for @{ 'PSubstStar $L $T1 $d $e $T2 }.
99 (* Reduction ****************************************************************)
101 notation "hvbox( T1 ⇒ break T2 )"
102 non associative with precedence 45
103 for @{ 'PRed $T1 $T2 }.
105 notation "hvbox( L ⊢ break term 90 T1 ⇒ break T2 )"
106 non associative with precedence 45
107 for @{ 'PRed $L $T1 $T2 }.
109 notation "hvbox( L1 ⊢ ⇒ break L2 )"
110 non associative with precedence 45
111 for @{ 'CPRed $L1 $L2 }.
113 (* Computation **************************************************************)
115 notation "hvbox( T1 ⇒* break T2 )"
116 non associative with precedence 45
117 for @{ 'PRedStar $T1 $T2 }.
119 notation "hvbox( L ⊢ break term 90 T1 ⇒* break T2 )"
120 non associative with precedence 45
121 for @{ 'PRedStar $L $T1 $T2 }.
123 notation "hvbox( L1 ⊢ ⇒* break L2 )"
124 non associative with precedence 45
125 for @{ 'CPRedStar $L1 $L2 }.