]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambda-delta/Basic-2/notation.ma
8f068effd4167c54b3eb844af106b465835431f4
[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 @{ 'Eq $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 $T1 $d $e $T2 }.
76
77 notation "hvbox( ↓ [ d , break e ] break L1 ≡ break L2 )"
78    non associative with precedence 45
79    for @{ 'RDrop $L1 $d $e $L2 }.
80
81 notation "hvbox( L ⊢ break term 90 T1 break [ d , break e ] ≫ break T2 )"
82    non associative with precedence 45
83    for @{ 'PSubst $L $T1 $d $e $T2 }.
84
85 (* Reduction ****************************************************************)
86
87 notation "hvbox( T1 ⇒ break T2 )"
88    non associative with precedence 45
89    for @{ 'PRed $T1 $T2 }.
90
91 notation "hvbox( L ⊢ break term 90 T1 ⇒ break T2 )"
92    non associative with precedence 45
93    for @{ 'PRed $L $T1 $T2 }.
94
95 notation "hvbox( L1 ⊢ ⇒ break L2 )"
96    non associative with precedence 45
97    for @{ 'CPRed $L1 $L2 }.