]> matita.cs.unibo.it Git - helm.git/blob - helm/software/matita/contribs/procedural/Coq/Num/Nat/NSyntax.mma
c2b48712201adbb9c77ac1d8dd26c9deb9804c0c
[helm.git] / helm / software / matita / contribs / procedural / Coq / Num / Nat / 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 (* NOTATION
22 Infix 6 "<" lt.
23 *)
24
25 (* NOTATION
26 Infix 6 "<=" le.
27 *)
28
29 (* NOTATION
30 Infix 6 ">" gt.
31 *)
32
33 (* NOTATION
34 Infix 6 ">=" ge.
35 *)
36
37 (*i Infix 7 "+" plus. i*)
38
39 (* NOTATION
40 Grammar constr lassoc_constr4 :=
41   squash_sum
42   [ lassoc_constr4($c1) "+" lassoc_constr4($c2) ] ->
43       case [$c2] of
44         (SQUASH $T2) ->
45             case [$c1] of
46               (SQUASH $T1) -> [ (sumbool $T1 $T2) ] (* {T1}+{T2} *)
47             | $_           -> [ (sumor $c1 $T2) ]   (* c1+{T2} *)
48             esac
49       | $_           -> [ (add $c1 $c2) ]           (* c1+c2 *)
50       esac.
51 *)
52
53 (* NOTATION
54 Syntax constr
55   level 4:
56     sum [ (add $t1 $t2) ] -> [ [<hov 0> $t1:E [0 1] "+" $t2:L ] ]
57 .
58 *)
59