]> matita.cs.unibo.it Git - helm.git/blob - helm/software/matita/contribs/procedural/Coq/Num/Leibniz/NSyntax.mma
b80b0c5926acec49f9e78d159a431c38c4f33048
[helm.git] / helm / software / matita / contribs / procedural / Coq / Num / Leibniz / NSyntax.mma
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 (* This file was automatically generated: do not edit *********************)
16
17 include "Coq.ma".
18
19 (*s Syntax for arithmetic *)
20
21 include "Num/Params.ma".
22
23 (* NOTATION
24 Infix 6 "<" lt.
25 *)
26
27 (* NOTATION
28 Infix 6 "<=" le.
29 *)
30
31 (* NOTATION
32 Infix 6 ">" gt.
33 *)
34
35 (* NOTATION
36 Infix 6 ">=" ge.
37 *)
38
39 (*i Infix 7 "+" plus. i*)
40
41 (* NOTATION
42 Grammar constr lassoc_constr4 :=
43   squash_sum
44   [ lassoc_constr4($c1) "+" lassoc_constr4($c2) ] ->
45       case [$c2] of
46         (SQUASH $T2) ->
47             case [$c1] of
48               (SQUASH $T1) -> [ (sumbool $T1 $T2) ] (* {T1}+{T2} *)
49             | $_           -> [ (sumor $c1 $T2) ]   (* c1+{T2} *)
50             esac
51       | $_           -> [ (add $c1 $c2) ]           (* c1+c2 *)
52       esac.
53 *)
54
55 (* NOTATION
56 Syntax constr
57   level 1:
58     equal [ (eqN $t1 $t2) ] -> [ [<hov 0> $t1:E [0 1]  "=" $t2:E ] ]
59  ;
60
61   level 4:
62     sum [ (add $t1 $t2) ] -> [ [<hov 0> $t1:E [0 1] "+" $t2:L ] ]
63 .
64 *)
65