]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambda_delta/Basic_2/notation.ma
aa5cba8b940a9bbfc5ff878cf34bb3f36d30508c
[helm.git] / matita / matita / contribs / lambda_delta / 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 "hvbox( ⋆ )"
20  non associative with precedence 90
21  for @{ 'Star }.
22
23 notation "hvbox( ⋆ term 90 k )"
24  non associative with precedence 90
25  for @{ 'Star $k }.
26
27 notation "hvbox( # term 90 k )"
28  non associative with precedence 90
29  for @{ 'LRef $k }.
30
31 notation "hvbox( 𝕒 { I } )"
32  non associative with precedence 90
33  for @{ 'SItem $I }.
34
35 notation "hvbox( 𝕔 { I } break term 90 T1 . break term 90 T )"
36  non associative with precedence 90
37  for @{ 'SItem $I $T1 $T }.
38
39 notation "hvbox( 𝕓 { I } break term 90 T1 . break term 90 T )"
40  non associative with precedence 90
41  for @{ 'SBind $I $T1 $T }.
42
43 notation "hvbox( 𝕗 { I } break term 90 T1 . break term 90 T )"
44  non associative with precedence 90
45  for @{ 'SFlat $I $T1 $T }.
46
47 notation "hvbox( T . break 𝕓 { I } break term 90 T1 )"
48  non associative with precedence 89
49  for @{ 'DBind $T $I $T1 }.
50 (*
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
57  for @{ 'Weight $x }.
58
59 notation "hvbox( # [ x , break y ] )"
60  non associative with precedence 90
61  for @{ 'Weight $x $y }.
62
63 notation "hvbox( 𝕊 [ T ] )"
64    non associative with precedence 45
65    for @{ 'Simple $T }.
66
67 notation "hvbox( T1 break [ d , break e ] ≼ break T2 )"
68    non associative with precedence 45
69    for @{ 'SubEq $T1 $d $e $T2 }.
70
71 (* Substitution *************************************************************)
72
73 notation "hvbox( ↑ [ d , break e ] break T1 ≡ break T2 )"
74    non associative with precedence 45
75    for @{ 'RLift $d $e $T1 $T2 }.
76
77 notation "hvbox( ↓ [ d , break e ] break L1 ≡ break L2 )"
78    non associative with precedence 45
79    for @{ 'RDrop $d $e $L1 $L2 }.
80
81 notation "hvbox( T1 break [ d , break e ] ≫ break T2 )"
82    non associative with precedence 45
83    for @{ 'PSubst $T1 $d $e $T2 }.
84
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 }.
88
89 (* Unfold *******************************************************************)
90
91 notation "hvbox( T1 break [ d , break e ] ≫* break T2 )"
92    non associative with precedence 45
93    for @{ 'PSubstStar $T1 $d $e $T2 }.
94
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 }.
98
99 (* Reduction ****************************************************************)
100
101 notation "hvbox( T1 ⇒ break T2 )"
102    non associative with precedence 45
103    for @{ 'PRed $T1 $T2 }.
104
105 notation "hvbox( L ⊢ break term 90 T1 ⇒ break T2 )"
106    non associative with precedence 45
107    for @{ 'PRed $L $T1 $T2 }.
108
109 notation "hvbox( L1 ⊢ ⇒ break L2 )"
110    non associative with precedence 45
111    for @{ 'CPRed $L1 $L2 }.
112
113 (* Computation **************************************************************)
114
115 notation "hvbox( T1 ⇒* break T2 )"
116    non associative with precedence 45
117    for @{ 'PRedStar $T1 $T2 }.
118
119 notation "hvbox( L ⊢ break term 90 T1 ⇒* break T2 )"
120    non associative with precedence 45
121    for @{ 'PRedStar $L $T1 $T2 }.
122
123 notation "hvbox( L1 ⊢ ⇒* break L2 )"
124    non associative with precedence 45
125    for @{ 'CPRedStar $L1 $L2 }.